Lines Matching refs:tfm

64 static void cc_aead_exit(struct crypto_aead *tfm)  in cc_aead_exit()  argument
66 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_aead_exit()
69 dev_dbg(dev, "Clearing context @%p for %s\n", crypto_aead_ctx(tfm), in cc_aead_exit()
70 crypto_tfm_alg_name(&tfm->base)); in cc_aead_exit()
118 static unsigned int cc_get_aead_hash_len(struct crypto_aead *tfm) in cc_get_aead_hash_len() argument
120 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_get_aead_hash_len()
125 static int cc_aead_init(struct crypto_aead *tfm) in cc_aead_init() argument
127 struct aead_alg *alg = crypto_aead_alg(tfm); in cc_aead_init()
128 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_aead_init()
134 crypto_tfm_alg_name(&tfm->base)); in cc_aead_init()
141 crypto_aead_set_reqsize_dma(tfm, sizeof(struct aead_req_ctx)); in cc_aead_init()
199 ctx->hash_len = cc_get_aead_hash_len(tfm); in cc_aead_init()
204 cc_aead_exit(tfm); in cc_aead_init()
212 struct crypto_aead *tfm = crypto_aead_reqtfm(cc_req); in cc_aead_complete() local
213 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_aead_complete()
410 static int cc_get_plain_hmac_key(struct crypto_aead *tfm, const u8 *authkey, in cc_get_plain_hmac_key() argument
414 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_get_plain_hmac_key()
541 static int cc_aead_setkey(struct crypto_aead *tfm, const u8 *key, in cc_aead_setkey() argument
544 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_aead_setkey()
553 ctx, crypto_tfm_alg_name(crypto_aead_tfm(tfm)), key, keylen); in cc_aead_setkey()
602 rc = cc_get_plain_hmac_key(tfm, authkey, ctx->auth_keylen); in cc_aead_setkey()
655 static int cc_rfc4309_ccm_setkey(struct crypto_aead *tfm, const u8 *key, in cc_rfc4309_ccm_setkey() argument
658 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_rfc4309_ccm_setkey()
666 return cc_aead_setkey(tfm, key, keylen); in cc_rfc4309_ccm_setkey()
724 struct crypto_aead *tfm = crypto_aead_reqtfm(areq); in cc_set_assoc_desc() local
725 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_set_assoc_desc()
768 struct crypto_aead *tfm = crypto_aead_reqtfm(areq); in cc_proc_authen_desc() local
769 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_authen_desc()
832 struct crypto_aead *tfm = crypto_aead_reqtfm(areq); in cc_proc_cipher_desc() local
833 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_cipher_desc()
874 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_digest_desc() local
875 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_digest_desc()
924 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_cipher_desc() local
925 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_set_cipher_desc()
991 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_hmac_desc() local
992 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_set_hmac_desc()
1024 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_xcbc_desc() local
1025 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_set_xcbc_desc()
1100 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_scheme_desc() local
1101 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_scheme_desc()
1162 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_mlli_to_sram() local
1163 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_mlli_to_sram()
1213 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_hmac_authenc() local
1214 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_hmac_authenc()
1266 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_xcbc_authenc() local
1267 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_xcbc_authenc()
1412 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_ccm() local
1413 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_ccm()
1533 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in config_ccm_adata() local
1534 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in config_ccm_adata()
1592 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_rfc4309_ccm() local
1593 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_rfc4309_ccm()
1616 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_ghash_desc() local
1617 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_set_ghash_desc()
1694 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_gctr_desc() local
1695 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_set_gctr_desc()
1731 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_gcm_result() local
1732 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_gcm_result()
1831 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in config_gcm_context() local
1832 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in config_gcm_context()
1880 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_rfc4_gcm() local
1881 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_rfc4_gcm()
1897 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_aead() local
1898 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_proc_aead()
1948 crypto_aead_ivsize(tfm)); in cc_proc_aead()
1952 areq_ctx->hw_iv_size = crypto_aead_ivsize(tfm); in cc_proc_aead()
2107 static int cc_rfc4106_gcm_setkey(struct crypto_aead *tfm, const u8 *key, in cc_rfc4106_gcm_setkey() argument
2110 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_rfc4106_gcm_setkey()
2121 return cc_aead_setkey(tfm, key, keylen); in cc_rfc4106_gcm_setkey()
2124 static int cc_rfc4543_gcm_setkey(struct crypto_aead *tfm, const u8 *key, in cc_rfc4543_gcm_setkey() argument
2127 struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm); in cc_rfc4543_gcm_setkey()
2138 return cc_aead_setkey(tfm, key, keylen); in cc_rfc4543_gcm_setkey()