Lines Matching defs:skcipher
10 #include <crypto/skcipher.h>
42 /* tie all skcipher structures together */
100 /* Perform cipher operations with skcipher */
110 pr_info("skcipher encrypt returned with result"
118 pr_info("skcipher decrypt returned with result"
129 struct crypto_skcipher *skcipher = NULL;
135 skcipher = crypto_alloc_skcipher(name, 0, 0);
136 if (IS_ERR(skcipher)) {
137 pr_info("could not allocate skcipher %s handle\n", name);
138 return PTR_ERR(skcipher);
141 req = skcipher_request_alloc(skcipher, GFP_KERNEL);
143 pr_info("could not allocate skcipher request\n");
155 if (crypto_skcipher_setkey(skcipher, key, 32)) {
169 sk.tfm = skcipher;
218 /* Dump some internal skcipher data */
220 pr_info("skcipher %s: cryptlen %d blksize %d stride %d "
229 if (skcipher)
230 crypto_free_skcipher(skcipher);