pub struct Pkcs1V1_5 {
pub block_type: BlockType,
pub max_data_length: usize,
pub total_length: usize,
/* private fields */
}Fields§
§block_type: BlockType§max_data_length: usizemax bytes which can be encoded per chunk
total_length: usizetotal length of the encoded chunk before conversion to an int
Implementations§
Source§impl Pkcs1V1_5
impl Pkcs1V1_5
pub fn new( block_type: BlockType, modulus_length: usize, max_data_length: usize, seed: u64, ) -> Self
pub fn strip_padding(bytes: &[u8]) -> Result<Vec<u8>, Error>
pub fn decode_type01(&self, bytes: &[u8]) -> Result<Vec<u8>, Error>
pub fn decode_type02(&self, bytes: &[u8]) -> Result<Vec<u8>, Error>
Trait Implementations§
impl StructuralPartialEq for Pkcs1V1_5
Auto Trait Implementations§
impl Freeze for Pkcs1V1_5
impl RefUnwindSafe for Pkcs1V1_5
impl Send for Pkcs1V1_5
impl Sync for Pkcs1V1_5
impl Unpin for Pkcs1V1_5
impl UnwindSafe for Pkcs1V1_5
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