Expand description
Safe wrappers for AOCL-SecureRNG.
Wraps the AMD secure-RNG entry points around the x86 RDRAND
(already conditioned, suitable for general-purpose random) and
RDSEED (raw entropy, suitable for seeding cryptographic generators)
instructions.
Enums§
- Error
- Errors that can be returned by safe AOCL wrappers.
Constants§
- DEFAULT_
RETRY_ COUNT - Default retry budget AOCL recommends for transient failures of
RDRAND/RDSEED.
Functions§
- is_
rdrand_ supported - Returns
trueif the host CPU exposes theRDRANDinstruction. - is_
rdseed_ supported - Returns
trueif the host CPU exposes theRDSEEDinstruction. - rdrand_
bytes - Fill
outwith random bytes fromRDRAND. - rdrand_
u16 - Read a single random
u16fromRDRAND. - rdrand_
u32 - Read a single random
u32fromRDRAND. - rdrand_
u64 - Read a single random
u64fromRDRAND. - rdrand_
u32_ array - Fill
outwith randomu32s fromRDRAND. - rdrand_
u64_ array - Fill
outwith randomu64s fromRDRAND. - rdseed_
bytes - Fill
outwith random bytes fromRDSEED. - rdseed_
u16 - Read a single random
u16fromRDSEED. - rdseed_
u32 - Read a single random
u32fromRDSEED. - rdseed_
u64 - Read a single random
u64fromRDSEED. - version
- Library version reported by AOCL-SecureRNG.
Type Aliases§
- Result
- Crate result alias — used by every
aocl-*safe wrapper crate.