Lines Matching refs:skcipher
30 pr_info("skcipher encrypt returned with result %d\n", rc);
39 struct crypto_skcipher *skcipher = NULL;
46 skcipher = crypto_alloc_skcipher("cbc-aes-aesni", 0, 0);
47 if (IS_ERR(skcipher)) {
48 pr_info("could not allocate skcipher handle\n");
49 return PTR_ERR(skcipher);
52 req = skcipher_request_alloc(skcipher, GFP_KERNEL);
54 pr_info("could not allocate skcipher request\n");
65 if (crypto_skcipher_setkey(skcipher, key, 32)) {
87 sk.tfm = skcipher;
103 if (skcipher)
104 crypto_free_skcipher(skcipher);