Searched refs:SHA256_BLOCKSZ (Results 1 – 2 of 2) sorted by relevance
157 nr = MIN(len, SHA256_BLOCKSZ - ctx->blocksz); in asd_sha_update()164 if (ctx->blocksz == SHA256_BLOCKSZ) { in asd_sha_update()165 asd_compute_sha(ctx, ctx->block, SHA256_BLOCKSZ, 0); in asd_sha_update()169 asd_compute_sha(ctx, data, len & ~(SHA256_BLOCKSZ - 1), 0); in asd_sha_update()170 data += len & ~(SHA256_BLOCKSZ - 1); in asd_sha_update()172 if (len & (SHA256_BLOCKSZ - 1)) { in asd_sha_update()173 nr = len & (SHA256_BLOCKSZ - 1); in asd_sha_update()
10 #define SHA256_BLOCKSZ 0x40 macro20 uint8_t block[SHA256_BLOCKSZ];