Home
last modified time | relevance | path

Searched refs:srclen (Results 1 – 3 of 3) sorted by relevance

/crypto/
Dpoly1305_generic.c35 const u8 *src, unsigned int srclen) in crypto_poly1305_setdesckey() argument
38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
41 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
44 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
50 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
54 return srclen; in crypto_poly1305_setdesckey()
58 unsigned int srclen) in poly1305_blocks() argument
63 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_blocks()
64 src += srclen - datalen; in poly1305_blocks()
65 srclen = datalen; in poly1305_blocks()
[all …]
Dnhpoly1305.c94 const u8 *src, unsigned int srclen, nh_t nh_fn) in nhpoly1305_units() argument
101 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units()
111 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units()
121 srclen -= bytes; in nhpoly1305_units()
122 } while (srclen); in nhpoly1305_units()
156 const u8 *src, unsigned int srclen, in crypto_nhpoly1305_update_helper() argument
164 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper()
173 srclen -= bytes; in crypto_nhpoly1305_update_helper()
176 if (srclen >= NH_MESSAGE_UNIT) { in crypto_nhpoly1305_update_helper()
177 bytes = round_down(srclen, NH_MESSAGE_UNIT); in crypto_nhpoly1305_update_helper()
[all …]
Dghash-generic.c79 const u8 *src, unsigned int srclen) in ghash_update() argument
86 int n = min(srclen, dctx->bytes); in ghash_update()
90 srclen -= n; in ghash_update()
99 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update()
103 srclen -= GHASH_BLOCK_SIZE; in ghash_update()
106 if (srclen) { in ghash_update()
107 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
108 while (srclen--) in ghash_update()