expand key lenght, add key hashing
This commit is contained in:
1 parent
4630460b88
commit
842beb2716
4 files changed
+27
-17
No files matched your search
@@ -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"};
|
||||
|
||||
Reference in new issue
Block a user