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_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§fn eq(&self, other: &AlgorithmIdentifier) -> bool
fn eq(&self, other: &AlgorithmIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)