-
Notifications
You must be signed in to change notification settings - Fork 606
Open
Description
BIT STRING
require an extra byte to indicate the number of padding bits
But the code here hard-codes 0
as the padding bits, this resulted in encoding errors in some cases.
The encoding logic of OCTET STRING
and BIT STRING
should be separated. For BIT STRING
, the number of padding bits can be manually specified.
botan/src/lib/asn1/der_enc.cpp
Line 329 in feb9b3f
encoded.push_back(0); |
Metadata
Metadata
Assignees
Labels
No labels