Struct recrypt::api::PublicKey [−]
pub struct PublicKey { /* fields omitted */ }
Implementations
impl PublicKey
impl PublicKey
pub const ENCODED_SIZE_BYTES: usize
pub fn augment(&self, other: &PublicKey) -> Result<PublicKey, RecryptErr>
pub fn augment(&self, other: &PublicKey) -> Result<PublicKey, RecryptErr>
Augment the PublicKey so that messages encrypted to that key cannot be decrypted by this PublicKey’s PrivateKey.
This can be useful if you want to force delegation via transform. See TransformKey.augment
.
Note that by augmenting a PublicKey you’re committing to augmenting all TransformKeys
that are created from
this keypair. Otherwise the transformed data will not be able to be correctly decrypted.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
Mutably borrows from an owned value. Read more