Lines Matching defs:tfm

1236 static int artpec6_crypto_aead_init(struct crypto_aead *tfm)
1238 struct artpec6_cryptotfm_context *tfm_ctx = crypto_aead_ctx(tfm);
1242 crypto_aead_set_reqsize(tfm,
1248 static int artpec6_crypto_aead_set_key(struct crypto_aead *tfm, const u8 *key,
1251 struct artpec6_cryptotfm_context *ctx = crypto_tfm_ctx(&tfm->base);
1310 struct artpec6_hashalg_context *ctx = crypto_tfm_ctx(areq->base.tfm);
1534 static int artpec6_crypto_aes_ecb_init(struct crypto_skcipher *tfm)
1536 struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm);
1538 tfm->reqsize = sizeof(struct artpec6_crypto_request_context);
1544 static int artpec6_crypto_aes_ctr_init(struct crypto_skcipher *tfm)
1546 struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm);
1549 crypto_alloc_sync_skcipher(crypto_tfm_alg_name(&tfm->base),
1554 tfm->reqsize = sizeof(struct artpec6_crypto_request_context);
1560 static int artpec6_crypto_aes_cbc_init(struct crypto_skcipher *tfm)
1562 struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm);
1564 tfm->reqsize = sizeof(struct artpec6_crypto_request_context);
1570 static int artpec6_crypto_aes_xts_init(struct crypto_skcipher *tfm)
1572 struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm);
1574 tfm->reqsize = sizeof(struct artpec6_crypto_request_context);
1580 static void artpec6_crypto_aes_exit(struct crypto_skcipher *tfm)
1582 struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm);
1587 static void artpec6_crypto_aes_ctr_exit(struct crypto_skcipher *tfm)
1589 struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(tfm);
1592 artpec6_crypto_aes_exit(tfm);
1832 struct artpec6_cryptotfm_context *ctx = crypto_tfm_ctx(areq->base.tfm);
2225 artpec6_crypto_hash_set_key(struct crypto_ahash *tfm,
2228 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(&tfm->base);
2240 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
2388 static int artpec6_crypto_ahash_init_common(struct crypto_tfm *tfm,
2391 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm);
2393 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
2412 static int artpec6_crypto_ahash_init(struct crypto_tfm *tfm)
2414 return artpec6_crypto_ahash_init_common(tfm, NULL);
2417 static int artpec6_crypto_ahash_init_hmac_sha256(struct crypto_tfm *tfm)
2419 return artpec6_crypto_ahash_init_common(tfm, "sha256");
2422 static void artpec6_crypto_ahash_exit(struct crypto_tfm *tfm)
2424 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm);