Expand description
License verification functionality (client-side)
This module provides license verification using the pluggable cryptographic architecture. It automatically selects the appropriate signature algorithm based on the algorithm identifier stored in the license.
§Example
ⓘ
use licenz_core::verifier::{CryptoVerifier, LicenseVerifier};
// New algorithm-agnostic verifier (recommended)
let verifier = CryptoVerifier::from_pem(public_key_pem).unwrap();
let result = verifier.validate(&license);
// Legacy RSA-only verifier (backward compatible)
let verifier = LicenseVerifier::from_pem(public_key_pem).unwrap();Structs§
- Crypto
Verifier - Algorithm-agnostic license verifier that automatically selects the correct algorithm
- License
Verifier - License verifier for validating licenses
- Validation
Result - Validation result with detailed status
Functions§
- detect_
license_ format - Detect the format of a license file