security
๐ค AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.psp.security
¶
PSP Security - Integrity verification and cryptographic operations.
This module provides security-related functionality for PSP packages, including integrity verification, signature validation, and tamper detection.
Classes¶
PSPFIntegrityVerifier
¶
PSPF package integrity verifier implementation.
Provides comprehensive verification including signatures, checksums, and tamper detection using the Protocol pattern.
Initialize the verifier.
Source code in flavor/psp/security.py
Functions¶
verify_integrity
¶
Verify the integrity of a PSPF package bundle.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bundle_path
|
Path
|
Path to the package bundle file |
required |
Returns:
| Type | Description |
|---|---|
IntegrityResult
|
IntegrityResult dictionary with verification status |
Source code in flavor/psp/security.py
Functions¶
get_validation_level
¶
Get validation level from Foundation config, matching Go/Rust behavior.
Returns:
| Name | Type | Description |
|---|---|---|
ValidationLevel |
ValidationLevel
|
The current validation level |
Source code in flavor/psp/security.py
verify_package_integrity
¶
Convenience function to verify package integrity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bundle_path
|
Path
|
Path to the package bundle file |
required |
Returns:
| Type | Description |
|---|---|
IntegrityResult
|
IntegrityResult dictionary with verification status |