pub enum CertType {
Link = 1,
Identity = 2,
Authenticate = 3,
Ed25519Signing = 4,
LinkCert = 5,
Ed25519Authenticate = 6,
Ed25519Identity = 7,
HsV3DescSigning = 8,
HsV3IntroAuth = 9,
NtorOnionKey = 10,
HsV3NtorEnc = 11,
Unknown = 12,
}Expand description
Certificate type identifier.
Identifies the purpose of a certificate in the Tor protocol. Different certificate types are used for different authentication and signing purposes.
For more information, see:
§Variants
| Variant | Value | Description |
|---|---|---|
Link | 1 | Link key certificate (RSA1024 identity) |
Identity | 2 | RSA1024 identity certificate |
Authenticate | 3 | RSA1024 AUTHENTICATE cell link certificate |
Ed25519Signing | 4 | Ed25519 signing key (signed with identity) |
LinkCert | 5 | TLS link cert (signed with Ed25519 signing) |
Ed25519Authenticate | 6 | Ed25519 AUTHENTICATE cell key |
Ed25519Identity | 7 | Ed25519 identity (signed with RSA identity) |
HsV3DescSigning | 8 | HS v3 short-term descriptor signing key |
HsV3IntroAuth | 9 | HS v3 introduction point authentication key |
NtorOnionKey | 10 | ntor onion key cross-certifying Ed25519 |
HsV3NtorEnc | 11 | HS v3 ntor-extra encryption key |
Unknown | - | Unrecognized certificate type |
§Example
use stem_rs::client::datatype::CertType;
let (cert_type, raw) = CertType::get(4);
assert_eq!(cert_type, CertType::Ed25519Signing);
assert_eq!(format!("{}", cert_type), "ED25519_SIGNING");Variants§
Link = 1
Link key certificate certified by RSA1024 identity.
Identity = 2
RSA1024 identity certificate.
Authenticate = 3
RSA1024 AUTHENTICATE cell link certificate.
Ed25519Signing = 4
Ed25519 signing key, signed with identity key.
LinkCert = 5
TLS link certificate, signed with Ed25519 signing key.
Ed25519Authenticate = 6
Ed25519 AUTHENTICATE cell key, signed with Ed25519 signing key.
Ed25519Identity = 7
Ed25519 identity, signed with RSA identity.
HsV3DescSigning = 8
Hidden service v3 short-term descriptor signing key.
HsV3IntroAuth = 9
Hidden service v3 introduction point authentication key.
NtorOnionKey = 10
ntor onion key cross-certifying Ed25519 identity key.
HsV3NtorEnc = 11
Hidden service v3 ntor-extra encryption key.
Unknown = 12
Unrecognized certificate type.