pub struct RsaAttributes {
pub n_bits: u16,
pub e_bits: u16,
pub format: RsaImportFormat,
}Expand description
RSA key attributes parsed from an algorithm-attributes object (C1/C2/C3).
Fields§
§n_bits: u16Modulus size in bits (e.g. 2048).
e_bits: u16Public-exponent field size in bits — fixes the byte length the card
expects for e on import ((e_bits + 7) / 8, right-justified).
format: RsaImportFormatThe import format the card accepts.
Trait Implementations§
Source§impl Clone for RsaAttributes
impl Clone for RsaAttributes
Source§fn clone(&self) -> RsaAttributes
fn clone(&self) -> RsaAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RsaAttributes
Source§impl Debug for RsaAttributes
impl Debug for RsaAttributes
impl Eq for RsaAttributes
Source§impl PartialEq for RsaAttributes
impl PartialEq for RsaAttributes
Source§fn eq(&self, other: &RsaAttributes) -> bool
fn eq(&self, other: &RsaAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RsaAttributes
Auto Trait Implementations§
impl Freeze for RsaAttributes
impl RefUnwindSafe for RsaAttributes
impl Send for RsaAttributes
impl Sync for RsaAttributes
impl Unpin for RsaAttributes
impl UnsafeUnpin for RsaAttributes
impl UnwindSafe for RsaAttributes
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