Lines Matching defs:cipher
60 struct crypto_ablkcipher *cipher;
65 cipher = crypto_alloc_ablkcipher(psb->cipher_string, 0, 0);
66 if (IS_ERR(cipher)) {
67 err = PTR_ERR(cipher);
68 dprintk("%s: idx: %u: failed to allocate cipher '%s', err: %d.\n",
73 crypto_ablkcipher_clear_flags(cipher, ~0);
75 err = crypto_ablkcipher_setkey(cipher, psb->cipher_key, psb->cipher_keysize);
77 dprintk("%s: idx: %u: failed to set key for cipher '%s', err: %d.\n",
82 return cipher;
85 crypto_free_ablkcipher(cipher);
113 e->cipher = pohmelfs_init_cipher(psb);
114 if (IS_ERR(e->cipher)) {
115 err = PTR_ERR(e->cipher);
116 e->cipher = NULL;
135 if (e->cipher)
136 crypto_free_ablkcipher(e->cipher);
195 if (!e->cipher && !e->hash)
208 if (e->cipher) {
215 ablkcipher_request_set_tfm(req, e->cipher);
248 dprintk("%s: eng: %p, hash: %p, cipher: %p: iv : %llx, hash mismatch (recv/calc): ",
249 __func__, e, e->hash, e->cipher, cmd_iv);
257 dprintk("%s: eng: %p, hash: %p, cipher: %p: hashes matched.\n",
258 __func__, e, e->hash, e->cipher);
262 dprintk("%s: eng: %p, size: %u, hash: %p, cipher: %p: completed.\n",
263 __func__, e, e->size, e->hash, e->cipher);
268 dprintk("%s: eng: %p, hash: %p, cipher: %p: err: %d.\n",
269 __func__, e, e->hash, e->cipher, err);
359 ablkcipher_request_set_tfm(req, e->cipher);
497 if (t->eng.cipher) {
603 dprintk("%s: st: %p, eng: %p, hash: %p, cipher: %p.\n",
604 __func__, st, &st->eng, &st->eng.hash, &st->eng.cipher);
635 if (t->eng.cipher)
636 psb->crypto_align_size = crypto_ablkcipher_blocksize(t->eng.cipher);