pub struct RsaKeypair {
pub public: RsaPublicKey,
pub private: RsaPrivateKey,
}
Available on crate feature
alloc
only.Expand description
RSA private/public keypair.
Fields§
§public: RsaPublicKey
Public key.
private: RsaPrivateKey
Private key.
Trait Implementations§
Source§impl Clone for RsaKeypair
impl Clone for RsaKeypair
Source§fn clone(&self) -> RsaKeypair
fn clone(&self) -> RsaKeypair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ConstantTimeEq for RsaKeypair
impl ConstantTimeEq for RsaKeypair
Source§impl Debug for RsaKeypair
impl Debug for RsaKeypair
Source§impl Decode for RsaKeypair
impl Decode for RsaKeypair
Source§impl Encode for RsaKeypair
impl Encode for RsaKeypair
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.Source§impl From<&RsaKeypair> for RsaPublicKey
impl From<&RsaKeypair> for RsaPublicKey
Source§fn from(keypair: &RsaKeypair) -> RsaPublicKey
fn from(keypair: &RsaKeypair) -> RsaPublicKey
Converts to this type from the input type.
Source§impl From<RsaKeypair> for KeypairData
impl From<RsaKeypair> for KeypairData
Source§fn from(keypair: RsaKeypair) -> KeypairData
fn from(keypair: RsaKeypair) -> KeypairData
Converts to this type from the input type.
Source§impl From<RsaKeypair> for PrivateKey
impl From<RsaKeypair> for PrivateKey
Source§fn from(keypair: RsaKeypair) -> PrivateKey
fn from(keypair: RsaKeypair) -> PrivateKey
Converts to this type from the input type.
Source§impl From<RsaKeypair> for RsaPublicKey
impl From<RsaKeypair> for RsaPublicKey
Source§fn from(keypair: RsaKeypair) -> RsaPublicKey
fn from(keypair: RsaKeypair) -> RsaPublicKey
Converts to this type from the input type.
Source§impl PartialEq for RsaKeypair
impl PartialEq for RsaKeypair
impl Eq for RsaKeypair
Auto Trait Implementations§
impl Freeze for RsaKeypair
impl RefUnwindSafe for RsaKeypair
impl Send for RsaKeypair
impl Sync for RsaKeypair
impl Unpin for RsaKeypair
impl UnwindSafe for RsaKeypair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes