pub trait CASRSAEncryption {
// Required methods
fn generate_rsa_keys(key_size: usize) -> RSAKeyPairResult;
fn sign(private_key: String, hash: Vec<u8>) -> Vec<u8> ⓘ;
fn verify(public_key: String, hash: Vec<u8>, signed_text: Vec<u8>) -> bool;
}Required Methods§
fn generate_rsa_keys(key_size: usize) -> RSAKeyPairResult
fn sign(private_key: String, hash: Vec<u8>) -> Vec<u8> ⓘ
fn verify(public_key: String, hash: Vec<u8>, signed_text: Vec<u8>) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.