![]() |
trngpsx
Vitis Drivers API Documentation
|
Macros | |
| #define | XTRNGPSX_RESEED_TIMEOUT 1500000U |
| Reseed timeout in micro-seconds. More... | |
| #define | XTRNGPSX_GENERATE_TIMEOUT 1500000U |
| Generate timeout in micro-seconds. More... | |
| #define | XTRNGPSX_WORD_LEN_IN_BYTES 4U |
| Word length in bytes. More... | |
| #define | XTRNGPSX_BYTE_LEN_IN_BITS 8U |
| Byte length in bits. More... | |
| #define | XTRNGPSX_BLOCK_LEN_IN_BYTES 16U |
| TRNG block length length in bytes. More... | |
| #define | XTRNGPSX_MIN_SEEDLIFE 1U |
| Minimum seed life. More... | |
| #define | XTRNGPSX_MAX_SEEDLIFE 0x80000 |
| Maximum seed life 2^19. More... | |
| #define | XTRNGPSX_SEC_STRENGTH_IN_BURSTS 2U |
| Security strength in 128-bit bursts. More... | |
| #define | XTRNGPSX_BURST_SIZE_IN_WORDS 4U |
| Burst size in words. More... | |
| #define | XTRNGPSX_DF_MIN_LENGTH 2U |
| Minimum DF input length. More... | |
| #define | XTRNGPSX_DF_MAX_LENGTH 0x1FU |
| Maximum DF input length. More... | |
| #define | XTRNGPSX_DF_NUM_OF_BYTES_BEFORE_MIN_700CLKS_WAIT 8U |
| Number of bytes to be written before wait. More... | |
| #define | XTRNGPSX_ADAPTPROPTESTCUTOFF_MAX_VAL 0x3FFU |
| maximum adaptprpptest cutoff value More... | |
| #define | XTRNGPSX_REPCOUNTTESTCUTOFF_MAX_VAL 0x1FFU |
| maximum repcounttest cutoff value More... | |
Functions | |
| int | XTrngpsx_CfgInitialize (XTrngpsx_Instance *InstancePtr, const XTrngpsx_Config *CfgPtr, UINTPTR EffectiveAddr) |
| This function initializes the TRNGPSV instance/driver. More... | |
| int | XTrngpsx_Instantiate (XTrngpsx_Instance *InstancePtr, const u8 *Seed, u32 SeedLength, const u8 *PersStr, const XTrngpsx_UserConfig *UserCfg) |
| This function instantiates the TRNG instance with user configure values. More... | |
| int | XTrngpsx_Reseed (XTrngpsx_Instance *InstancePtr, const u8 *Seed, u8 DLen) |
| This function triggers and reseeds the DRBG module. More... | |
| int | XTrngpsx_Generate (XTrngpsx_Instance *InstancePtr, u8 *RandBuf, u32 RandBufSize, u8 PredResistance) |
| This function generates and collects random data in to a buffer. More... | |
| int | XTrngpsx_Uninstantiate (XTrngpsx_Instance *InstancePtr) |
| This function uninstantiates the TRNG instance. More... | |