Searched refs:FILLP_SHA256_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | hmac.c | 74 FILLP_UINT8 keyIpad[FILLP_SHA256_BLOCK_SIZE]; in FillpHmacSha256Init() 77 FILLP_UINT8 keyOpad[FILLP_SHA256_BLOCK_SIZE]; in FillpHmacSha256Init() 90 if (klen > FILLP_SHA256_BLOCK_SIZE) { in FillpHmacSha256Init() 99 (void)memset_s(keyIpad, FILLP_SHA256_BLOCK_SIZE, 0, FILLP_SHA256_BLOCK_SIZE); in FillpHmacSha256Init() 100 (void)memset_s(keyOpad, FILLP_SHA256_BLOCK_SIZE, 0, FILLP_SHA256_BLOCK_SIZE); in FillpHmacSha256Init() 111 for (i = 0; i < FILLP_SHA256_BLOCK_SIZE; i++) { in FillpHmacSha256Init() 117 FillpSha256Upd(tempCtx->hashki, keyIpad, FILLP_SHA256_BLOCK_SIZE); in FillpHmacSha256Init() 119 FillpSha256Upd(tempCtx->hashko, keyOpad, FILLP_SHA256_BLOCK_SIZE); in FillpHmacSha256Init()
|
H A D | sha256.c | 43 #define FILLP_SHA256_MASK (FILLP_SHA256_BLOCK_SIZE - 1) 182 FILLP_UINT32 freeSize = FILLP_SHA256_BLOCK_SIZE - offset; in FillpSha256Upd() 199 freeSize = FILLP_SHA256_BLOCK_SIZE; in FillpSha256Upd() 201 FILLP_SWAP_32_ARRAY(ctx->wbuf, FILLP_SHA256_BLOCK_SIZE >> FILLP_SHA_TWO_PAR); in FillpSha256Upd() 229 if (offset > (FILLP_SHA256_BLOCK_SIZE - FILLP_SHA_NINE_PAR)) { in FillpSha256Fin()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/ |
H A D | sha256.h | 26 #define FILLP_SHA256_BLOCK_SIZE 64 /* wbuf size in bytes 16 * sizeof(FILLP_UINT32) */ macro
|