pub struct AlgorithmIdentifier { /* private fields */ }
Implementations§
Source§impl AlgorithmIdentifier
impl AlgorithmIdentifier
pub fn oid(&self) -> &ObjectIdentifier
pub fn oid_asn1(&self) -> &ObjectIdentifierAsn1
pub fn parameters(&self) -> &AlgorithmIdentifierParameters
pub fn is_a(&self, algorithm: ObjectIdentifier) -> bool
pub fn is_one_of( &self, algorithms: impl IntoIterator<Item = ObjectIdentifier>, ) -> bool
pub fn new_md5_with_rsa_encryption() -> Self
pub fn new_sha1_with_rsa_encryption() -> Self
pub fn new_sha1() -> Self
pub fn new_sha224_with_rsa_encryption() -> Self
pub fn new_sha256_with_rsa_encryption() -> Self
pub fn new_sha384_with_rsa_encryption() -> Self
pub fn new_sha512_with_rsa_encryption() -> Self
pub fn new_sha3_384_with_rsa_encryption() -> Self
pub fn new_sha3_512_with_rsa_encryption() -> Self
pub fn new_rsassa_pss(parameters: RsassaPssParams) -> Self
pub fn new_rsa_encryption() -> Self
pub fn new_rsa_encryption_with_sha( variant: ShaVariant, ) -> Result<Self, UnsupportedAlgorithmError>
pub fn new_dsa_with_sha1() -> Self
pub fn new_ecdsa_with_sha512() -> Self
pub fn new_ecdsa_with_sha384() -> Self
pub fn new_ecdsa_with_sha256() -> Self
pub fn new_elliptic_curve(ec_params: EcParameters) -> Self
pub fn new_ed25519() -> Self
pub fn new_x25519() -> Self
pub fn new_ed448() -> Self
pub fn new_x448() -> Self
pub fn new_aes128(mode: AesMode, params: AesParameters) -> Self
pub fn new_aes192(mode: AesMode, params: AesParameters) -> Self
pub fn new_aes256(mode: AesMode, params: AesParameters) -> Self
pub fn new_aes256_empty(mode: AesMode) -> Self
pub fn new_sha(variant: ShaVariant) -> Self
Trait Implementations§
Source§impl Clone for AlgorithmIdentifier
impl Clone for AlgorithmIdentifier
Source§fn clone(&self) -> AlgorithmIdentifier
fn clone(&self) -> AlgorithmIdentifier
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AlgorithmIdentifier
impl Debug for AlgorithmIdentifier
Source§impl<'de> Deserialize<'de> for AlgorithmIdentifier
impl<'de> Deserialize<'de> for AlgorithmIdentifier
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AlgorithmIdentifier
impl PartialEq for AlgorithmIdentifier
Source§impl Serialize for AlgorithmIdentifier
impl Serialize for AlgorithmIdentifier
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AlgorithmIdentifier
impl StructuralPartialEq for AlgorithmIdentifier
Auto Trait Implementations§
impl Freeze for AlgorithmIdentifier
impl RefUnwindSafe for AlgorithmIdentifier
impl Send for AlgorithmIdentifier
impl Sync for AlgorithmIdentifier
impl Unpin for AlgorithmIdentifier
impl UnwindSafe for AlgorithmIdentifier
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