pub enum Encrypt {
RsaEsOaep(RsaEsOaep),
}
Variants§
Implementations§
source§impl Encrypt
impl Encrypt
pub const RSA_OAEP_2048_SHA_256: Encrypt = _
pub const RSA_OAEP_3072_SHA_256: Encrypt = _
Trait Implementations§
source§impl<'de> Deserialize<'de> for Encrypt
impl<'de> Deserialize<'de> for Encrypt
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Encrypt> for Encrypt
impl PartialEq<Encrypt> for Encrypt
source§impl Scheme for Encrypt
impl Scheme for Encrypt
type Kind = Encrypt
fn as_enum(self) -> SchemeKind
fn hash_kind(&self) -> HashKind
fn padding(&self) -> Option<OpensslPadding>
fn public_from_der(self, der: &[u8]) -> Result<PKey<Public>>
fn private_from_der(self, der: &[u8]) -> Result<PKey<Private>>
fn generate(self) -> Result<AsymKeyPair<Self::Kind>>
fn key_len(self) -> BitLen
fn message_digest(&self) -> MessageDigest
impl Copy for Encrypt
impl Eq for Encrypt
impl StructuralEq for Encrypt
impl StructuralPartialEq for Encrypt
Auto Trait Implementations§
impl RefUnwindSafe for Encrypt
impl Send for Encrypt
impl Sync for Encrypt
impl Unpin for Encrypt
impl UnwindSafe for Encrypt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more