Lines Matching refs:cipher
39 #include <crypto/internal/cipher.h>
53 struct crypto_cipher *cipher;
442 err = crypto_cipher_setkey(tctx->cipher, key, keylen);
449 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in);
459 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in);
470 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in);
574 * the block cipher's block length, so we actually only accept a 127-bit
588 crypto_cipher_encrypt_one(tctx->cipher, dctx->nonce.bytes,
602 struct crypto_cipher *cipher;
604 cipher = crypto_spawn_cipher(spawn);
605 if (IS_ERR(cipher))
606 return PTR_ERR(cipher);
608 tctx->cipher = cipher;
616 crypto_free_cipher(tctx->cipher);