Trait crypt_guard::CryptographicFunctions
source · pub trait CryptographicFunctions {
// Required methods
fn encrypt(
&mut self,
public_key: Vec<u8>
) -> Result<(Vec<u8>, Vec<u8>), CryptError>;
fn decrypt(
&mut self,
secret_key: Vec<u8>,
ciphertext: Vec<u8>
) -> Result<Vec<u8>, CryptError>;
}
Expand description
Defines the functionalities for cryptographic operations, providing abstract methods for encryption and decryption that need to be implemented by specific cryptographic algorithms.