Lines Matching defs:cipher
48 /* we need two cipher instances: one to compute the inital 'tweak'
52 /* tweak cipher, uses Key2 i.e. the second half of *key */
65 /* data cipher, uses Key1 i.e. the first half of *key */
170 struct crypto_cipher *cipher;
176 cipher = crypto_spawn_cipher(spawn);
177 if (IS_ERR(cipher))
178 return PTR_ERR(cipher);
180 if (crypto_cipher_blocksize(cipher) != 16) {
182 crypto_free_cipher(cipher);
186 ctx->child = cipher;
188 cipher = crypto_spawn_cipher(spawn);
189 if (IS_ERR(cipher)) {
191 return PTR_ERR(cipher);
195 if (crypto_cipher_blocksize(cipher) != 16) {
196 crypto_free_cipher(cipher);
202 ctx->tweak = cipher;
291 MODULE_DESCRIPTION("XTS block cipher mode");