Lines Matching refs:tfm
302 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_sendmsg() local
303 unsigned ivsize = crypto_skcipher_ivsize(tfm); in skcipher_sendmsg()
508 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_recvmsg_async() local
515 unsigned int reqsize = crypto_skcipher_reqsize(tfm); in skcipher_recvmsg_async()
516 unsigned int ivsize = crypto_skcipher_ivsize(tfm); in skcipher_recvmsg_async()
538 skcipher_request_set_tfm(req, tfm); in skcipher_recvmsg_async()
644 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_recvmsg_sync() local
645 unsigned bs = crypto_skcipher_blocksize(tfm); in skcipher_recvmsg_sync()
765 struct skcipher_tfm *tfm; in skcipher_check_key() local
775 tfm = pask->private; in skcipher_check_key()
779 if (!tfm->has_key) in skcipher_check_key()
858 struct skcipher_tfm *tfm; in skcipher_bind() local
861 tfm = kzalloc(sizeof(*tfm), GFP_KERNEL); in skcipher_bind()
862 if (!tfm) in skcipher_bind()
867 kfree(tfm); in skcipher_bind()
871 tfm->skcipher = skcipher; in skcipher_bind()
873 return tfm; in skcipher_bind()
878 struct skcipher_tfm *tfm = private; in skcipher_release() local
880 crypto_free_skcipher(tfm->skcipher); in skcipher_release()
881 kfree(tfm); in skcipher_release()
886 struct skcipher_tfm *tfm = private; in skcipher_setkey() local
889 err = crypto_skcipher_setkey(tfm->skcipher, key, keylen); in skcipher_setkey()
890 tfm->has_key = !err; in skcipher_setkey()
909 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(&ctx->req); in skcipher_sock_destruct() local
915 sock_kzfree_s(sk, ctx->iv, crypto_skcipher_ivsize(tfm)); in skcipher_sock_destruct()
924 struct skcipher_tfm *tfm = private; in skcipher_accept_parent_nokey() local
925 struct crypto_skcipher *skcipher = tfm->skcipher; in skcipher_accept_parent_nokey()
964 struct skcipher_tfm *tfm = private; in skcipher_accept_parent() local
966 if (!tfm->has_key && crypto_skcipher_has_setkey(tfm->skcipher)) in skcipher_accept_parent()