Lines Matching refs:tfm

262 static inline struct n2_ahash_alg *n2_ahash_alg(struct crypto_tfm *tfm)  in n2_ahash_alg()  argument
264 struct crypto_alg *alg = tfm->__crt_alg; in n2_ahash_alg()
277 static inline struct n2_hmac_alg *n2_hmac_alg(struct crypto_tfm *tfm) in n2_hmac_alg() argument
279 struct crypto_alg *alg = tfm->__crt_alg; in n2_hmac_alg()
315 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init() local
316 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); in n2_hash_async_init()
327 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update() local
328 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); in n2_hash_async_update()
341 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final() local
342 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); in n2_hash_async_final()
354 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup() local
355 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); in n2_hash_async_finup()
376 static int n2_hash_cra_init(struct crypto_tfm *tfm) in n2_hash_cra_init() argument
378 const char *fallback_driver_name = crypto_tfm_alg_name(tfm); in n2_hash_cra_init()
379 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init()
403 static void n2_hash_cra_exit(struct crypto_tfm *tfm) in n2_hash_cra_exit() argument
405 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit()
411 static int n2_hmac_cra_init(struct crypto_tfm *tfm) in n2_hmac_cra_init() argument
413 const char *fallback_driver_name = crypto_tfm_alg_name(tfm); in n2_hmac_cra_init()
414 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init()
416 struct n2_hmac_alg *n2alg = n2_hmac_alg(tfm); in n2_hmac_cra_init()
452 static void n2_hmac_cra_exit(struct crypto_tfm *tfm) in n2_hmac_cra_exit() argument
454 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit()
461 static int n2_hmac_async_setkey(struct crypto_ahash *tfm, const u8 *key, in n2_hmac_async_setkey() argument
464 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(tfm); in n2_hmac_async_setkey()
525 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_do_async_digest() local
538 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); in n2_do_async_digest()
611 struct n2_ahash_alg *n2alg = n2_ahash_alg(req->base.tfm); in n2_hash_async_digest()
629 struct n2_hmac_alg *n2alg = n2_hmac_alg(req->base.tfm); in n2_hmac_async_digest()
631 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hmac_async_digest() local
632 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(tfm); in n2_hmac_async_digest()
639 struct n2_hash_ctx *ctx = crypto_ahash_ctx(tfm); in n2_hmac_async_digest()
716 static inline struct n2_skcipher_alg *n2_skcipher_alg(struct crypto_skcipher *tfm) in n2_skcipher_alg() argument
718 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in n2_skcipher_alg()
730 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey() local
731 struct n2_skcipher_context *ctx = crypto_tfm_ctx(tfm); in n2_aes_setkey()
758 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey() local
759 struct n2_skcipher_context *ctx = crypto_tfm_ctx(tfm); in n2_des_setkey()
777 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_3des_setkey() local
778 struct n2_skcipher_context *ctx = crypto_tfm_ctx(tfm); in n2_3des_setkey()
948 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in n2_do_ecb() local
965 err = __n2_crypt_chunk(tfm, c, qp, encrypt); in n2_do_ecb()
1000 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in n2_do_chaining() local
1024 err = __n2_crypt_chunk(tfm, c, qp, true); in n2_do_chaining()
1054 err = __n2_crypt_chunk(tfm, c, qp, false); in n2_do_chaining()
1325 static int n2_skcipher_init_tfm(struct crypto_skcipher *tfm) in n2_skcipher_init_tfm() argument
1327 crypto_skcipher_set_reqsize(tfm, sizeof(struct n2_request_context)); in n2_skcipher_init_tfm()