pakery-core
Shared traits and types for the pakery PAKE workspace.
This crate defines the cryptographic trait abstractions that all protocol crates depend on. Concrete implementations are provided by pakery-crypto.
Traits
| Trait | Description |
|---|---|
Hash |
Cryptographic hash function |
Kdf |
Key derivation function |
Mac |
Message authentication code |
CpaceGroup |
Group operations for CPace |
DhGroup |
Diffie-Hellman group operations |
Oprf |
Oblivious pseudorandom function |
Ksf |
Key-stretching function |
Usage
[]
= "0.1"
use ;
use ;
Features
| Feature | Description |
|---|---|
std (default) |
Enable std support |
getrandom |
Enable OS-backed RNG via rand_core/getrandom |
Security
#![forbid(unsafe_code)]- Constant-time comparisons via
subtle - Secret values zeroized on drop via
zeroize
MSRV
The minimum supported Rust version is 1.79.
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.