Home
last modified time | relevance | path

Searched refs:authsize (Results 1 – 5 of 5) sorted by relevance

/arch/x86/crypto/
Daegis128-aesni-glue.c158 unsigned int authsize) in crypto_aegis128_aesni_setauthsize() argument
160 if (authsize > AEGIS128_MAX_AUTH_SIZE) in crypto_aegis128_aesni_setauthsize()
162 if (authsize < AEGIS128_MIN_AUTH_SIZE) in crypto_aegis128_aesni_setauthsize()
199 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_aesni_encrypt() local
205 req->assoclen + cryptlen, authsize, 1); in crypto_aegis128_aesni_encrypt()
221 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_aesni_decrypt() local
222 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis128_aesni_decrypt()
225 req->assoclen + cryptlen, authsize, 0); in crypto_aegis128_aesni_decrypt()
229 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis128_aesni_decrypt()
Daesni-intel_glue.c664 unsigned int authsize) in common_rfc4106_set_authsize() argument
666 switch (authsize) { in common_rfc4106_set_authsize()
679 unsigned int authsize) in generic_gcmaes_set_authsize() argument
681 switch (authsize) { in generic_gcmaes_set_authsize()
/arch/arm64/crypto/
Daes-ce-ccm-glue.c60 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize() argument
62 if ((authsize & 1) || authsize < 4) in ccm_setauthsize()
289 unsigned int authsize = crypto_aead_authsize(aead); in ccm_decrypt() local
293 u32 len = req->cryptlen - authsize; in ccm_decrypt()
339 req->assoclen + req->cryptlen - authsize, in ccm_decrypt()
340 authsize, 0); in ccm_decrypt()
342 if (crypto_memneq(mac, buf, authsize)) in ccm_decrypt()
Dghash-ce-glue.c321 static int gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_setauthsize() argument
323 switch (authsize) { in gcm_setauthsize()
542 unsigned int authsize = crypto_aead_authsize(aead); in gcm_decrypt() local
664 gcm_final(req, ctx, dg, tag, req->cryptlen - authsize); in gcm_decrypt()
668 req->assoclen + req->cryptlen - authsize, in gcm_decrypt()
669 authsize, 0); in gcm_decrypt()
671 if (crypto_memneq(tag, buf, authsize)) in gcm_decrypt()
/arch/s390/crypto/
Daes_s390.c817 static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_aes_setauthsize() argument
819 switch (authsize) { in gcm_aes_setauthsize()