[−][src]Struct picky_asn1_x509::private_key_info::RSAPrivateKey
PKCS #1: RSA Cryptography Specifications Version 2.2
Section A.1.2
An RSA private key should be represented with the ASN.1 type RSAPrivateKey:
RSAPrivateKey ::= SEQUENCE {
version Version,
modulus INTEGER, -- n
publicExponent INTEGER, -- e
privateExponent INTEGER, -- d
prime1 INTEGER, -- p
prime2 INTEGER, -- q
exponent1 INTEGER, -- d mod (p-1)
exponent2 INTEGER, -- d mod (q-1)
coefficient INTEGER, -- (inverse of q) mod p
otherPrimeInfos OtherPrimeInfos OPTIONAL
}
Fields
version: IntegerAsn1
modulus: IntegerAsn1
public_exponent: IntegerAsn1
private_exponent: IntegerAsn1
prime_1: IntegerAsn1
prime_2: IntegerAsn1
exponent_1: IntegerAsn1
exponent_2: IntegerAsn1
coefficient: IntegerAsn1
Implementations
impl RSAPrivateKey
[src]
pub fn modulus(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn public_exponent(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn private_exponent(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn prime_1(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn prime_2(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn primes(&self) -> (&IntegerAsn1, &IntegerAsn1)
[src]
👎 Deprecated:
field is now public
pub fn exponent_1(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn exponent_2(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn exponents(&self) -> (&IntegerAsn1, &IntegerAsn1)
[src]
👎 Deprecated:
field is now public
pub fn coefficient(&self) -> &IntegerAsn1
[src]
👎 Deprecated:
field is now public
pub fn into_public_components(self) -> (IntegerAsn1, IntegerAsn1)
[src]
👎 Deprecated:
field is now public
Trait Implementations
impl Clone for RSAPrivateKey
[src]
pub fn clone(&self) -> RSAPrivateKey
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RSAPrivateKey
[src]
impl<'de> Deserialize<'de> for RSAPrivateKey
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<RSAPrivateKey> for RSAPrivateKey
[src]
pub fn eq(&self, other: &RSAPrivateKey) -> bool
[src]
pub fn ne(&self, other: &RSAPrivateKey) -> bool
[src]
impl Serialize for RSAPrivateKey
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for RSAPrivateKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for RSAPrivateKey
impl Send for RSAPrivateKey
impl Sync for RSAPrivateKey
impl Unpin for RSAPrivateKey
impl UnwindSafe for RSAPrivateKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,