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§
- Crypto
Error - 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.