Verified Commit 2e3063ea authored by Katharina Fey's avatar Katharina Fey 🏴
Browse files

`Key` is now also Clone

parent 8403e720
......@@ -69,11 +69,13 @@ pub enum KeyType {
///
/// Also implements `serde::{Serialize, Deserialize}` via a custom
/// serialiser which allows easy encryption of the key itself.
#[derive(Clone)]
pub struct Key {
tt: KeyType,
key: KeyBuf,
}
#[derive(Clone, Copy)]
union KeyBuf {
_32: [u8; 32],
_64: [u8; 64],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment