Skip to content

Commit 9200a1c

Browse files
Add RSA key kinds
1 parent 967d476 commit 9200a1c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/key.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ pub enum Kind {
6363
Symmetric(usize),
6464
/// 32B symmetric key + nonce, the parameter is the length of the nonce in bytes
6565
Symmetric32Nonce(usize),
66+
Rsa2048,
67+
Rsa3072,
68+
Rsa4096,
6669
Ed255,
6770
P256,
6871
X255,
@@ -150,6 +153,9 @@ impl Kind {
150153
Kind::Ed255 => 4,
151154
Kind::P256 => 5,
152155
Kind::X255 => 6,
156+
Kind::Rsa2048 => 7,
157+
Kind::Rsa3072 => 8,
158+
Kind::Rsa4096 => 9,
153159
}
154160
}
155161

0 commit comments

Comments
 (0)