Lines Matching refs:tweak
26 struct crypto_cipher *tweak;
46 struct crypto_cipher *tweak;
55 /* we need two cipher instances: one to compute the initial 'tweak'
59 /* tweak cipher, uses Key2 i.e. the second half of *key */
60 tweak = ctx->tweak;
61 crypto_cipher_clear_flags(tweak, CRYPTO_TFM_REQ_MASK);
62 crypto_cipher_set_flags(tweak, crypto_skcipher_get_flags(parent) &
64 err = crypto_cipher_setkey(tweak, key + keylen, keylen);
77 * We compute the tweak masks twice (both before and after the ECB encryption or
256 crypto_cipher_encrypt_one(ctx->tweak, (u8 *)&rctx->t, req->iv);
301 struct crypto_cipher *tweak;
309 tweak = crypto_spawn_cipher(&ictx->tweak_spawn);
310 if (IS_ERR(tweak)) {
312 return PTR_ERR(tweak);
315 ctx->tweak = tweak;
328 crypto_free_cipher(ctx->tweak);