Skip to content

Commit

Permalink
LibCrypto: Add Ed448 OID to know algorithm identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Dec 24, 2024
1 parent b64a80b commit b73323f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/LibCrypto/Certificate/Certificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static ErrorOr<AlgorithmIdentifier> parse_algorithm_identifier(Crypto::ASN1::Dec
READ_OBJECT(ObjectIdentifier, Vector<int>, algorithm);
POP_SCOPE();

constexpr static Array<Span<int const>, 12> known_algorithm_identifiers {
constexpr static Array<Span<int const>, 13> known_algorithm_identifiers {
ASN1::rsa_encryption_oid,
ASN1::rsa_md5_encryption_oid,
ASN1::rsa_sha1_encryption_oid,
Expand All @@ -95,6 +95,7 @@ static ErrorOr<AlgorithmIdentifier> parse_algorithm_identifier(Crypto::ASN1::Dec
ASN1::x25519_oid,
ASN1::ed25519_oid,
ASN1::x448_oid,
ASN1::ed448_oid,
};

bool is_known_algorithm = false;
Expand Down

0 comments on commit b73323f

Please sign in to comment.