pub struct RsaOaepParams<'a> {
pub hash: AlgorithmIdentifierRef<'a>,
pub mask_gen: AlgorithmIdentifier<AlgorithmIdentifierRef<'a>>,
pub p_source: AlgorithmIdentifierRef<'a>,
}
Expand description
PKCS#1 RSAES-OAEP parameters as defined in RFC 8017 Appendix 2.1
ASN.1 structure containing a serialized RSAES-OAEP parameters:
RSAES-OAEP-params ::= SEQUENCE {
hashAlgorithm [0] HashAlgorithm DEFAULT sha1,
maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1,
pSourceAlgorithm [2] PSourceAlgorithm DEFAULT pSpecifiedEmpty
}
HashAlgorithm ::= AlgorithmIdentifier
MaskGenAlgorithm ::= AlgorithmIdentifier
PSourceAlgorithm ::= AlgorithmIdentifier
Fields§
§hash: AlgorithmIdentifierRef<'a>
Hash Algorithm
mask_gen: AlgorithmIdentifier<AlgorithmIdentifierRef<'a>>
Mask Generation Function (MGF)
p_source: AlgorithmIdentifierRef<'a>
The source (and possibly the value) of the label L
Implementations§
Source§impl<'a> RsaOaepParams<'a>
impl<'a> RsaOaepParams<'a>
Sourcepub fn new<D>() -> Selfwhere
D: AssociatedOid,
pub fn new<D>() -> Selfwhere
D: AssociatedOid,
Create new RsaPssParams for the provided digest and default (empty) label
Sourcepub fn new_with_label<D>(label: &'a impl AsRef<[u8]>) -> Selfwhere
D: AssociatedOid,
pub fn new_with_label<D>(label: &'a impl AsRef<[u8]>) -> Selfwhere
D: AssociatedOid,
Create new RsaPssParams for the provided digest and specified label
Trait Implementations§
Source§impl<'a> Clone for RsaOaepParams<'a>
impl<'a> Clone for RsaOaepParams<'a>
Source§fn clone(&self) -> RsaOaepParams<'a>
fn clone(&self) -> RsaOaepParams<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for RsaOaepParams<'a>
impl<'a> Debug for RsaOaepParams<'a>
Source§impl<'a> DecodeValue<'a> for RsaOaepParams<'a>
impl<'a> DecodeValue<'a> for RsaOaepParams<'a>
Source§impl<'a> Default for RsaOaepParams<'a>
impl<'a> Default for RsaOaepParams<'a>
Source§impl EncodeValue for RsaOaepParams<'_>
impl EncodeValue for RsaOaepParams<'_>
Source§impl<'a> PartialEq for RsaOaepParams<'a>
impl<'a> PartialEq for RsaOaepParams<'a>
Source§impl<'a> TryFrom<&'a [u8]> for RsaOaepParams<'a>
impl<'a> TryFrom<&'a [u8]> for RsaOaepParams<'a>
impl<'a> Eq for RsaOaepParams<'a>
impl<'a> Sequence<'a> for RsaOaepParams<'a>
impl<'a> StructuralPartialEq for RsaOaepParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for RsaOaepParams<'a>
impl<'a> RefUnwindSafe for RsaOaepParams<'a>
impl<'a> Send for RsaOaepParams<'a>
impl<'a> Sync for RsaOaepParams<'a>
impl<'a> Unpin for RsaOaepParams<'a>
impl<'a> UnwindSafe for RsaOaepParams<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 256 bytes