Searched refs:crt (Results 1 – 4 of 4) sorted by relevance
64 struct aead_tfm *crt = crypto_aead_crt(tfm); in crypto_aead_setauthsize() local71 err = crypto_aead_alg(tfm)->setauthsize(crt->base, authsize); in crypto_aead_setauthsize()76 crypto_aead_crt(crt->base)->authsize = authsize; in crypto_aead_setauthsize()77 crt->authsize = authsize; in crypto_aead_setauthsize()96 struct aead_tfm *crt = &tfm->crt_aead; in crypto_init_aead_ops() local101 crt->setkey = tfm->__crt_alg->cra_flags & CRYPTO_ALG_GENIV ? in crypto_init_aead_ops()103 crt->encrypt = alg->encrypt; in crypto_init_aead_ops()104 crt->decrypt = alg->decrypt; in crypto_init_aead_ops()105 crt->givencrypt = alg->givencrypt ?: no_givcrypt; in crypto_init_aead_ops()106 crt->givdecrypt = alg->givdecrypt ?: no_givcrypt; in crypto_init_aead_ops()[all …]
339 struct crypto_ahash *crt = __crypto_ahash_cast(tfm); in crypto_init_shash_ops_async() local355 crt->init = shash_async_init; in crypto_init_shash_ops_async()356 crt->update = shash_async_update; in crypto_init_shash_ops_async()357 crt->final = shash_async_final; in crypto_init_shash_ops_async()358 crt->finup = shash_async_finup; in crypto_init_shash_ops_async()359 crt->digest = shash_async_digest; in crypto_init_shash_ops_async()360 crt->setkey = shash_async_setkey; in crypto_init_shash_ops_async()362 crt->has_setkey = alg->setkey != shash_no_setkey; in crypto_init_shash_ops_async()365 crt->export = shash_async_export; in crypto_init_shash_ops_async()367 crt->import = shash_async_import; in crypto_init_shash_ops_async()[all …]
364 struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; in crypto_init_ablkcipher_ops() local369 crt->setkey = setkey; in crypto_init_ablkcipher_ops()370 crt->encrypt = alg->encrypt; in crypto_init_ablkcipher_ops()371 crt->decrypt = alg->decrypt; in crypto_init_ablkcipher_ops()373 crt->givencrypt = skcipher_null_givencrypt; in crypto_init_ablkcipher_ops()374 crt->givdecrypt = skcipher_null_givdecrypt; in crypto_init_ablkcipher_ops()376 crt->base = __crypto_ablkcipher_cast(tfm); in crypto_init_ablkcipher_ops()377 crt->ivsize = alg->ivsize; in crypto_init_ablkcipher_ops()446 struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; in crypto_init_givcipher_ops() local451 crt->setkey = tfm->__crt_alg->cra_flags & CRYPTO_ALG_GENIV ? in crypto_init_givcipher_ops()[all …]
463 struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; in crypto_init_blkcipher_ops_async() local466 crt->setkey = async_setkey; in crypto_init_blkcipher_ops_async()467 crt->encrypt = async_encrypt; in crypto_init_blkcipher_ops_async()468 crt->decrypt = async_decrypt; in crypto_init_blkcipher_ops_async()470 crt->givencrypt = skcipher_null_givencrypt; in crypto_init_blkcipher_ops_async()471 crt->givdecrypt = skcipher_null_givdecrypt; in crypto_init_blkcipher_ops_async()473 crt->base = __crypto_ablkcipher_cast(tfm); in crypto_init_blkcipher_ops_async()474 crt->ivsize = alg->ivsize; in crypto_init_blkcipher_ops_async()481 struct blkcipher_tfm *crt = &tfm->crt_blkcipher; in crypto_init_blkcipher_ops_sync() local486 crt->setkey = setkey; in crypto_init_blkcipher_ops_sync()[all …]