Struct bearssl::br_rsa_private_key
[−]
[src]
#[repr(C)]pub struct br_rsa_private_key { pub n_bitlen: u32, pub p: *mut c_uchar, pub plen: usize, pub q: *mut c_uchar, pub qlen: usize, pub dp: *mut c_uchar, pub dplen: usize, pub dq: *mut c_uchar, pub dqlen: usize, pub iq: *mut c_uchar, pub iqlen: usize, }
\brief RSA private key.
The structure references the primvate factors, reduced private
exponents, and CRT coefficient. It also contains the bit length of
the modulus. The big integers use unsigned big-endian representation;
extra leading bytes of value 0 are allowed. However, the modulus bit
length (n_bitlen
) MUST be exact.
Fields
n_bitlen: u32
\brief Modulus bit length (in bits, exact value).
p: *mut c_uchar
\brief First prime factor.
plen: usize
\brief First prime factor length (in bytes).
q: *mut c_uchar
\brief Second prime factor.
qlen: usize
\brief Second prime factor length (in bytes).
dp: *mut c_uchar
\brief First reduced private exponent.
dplen: usize
\brief First reduced private exponent length (in bytes).
dq: *mut c_uchar
\brief Second reduced private exponent.
dqlen: usize
\brief Second reduced private exponent length (in bytes).
iq: *mut c_uchar
\brief CRT coefficient.
iqlen: usize
\brief CRT coefficient length (in bytes).
Trait Implementations
impl Debug for br_rsa_private_key
[src]
impl Copy for br_rsa_private_key
[src]
impl Clone for br_rsa_private_key
[src]
fn clone(&self) -> br_rsa_private_key
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more