Searched refs:footer (Results 1 – 2 of 2) sorted by relevance
| /TwlSDK-5.2.1/build/libraries/math/common/src/ |
| D | net_sha256.c | 244 u32 footer[2]; in MATH_SHA256GetHash() local 246 static const u8 padalign[sizeof(footer)] = { 0x00, }; in MATH_SHA256GetHash() 248 footer[1] = NETConvert32HToBE((u32) in MATH_SHA256GetHash() 250 footer[0] = NETConvert32HToBE((u32) in MATH_SHA256GetHash() 256 if (MATHSHA256_CBLOCK - context->num < sizeof(footer)) in MATH_SHA256GetHash() 261 MATH_SHA256Fill(context, 0x00, MATHSHA256_CBLOCK - context->num - sizeof(footer)); in MATH_SHA256GetHash() 263 MATH_SHA256Update(context, footer, sizeof(footer)); in MATH_SHA256GetHash() 271 MATH_SHA256Update(context, footer, sizeof(footer)); in MATH_SHA256GetHash()
|
| D | dgt_sha1.c | 321 u32 footer[2]; in MATH_SHA1GetHash() local 323 static const u8 padalign[sizeof(footer)] = { 0x00, }; in MATH_SHA1GetHash() 325 footer[1] = NETConvert32HToBE((u32) in MATH_SHA1GetHash() 327 footer[0] = NETConvert32HToBE((u32) in MATH_SHA1GetHash() 332 if (MATH_SHA1_BLOCK_SIZE - context->pool < sizeof(footer)) in MATH_SHA1GetHash() 337 MATHi_SHA1Fill(context, 0x00, MATH_SHA1_BLOCK_SIZE - context->pool - sizeof(footer)); in MATH_SHA1GetHash() 339 MATH_SHA1Update(context, footer, sizeof(footer)); in MATH_SHA1GetHash()
|