Lines Matching refs:tfm
35 static int gcm_aes_nx_set_key(struct crypto_aead *tfm, in gcm_aes_nx_set_key() argument
39 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in gcm_aes_nx_set_key()
74 static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm, in gcm4106_aes_nx_set_key() argument
78 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&tfm->base); in gcm4106_aes_nx_set_key()
87 rc = gcm_aes_nx_set_key(tfm, in_key, key_len); in gcm4106_aes_nx_set_key()
96 static int gcm_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm_aes_nx_setauthsize() argument
99 if (authsize > crypto_aead_alg(tfm)->maxauthsize) in gcm_aes_nx_setauthsize()
102 crypto_aead_crt(tfm)->authsize = authsize; in gcm_aes_nx_setauthsize()
107 static int gcm4106_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm4106_aes_nx_setauthsize() argument
119 crypto_aead_crt(tfm)->authsize = authsize; in gcm4106_aes_nx_setauthsize()
196 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gmac()
269 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm_empty()
332 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm_aes_nx_crypt()
379 desc.tfm = (struct crypto_blkcipher *) req->base.tfm; in gcm_aes_nx_crypt()
458 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm4106_aes_nx_encrypt()
471 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(req->base.tfm); in gcm4106_aes_nx_decrypt()