Lines Matching refs:tfm
87 struct crypto_cipher *tfm = ctx->cipher; in crypto_ccm_setkey() local
99 crypto_cipher_clear_flags(tfm, CRYPTO_TFM_REQ_MASK); in crypto_ccm_setkey()
100 crypto_cipher_set_flags(tfm, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
102 err = crypto_cipher_setkey(tfm, key, keylen); in crypto_ccm_setkey()
103 crypto_aead_set_flags(aead, crypto_cipher_get_flags(tfm) & in crypto_ccm_setkey()
110 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, in crypto_ccm_setauthsize() argument
170 static void compute_mac(struct crypto_cipher *tfm, u8 *data, int n, in compute_mac() argument
185 crypto_cipher_encrypt_one(tfm, odata, odata); in compute_mac()
194 crypto_cipher_encrypt_one(tfm, odata, odata); in compute_mac()
209 static void get_data_to_compute(struct crypto_cipher *tfm, in get_data_to_compute() argument
227 compute_mac(tfm, data_src, n, pctx); in get_data_to_compute()
246 crypto_cipher_encrypt_one(tfm, odata, odata); in get_data_to_compute()
451 static int crypto_ccm_init_tfm(struct crypto_aead *tfm) in crypto_ccm_init_tfm() argument
453 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_ccm_init_tfm()
455 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_init_tfm()
473 align = crypto_aead_alignmask(tfm); in crypto_ccm_init_tfm()
476 tfm, in crypto_ccm_init_tfm()
487 static void crypto_ccm_exit_tfm(struct crypto_aead *tfm) in crypto_ccm_exit_tfm() argument
489 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm); in crypto_ccm_exit_tfm()
769 static int crypto_rfc4309_init_tfm(struct crypto_aead *tfm) in crypto_rfc4309_init_tfm() argument
771 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_rfc4309_init_tfm()
773 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(tfm); in crypto_rfc4309_init_tfm()
786 tfm, in crypto_rfc4309_init_tfm()
794 static void crypto_rfc4309_exit_tfm(struct crypto_aead *tfm) in crypto_rfc4309_exit_tfm() argument
796 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(tfm); in crypto_rfc4309_exit_tfm()