Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions wolfcrypt/src/asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,16 +1245,13 @@ static int GetASN_Integer(const byte* input, word32 idx, int length,
*/
int GetASN_BitString(const byte* input, word32 idx, int length)
{
#if (!defined(HAVE_SELFTEST) && !defined(HAVE_FIPS)) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))
/* Check contents consist of one or more octets. */
if (length == 0) {
#ifdef WOLFSSL_DEBUG_ASN_TEMPLATE
WOLFSSL_MSG("Zero length BIT STRING not allowed");
#endif
return ASN_PARSE_E;
}
#endif
/* Ensure unused bits value is valid range. */
if (input[idx] > 7) {
#ifdef WOLFSSL_DEBUG_ASN_TEMPLATE
Expand Down
Loading