Expand description
Tor-specific cryptographic primitives, operations, and conversion functions.
Structs§
- Ed25519
Private Key - An ed25519 private key.
- Ed25519
Public Key - An ed25519 public key.
- Ed25519
Signature - An ed25519 cryptographic signature
- V3Onion
Service Id - A v3 onion-service id
- X25519
Private Key - An x25519 private key
- X25519
Public Key - An x25519 public key
Enums§
- Error
- Represents various errors that can occur in the tor_crypto module.
- SignBit
- An enum representing a single bit
Constants§
- ED25519_
PRIVATE_ KEYBLOB_ BASE64_ LENGTH - The number of bytes needed to store base64 encoded ed25519 private key as an ASCII c-string (not including null-terminator)
- ED25519_
PRIVATE_ KEY_ KEYBLOB_ HEADER_ LENGTH - The number of bytes needed to store the keyblob header
- ED25519_
PRIVATE_ KEY_ KEYBLOB_ LENGTH - The number of bytes needed to store ed25519 private keyblob as an ASCII c-string (not including a null terminator)
- ED25519_
PRIVATE_ KEY_ KEYBLOB_ SIZE - The number of bytes needed to store ed25519 private keyblob as an ASCII c-string (including a null terminator)
- ED25519_
PRIVATE_ KEY_ SIZE - The number of bytes in an ed25519 secret key cbindgen:ignore
- ED25519_
PUBLIC_ KEY_ SIZE - The number of bytes in an ed25519 public key cbindgen:ignore
- ED25519_
SIGNATURE_ SIZE - The number of bytes in an ed25519 signature cbindgen:ignore
- V3_
ONION_ SERVICE_ ID_ STRING_ LENGTH - The number of bytes needed to store onion service id as an ASCII c-string (not including null-terminator)
- V3_
ONION_ SERVICE_ ID_ STRING_ SIZE - The number of bytes needed to store onion service id as an ASCII c-string (including null-terminator)
- X25519_
PRIVATE_ KEY_ BASE64_ LENGTH - The number of bytes needed to store base64 encoded x25519 private key as an ASCII c-string (not including null-terminator)
- X25519_
PRIVATE_ KEY_ BASE64_ SIZE - The number of bytes needed to store base64 encoded x25519 private key as an ASCII c-string (including a null terminator)
- X25519_
PRIVATE_ KEY_ SIZE - The number of bytes in an x25519 private key cbindgen:ignore
- X25519_
PUBLIC_ KEY_ BASE32_ LENGTH - The number of bytes needed to store base32 encoded x25519 public key as an ASCII c-string (not including null-terminator)
- X25519_
PUBLIC_ KEY_ BASE32_ SIZE - The number of bytes needed to store base32 encoded x25519 public key as an ASCII c-string (including a null terminator)
- X25519_
PUBLIC_ KEY_ SIZE - The number of bytes in an x25519 publickey cbindgen:ignore