bitwarden_crypto

Trait AsymmetricEncryptable

Source
pub trait AsymmetricEncryptable {
    // Required method
    fn to_public_key(&self) -> &RsaPublicKey;
}
Expand description

Trait to allow both AsymmetricCryptoKey and AsymmetricPublicCryptoKey to be used to encrypt AsymmetricEncString.

Required Methods§

Source

fn to_public_key(&self) -> &RsaPublicKey

Implementors§