-
__init__.py(1.0 KB)- Package initialization
- Exports main classes and exceptions
- Version information
-
config.py(5.2 KB)- Configuration management
- Environment variable support
- PCR definitions
- Default settings for all features
-
exceptions.py(2.1 KB)- Custom exception hierarchy
- Specific error types for each component
- Clear error messages
-
tpm_ops.py(14.3 KB)- TPM operations wrapper
- PCR reading (Windows/Linux)
- Challenge-response protocol
- Data sealing/unsealing
- TPM quote generation
- Fallback mechanisms
-
fingerprint_engine.py(12.8 KB)- Fingerprint generation
- TPM-bound fingerprints
- Challenge-response verification
- Anti-replay protection
- Fingerprint lifecycle management
- Storage and retrieval
-
policy_engine.py(13.5 KB)- Policy creation and management
- PCR baseline validation
- State change detection
- Violation handling
- Boot/firmware monitoring
- Secure boot verification
-
consequence_handler.py(16.2 KB)- Credential management
- Vault lockdown
- Token invalidation
- Automatic enforcement
- Consequence history
- State persistence
-
offline_verifier.py(11.7 KB)- Offline verification orchestrator
- Device enrollment
- Complete verification workflow
- Bundle export/import
- Status monitoring
- Integration of all components
-
audit_logger.py(13.4 KB)- TPM-sealed audit logging
- Event tracking
- Log rotation and sealing
- Chain verification
- Statistics and queries
- Tamper-evident storage
-
cli.py(7.8 KB)- Command-line interface
- Subcommands for all operations
- JSON output support
- Error handling
-
README.md(15.3 KB)- Main project documentation
- Feature overview
- Installation instructions
- Quick start guide
- API documentation
- Configuration options
- Security features
-
QUICKSTART.md(2.8 KB)- 5-minute quick start
- Installation steps
- Basic commands
- Common operations
- Next steps
-
USAGE_GUIDE.md(18.6 KB)- Comprehensive usage guide
- Detailed examples
- Configuration options
- Best practices
- Troubleshooting
- CLI reference
-
ARCHITECTURE.md(9.4 KB)- System architecture diagrams
- Component interactions
- Data flow diagrams
- Storage layout
- Security boundaries
- Trust chain
- Performance optimization
-
PATENTS.md(8.1 KB)- Patent-relevant features
- Novel aspects documentation
- Legal distinctions
- Claim structures
- Prior art differentiation
- Defensive publication
-
PROJECT_SUMMARY.md(9.2 KB)- Project overview
- Key features summary
- Features matrix
- Component descriptions
- Integration points
- Patent strategy
-
basic_usage.py(2.1 KB)- Device enrollment
- Basic verification
- Status checking
- Credential registration
- Vault management
-
advanced_policy_enforcement.py(3.7 KB)- Custom policy creation
- Policy violation simulation
- Consequence enforcement
- Custom handlers
- Audit review
-
offline_verification.py(3.2 KB)- Complete offline operation
- Bundle export
- Challenge-response
- State comparison
- Offline audit trail
-
__init__.py(0.1 KB)- Test package initialization
-
test_library.py(11.4 KB)- Comprehensive unit tests
- TPM operations tests
- Fingerprint engine tests
- Policy engine tests
- Consequence handler tests
- Offline verifier tests
- Audit logger tests
- Integration tests
- 50+ test cases
-
setup.py(1.8 KB)- Package installation configuration
- Dependencies
- Entry points
- Metadata
-
requirements.txt(0.6 KB)- Python dependencies
- Optional dependencies
- Development dependencies
- Core Library: ~5,200 lines
- Documentation: ~3,800 lines
- Examples: ~450 lines
- Tests: ~650 lines
- Configuration: ~80 lines
- Total: ~10,180 lines
- Core library: ~87 KB
- Documentation: ~68 KB
- Examples: ~9 KB
- Tests: ~11 KB
- Configuration: ~2 KB
- Total: ~177 KB
- TPM-bound fingerprints
- Challenge-response protocol
- Policy enforcement
- Consequence management
- Offline verification
- Audit logging
- README with full documentation
- Quick start guide
- Detailed usage guide
- Architecture documentation
- Patent documentation
- Project summary
- Basic usage example
- Advanced policy enforcement
- Offline verification example
- Unit tests for all components
- Integration tests
- 50+ test cases
- Device management commands
- Audit commands
- List commands
- Export/import commands
Implementation:
fingerprint_engine.py: Lines 1-400policy_engine.py: Lines 1-500tpm_ops.py: Lines 200-350
Implementation:
fingerprint_engine.py: Lines 100-200tpm_ops.py: Lines 100-200
Implementation:
consequence_handler.py: Lines 1-500policy_engine.py: Lines 300-450- Integration in
offline_verifier.py
Implementation:
offline_verifier.py: Lines 1-450- All components designed for offline operation
- All public methods documented
- Parameter descriptions
- Return value descriptions
- Exception documentation
- Basic operations covered
- Advanced features demonstrated
- CLI usage documented
- Error handling shown
- System diagrams
- Component interactions
- Data flows
- Security boundaries
- Non-exportable fingerprints
- Anti-replay protection
- Tamper-evident audit logs
- Automatic consequence enforcement
- Boot state monitoring
- Firmware update detection
- Secure boot verification
- PCR baseline validation
This library is production-ready and includes:
- Complete implementation of all features
- Comprehensive documentation
- Working examples
- Full test suite
- CLI interface
- Patent documentation
- Architecture documentation
- Installation scripts
- README.md - Main entry point
- QUICKSTART.md - 5-minute guide
- USAGE_GUIDE.md - Detailed usage
- ARCHITECTURE.md - Technical details
- PATENTS.md - Innovation documentation
- PROJECT_SUMMARY.md - Project overview
All files created and ready to use!
Total Development Time: Complete library implementation
Status: Production Ready
Version: 1.0.0
Date: December 21, 2025