Searched refs:SHA256_BLOCK_SIZE (Results 1 – 4 of 4) sorted by relevance
52 if (key_size == SHA256_BLOCK_SIZE) { in hmac_sha256_init()54 num = SHA256_BLOCK_SIZE; in hmac_sha256_init()56 if (key_size > SHA256_BLOCK_SIZE){ in hmac_sha256_init()64 fill = SHA256_BLOCK_SIZE - num; in hmac_sha256_init()76 sha256_update(&ctx->ctx_inside, ctx->block_ipad, SHA256_BLOCK_SIZE); in hmac_sha256_init()80 SHA256_BLOCK_SIZE); in hmac_sha256_init()
41 #define SHA256_BLOCK_SIZE ( 512 / 8) macro57 unsigned char block[2 * SHA256_BLOCK_SIZE];
54 unsigned char block_ipad[SHA256_BLOCK_SIZE];55 unsigned char block_opad[SHA256_BLOCK_SIZE];
200 tmp_len = SHA256_BLOCK_SIZE - ctx->len; in sha256_update()205 if (ctx->len + len < SHA256_BLOCK_SIZE) { in sha256_update()211 block_nb = new_len / SHA256_BLOCK_SIZE; in sha256_update()218 rem_len = new_len % SHA256_BLOCK_SIZE; in sha256_update()234 block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) in sha256_final()235 < (ctx->len % SHA256_BLOCK_SIZE))); in sha256_final()
Completed in 7 milliseconds