expand key lenght, add key hashing

This commit is contained in:
redlineo committed 2025-01-20 14:55:18 +00:00
1 parent 4630460b88
commit 842beb2716
4 files changed
+27 -17

No files matched your search

+4 -3
View File
@@ -158,13 +158,14 @@ void sha256_final(SHA256_CTX *ctx, BYTE hash[])
}
}
/*********************** TEST FUNCTION DEFINITIONS ***********************/
#ifdef TEST_FUNCTIONS_ENABLED
inline size_t u_strlen(const unsigned char * array)
size_t u_strlen(const unsigned char * array)
{
return strlen((const char*)array);
}
/*********************** TEST FUNCTION DEFINITIONS ***********************/
#ifdef TEST_FUNCTIONS_ENABLED
void exec_sha256_test(void)
{
BYTE text1[] = {"abc"};