fix(sha256):
When using the "CRYPTO_DEFAULT" algorithm library, "sha256" should use sha2-256
#include "boattypes.h"
#include "boatutility.h"
-#include "sha3.h"
+#include "sha2.h"
/* net releated include */
#include <sys/types.h>
@@ -54,7 +54,7 @@ BOAT_RESULT BoatHash( const BoatHashAlgType type, const BUINT8* input, BUINT32
}
else if( type == BOAT_HASH_SHA256 )
{
- sha3_256( input, inputLen, hashed );
+ sha256_Raw( input, inputLen, hashed );
if( hashedLen != NULL )
{
*hashedLen = 32;
