bitwarden_crypto::keys::asymmetric_crypto_key

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§