Lines Matching refs:tfm
310 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(&ctx->req); in skcipher_sendmsg() local
311 unsigned ivsize = crypto_ablkcipher_ivsize(tfm); in skcipher_sendmsg()
763 struct skcipher_tfm *tfm; in skcipher_check_key() local
773 tfm = pask->private; in skcipher_check_key()
777 if (!tfm->has_key) in skcipher_check_key()
856 struct skcipher_tfm *tfm; in skcipher_bind() local
859 tfm = kzalloc(sizeof(*tfm), GFP_KERNEL); in skcipher_bind()
860 if (!tfm) in skcipher_bind()
865 kfree(tfm); in skcipher_bind()
869 tfm->skcipher = skcipher; in skcipher_bind()
871 return tfm; in skcipher_bind()
876 struct skcipher_tfm *tfm = private; in skcipher_release() local
878 crypto_free_ablkcipher(tfm->skcipher); in skcipher_release()
879 kfree(tfm); in skcipher_release()
884 struct skcipher_tfm *tfm = private; in skcipher_setkey() local
887 err = crypto_ablkcipher_setkey(tfm->skcipher, key, keylen); in skcipher_setkey()
888 tfm->has_key = !err; in skcipher_setkey()
907 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(&ctx->req); in skcipher_sock_destruct() local
913 sock_kzfree_s(sk, ctx->iv, crypto_ablkcipher_ivsize(tfm)); in skcipher_sock_destruct()
922 struct skcipher_tfm *tfm = private; in skcipher_accept_parent_nokey() local
923 struct crypto_ablkcipher *skcipher = tfm->skcipher; in skcipher_accept_parent_nokey()
961 struct skcipher_tfm *tfm = private; in skcipher_accept_parent() local
963 if (!tfm->has_key) in skcipher_accept_parent()