/openbmc/linux/lib/crypto/ |
H A D | chacha20poly1305.c | 134 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 D | chacha20poly1305-selftest.c | 8914 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 D | poly1305_glue.c | 22 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 D | nhpoly1305-avx2-glue.c | 43 .digestsize = POLY1305_DIGEST_SIZE,
|
H A D | nhpoly1305-sse2-glue.c | 43 .digestsize = POLY1305_DIGEST_SIZE,
|
/openbmc/linux/arch/arm/crypto/ |
H A D | nhpoly1305-neon-glue.c | 43 .digestsize = POLY1305_DIGEST_SIZE,
|
H A D | poly1305-glue.c | 217 .digestsize = POLY1305_DIGEST_SIZE, 230 .digestsize = POLY1305_DIGEST_SIZE,
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | nhpoly1305-neon-glue.c | 43 .digestsize = POLY1305_DIGEST_SIZE,
|
H A D | poly1305-glue.c | 199 .digestsize = POLY1305_DIGEST_SIZE,
|
/openbmc/linux/crypto/ |
H A D | chacha20poly1305.c | 57 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 D | poly1305_generic.c | 118 .digestsize = POLY1305_DIGEST_SIZE,
|
H A D | nhpoly1305.c | 230 .digestsize = POLY1305_DIGEST_SIZE,
|
/openbmc/linux/include/crypto/ |
H A D | poly1305.h | 14 #define POLY1305_DIGEST_SIZE 16 macro
|
/openbmc/linux/arch/powerpc/crypto/ |
H A D | poly1305-p10-glue.c | 155 .digestsize = POLY1305_DIGEST_SIZE,
|
/openbmc/linux/arch/mips/crypto/ |
H A D | poly1305-glue.c | 164 .digestsize = POLY1305_DIGEST_SIZE,
|
/openbmc/linux/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 2892 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 D | caamalg.c | 561 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize() 3534 .maxauthsize = POLY1305_DIGEST_SIZE, 3560 .maxauthsize = POLY1305_DIGEST_SIZE,
|
H A D | caamalg_qi2.c | 627 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize() 2926 .maxauthsize = POLY1305_DIGEST_SIZE, 2949 .maxauthsize = POLY1305_DIGEST_SIZE,
|