Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Katharina Fey
keybob
Commits
2e3063ea
Verified
Commit
2e3063ea
authored
Sep 15, 2018
by
Katharina Fey
🏴
Browse files
`Key` is now also Clone
parent
8403e720
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
2e3063ea
...
...
@@ -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
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment