Lines Matching refs:tfm

28 	struct qce_aead_ctx *ctx = crypto_tfm_ctx(async_req->tfm);  in qce_aead_done()
188 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_ccm_prepare_buf_assoclen() local
190 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_ccm_prepare_buf_assoclen()
332 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_ccm_prepare_buf() local
333 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_ccm_prepare_buf()
412 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_async_req_handle() local
413 struct qce_aead_ctx *ctx = crypto_tfm_ctx(async_req->tfm); in qce_aead_async_req_handle()
429 rctx->ivsize = crypto_aead_ivsize(tfm); in qce_aead_async_req_handle()
504 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_crypt() local
506 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_crypt()
507 struct qce_alg_template *tmpl = to_aead_tmpl(tfm); in qce_aead_crypt()
508 unsigned int blocksize = crypto_aead_blocksize(tfm); in qce_aead_crypt()
565 static int qce_aead_ccm_setkey(struct crypto_aead *tfm, const u8 *key, in qce_aead_ccm_setkey() argument
568 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_ccm_setkey()
569 unsigned long flags = to_aead_tmpl(tfm)->alg_flags; in qce_aead_ccm_setkey()
595 static int qce_aead_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) in qce_aead_setkey() argument
597 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_setkey()
599 unsigned long flags = to_aead_tmpl(tfm)->alg_flags; in qce_aead_setkey()
612 err = verify_aead_des_key(tfm, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey()
616 err = verify_aead_des3_key(tfm, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey()
651 static int qce_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in qce_aead_setauthsize() argument
653 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_setauthsize()
654 unsigned long flags = to_aead_tmpl(tfm)->alg_flags; in qce_aead_setauthsize()
667 static int qce_aead_init(struct crypto_aead *tfm) in qce_aead_init() argument
669 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_init()
672 ctx->fallback = crypto_alloc_aead(crypto_tfm_alg_name(&tfm->base), in qce_aead_init()
678 crypto_aead_set_reqsize_dma(tfm, sizeof(struct qce_aead_reqctx) + in qce_aead_init()
683 static void qce_aead_exit(struct crypto_aead *tfm) in qce_aead_exit() argument
685 struct qce_aead_ctx *ctx = crypto_aead_ctx(tfm); in qce_aead_exit()