pub struct CertType(_);
Expand description
Recognized values for Tor’s certificate type field.
In the names used here, “X_V_Y” means “key X verifying key Y”, whereas “X_CC_Y” means “key X cross-certifying key Y”. In both cases, X is the key that is doing the signing, and Y is the key or object that is getting signed.
Not every one of these types is valid for an Ed25519 certificate. Some are for X.509 certs in a CERTS cell; some are for RSA->Ed crosscerts in a CERTS cell.
Implementations
sourceimpl CertType
impl CertType
sourcepub const TLS_LINK_X509: CertType
pub const TLS_LINK_X509: CertType
TLS link key, signed with RSA identity. X.509 format. (Obsolete)
sourcepub const RSA_ID_X509: CertType
pub const RSA_ID_X509: CertType
Self-signed RSA identity certificate. X.509 format. (Legacy)
sourcepub const LINK_AUTH_X509: CertType
pub const LINK_AUTH_X509: CertType
RSA lnk authentication key signed with RSA identity key. X.509 format. (Obsolete)
sourcepub const IDENTITY_V_SIGNING: CertType
pub const IDENTITY_V_SIGNING: CertType
Identity verifying a signing key, directly.
sourcepub const SIGNING_V_TLS_CERT: CertType
pub const SIGNING_V_TLS_CERT: CertType
Signing key verifying a TLS certificate by digest.
sourcepub const SIGNING_V_LINK_AUTH: CertType
pub const SIGNING_V_LINK_AUTH: CertType
Signing key verifying a link authentication key.
sourcepub const RSA_ID_V_IDENTITY: CertType
pub const RSA_ID_V_IDENTITY: CertType
RSA identity key certifying an Ed25519 identity key. RSA crosscert format. (Legacy)
sourcepub const HS_BLINDED_ID_V_SIGNING: CertType
pub const HS_BLINDED_ID_V_SIGNING: CertType
For onion services: short-term signing key authenticated with blinded service identity.
sourcepub const HS_IP_V_SIGNING: CertType
pub const HS_IP_V_SIGNING: CertType
For onion services: to be documented.
sourcepub const NTOR_CC_IDENTITY: CertType
pub const NTOR_CC_IDENTITY: CertType
An ntor key converted to a ed25519 key, cross-certifying an identity key.
sourcepub const HS_IP_CC_SIGNING: CertType
pub const HS_IP_CC_SIGNING: CertType
For onion services: to be documented.
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations
impl Copy for CertType
impl Eq for CertType
impl StructuralEq for CertType
impl StructuralPartialEq for CertType
Auto Trait Implementations
impl RefUnwindSafe for CertType
impl Send for CertType
impl Sync for CertType
impl Unpin for CertType
impl UnwindSafe for CertType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more