Searched refs:partial (Results 1 – 3 of 3) sorted by relevance
/crypto/ |
D | sha1_generic.c | 43 unsigned int partial, done; in crypto_sha1_update() local 46 partial = sctx->count % SHA1_BLOCK_SIZE; in crypto_sha1_update() 51 if ((partial + len) >= SHA1_BLOCK_SIZE) { in crypto_sha1_update() 54 if (partial) { in crypto_sha1_update() 55 done = -partial; in crypto_sha1_update() 56 memcpy(sctx->buffer + partial, data, in crypto_sha1_update() 68 partial = 0; in crypto_sha1_update() 70 memcpy(sctx->buffer + partial, src, len - done); in crypto_sha1_update()
|
D | sha256_generic.c | 253 unsigned int partial, done; in crypto_sha256_update() local 256 partial = sctx->count & 0x3f; in crypto_sha256_update() 261 if ((partial + len) > 63) { in crypto_sha256_update() 262 if (partial) { in crypto_sha256_update() 263 done = -partial; in crypto_sha256_update() 264 memcpy(sctx->buf + partial, data, done + 64); in crypto_sha256_update() 274 partial = 0; in crypto_sha256_update() 276 memcpy(sctx->buf + partial, src, len - done); in crypto_sha256_update()
|
D | vmac.c | 575 memcpy(ctx->partial + ctx->partial_size, p, min); in vmac_update() 581 vhash_update(ctx->partial, VMAC_NHBYTES, &ctx->__vmac_ctx); in vmac_update() 588 memcpy(ctx->partial, p + len - (len % VMAC_NHBYTES), in vmac_update() 611 memset(ctx->partial + ctx->partial_size, 0, in vmac_final() 614 mac = vmac(ctx->partial, ctx->partial_size, nonce, NULL, ctx); in vmac_final()
|