RSA icon indicating copy to clipboard operation
RSA copied to clipboard

`decrypt_session_key` does not exist but is referred

Open pinkforest opened this issue 4 months ago • 0 comments

/// Decrypts a plaintext using RSA and the padding scheme from PKCS#1 v1.5.                                          
///                                                                                                                  
/// If an `rng` is passed, it uses RSA blinding to avoid timing side-channel attacks.                                
///                                                                                                                  
/// Note that whether this function returns an error or not discloses secret                                         
/// information. If an attacker can cause this function to run repeatedly and                                        
/// learn whether each instance returned an error then they can decrypt and                                          
/// forge signatures as if they had the private key. See                                                             
/// `decrypt_session_key` for a way of solving this problem.  

It's in bunch of places

algorithms/pkcs1v15.rs:/// `decrypt_session_key` for a way of solving this problem.
algorithms/oaep.rs:/// See `decrypt_session_key` for a way of solving this problem.
algorithms/oaep.rs:/// See `decrypt_session_key` for a way of solving this problem.
oaep.rs:/// See `decrypt_session_key` for a way of solving this problem.
oaep.rs:/// See `decrypt_session_key` for a way of solving this problem.
pkcs1v15.rs:/// `decrypt_session_key` for a way of solving this problem.

Might want to clarify this.

pinkforest avatar Aug 22 '25 11:08 pinkforest