Lines Matching refs:SHA_BLOCKSIZE
82 #define SHA_BLOCKSIZE 64 macro
232 i = SHA_BLOCKSIZE - sha_info->local; in apr_sha1_update_binary()
240 if (sha_info->local == SHA_BLOCKSIZE) { in apr_sha1_update_binary()
241 maybe_byte_reverse(sha_info->data, SHA_BLOCKSIZE); in apr_sha1_update_binary()
248 while (count >= SHA_BLOCKSIZE) { in apr_sha1_update_binary()
249 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in apr_sha1_update_binary()
250 buffer += SHA_BLOCKSIZE; in apr_sha1_update_binary()
251 count -= SHA_BLOCKSIZE; in apr_sha1_update_binary()
252 maybe_byte_reverse(sha_info->data, SHA_BLOCKSIZE); in apr_sha1_update_binary()
274 i = SHA_BLOCKSIZE - sha_info->local; in apr_sha1_update()
285 if (sha_info->local == SHA_BLOCKSIZE) { in apr_sha1_update()
286 maybe_byte_reverse(sha_info->data, SHA_BLOCKSIZE); in apr_sha1_update()
293 while (count >= SHA_BLOCKSIZE) { in apr_sha1_update()
294 inbytes_left = outbytes_left = SHA_BLOCKSIZE; in apr_sha1_update()
297 buffer += SHA_BLOCKSIZE; in apr_sha1_update()
298 count -= SHA_BLOCKSIZE; in apr_sha1_update()
299 maybe_byte_reverse(sha_info->data, SHA_BLOCKSIZE); in apr_sha1_update()
323 if (count > SHA_BLOCKSIZE - 8) { in apr_sha1_final()
324 memset(((apr_byte_t *) sha_info->data) + count, 0, SHA_BLOCKSIZE - count); in apr_sha1_final()
325 maybe_byte_reverse(sha_info->data, SHA_BLOCKSIZE); in apr_sha1_final()
327 memset((apr_byte_t *) sha_info->data, 0, SHA_BLOCKSIZE - 8); in apr_sha1_final()
331 SHA_BLOCKSIZE - 8 - count); in apr_sha1_final()
333 maybe_byte_reverse(sha_info->data, SHA_BLOCKSIZE); in apr_sha1_final()