Home
last modified time | relevance | path

Searched refs:aead (Results 1 – 6 of 6) sorted by relevance

/crypto/
Daead.c32 struct aead_alg *aead = crypto_aead_alg(tfm); in setkey_unaligned() local
45 ret = aead->setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
53 struct aead_alg *aead = crypto_aead_alg(tfm); in setkey() local
59 return aead->setkey(tfm, key, keylen); in setkey()
118 struct aead_alg *aead = &alg->cra_aead; in crypto_aead_report() local
121 strncpy(raead.geniv, aead->geniv ?: "<built-in>", sizeof(raead.geniv)); in crypto_aead_report()
124 raead.maxauthsize = aead->maxauthsize; in crypto_aead_report()
125 raead.ivsize = aead->ivsize; in crypto_aead_report()
146 struct aead_alg *aead = &alg->cra_aead; in crypto_aead_show() local
152 seq_printf(m, "ivsize : %u\n", aead->ivsize); in crypto_aead_show()
[all …]
Dccm.c76 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_ccm_setkey() argument
79 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey()
85 crypto_ablkcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
88 crypto_aead_set_flags(aead, crypto_ablkcipher_get_flags(ctr) & in crypto_ccm_setkey()
94 crypto_cipher_set_flags(tfm, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
97 crypto_aead_set_flags(aead, crypto_cipher_get_flags(tfm) & in crypto_ccm_setkey()
126 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input() local
131 m = crypto_aead_authsize(aead); in format_input()
248 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth() local
249 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_auth()
[all …]
Dgcm.c41 struct crypto_aead_spawn aead; member
104 static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_gcm_setkey() argument
107 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead); in crypto_gcm_setkey()
122 crypto_ablkcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
129 crypto_aead_set_flags(aead, crypto_ablkcipher_get_flags(ctr) & in crypto_gcm_setkey()
157 crypto_ahash_set_flags(ghash, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
160 crypto_aead_set_flags(aead, crypto_ahash_get_flags(ghash) & in crypto_gcm_setkey()
191 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt() local
192 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead); in crypto_gcm_init_crypt()
508 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash() local
[all …]
Dpcrypt.c164 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_encrypt() local
165 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(aead); in pcrypt_aead_encrypt()
206 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_decrypt() local
207 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(aead); in pcrypt_aead_decrypt()
249 struct crypto_aead *aead = aead_givcrypt_reqtfm(req); in pcrypt_aead_givencrypt() local
250 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(aead); in pcrypt_aead_givencrypt()
Dtestmgr.c124 struct aead_test_suite aead; member
1520 if (desc->suite.aead.enc.vecs) { in alg_test_aead()
1521 err = test_aead(tfm, ENCRYPT, desc->suite.aead.enc.vecs, in alg_test_aead()
1522 desc->suite.aead.enc.count); in alg_test_aead()
1527 if (!err && desc->suite.aead.dec.vecs) in alg_test_aead()
1528 err = test_aead(tfm, DECRYPT, desc->suite.aead.dec.vecs, in alg_test_aead()
1529 desc->suite.aead.dec.count); in alg_test_aead()
1923 .aead = {
1939 .aead = {
1953 .aead = {
[all …]
DMakefile16 obj-$(CONFIG_CRYPTO_AEAD2) += aead.o