remove unnecessary check, idx will be 1 and derSz is at least 5

This commit is contained in:
Ruby Martin
2026-05-13 16:32:54 -06:00
parent c86c606bea
commit bbde4c5fcc
-3
View File
@@ -268,9 +268,6 @@ static WC_INLINE int test_pkcs8_get_version_byte(const byte* der, word32 derSz)
if (der[idx++] != 0x30) {
return -1;
}
if (idx >= derSz) {
return -1;
}
if ((der[idx] & 0x80) == 0) {
/* short-form length */
idx += 1;