Skip to content

Commit 28842d7

Browse files
committed
Fixes
1 parent eb623c2 commit 28842d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/hp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ experimental_api!(SSL_HkdfExpandLabelWithMech(
4040
));
4141

4242
/// Creates an AES-ECB `PK11Context` from a `SymKey`.
43-
fn make_aes_ctx(key: &SymKey) -> Res<Context> {
4443
fn make_aes_ctx(key: &SymKey) -> Res<Context> {
4544
Context::from_ptr(unsafe {
4645
PK11_CreateContextBySymKey(
@@ -57,9 +56,11 @@ pub enum Key {
5756
/// AES-ECB header-protection context. `PK11_CloneContext` is not supported for
5857
/// AES-ECB, so we store the `SymKey` and recreate `ctx` lazily: `mask` initialises
5958
/// it on first use when `ctx` is `None`.
59+
#[non_exhaustive]
6060
Aes { ctx: Option<Context>, key: SymKey },
6161
/// The `ChaCha20` mask invokes `PK11_Encrypt` on each call because the counter
6262
/// and nonce change per invocation.
63+
#[non_exhaustive]
6364
Chacha(SymKey),
6465
}
6566

0 commit comments

Comments
 (0)