Skip to content

Commit 732a0e0

Browse files
committed
document last changes
1 parent 27a687d commit 732a0e0

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

src/changes/changes.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@
88

99
<body>
1010
<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+
<action type="add" dev="Lai Quang Duong">
15+
SubtleCrypto: generateKey() - RSASSA-PKCS1-v1_5, RSA-PSS, RSA-OAEP, ECDSA, ECDH, AES-CBC, AES-CTR, AES-GCM, AES-KW, HMAC
16+
</action>
17+
<action type="add" dev="Lai Quang Duong">
18+
SubtleCrypto: importKey("raw") - HMAC, AES-CBC, AES-CTR, AES-GCM, AES-KW
19+
</action>
20+
<action type="add" dev="Lai Quang Duong">
21+
SubtleCrypto: exportKey("raw") - HMAC, AES-CBC, AES-CTR, AES-GCM, AES-KW
22+
</action>
23+
<action type="add" dev="Lai Quang Duong">
24+
SubtleCrypto: sign() - HMAC, RSASSA-PKCS1-v1_5, RSA-PSS, ECDSA
25+
</action>
26+
<action type="add" dev="Lai Quang Duong">
27+
SubtleCrypto: verify() - HMAC, RSASSA-PKCS1-v1_5, RSA-PSS, ECDSA
28+
</action>
29+
<action type="add" dev="Lai Quang Duong">
30+
SubtleCrypto: encrypt() - AES-CBC, AES-GCM, AES-CTR, RSA-OAEP
31+
</action>
32+
<action type="add" dev="Lai Quang Duong">
33+
SubtleCrypto: decrypt() - AES-CBC, AES-GCM, AES-CTR, RSA-OAEP
34+
</action>
1135
<action type="add" dev="Lai Quang Duong">
1236
Area: properties hash,host,hostname,href,origin,password,pathname,port,protocol,search, and username added.
1337
</action>

src/main/java/org/htmlunit/javascript/host/crypto/SubtleCrypto.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,8 @@ else if (data instanceof NativeArrayBufferView arrayBufferView) {
876876
arrayBuffer.getBuffer(), arrayBufferView.getByteOffset(), arrayBufferView.getByteLength());
877877
}
878878
else {
879-
throw JavaScriptEngine.typeError("Argument could not be converted to any of: ArrayBufferView, ArrayBuffer.");
879+
throw JavaScriptEngine.typeError(
880+
"Argument could not be converted to any of: ArrayBufferView, ArrayBuffer.");
880881
}
881882
}
882883

src/test/java/org/htmlunit/javascript/host/crypto/SubtleCryptoTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,11 @@ public void generateKeyEc() throws Exception {
337337
* @throws Exception if the test fails
338338
*/
339339
@Test
340-
@Alerts({"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16", "rejected"})
340+
@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"})
341345
public void exportKeyRaw() throws Exception {
342346
final String html = DOCTYPE_HTML
343347
+ "<html><head><script>\n"

0 commit comments

Comments
 (0)