mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
a6e465fba2
The ASN.1 decoder was originally using AK::BitmapView for decoded BitStrings, however the specification requires that the bits are stored in a byte from the most significant to the least significant. Storing three bits '110' would result in a byte '1100 0000', i.e. 0xC0. However, AK::BitmapView expects the bits to be stored at the bottom like '0000 0110', i.e. 0x06. For the current uses the data was always a multiple of eight bits, resulting in complete bytes, which could directly be interpreted correctly. For the implementation of the key usage extension of certificates the correct implementation of the BitString is required. |
||
---|---|---|
.. | ||
ASN1 | ||
Authentication | ||
BigInt | ||
Checksum | ||
Cipher | ||
Curves | ||
Hash | ||
NumberTheory | ||
PK | ||
CMakeLists.txt | ||
Forward.h | ||
Verification.h |