Home
last modified time | relevance | path

Searched refs:block_ipad (Results 1 – 2 of 2) sorted by relevance

/external/mmc-utils/3rdparty/hmac_sha/
Dhmac_sha2.c68 memset(ctx->block_ipad + num, 0x36, fill); in hmac_sha224_init()
73 ctx->block_ipad[i] = key_used[i] ^ 0x36; in hmac_sha224_init()
78 sha224_update(&ctx->ctx_inside, ctx->block_ipad, SHA224_BLOCK_SIZE); in hmac_sha224_init()
154 memset(ctx->block_ipad + num, 0x36, fill); in hmac_sha256_init()
159 ctx->block_ipad[i] = key_used[i] ^ 0x36; in hmac_sha256_init()
164 sha256_update(&ctx->ctx_inside, ctx->block_ipad, SHA256_BLOCK_SIZE); in hmac_sha256_init()
240 memset(ctx->block_ipad + num, 0x36, fill); in hmac_sha384_init()
245 ctx->block_ipad[i] = key_used[i] ^ 0x36; in hmac_sha384_init()
250 sha384_update(&ctx->ctx_inside, ctx->block_ipad, SHA384_BLOCK_SIZE); in hmac_sha384_init()
326 memset(ctx->block_ipad + num, 0x36, fill); in hmac_sha512_init()
[all …]
Dhmac_sha2.h55 unsigned char block_ipad[SHA224_BLOCK_SIZE]; member
67 unsigned char block_ipad[SHA256_BLOCK_SIZE]; member
79 unsigned char block_ipad[SHA384_BLOCK_SIZE]; member
91 unsigned char block_ipad[SHA512_BLOCK_SIZE]; member