mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibCrypto: Move ASN1 constants to Crypto::ASN1
Makes more sense to have them in `Crypto::ASN1` rather than in `Crypto::Certificate`.
This commit is contained in:
parent
ab2960e49f
commit
51f69be51f
Notes:
github-actions[bot]
2024-11-30 10:19:16 +00:00
Author: https://github.com/devgianlu
Commit: 51f69be51f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2648
7 changed files with 271 additions and 255 deletions
|
@ -33,7 +33,7 @@ TEST_CASE(test_private_key_info_decode)
|
|||
Crypto::ASN1::Decoder decoder(decoded_keyder);
|
||||
auto private_key_info = TRY_OR_FAIL(Crypto::Certificate::parse_private_key_info(decoder));
|
||||
|
||||
EXPECT_EQ(private_key_info.algorithm.identifier, Crypto::Certificate::rsa_encryption_oid);
|
||||
EXPECT_EQ(private_key_info.algorithm.identifier, Crypto::ASN1::rsa_encryption_oid);
|
||||
auto& key = private_key_info.rsa;
|
||||
|
||||
EXPECT_EQ(key.length() * 8, 512u);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue