Searched refs:buflen (Results 1 – 4 of 4) sorted by relevance
/crypto/ |
D | poly1305_generic.c | 27 dctx->buflen = 0; in crypto_poly1305_init() 78 if (unlikely(dctx->buflen)) { in crypto_poly1305_update() 79 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update() 80 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update() 83 dctx->buflen += bytes; in crypto_poly1305_update() 85 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update() 88 dctx->buflen = 0; in crypto_poly1305_update() 99 dctx->buflen = srclen; in crypto_poly1305_update()
|
D | nhpoly1305.c | 149 state->buflen = 0; in crypto_nhpoly1305_init() 163 if (state->buflen) { in crypto_nhpoly1305_update_helper() 164 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper() 165 memcpy(&state->buffer[state->buflen], src, bytes); in crypto_nhpoly1305_update_helper() 166 state->buflen += bytes; in crypto_nhpoly1305_update_helper() 167 if (state->buflen < NH_MESSAGE_UNIT) in crypto_nhpoly1305_update_helper() 171 state->buflen = 0; in crypto_nhpoly1305_update_helper() 185 state->buflen = srclen; in crypto_nhpoly1305_update_helper() 203 if (state->buflen) { in crypto_nhpoly1305_final_helper() 204 memset(&state->buffer[state->buflen], 0, in crypto_nhpoly1305_final_helper() [all …]
|
D | drbg.c | 595 unsigned char *buf, unsigned int buflen, in drbg_ctr_generate() argument 599 int len = min_t(int, buflen, INT_MAX); in drbg_ctr_generate() 708 unsigned int buflen, in drbg_hmac_generate() argument 725 while (len < buflen) { in drbg_hmac_generate() 731 outlen = (drbg_blocklen(drbg) < (buflen - len)) ? in drbg_hmac_generate() 732 drbg_blocklen(drbg) : (buflen - len); in drbg_hmac_generate() 937 unsigned int buflen) in drbg_hash_hashgen() argument 951 while (len < buflen) { in drbg_hash_hashgen() 959 outlen = (drbg_blocklen(drbg) < (buflen - len)) ? in drbg_hash_hashgen() 960 drbg_blocklen(drbg) : (buflen - len); in drbg_hash_hashgen() [all …]
|
D | tcrypt.c | 114 unsigned int buflen, const void *assoc, in sg_init_aead() argument 117 int np = (buflen + PAGE_SIZE - 1)/PAGE_SIZE; in sg_init_aead() 124 rem = buflen % PAGE_SIZE; in sg_init_aead()
|