extrapaytr-crypto 0.1.1

Digest, HMAC, constant-time comparison and at-rest sealing helpers for ExtraPayTR
Documentation
//! Digest, HMAC, encoding, and constant-time comparison primitives shared
//! by ExtraPayTR provider adapters. This crate has no knowledge of any
//! specific provider's protocol.
#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used, clippy::panic))]

pub mod compare;
pub mod digest;
pub mod encoding;
pub mod hmac_sha;
/// At-rest sealing for values an application must persist — card-on-file
/// tokens above all. Behind the `sealing` feature, and unrelated to
/// request signing, which is what the rest of this crate covers.
#[cfg(feature = "sealing")]
pub mod seal;

pub use compare::constant_time_eq;
pub use digest::{sha1, sha256, sha512};
pub use encoding::{Base64DecodeError, base64_decode, base64_encode, hex_lower, hex_upper};
pub use hmac_sha::{CryptoError, hmac_sha256, hmac_sha512};
#[cfg(feature = "sealing")]
pub use seal::{SealError, SealingKey};