Topic: NO_SHA256 issue
Hello,
If I need to add asn.o to my build and I have NO_SHA256 define (I have WOLFSSL_SHA512 & WOLFSSL_SHA384 instead) I get a lot of errors from asn.c and asn.h files regarding SHA256 part.
As I understand it, the ASN module can't be used without SHA256. Here are some examples:
#ifdef NO_SHA
ret = wc_Sha256Hash(&cert->source[idx], length + cert->srcIdx - idx, hash);
#else
ret = wc_ShaHash(&cert->source[idx], length + cert->srcIdx - idx, hash);
#endif
#ifdef NO_SHA
KEYID_SIZE = SHA256_DIGEST_SIZE,
#else
KEYID_SIZE = SHA_DIGEST_SIZE,
#endif
Is there a way to get rid from SHA256?
Best regards.