Skip to content

Commit 88d1ed7

Browse files
committed
Modify pkcs8 pbe encryption to use indefinite length encoding, making it consistent with both old ASN code and openssl
1 parent 1c8f1e6 commit 88d1ed7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9156,7 +9156,7 @@ static const ASNItem p8EncPbes1ASN[] = {
91569156
/* ENCALGO_PBEPARAM_SALT */ { 3, ASN_OCTET_STRING, 0, 0, 0 },
91579157
/* Iteration Count */
91589158
/* ENCALGO_PBEPARAM_ITER */ { 3, ASN_INTEGER, 0, 0, 0 },
9159-
/* ENCDATA */ { 1, ASN_OCTET_STRING, 0, 0, 0 },
9159+
/* ENCDATA */ { 1, ASN_INDEF_LENGTH, 0, 0, 0 },
91609160
};
91619161
enum {
91629162
P8ENCPBES1ASN_IDX_SEQ = 0,

0 commit comments

Comments
 (0)