Skip to content

Commit ad07094

Browse files
committed
Update release notes for PR #23
1 parent 0de352d commit ad07094

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

.release-notes/next-release.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,16 @@ Previously, when a `TCPConnectionNotify` wrapped by `SSLConnection` returned `fa
1010

1111
`SSLConnection` now properly propagates the wrapped notify's `received` return value to `TCPConnection`, allowing the backpressure/yield mechanism to work through SSL connections.
1212

13+
## Add variable-length output support to SHAKE digests
14+
15+
The `shake128` and `shake256` constructors on `Digest` now accept an optional `size` parameter that controls the output length in bytes. The defaults match the previous fixed sizes (16 bytes for SHAKE128, 32 for SHAKE256), so existing code is unaffected.
16+
17+
Variable-length output requires OpenSSL 3.0.x. On OpenSSL 1.1.x, the default size is always used regardless of the parameter value.
18+
19+
```pony
20+
// 64-byte SHAKE256 digest (OpenSSL 3.0.x)
21+
let d = Digest.shake256(64)
22+
d.append("input data")?
23+
let hash: Array[U8] val = d.final() // 64 bytes
24+
```
25+

.release-notes/shake-variable-length.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)