Struct picky::AlgorithmIdentifier [−][src]
pub struct AlgorithmIdentifier { /* fields omitted */ }
Implementations
impl AlgorithmIdentifier
[src]
impl AlgorithmIdentifier
[src]pub fn oid(&self) -> &ObjectIdentifier
[src]
pub fn parameters(&self) -> &AlgorithmIdentifierParameters
[src]
pub fn is_a(&self, algorithm: ObjectIdentifier) -> bool
[src]
pub fn new_sha1_with_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_sha224_with_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_sha256_with_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_sha384_with_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_sha512_with_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_sha3_384_with_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_sha3_512_with_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_rsa_encryption() -> AlgorithmIdentifier
[src]
pub fn new_rsa_encryption_with_sha(
variant: ShaVariant
) -> Result<AlgorithmIdentifier, UnsupportedAlgorithmError>
[src]
variant: ShaVariant
) -> Result<AlgorithmIdentifier, UnsupportedAlgorithmError>
pub fn new_ecdsa_with_sha384() -> AlgorithmIdentifier
[src]
pub fn new_ecdsa_with_sha256() -> AlgorithmIdentifier
[src]
pub fn new_elliptic_curve<P>(ec_params: P) -> AlgorithmIdentifier where
P: Into<EcParameters>,
[src]
P: Into<EcParameters>,
pub fn new_ed25519() -> AlgorithmIdentifier
[src]
pub fn new_aes128(mode: AesMode, params: AesParameters) -> AlgorithmIdentifier
[src]
pub fn new_aes192(mode: AesMode, params: AesParameters) -> AlgorithmIdentifier
[src]
pub fn new_aes256(mode: AesMode, params: AesParameters) -> AlgorithmIdentifier
[src]
pub fn new_sha(variant: ShaVariant) -> AlgorithmIdentifier
[src]
Trait Implementations
impl Clone for AlgorithmIdentifier
[src]
impl Clone for AlgorithmIdentifier
[src]pub fn clone(&self) -> AlgorithmIdentifier
[src]
pub fn clone(&self) -> AlgorithmIdentifier
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AlgorithmIdentifier
[src]
impl Debug for AlgorithmIdentifier
[src]impl<'de> Deserialize<'de> for AlgorithmIdentifier
[src]
impl<'de> Deserialize<'de> for AlgorithmIdentifier
[src]pub fn deserialize<D>(
deserializer: D
) -> Result<AlgorithmIdentifier, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<AlgorithmIdentifier, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl From<SignatureAlgorithm> for AlgorithmIdentifier
[src]
impl From<SignatureAlgorithm> for AlgorithmIdentifier
[src]fn from(ty: SignatureAlgorithm) -> Self
[src]
fn from(ty: SignatureAlgorithm) -> Self
[src]Performs the conversion.
impl PartialEq<AlgorithmIdentifier> for AlgorithmIdentifier
[src]
impl PartialEq<AlgorithmIdentifier> for AlgorithmIdentifier
[src]pub fn eq(&self, other: &AlgorithmIdentifier) -> bool
[src]
pub fn eq(&self, other: &AlgorithmIdentifier) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &AlgorithmIdentifier) -> bool
[src]
pub fn ne(&self, other: &AlgorithmIdentifier) -> bool
[src]This method tests for !=
.
impl Serialize for AlgorithmIdentifier
[src]
impl Serialize for AlgorithmIdentifier
[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl TryFrom<&'_ AlgorithmIdentifier> for SignatureAlgorithm
[src]
impl TryFrom<&'_ AlgorithmIdentifier> for SignatureAlgorithm
[src]type Error = SignatureError
type Error = SignatureError
The type returned in the event of a conversion error.
fn try_from(v: &AlgorithmIdentifier) -> Result<Self, Self::Error>
[src]
fn try_from(v: &AlgorithmIdentifier) -> Result<Self, Self::Error>
[src]Performs the conversion.
impl StructuralPartialEq for AlgorithmIdentifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for AlgorithmIdentifier
impl Send for AlgorithmIdentifier
impl Sync for AlgorithmIdentifier
impl Unpin for AlgorithmIdentifier
impl UnwindSafe for AlgorithmIdentifier
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,