pub type RsaPublicKeyOwned = RsaPublicKey<Uint>;Expand description
RsaPublicKey with allocating Uint INTEGERs.
Owns its integer data. Use DecodeRsaPublicKey and EncodeRsaPublicKey
for DER decoding and encoding, or PEM when the pem feature is enabled.
Aliased Type§
pub struct RsaPublicKeyOwned {
pub modulus: Uint,
pub public_exponent: Uint,
}Fields§
§modulus: Uintn: RSA modulus
public_exponent: Uinte: RSA public exponent
Trait Implementations§
Source§impl DecodeRsaPublicKey for RsaPublicKeyOwned
Available on crate feature alloc only.
impl DecodeRsaPublicKey for RsaPublicKeyOwned
Available on crate feature
alloc only.Source§fn from_pkcs1_der(bytes: &[u8]) -> Result<Self>
fn from_pkcs1_der(bytes: &[u8]) -> Result<Self>
Deserialize object from ASN.1 DER-encoded
RsaPublicKey
(binary format).Source§fn from_pkcs1_pem(s: &str) -> Result<Self>
fn from_pkcs1_pem(s: &str) -> Result<Self>
Deserialize PEM-encoded
RsaPublicKey. Read moreSource§fn read_pkcs1_der_file(path: impl AsRef<Path>) -> Result<Self>
fn read_pkcs1_der_file(path: impl AsRef<Path>) -> Result<Self>
Load
RsaPublicKey from an ASN.1 DER-encoded file on the local
filesystem (binary format).Source§fn read_pkcs1_pem_file(path: impl AsRef<Path>) -> Result<Self>
fn read_pkcs1_pem_file(path: impl AsRef<Path>) -> Result<Self>
Load
RsaPublicKey from a PEM-encoded file on the local filesystem.