File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 > {
4443fn 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
You can’t perform that action at this time.
0 commit comments