Lines Matching refs:tweak
33 struct crypto_cipher *tweak; member
63 struct crypto_cipher *tweak; in setkey() local
77 tweak = ctx->tweak; in setkey()
78 crypto_cipher_clear_flags(tweak, CRYPTO_TFM_REQ_MASK); in setkey()
79 crypto_cipher_set_flags(tweak, crypto_skcipher_get_flags(parent) & in setkey()
81 err = crypto_cipher_setkey(tweak, key + keylen, keylen); in setkey()
82 crypto_skcipher_set_flags(parent, crypto_cipher_get_flags(tweak) & in setkey()
245 crypto_cipher_encrypt_one(ctx->tweak, (u8 *)&rctx->t, req->iv); in init_crypt()
366 struct crypto_cipher *tweak; in init_tfm() local
374 tweak = crypto_alloc_cipher(ictx->name, 0, 0); in init_tfm()
375 if (IS_ERR(tweak)) { in init_tfm()
377 return PTR_ERR(tweak); in init_tfm()
380 ctx->tweak = tweak; in init_tfm()
393 crypto_free_cipher(ctx->tweak); in exit_tfm()