mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 04:09:00 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
49
Libraries/LibWeb/Crypto/CryptoBindings.h
Normal file
49
Libraries/LibWeb/Crypto/CryptoBindings.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright (c) 2023, stelar7 <dudedbz@gmail.com>
|
||||
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibCrypto/BigInt/UnsignedBigInteger.h>
|
||||
|
||||
// FIXME: Generate these from IDL
|
||||
namespace Web::Bindings {
|
||||
|
||||
// https://w3c.github.io/webcrypto/#JsonWebKey-dictionary
|
||||
struct RsaOtherPrimesInfo {
|
||||
Optional<String> r;
|
||||
Optional<String> d;
|
||||
Optional<String> t;
|
||||
};
|
||||
|
||||
// https://w3c.github.io/webcrypto/#JsonWebKey-dictionary
|
||||
struct JsonWebKey {
|
||||
Optional<String> kty;
|
||||
Optional<String> use;
|
||||
Optional<Vector<String>> key_ops;
|
||||
Optional<String> alg;
|
||||
Optional<bool> ext;
|
||||
Optional<String> crv;
|
||||
Optional<String> x;
|
||||
Optional<String> y;
|
||||
Optional<String> d;
|
||||
Optional<String> n;
|
||||
Optional<String> e;
|
||||
Optional<String> p;
|
||||
Optional<String> q;
|
||||
Optional<String> dp;
|
||||
Optional<String> dq;
|
||||
Optional<String> qi;
|
||||
Optional<Vector<RsaOtherPrimesInfo>> oth;
|
||||
Optional<String> k;
|
||||
|
||||
JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Object>> to_object(JS::Realm&);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue