Skip to main content

RsaPublicKey

Type Alias RsaPublicKey 

Source
pub type RsaPublicKey = PublicKey;
👎Deprecated since 0.10.0:

use rsa::PublicKey instead

Expand description

Deprecated alias for PublicKey.

Aliased Type§

pub struct RsaPublicKey {
    pub(crate) n: NonZero<BoxedUint>,
    pub(crate) e: BoxedUint,
    pub(crate) n_params: BoxedMontyParams,
}

Fields§

§n: NonZero<BoxedUint>

Modulus: product of prime numbers p and q

§e: BoxedUint

Public exponent: power to which a plaintext message is raised in order to encrypt it.

The recommended value is 0x10001 (65537).

§n_params: BoxedMontyParams

n represented as its Montgomery parameters.