R-Goc
e2b6ab4a69
LibCrypto: DER.cpp use uz literals
2024-12-08 17:18:12 -07:00
R-Goc
3e69794c7d
LibCrypto: Use size_t integer literal
2024-12-08 17:18:12 -07:00
devgianlu
57ecd72256
LibCrypto: Return PEM type when decoding and sanity check footer
...
Improve PEM decoding by parsing the header and returning it along the
data. Also verify if the header is equal to the footer.
2024-11-30 11:17:44 +01:00
devgianlu
40f17d9260
LibCrypto: Move ASN1 macros to Crypto::ASN1
...
Makes more sense to have them in `Crypto::ASN1` rather than in
`Crypto::Certificate`.
2024-11-30 11:17:44 +01:00
devgianlu
51f69be51f
LibCrypto: Move ASN1 constants to Crypto::ASN1
...
Makes more sense to have them in `Crypto::ASN1` rather than in
`Crypto::Certificate`.
2024-11-30 11:17:44 +01:00
devgianlu
07ced0cb34
LibCrypto: Make PEMType
an enum class
...
This is required for the following commits to avoid a conflict
with the `Certificate` namespace.
2024-11-25 13:38:38 +01:00
Pavel Shliak
8d13115d9a
LibCrypto: Clean up #include directives
...
This change aims to improve the speed of incremental builds.
2024-11-21 14:08:33 +01:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00
asynts
6fa42af567
Everywhere: Replace a bundle of dbg with dbgln.
...
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
The modifications in this commit were automatically made using the
following command:
find . -name '*.h' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
2021-01-11 21:49:29 +01:00
asynts
a410bb8fd5
Everywhere: Replace a bundle of dbg with dbgln.
...
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
2021-01-11 21:49:29 +01:00
Ben Wiederhake
23a43d10f3
LibCrypto: Don't cause errors when function unused
...
Any (future) program that includes this header would fail to compile, because the
private symbol 'kind_name' is defined, along with a bunch of code, but unused.
A good way to see this is by #include'ing LibCrypto/ASN1/ASN1.h in an unrelated
.cpp-file, for example Userland/md.cpp.
No other headers seem to have this problem.
2020-08-23 00:53:16 +02:00
AnotherTest
e54a5b7fb8
LibCrypto: Format the comments in ASN1/PEM.h correctly
2020-08-02 18:57:51 +02:00
asynts
3de4e08b46
LibCrypto: Change the signature of decode_pem to use Span.
2020-07-27 19:58:09 +02:00
AnotherTest
2a241a11bb
LibCrypto: Fix some issues preventing compilation w/ clang 10
2020-05-29 20:17:12 +02:00
AnotherTest
05e2c7d9cf
LibCrypto+LibTLS: Reformat everything
...
I have no idea how I'll squash _this_ one...
2020-05-02 12:24:10 +02:00
AnotherTest
7adb93ede9
LibCrypto: Implement RSA in terms of UnsignedBigInteger
...
This commit also adds enough ASN.1/DER to parse RSA keys
2020-05-02 12:24:10 +02:00