pub struct Pkcs1v15Sign {
pub hash_len: Option<usize>,
pub prefix: Box<[u8]>,
}
Expand description
RSASSA-PKCS1-v1_5
: digital signatures using PKCS#1 v1.5 padding.
Fields§
§hash_len: Option<usize>
Length of hash to use.
prefix: Box<[u8]>
Prefix.
Implementations§
source§impl Pkcs1v15Sign
impl Pkcs1v15Sign
sourcepub fn new<D>() -> Selfwhere
D: Digest + AssociatedOid,
pub fn new<D>() -> Selfwhere
D: Digest + AssociatedOid,
Create new PKCS#1 v1.5 padding for the given digest.
The digest must have an AssociatedOid
. Make sure to enable the oid
feature of the relevant digest crate.
sourcepub fn new_unprefixed() -> Self
pub fn new_unprefixed() -> Self
Create new PKCS#1 v1.5 padding for computing an unprefixed signature.
This sets hash_len
to None
and uses an empty prefix
.
Trait Implementations§
source§impl Clone for Pkcs1v15Sign
impl Clone for Pkcs1v15Sign
source§fn clone(&self) -> Pkcs1v15Sign
fn clone(&self) -> Pkcs1v15Sign
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 Pkcs1v15Sign
impl Debug for Pkcs1v15Sign
source§impl PartialEq for Pkcs1v15Sign
impl PartialEq for Pkcs1v15Sign
source§impl SignatureScheme for Pkcs1v15Sign
impl SignatureScheme for Pkcs1v15Sign
impl Eq for Pkcs1v15Sign
impl StructuralPartialEq for Pkcs1v15Sign
Auto Trait Implementations§
impl Freeze for Pkcs1v15Sign
impl RefUnwindSafe for Pkcs1v15Sign
impl Send for Pkcs1v15Sign
impl Sync for Pkcs1v15Sign
impl Unpin for Pkcs1v15Sign
impl UnwindSafe for Pkcs1v15Sign
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)