ladybird/Userland/Libraries/LibCrypto/ASN1
Michiel Visser a6e465fba2 LibCrypto: Implement custom BitStringView for ASN.1 decoder
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.
2022-04-17 10:10:19 +04:30
..
ASN1.cpp LibTLS: ASN1 parse_utc_time handle pre 2000 years 2022-04-17 10:10:19 +04:30
ASN1.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
DER.cpp LibCrypto: Implement custom BitStringView for ASN.1 decoder 2022-04-17 10:10:19 +04:30
DER.h LibCrypto: Implement custom BitStringView for ASN.1 decoder 2022-04-17 10:10:19 +04:30
PEM.cpp AK+Userland: Make AK::decode_base64 return ErrorOr 2022-01-24 22:36:09 +01:00
PEM.h AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00