Lines Matching refs:tfm
170 static int crypto_gcm_setauthsize(struct crypto_aead *tfm, in crypto_gcm_setauthsize() argument
463 struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in gcm_hash()
651 static int crypto_gcm_init_tfm(struct crypto_tfm *tfm) in crypto_gcm_init_tfm() argument
653 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_gcm_init_tfm()
655 struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_gcm_init_tfm()
673 align = crypto_tfm_alg_alignmask(tfm); in crypto_gcm_init_tfm()
675 tfm->crt_aead.reqsize = align + in crypto_gcm_init_tfm()
689 static void crypto_gcm_exit_tfm(struct crypto_tfm *tfm) in crypto_gcm_exit_tfm() argument
691 struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_gcm_exit_tfm()
933 static int crypto_rfc4106_init_tfm(struct crypto_tfm *tfm) in crypto_rfc4106_init_tfm() argument
935 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_rfc4106_init_tfm()
937 struct crypto_rfc4106_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4106_init_tfm()
949 tfm->crt_aead.reqsize = sizeof(struct aead_request) + in crypto_rfc4106_init_tfm()
957 static void crypto_rfc4106_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc4106_exit_tfm() argument
959 struct crypto_rfc4106_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4106_exit_tfm()
1189 .tfm = ctx->null, in crypto_rfc4543_copy_src_to_dst()
1234 static int crypto_rfc4543_init_tfm(struct crypto_tfm *tfm) in crypto_rfc4543_init_tfm() argument
1236 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_rfc4543_init_tfm()
1239 struct crypto_rfc4543_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4543_init_tfm()
1259 tfm->crt_aead.reqsize = sizeof(struct crypto_rfc4543_req_ctx) + in crypto_rfc4543_init_tfm()
1271 static void crypto_rfc4543_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc4543_exit_tfm() argument
1273 struct crypto_rfc4543_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc4543_exit_tfm()