mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Use ReadOnlyBytes when encoding ml-dsa public keys
This fixes a build error caused by a merge conflict with some recent changes in out base64 infrastructure.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
4868a118a5
commit
b65b8c2e6a
Notes:
github-actions[bot]
2025-12-10 21:47:57 +00:00
Author: https://github.com/tete17 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b65b8c2e6ab Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7093
@@ -8895,9 +8895,9 @@ WebIDL::ExceptionOr<GC::Ref<JS::Object>> MLDSA::export_key(Bindings::KeyFormat f
|
||||
jwk.pub = TRY_OR_THROW_OOM(
|
||||
vm,
|
||||
encode_base64url(handle.visit(
|
||||
[](::Crypto::PK::MLDSAPublicKey const& public_key) -> ByteBuffer { return public_key.public_key(); },
|
||||
[](::Crypto::PK::MLDSAPrivateKey const& private_key) -> ByteBuffer { return private_key.public_key(); },
|
||||
[](auto) -> ByteBuffer { VERIFY_NOT_REACHED(); }),
|
||||
[](::Crypto::PK::MLDSAPublicKey const& public_key) -> ReadonlyBytes { return public_key.public_key(); },
|
||||
[](::Crypto::PK::MLDSAPrivateKey const& private_key) -> ReadonlyBytes { return private_key.public_key(); },
|
||||
[](auto) -> ReadonlyBytes { VERIFY_NOT_REACHED(); }),
|
||||
AK::OmitPadding::Yes));
|
||||
|
||||
// 5. -> If the [[type]] internal slot of key is "private":
|
||||
|
||||
Reference in New Issue
Block a user