Skip to content

Commit

Permalink
Add RSA key kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Feb 3, 2023
1 parent 967d476 commit 9200a1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ pub enum Kind {
Symmetric(usize),
/// 32B symmetric key + nonce, the parameter is the length of the nonce in bytes
Symmetric32Nonce(usize),
Rsa2048,
Rsa3072,
Rsa4096,
Ed255,
P256,
X255,
Expand Down Expand Up @@ -150,6 +153,9 @@ impl Kind {
Kind::Ed255 => 4,
Kind::P256 => 5,
Kind::X255 => 6,
Kind::Rsa2048 => 7,
Kind::Rsa3072 => 8,
Kind::Rsa4096 => 9,
}
}

Expand Down

0 comments on commit 9200a1c

Please sign in to comment.