Searched refs:SHA_BLOCKSIZE (Results 1 – 2 of 2) sorted by relevance
38 #define SHA_BLOCKSIZE 64 macro47 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */282 i = SHA_BLOCKSIZE - sha_info->local; in sha_update()290 if (sha_info->local == SHA_BLOCKSIZE) { in sha_update()297 while (count >= SHA_BLOCKSIZE) { in sha_update()298 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha_update()299 buffer += SHA_BLOCKSIZE; in sha_update()300 count -= SHA_BLOCKSIZE; in sha_update()319 if (count > SHA_BLOCKSIZE - 8) { in sha_final()321 SHA_BLOCKSIZE - count); in sha_final()[all …]
39 #define SHA_BLOCKSIZE 128 macro48 SHA_BYTE data[SHA_BLOCKSIZE]; /* SHA data buffer */286 i = SHA_BLOCKSIZE - sha_info->local; in sha512_update()294 if (sha_info->local == SHA_BLOCKSIZE) { in sha512_update()301 while (count >= SHA_BLOCKSIZE) { in sha512_update()302 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); in sha512_update()303 buffer += SHA_BLOCKSIZE; in sha512_update()304 count -= SHA_BLOCKSIZE; in sha512_update()323 if (count > SHA_BLOCKSIZE - 16) { in sha512_final()325 SHA_BLOCKSIZE - count); in sha512_final()[all …]