Searched refs:hash2funcs (Results 1 – 2 of 2) sorted by relevance
| /TwlSDK-5.1.0/build/libraries/math/common/src/ |
| D | net_sha256.c | 425 MATHiHMACFuncs hash2funcs = { in MATH_CalcHMACSHA256() local 430 hash2funcs.context = &context; in MATH_CalcHMACSHA256() 431 hash2funcs.hash_buf = hash_buf; in MATH_CalcHMACSHA256() 432 hash2funcs.HashReset = (void (*)(void*)) MATH_SHA256Init; in MATH_CalcHMACSHA256() 433 hash2funcs.HashSetSource = (void (*)(void*, const void*, u32)) MATH_SHA256Update; in MATH_CalcHMACSHA256() 434 hash2funcs.HashGetDigest = (void (*)(void*, void*)) MATH_SHA256GetHash; in MATH_CalcHMACSHA256() 436 MATHi_CalcHMAC(digest, bin_ptr, bin_len, key_ptr, key_len, &hash2funcs); in MATH_CalcHMACSHA256()
|
| D | dgt_sha1.c | 397 MATHiHMACFuncs hash2funcs = { in MATH_CalcHMACSHA1() local 402 hash2funcs.context = &context; in MATH_CalcHMACSHA1() 403 hash2funcs.hash_buf = hash_buf; in MATH_CalcHMACSHA1() 404 hash2funcs.HashReset = (void (*)(void*)) MATH_SHA1Init; in MATH_CalcHMACSHA1() 405 hash2funcs.HashSetSource = (void (*)(void*, const void*, u32)) MATH_SHA1Update; in MATH_CalcHMACSHA1() 406 hash2funcs.HashGetDigest = (void (*)(void*, void*)) MATH_SHA1GetHash; in MATH_CalcHMACSHA1() 408 MATHi_CalcHMAC(digest, bin_ptr, bin_len, key_ptr, key_len, &hash2funcs); in MATH_CalcHMACSHA1()
|