Lines Matching full:tweak
25 struct crypto_cipher *tweak; member
45 struct crypto_cipher *tweak; in xts_setkey() local
54 /* we need two cipher instances: one to compute the initial 'tweak' in xts_setkey()
58 /* tweak cipher, uses Key2 i.e. the second half of *key */ in xts_setkey()
59 tweak = ctx->tweak; in xts_setkey()
60 crypto_cipher_clear_flags(tweak, CRYPTO_TFM_REQ_MASK); in xts_setkey()
61 crypto_cipher_set_flags(tweak, crypto_skcipher_get_flags(parent) & in xts_setkey()
63 err = crypto_cipher_setkey(tweak, key + keylen, keylen); in xts_setkey()
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); in xts_init_crypt()
300 struct crypto_cipher *tweak; in xts_init_tfm() local
308 tweak = crypto_alloc_cipher(ictx->name, 0, 0); in xts_init_tfm()
309 if (IS_ERR(tweak)) { in xts_init_tfm()
311 return PTR_ERR(tweak); in xts_init_tfm()
314 ctx->tweak = tweak; in xts_init_tfm()
327 crypto_free_cipher(ctx->tweak); in xts_exit_tfm()