Lines Matching refs:tweak
25 struct crypto_cipher *tweak; member
45 struct crypto_cipher *tweak; in setkey() local
59 tweak = ctx->tweak; in setkey()
60 crypto_cipher_clear_flags(tweak, CRYPTO_TFM_REQ_MASK); in setkey()
61 crypto_cipher_set_flags(tweak, crypto_skcipher_get_flags(parent) & in setkey()
63 err = crypto_cipher_setkey(tweak, key + keylen, keylen); in setkey()
64 crypto_skcipher_set_flags(parent, crypto_cipher_get_flags(tweak) & in setkey()
256 crypto_cipher_encrypt_one(ctx->tweak, (u8 *)&rctx->t, req->iv); in init_crypt()
301 struct crypto_cipher *tweak; in init_tfm() local
309 tweak = crypto_alloc_cipher(ictx->name, 0, 0); in init_tfm()
310 if (IS_ERR(tweak)) { in init_tfm()
312 return PTR_ERR(tweak); in init_tfm()
315 ctx->tweak = tweak; in init_tfm()
328 crypto_free_cipher(ctx->tweak); in exit_tfm()