Home
last modified time | relevance | path

Searched refs:POLY1305_DIGEST_SIZE (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/lib/crypto/
Dchacha20poly1305.c134 u8 mac[POLY1305_DIGEST_SIZE]; in __chacha20poly1305_decrypt()
138 if (unlikely(src_len < POLY1305_DIGEST_SIZE)) in __chacha20poly1305_decrypt()
148 dst_len = src_len - POLY1305_DIGEST_SIZE; in __chacha20poly1305_decrypt()
159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt()
231 u8 mac[2][POLY1305_DIGEST_SIZE]; in chacha20poly1305_crypt_sg_inplace()
304 if (likely(sl <= -POLY1305_DIGEST_SIZE)) { in chacha20poly1305_crypt_sg_inplace()
313 POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
319 if (unlikely(sl > -POLY1305_DIGEST_SIZE)) { in chacha20poly1305_crypt_sg_inplace()
324 !crypto_memneq(b.mac[0], b.mac[1], POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
348 if (unlikely(src_len < POLY1305_DIGEST_SIZE)) in chacha20poly1305_decrypt_sg_inplace()
[all …]
Dchacha20poly1305-selftest.c8914 POLY1305_DIGEST_SIZE)) { in chacha20poly1305_selftest()
8927 chacha20poly1305_enc_vectors[i].ilen + POLY1305_DIGEST_SIZE); in chacha20poly1305_selftest()
8937 POLY1305_DIGEST_SIZE)) { in chacha20poly1305_selftest()
8958 POLY1305_DIGEST_SIZE))) { in chacha20poly1305_selftest()
8980 POLY1305_DIGEST_SIZE))) { in chacha20poly1305_selftest()
8999 POLY1305_DIGEST_SIZE)) { in chacha20poly1305_selftest()
9020 POLY1305_DIGEST_SIZE))) { in chacha20poly1305_selftest()
9027 for (total_len = POLY1305_DIGEST_SIZE; IS_ENABLED(DEBUG_CHACHA20POLY1305_SLOW_CHUNK_TEST) in chacha20poly1305_selftest()
9044 total_len - POLY1305_DIGEST_SIZE, NULL, 0, in chacha20poly1305_selftest()
9049 total_len - POLY1305_DIGEST_SIZE, NULL, 0, 0, in chacha20poly1305_selftest()
[all …]
/linux-6.1.9/arch/x86/crypto/
Dpoly1305_glue.c22 asmlinkage void poly1305_emit_x86_64(void *ctx, u8 mac[POLY1305_DIGEST_SIZE],
24 asmlinkage void poly1305_emit_avx(void *ctx, u8 mac[POLY1305_DIGEST_SIZE],
123 static void poly1305_simd_emit(void *ctx, u8 mac[POLY1305_DIGEST_SIZE], in poly1305_simd_emit() argument
246 .digestsize = POLY1305_DIGEST_SIZE,
Dnhpoly1305-avx2-glue.c50 .digestsize = POLY1305_DIGEST_SIZE,
Dnhpoly1305-sse2-glue.c50 .digestsize = POLY1305_DIGEST_SIZE,
/linux-6.1.9/crypto/
Dchacha20poly1305.c57 u8 tag[POLY1305_DIGEST_SIZE];
456 rctx->cryptlen = req->cryptlen - POLY1305_DIGEST_SIZE; in chachapoly_decrypt()
494 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
591 if (poly->digestsize != POLY1305_DIGEST_SIZE) in chachapoly_create()
619 inst->alg.maxauthsize = POLY1305_DIGEST_SIZE; in chachapoly_create()
Dpoly1305_generic.c118 .digestsize = POLY1305_DIGEST_SIZE,
Dnhpoly1305.c230 .digestsize = POLY1305_DIGEST_SIZE,
/linux-6.1.9/arch/arm/crypto/
Dnhpoly1305-neon-glue.c50 .digestsize = POLY1305_DIGEST_SIZE,
Dpoly1305-glue.c217 .digestsize = POLY1305_DIGEST_SIZE,
230 .digestsize = POLY1305_DIGEST_SIZE,
/linux-6.1.9/arch/arm64/crypto/
Dnhpoly1305-neon-glue.c50 .digestsize = POLY1305_DIGEST_SIZE,
Dpoly1305-glue.c199 .digestsize = POLY1305_DIGEST_SIZE,
/linux-6.1.9/include/crypto/
Dpoly1305.h14 #define POLY1305_DIGEST_SIZE 16 macro
/linux-6.1.9/arch/mips/crypto/
Dpoly1305-glue.c164 .digestsize = POLY1305_DIGEST_SIZE,
/linux-6.1.9/drivers/crypto/inside-secure/
Dsafexcel_cipher.c2890 if (authsize != POLY1305_DIGEST_SIZE) in safexcel_aead_chachapoly_setauthsize()
2913 req->cryptlen > POLY1305_DIGEST_SIZE)) { in safexcel_aead_chachapoly_crypt()
3011 .maxauthsize = POLY1305_DIGEST_SIZE,
3051 .maxauthsize = POLY1305_DIGEST_SIZE,
/linux-6.1.9/drivers/crypto/caam/
Dcaamalg.c552 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
3315 .maxauthsize = POLY1305_DIGEST_SIZE,
3338 .maxauthsize = POLY1305_DIGEST_SIZE,
Dcaamalg_qi2.c625 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
2921 .maxauthsize = POLY1305_DIGEST_SIZE,
2944 .maxauthsize = POLY1305_DIGEST_SIZE,