pakery-core 0.1.0

Shared utilities for PAKE protocol implementations
Documentation

pakery-core

crates.io docs.rs License: MIT OR Apache-2.0

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

[dependencies]
pakery-core = "0.1"
use pakery_core::crypto::{Hash, Kdf, Mac, CpaceGroup, DhGroup, Oprf, Ksf};
use pakery_core::{PakeError, SharedSecret};

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.