pub struct PublicKey {
pub modulus: Vec<u8>,
pub exponent: Vec<u8>,
}Expand description
The RSA public key parsed from a GENERATE / READ PUBLIC KEY response.
The card returns a 7F49 constructed object; for an RSA key it carries the
modulus n (tag 81) and the public exponent e (tag 82). Both are kept
as raw big-endian bytes (a 2048-bit modulus is 256 bytes — note the card may
or may not include a leading zero byte; we surface the value verbatim).
Fields§
§modulus: Vec<u8>RSA modulus n (81), big-endian.
exponent: Vec<u8>RSA public exponent e (82), big-endian (commonly 01 00 01).
Trait Implementations§
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin for PublicKey
impl UnwindSafe for PublicKey
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