Skip to content

BIT STRING hard-coded padding bits #5043

@Brassinolide

Description

@Brassinolide

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.

encoded.push_back(0);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions