Home
last modified time | relevance | path

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

/openbmc/linux/lib/crypto/
H A 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 …]
H A 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()
9044 total_len - POLY1305_DIGEST_SIZE, NULL, 0, in chacha20poly1305_selftest()
9049 total_len - POLY1305_DIGEST_SIZE, NULL, 0, 0, in chacha20poly1305_selftest()
9056 for (k = 0; k < total_len - POLY1305_DIGEST_SIZE; ++k) { in chacha20poly1305_selftest()
[all …]
/openbmc/linux/arch/x86/crypto/
H A 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,
H A Dnhpoly1305-avx2-glue.c43 .digestsize = POLY1305_DIGEST_SIZE,
H A Dnhpoly1305-sse2-glue.c43 .digestsize = POLY1305_DIGEST_SIZE,
/openbmc/linux/arch/arm/crypto/
H A Dnhpoly1305-neon-glue.c43 .digestsize = POLY1305_DIGEST_SIZE,
H A Dpoly1305-glue.c217 .digestsize = POLY1305_DIGEST_SIZE,
230 .digestsize = POLY1305_DIGEST_SIZE,
/openbmc/linux/arch/arm64/crypto/
H A Dnhpoly1305-neon-glue.c43 .digestsize = POLY1305_DIGEST_SIZE,
H A Dpoly1305-glue.c199 .digestsize = POLY1305_DIGEST_SIZE,
/openbmc/linux/crypto/
H A 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()
H A Dpoly1305_generic.c118 .digestsize = POLY1305_DIGEST_SIZE,
H A Dnhpoly1305.c230 .digestsize = POLY1305_DIGEST_SIZE,
/openbmc/linux/include/crypto/
H A Dpoly1305.h14 #define POLY1305_DIGEST_SIZE 16 macro
/openbmc/linux/arch/powerpc/crypto/
H A Dpoly1305-p10-glue.c155 .digestsize = POLY1305_DIGEST_SIZE,
/openbmc/linux/arch/mips/crypto/
H A Dpoly1305-glue.c164 .digestsize = POLY1305_DIGEST_SIZE,
/openbmc/linux/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c2892 if (authsize != POLY1305_DIGEST_SIZE) in safexcel_aead_chachapoly_setauthsize()
2915 req->cryptlen > POLY1305_DIGEST_SIZE)) { in safexcel_aead_chachapoly_crypt()
3013 .maxauthsize = POLY1305_DIGEST_SIZE,
3053 .maxauthsize = POLY1305_DIGEST_SIZE,
/openbmc/linux/drivers/crypto/caam/
H A Dcaamalg.c561 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
3534 .maxauthsize = POLY1305_DIGEST_SIZE,
3560 .maxauthsize = POLY1305_DIGEST_SIZE,
H A Dcaamalg_qi2.c627 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
2926 .maxauthsize = POLY1305_DIGEST_SIZE,
2949 .maxauthsize = POLY1305_DIGEST_SIZE,