Lines Matching refs:skcipher
35 struct crypto_skcipher *skcipher; member
302 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_sendmsg()
508 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_recvmsg_async()
644 struct crypto_skcipher *tfm = skc->skcipher; in skcipher_recvmsg_sync()
859 struct crypto_skcipher *skcipher; in skcipher_bind() local
865 skcipher = crypto_alloc_skcipher(name, type, mask); in skcipher_bind()
866 if (IS_ERR(skcipher)) { in skcipher_bind()
868 return ERR_CAST(skcipher); in skcipher_bind()
871 tfm->skcipher = skcipher; in skcipher_bind()
880 crypto_free_skcipher(tfm->skcipher); in skcipher_release()
889 err = crypto_skcipher_setkey(tfm->skcipher, key, keylen); in skcipher_setkey()
925 struct crypto_skcipher *skcipher = tfm->skcipher; in skcipher_accept_parent_nokey() local
926 unsigned int len = sizeof(*ctx) + crypto_skcipher_reqsize(skcipher); in skcipher_accept_parent_nokey()
932 ctx->iv = sock_kmalloc(sk, crypto_skcipher_ivsize(skcipher), in skcipher_accept_parent_nokey()
939 memset(ctx->iv, 0, crypto_skcipher_ivsize(skcipher)); in skcipher_accept_parent_nokey()
952 skcipher_request_set_tfm(&ctx->req, skcipher); in skcipher_accept_parent_nokey()
966 if (!tfm->has_key && crypto_skcipher_has_setkey(tfm->skcipher)) in skcipher_accept_parent()