Crate foodshare_crypto

Crate foodshare_crypto 

Source
Expand description

Cryptographic utilities for FoodShare.

This crate provides:

  • HMAC signature generation and verification
  • Constant-time comparison for security
  • Provider-specific webhook verification (Meta, Stripe, GitHub)

Enums§

CryptoError
Errors that can occur during crypto operations.

Functions§

constant_time_compare
Compare two byte slices in constant time.
hmac_sha1
Generate HMAC-SHA1 signature.
hmac_sha256
Generate HMAC-SHA256 signature.
verify_signature
Verify a signature against an expected value.

Type Aliases§

Result
Result type alias for crypto operations.