2.1.6.26 DRV_PUF_WrapCmd()
drv_puf_result_t DRV_PUF_WrapCmd (uint16_t keyLenBits, drv_puf_key_scope_t keyScopeStarted, drv_puf_key_scope_t keyScopeEnrolled, uint32_t userContext0, uint32_t userContext1, const uint8_t * key, uint8_t * keyCode)
Performs the Wrap command.
| 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 |
| key |
Pointer to the byte array that holds the key to be wrapped |
| keyCode |
Pointer to the byte array that will hold the key code. Size of the array must be DRV_PUF_KEY_CODE_SIZE(keyLenBits). |
The PUF must have been enrolled or started/reconstructed to run this command successfully.
Result code of the operation. See drv_puf_result_t enum for details. |
