Struct rsa_cortex_m4::padding::Pkcs1 [−][src]
PKCS #1 v1.5 padding.
Defined in RFC 2313 (= PKCS #1 v1.5), see also RFC 2437 (v2.0) and RFC 3447 (v2.1)
EM = 02 || PS || 00 || M, for encryption EM = 00 || 01 || PS || 00 || M, for signatures
"encoded message", where the padding string PS is at least 8 bytes, all non-zeros, and fills out the block.
Trait Implementations
impl<H: Default + Digest> Default for Pkcs1<H>
[src]
impl<H: Digest, const D: usize> EncryptionPadding<D> for Pkcs1<H>
[src]
fn pad(msg: &[u8], rng: impl CryptoRng + RngCore) -> Result<Long<D>>
[src]
fn unpad(padded: &Long<D>) -> Result<Unpadded<D>>
[src]
impl<H: Asn1Digest, const D: usize> SignaturePadding<D> for Pkcs1<H>
[src]
Auto Trait Implementations
impl<H> Send for Pkcs1<H> where
H: Send,
[src]
H: Send,
impl<H> Sync for Pkcs1<H> where
H: Sync,
[src]
H: Sync,
impl<H> Unpin for Pkcs1<H> where
H: Unpin,
[src]
H: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,