Expand description
Cryptographic operations for Eidetica authentication
This module provides signature generation and verification for authenticating
entries in the database. The PublicKey and PrivateKey enums enable
crypto-agility by dispatching to algorithm-specific implementations.
Enums§
- Private
Key - Algorithm-agnostic signing key for creating signatures.
- Public
Key - Algorithm-agnostic public key for signature verification.
Constants§
- CHALLENGE_
SIZE - Size of authentication challenges in bytes
- ED25519_
PRIVATE_ KEY_ SIZE - Size of Ed25519 private keys in bytes
- ED25519_
PUBLIC_ KEY_ SIZE - Size of Ed25519 public keys in bytes
- ED25519_
SIGNATURE_ SIZE - Size of Ed25519 signatures in bytes
Functions§
- create_
challenge_ response - Create a challenge response by signing a challenge
- generate_
challenge - Generate random challenge bytes for authentication
- generate_
keypair - Generate a new keypair using the default algorithm (Ed25519).
- sign_
data - Sign data and return a base64-encoded signature.
- sign_
entry - Sign an entry and return a base64-encoded signature string.
- verify_
challenge_ response - Verify a challenge response
- verify_
entry_ signature - Verify an entry’s signature using an algorithm-agnostic
PublicKey.