We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27a687d commit 732a0e0Copy full SHA for 732a0e0
3 files changed
src/changes/changes.xml
@@ -8,6 +8,30 @@
8
9
<body>
10
<release version="5.0.0" date="April 01, 2026" description="jdk17, Bugfixes">
11
+ <action type="add" dev="Lai Quang Duong">
12
+ SubtleCrypto: digest() - SHA-1, SHA-256, SHA-384, SHA-512.
13
+ </action>
14
15
+ SubtleCrypto: generateKey() - RSASSA-PKCS1-v1_5, RSA-PSS, RSA-OAEP, ECDSA, ECDH, AES-CBC, AES-CTR, AES-GCM, AES-KW, HMAC
16
17
18
+ SubtleCrypto: importKey("raw") - HMAC, AES-CBC, AES-CTR, AES-GCM, AES-KW
19
20
21
+ SubtleCrypto: exportKey("raw") - HMAC, AES-CBC, AES-CTR, AES-GCM, AES-KW
22
23
24
+ SubtleCrypto: sign() - HMAC, RSASSA-PKCS1-v1_5, RSA-PSS, ECDSA
25
26
27
+ SubtleCrypto: verify() - HMAC, RSASSA-PKCS1-v1_5, RSA-PSS, ECDSA
28
29
30
+ SubtleCrypto: encrypt() - AES-CBC, AES-GCM, AES-CTR, RSA-OAEP
31
32
33
+ SubtleCrypto: decrypt() - AES-CBC, AES-GCM, AES-CTR, RSA-OAEP
34
35
<action type="add" dev="Lai Quang Duong">
36
Area: properties hash,host,hostname,href,origin,password,pathname,port,protocol,search, and username added.
37
</action>
src/main/java/org/htmlunit/javascript/host/crypto/SubtleCrypto.java
@@ -876,7 +876,8 @@ else if (data instanceof NativeArrayBufferView arrayBufferView) {
876
arrayBuffer.getBuffer(), arrayBufferView.getByteOffset(), arrayBufferView.getByteLength());
877
}
878
else {
879
- throw JavaScriptEngine.typeError("Argument could not be converted to any of: ArrayBufferView, ArrayBuffer.");
+ throw JavaScriptEngine.typeError(
880
+ "Argument could not be converted to any of: ArrayBufferView, ArrayBuffer.");
881
882
883
src/test/java/org/htmlunit/javascript/host/crypto/SubtleCryptoTest.java
@@ -337,7 +337,11 @@ public void generateKeyEc() throws Exception {
337
* @throws Exception if the test fails
338
*/
339
@Test
340
- @Alerts({"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16", "rejected"})
+ @Alerts(DEFAULT = {"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16", "rejected"},
341
+ FF = {"rejected", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"},
342
+ FF_ESR = {"rejected", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"})
343
+ @HtmlUnitNYI(FF = {"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16", "rejected"},
344
+ FF_ESR = {"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16", "rejected"})
345
public void exportKeyRaw() throws Exception {
346
final String html = DOCTYPE_HTML
347
+ "<html><head><script>\n"
0 commit comments