Skip to content

Commit

Permalink
Add raw RSA mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Feb 16, 2023
1 parent c62c1c8 commit 67b4ee9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,20 @@ pub enum Mechanism {
X255,
/// Used to serialize the output of a diffie-hellman
SharedSecret,

/// Exposes the Raw RSA encryption/decryption primitive. Be aware this is dangerous.
/// Not having any padding can allow an attacker to obtain plaintexts and forge signatures.
/// It should only be used if absolutely necessary.
Rsa2048Raw,
/// Exposes the Raw RSA encryption/decryption primitive. Be aware this is dangerous.
/// Not having any padding can allow an attacker to obtain plaintexts and forge signatures.
/// It should only be used if absolutely necessary.
Rsa3072Raw,
/// Exposes the Raw RSA encryption/decryption primitive. Be aware this is dangerous.
/// Not having any padding can allow an attacker to obtain plaintexts and forge signatures.
/// It should only be used if absolutely necessary.
Rsa4096Raw,

Rsa2048Pkcs1v15,
Rsa3072Pkcs1v15,
Rsa4096Pkcs1v15,
Expand Down

0 comments on commit 67b4ee9

Please sign in to comment.