Lines Matching defs:tfm

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