Searched refs:POLY1305_BLOCK_SIZE (Results 1 - 15 of 15) sorted by relevance

/linux-master/arch/mips/crypto/
H A Dpoly1305-glue.c48 src += POLY1305_BLOCK_SIZE;
49 len -= POLY1305_BLOCK_SIZE;
52 if (len >= POLY1305_BLOCK_SIZE) {
57 src += POLY1305_BLOCK_SIZE;
58 len -= POLY1305_BLOCK_SIZE;
61 if (len < POLY1305_BLOCK_SIZE)
65 len &= ~(POLY1305_BLOCK_SIZE - 1);
76 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen);
83 if (dctx->buflen == POLY1305_BLOCK_SIZE) {
84 mips_poly1305_blocks(dctx, dctx->buf, POLY1305_BLOCK_SIZE,
[all...]
/linux-master/arch/arm64/crypto/
H A Dpoly1305-glue.c56 src += POLY1305_BLOCK_SIZE;
57 len -= POLY1305_BLOCK_SIZE;
60 if (len >= POLY1305_BLOCK_SIZE) {
65 src += POLY1305_BLOCK_SIZE;
66 len -= POLY1305_BLOCK_SIZE;
69 if (len < POLY1305_BLOCK_SIZE)
73 len &= ~(POLY1305_BLOCK_SIZE - 1);
85 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen);
92 if (dctx->buflen == POLY1305_BLOCK_SIZE) {
94 POLY1305_BLOCK_SIZE,
[all...]
/linux-master/arch/powerpc/crypto/
H A Dpoly1305-p10-glue.c55 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) {
60 inp += POLY1305_BLOCK_SIZE;
61 len -= POLY1305_BLOCK_SIZE;
62 acc += POLY1305_BLOCK_SIZE;
65 if (len >= POLY1305_BLOCK_SIZE) {
70 acc += POLY1305_BLOCK_SIZE;
84 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen);
90 if (dctx->buflen == POLY1305_BLOCK_SIZE) {
92 POLY1305_BLOCK_SIZE))) {
95 POLY1305_BLOCK_SIZE,
[all...]
/linux-master/crypto/
H A Dpoly1305_generic.c38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) {
40 src += POLY1305_BLOCK_SIZE;
41 srclen -= POLY1305_BLOCK_SIZE;
44 if (srclen >= POLY1305_BLOCK_SIZE) {
49 src += POLY1305_BLOCK_SIZE;
50 srclen -= POLY1305_BLOCK_SIZE;
69 srclen / POLY1305_BLOCK_SIZE, 1);
79 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen);
85 if (dctx->buflen == POLY1305_BLOCK_SIZE) {
87 POLY1305_BLOCK_SIZE);
[all...]
H A Dnhpoly1305.c79 BUILD_BUG_ON(NH_HASH_BYTES % POLY1305_BLOCK_SIZE != 0);
82 NH_HASH_BYTES / POLY1305_BLOCK_SIZE, 1);
135 key += POLY1305_BLOCK_SIZE;
H A Dadiantum.c53 #define HASH_KEY_SIZE (POLY1305_BLOCK_SIZE + NHPOLY1305_KEY_SIZE)
172 keyp += POLY1305_BLOCK_SIZE;
235 BUILD_BUG_ON(sizeof(header) % POLY1305_BLOCK_SIZE != 0);
237 &header, sizeof(header) / POLY1305_BLOCK_SIZE, 1);
239 BUILD_BUG_ON(TWEAK_SIZE % POLY1305_BLOCK_SIZE != 0);
241 TWEAK_SIZE / POLY1305_BLOCK_SIZE, 1);
H A Dchacha20poly1305.c35 u8 pad[POLY1305_BLOCK_SIZE];
207 padlen = -rctx->cryptlen % POLY1305_BLOCK_SIZE;
266 padlen = -rctx->assoclen % POLY1305_BLOCK_SIZE;
/linux-master/lib/crypto/
H A Dpoly1305.c36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen);
42 if (desc->buflen == POLY1305_BLOCK_SIZE) {
49 if (likely(nbytes >= POLY1305_BLOCK_SIZE)) {
51 nbytes / POLY1305_BLOCK_SIZE, 1);
52 src += nbytes - (nbytes % POLY1305_BLOCK_SIZE);
53 nbytes %= POLY1305_BLOCK_SIZE;
68 POLY1305_BLOCK_SIZE - desc->buflen);
H A Dpoly1305-donna64.c14 const u8 raw_key[POLY1305_BLOCK_SIZE])
102 input += POLY1305_BLOCK_SIZE;
H A Dpoly1305-donna32.c14 const u8 raw_key[POLY1305_BLOCK_SIZE])
109 input += POLY1305_BLOCK_SIZE;
/linux-master/arch/arm/crypto/
H A Dpoly1305-glue.c60 src += POLY1305_BLOCK_SIZE;
61 len -= POLY1305_BLOCK_SIZE;
64 if (len >= POLY1305_BLOCK_SIZE) {
69 src += POLY1305_BLOCK_SIZE;
70 len -= POLY1305_BLOCK_SIZE;
73 if (len < POLY1305_BLOCK_SIZE)
77 len &= ~(POLY1305_BLOCK_SIZE - 1);
89 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen);
96 if (dctx->buflen == POLY1305_BLOCK_SIZE) {
98 POLY1305_BLOCK_SIZE,
[all...]
/linux-master/arch/x86/crypto/
H A Dpoly1305_glue.c19 const u8 key[POLY1305_BLOCK_SIZE]);
84 static void poly1305_simd_init(void *ctx, const u8 key[POLY1305_BLOCK_SIZE])
95 BUILD_BUG_ON(SZ_4K < POLY1305_BLOCK_SIZE ||
96 SZ_4K % POLY1305_BLOCK_SIZE);
99 (len < (POLY1305_BLOCK_SIZE * 18) && !state->is_base2_26) ||
149 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) {
151 inp += POLY1305_BLOCK_SIZE;
152 len -= POLY1305_BLOCK_SIZE;
153 acc += POLY1305_BLOCK_SIZE;
156 if (len >= POLY1305_BLOCK_SIZE) {
[all...]
/linux-master/include/crypto/internal/
H A Dpoly1305.h22 const u8 raw_key[POLY1305_BLOCK_SIZE]);
/linux-master/include/crypto/
H A Dpoly1305.h12 #define POLY1305_BLOCK_SIZE 16 macro
43 u8 buf[POLY1305_BLOCK_SIZE];
H A Dnhpoly1305.h33 #define NHPOLY1305_KEY_SIZE (POLY1305_BLOCK_SIZE + NH_KEY_BYTES)

Completed in 165 milliseconds