Skip to content

Commit ec2fee3

Browse files
kkoyungservo-wpt-sync
authored andcommitted
script: Implement getPublicKey operations of Ed448 and X448
This patch implements the getPublicKey operations of Ed448 and X448 in our WebCrypto API implementation. New test cases are added to `tests/wpt/tests/WebCryptoAPI/getPublicKey.tentative.https.any.js` for testing `SubtleCrypto.getPublicKey()` method on input Ed448 and X448 private keys. Specification: <https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-supports> Testing: Pass new WPT subtests in `getPublicKey.tentative.https.any.js` Part-of: 46140 Signed-off-by: Kingsley Yung <[email protected]>
1 parent 982cb52 commit ec2fee3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎WebCryptoAPI/getPublicKey.tentative.https.any.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ const algorithms = [
2323
usages: ["sign", "verify"],
2424
publicKeyUsages: ["verify"]
2525
},
26+
{
27+
name: "Ed448",
28+
generateKeyParams: { name: "Ed448" },
29+
usages: ["sign", "verify"],
30+
publicKeyUsages: ["verify"]
31+
},
2632
{
2733
name: "RSA-OAEP",
2834
generateKeyParams: {
@@ -62,6 +68,12 @@ const algorithms = [
6268
usages: ["deriveKey", "deriveBits"],
6369
publicKeyUsages: []
6470
},
71+
{
72+
name: "X448",
73+
generateKeyParams: { name: "X448" },
74+
usages: ["deriveKey", "deriveBits"],
75+
publicKeyUsages: []
76+
},
6577
{
6678
name: "ML-DSA-44",
6779
generateKeyParams: { name: "ML-DSA-44" },

0 commit comments

Comments
 (0)