Modify pkcs8 pbe encryption to use indefinite length encoding, making it consistent with both old ASN code and openssl

This commit is contained in:
Colton Willey
2024-09-11 15:55:05 -07:00
parent 1c8f1e6921
commit 88d1ed7393

View File

@ -9156,7 +9156,7 @@ static const ASNItem p8EncPbes1ASN[] = {
/* ENCALGO_PBEPARAM_SALT */ { 3, ASN_OCTET_STRING, 0, 0, 0 },
/* Iteration Count */
/* ENCALGO_PBEPARAM_ITER */ { 3, ASN_INTEGER, 0, 0, 0 },
/* ENCDATA */ { 1, ASN_OCTET_STRING, 0, 0, 0 },
/* ENCDATA */ { 1, ASN_INDEF_LENGTH, 0, 0, 0 },
};
enum {
P8ENCPBES1ASN_IDX_SEQ = 0,