Home
last modified time | relevance | path

Searched refs:blockcipher (Results 1 – 3 of 3) sorted by relevance

/linux/crypto/
H A Dhctr2.c42 struct crypto_cipher *blockcipher; member
103 crypto_cipher_clear_flags(tctx->blockcipher, CRYPTO_TFM_REQ_MASK); in hctr2_setkey()
104 crypto_cipher_set_flags(tctx->blockcipher, in hctr2_setkey()
107 err = crypto_cipher_setkey(tctx->blockcipher, key, keylen); in hctr2_setkey()
120 crypto_cipher_encrypt_one(tctx->blockcipher, hbar, hbar); in hctr2_setkey()
124 crypto_cipher_encrypt_one(tctx->blockcipher, tctx->L, tctx->L); in hctr2_setkey()
240 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->first_block, in hctr2_crypt()
243 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->first_block, in hctr2_crypt()
279 struct crypto_cipher *blockcipher; in hctr2_init_tfm() local
286 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in hctr2_init_tfm()
[all …]
H A Dadiantum.c62 struct crypto_cipher *blockcipher; member
148 crypto_cipher_clear_flags(tctx->blockcipher, CRYPTO_TFM_REQ_MASK); in adiantum_setkey()
149 crypto_cipher_set_flags(tctx->blockcipher, in adiantum_setkey()
152 err = crypto_cipher_setkey(tctx->blockcipher, keyp, in adiantum_setkey()
421 crypto_cipher_encrypt_one(tctx->blockcipher, rbuf.bytes, in adiantum_crypt()
456 crypto_cipher_decrypt_one(tctx->blockcipher, rbuf.bytes, in adiantum_crypt()
503 struct crypto_cipher *blockcipher; in adiantum_init_tfm() local
510 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in adiantum_init_tfm()
511 if (IS_ERR(blockcipher)) { in adiantum_init_tfm()
512 err = PTR_ERR(blockcipher); in adiantum_init_tfm()
[all …]
H A DKconfig732 This blockcipher mode is a variant of CTR mode using XORs and little-endian