Lines Matching defs:cipher
52 struct crypto_cipher *cipher;
441 err = crypto_cipher_setkey(tctx->cipher, key, keylen);
448 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in);
458 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in);
469 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in);
573 * the block cipher's block length, so we actually only accept a 127-bit
587 crypto_cipher_encrypt_one(tctx->cipher, dctx->nonce.bytes,
601 struct crypto_cipher *cipher;
603 cipher = crypto_spawn_cipher(spawn);
604 if (IS_ERR(cipher))
605 return PTR_ERR(cipher);
607 tctx->cipher = cipher;
615 crypto_free_cipher(tctx->cipher);