2.1.6.27 DRV_PUF_WrapGeneratedRandomCmd()

drv_puf_result_t DRV_PUF_WrapGeneratedRandomCmd (uint16_t keyLenBits, drv_puf_key_scope_t keyScopeStarted, drv_puf_key_scope_t keyScopeEnrolled, uint32_t userContext0, uint32_t userContext1, uint8_t * keyCode)

Performs the Wrap Generated Random command.

Parameters:
keyLenBits

Length of the key in bits. Accepted values: Till 1024: Multiples of 64; and 2048, 3072, 4096.

keyScopeStarted

Key scope in Started state

keyScopeEnrolled

Key scope in Enrolled state

userContext0

User context word 0

userContext1

User context word 1

keyCode

Pointer to the byte array that will hold the key code. Size of the array must be DRV_PUF_KEY_CODE_SIZE(keyLenBits).

Returns:

Result code of the operation. See drv_puf_result_t enum for details.

Note:

The PUF must have been enrolled or started/reconstructed to run this command successfully.