From 9200a1c204e1bccb0004457123d1c9c9b63f787c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 3 Feb 2023 11:34:44 +0100 Subject: [PATCH] Add RSA key kinds --- src/key.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/key.rs b/src/key.rs index 64910971a7f..5d0906548d8 100644 --- a/src/key.rs +++ b/src/key.rs @@ -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, @@ -150,6 +153,9 @@ impl Kind { Kind::Ed255 => 4, Kind::P256 => 5, Kind::X255 => 6, + Kind::Rsa2048 => 7, + Kind::Rsa3072 => 8, + Kind::Rsa4096 => 9, } }