Expand description
Custom Entropy Source System for no_std and WASM Environments
This module provides a secure, callback-based entropy source system that allows
developers to plug in custom entropy sources for no_std and WASM environments.
The system uses function pointers and thread-local storage to avoid global state
while maintaining security and performance.
Structs§
- Custom
Entropy Config - Custom entropy source configuration
- Custom
Entropy Source - Custom entropy source registration
- Entropy
Context - Context data for entropy callbacks
- Thread
Entropy Registry - Thread-local entropy source registry
Enums§
- Entropy
Quality - Entropy source quality levels
Functions§
- generate_
custom_ entropy - Generate entropy using the registered custom source
- get_
entropy_ source_ info - Get information about the registered entropy source
- has_
custom_ entropy_ source - Check if a custom entropy source is registered
- register_
custom_ ⚠entropy_ source - Register a custom entropy source for the current thread
- unregister_
custom_ entropy_ source - Unregister the current custom entropy source
Type Aliases§
- Entropy
Callback - Function pointer type for custom entropy sources