Skip to content

Commit f806561

Browse files
committed
docs(stack-encrypt): list the SealedValue conversions in the changelog
`From<SealedValue> for Ciphertext` and the reverse are new public API and were missing from [Unreleased]. The cleanup bullet also now covers the context check before encoding and the heap observer's leak watch.
1 parent ad718ca commit f806561

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎packages/stack-encrypt/CHANGELOG.md‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6363
plain `P` is still an ordinary owned value that nothing wipes on drop;
6464
`Zeroize` is the bound, not a guard. `OpaqueEncode` is implemented for
6565
`Zeroizing<S>` too.
66+
- **`From<SealedValue> for Ciphertext`, and back.** The bytes are the same:
67+
a `CipherText::Single` leaf from `encrypt_tree` opens through the owned
68+
API, and an owned `Ciphertext` hands its leaf to the structural API.
6669
- **The owned source is wiped on an encoding refusal** as on success, before
67-
the pending is returned and with no key requested; the owned blob buffer is
68-
`Protected` while it is planned and on decrypt while it is read. The heap
69-
observer covers blob encrypt, decrypt and a refused shape, and pins as a
70+
the pending is returned and with no key requested; a context no request
71+
can carry is refused before the value is encoded, as a scalar's is; the
72+
owned blob buffer is `Protected` while it is planned and on decrypt while
73+
it is read. The heap observer covers blob encrypt, decrypt and a refused
74+
shape, checks those paths for marked blocks leaked rather than freed (an
75+
opt-in `watched_for_leaks`, with its own negative control), and pins as a
7076
negative control the one stated limit: a derived `Deserialize` that built
7177
some fields and refuses a later one drops those fields unwiped, because no
7278
`T` existed to wipe.

0 commit comments

Comments
 (0)