Repository navigation
SHA3 Keccak-256 State Operations
Overview
This is a forked version of library golang.org/x/crypto.
Enhanced the SHA3 Keccak-256 implementation with state export/import functionality to allow:
- Exporting internal hash state
- Creating new hash instances with a specific initial state
- Importing state into existing hash instances
Key Features
- New Interface:
StatefulHashextendshash.Hashwith state operations - New Constructor:
NewLegacyKeccak256WithState(state)creates hash with optional initial state - State Methods:
ExportStateandImportStatefor state management - Backward Compatible: Original
NewLegacyKeccak256function unchanged
Use Cases
- Checkpointing hash operations
- Parallel processing of hash computations
- State persistence across sessions
- Reproducible hash states for testing