Skip to main content

Crate phoenix_crypto

Crate phoenix_crypto 

Source

Structs§

BlindIndexKey
A dedicated HMAC key for deterministic blind indexes.
BlindIndexer
Versioned HMAC-SHA256 blind indexes with bounded key rotation.
Ciphertext
Versioned AES-256-GCM output. Authentication data is supplied separately.
EncryptionKey
A 256-bit AES-GCM key identified for rotation.
Encryptor
AES-256-GCM key ring with one active encryption key and rotated decryption keys.
FileTokenStore
Single-process durable JSON store using atomic same-directory replacement.
Jwt
Verified JWT claims extracted by JwtAuth.
JwtAuth
Bearer middleware that verifies a JWT and inserts typed claims into request extensions.
JwtClaims
Standard JWT claims plus an application-defined payload.
JwtConfig
JwtKey
A symmetric JWT key identified by kid for safe rotation.
JwtManager
HS256 JWT issuer and verifier with explicit key rotation.
JwtRejection
MemoryTokenStore
Password
Argon2id password hashing and verification.
RefreshRecord
Only hashes of opaque refresh tokens are persisted.
StatefulJwtAuth
Stateful Bearer authentication that rejects revoked access/family IDs.
TokenPair
Access/refresh credentials. Debug output never includes either token.
TokenService
Issues rotating refresh families and checks stateful access revocation.

Enums§

BlindIndexError
EncryptionError
JwtError
PasswordError
RotateRefresh
TokenError
TokenStoreError

Constants§

MAX_BLIND_INDEX_KEYS
Maximum number of active and legacy keys in one blind-index key ring.

Traits§

TokenStore
Atomic persistence contract required by refresh rotation and access revocation.