Lines Matching refs:tweak
25 struct crypto_cipher *tweak;
45 struct crypto_cipher *tweak;
54 /* we need two cipher instances: one to compute the initial 'tweak'
58 /* tweak cipher, uses Key2 i.e. the second half of *key */
59 tweak = ctx->tweak;
60 crypto_cipher_clear_flags(tweak, CRYPTO_TFM_REQ_MASK);
61 crypto_cipher_set_flags(tweak, crypto_skcipher_get_flags(parent) &
63 err = crypto_cipher_setkey(tweak, key + keylen, keylen);
76 * We compute the tweak masks twice (both before and after the ECB encryption or
255 crypto_cipher_encrypt_one(ctx->tweak, (u8 *)&rctx->t, req->iv);
300 struct crypto_cipher *tweak;
308 tweak = crypto_alloc_cipher(ictx->name, 0, 0);
309 if (IS_ERR(tweak)) {
311 return PTR_ERR(tweak);
314 ctx->tweak = tweak;
327 crypto_free_cipher(ctx->tweak);