Lines Matching full:tweak
26 struct crypto_cipher *tweak; member
46 struct crypto_cipher *tweak; in xts_setkey() local
55 /* we need two cipher instances: one to compute the initial 'tweak' in xts_setkey()
59 /* tweak cipher, uses Key2 i.e. the second half of *key */ in xts_setkey()
60 tweak = ctx->tweak; in xts_setkey()
61 crypto_cipher_clear_flags(tweak, CRYPTO_TFM_REQ_MASK); in xts_setkey()
62 crypto_cipher_set_flags(tweak, crypto_skcipher_get_flags(parent) & in xts_setkey()
64 err = crypto_cipher_setkey(tweak, key + keylen, keylen); in xts_setkey()
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); in xts_init_crypt()
301 struct crypto_cipher *tweak; in xts_init_tfm() local
309 tweak = crypto_spawn_cipher(&ictx->tweak_spawn); in xts_init_tfm()
310 if (IS_ERR(tweak)) { in xts_init_tfm()
312 return PTR_ERR(tweak); in xts_init_tfm()
315 ctx->tweak = tweak; in xts_init_tfm()
328 crypto_free_cipher(ctx->tweak); in xts_exit_tfm()