1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:37:42 +00:00
serenity/Userland/Libraries/LibTLS
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
..
Certificate.cpp LibCrypto: Implement custom BitStringView for ASN.1 decoder 2022-04-17 10:10:19 +04:30
Certificate.h LibTLS: Verify the certificate chain sent by the server 2022-04-17 10:10:19 +04:30
CipherSuite.h LibCrypto+LibTLS: Generalize the elliptic curve interface 2022-03-20 00:51:50 +03:30
CMakeLists.txt LibTLS: Rework method names and arrangement in cpp files 2021-05-19 09:18:45 +02:00
Handshake.cpp LibTLS: Verify the certificate chain sent by the server 2022-04-17 10:10:19 +04:30
HandshakeCertificate.cpp LibTLS: Verify the certificate chain sent by the server 2022-04-17 10:10:19 +04:30
HandshakeClient.cpp LibTLS: Add references to RFC5246 for the verify procedure 2022-04-17 10:10:19 +04:30
HandshakeServer.cpp LibTLS: Add references to RFC5246 for the verify procedure 2022-04-17 10:10:19 +04:30
Record.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Socket.cpp LibCore+Everywhere: Make Core::Stream::read() return Bytes 2022-04-16 13:27:51 -04:00
TLSPacketBuilder.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TLSv12.cpp LibTLS: Correct matching hostname with certificate subject 2022-04-17 10:10:19 +04:30
TLSv12.h LibTLS: Simplify the way verify_chain is called 2022-04-17 10:10:19 +04:30