Struct tor_cert::rsa::RsaCrosscert
source · pub struct RsaCrosscert { /* private fields */ }
Expand description
A RSA->Ed25519 cross-certificate
This kind of certificate is used in the channel handshake to prove that the Ed25519 identity key speaks on behalf of the RSA identity key.
(There is no converse type for certifying Ed25519 identity keys with RSA identity keys, since the RSA identity keys are too weak to trust.)
Implementations§
source§impl RsaCrosscert
impl RsaCrosscert
sourcepub fn expiry(&self) -> SystemTime
pub fn expiry(&self) -> SystemTime
Return the time at which this certificate becomes expired
sourcepub fn subject_key_matches(&self, other: &Ed25519Identity) -> bool
pub fn subject_key_matches(&self, other: &Ed25519Identity) -> bool
Return true if the subject key in this certificate matches other
sourcepub fn decode(bytes: &[u8]) -> Result<UncheckedRsaCrosscert>
pub fn decode(bytes: &[u8]) -> Result<UncheckedRsaCrosscert>
Decode a slice of bytes into an RSA crosscert.
Auto Trait Implementations§
impl RefUnwindSafe for RsaCrosscert
impl Send for RsaCrosscert
impl Sync for RsaCrosscert
impl Unpin for RsaCrosscert
impl UnwindSafe for RsaCrosscert
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