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.