2.1.7.2 DRV_PUF_KEY_CODE_SIZE

#define DRV_PUF_KEY_CODE_SIZE( keyLenBits)

Value:

((uint32_t)(36U + ((uint32_t)(keyLenBits) / 8U) + \
    (16U * ((uint32_t)(((uint32_t)(keyLenBits) + 383U) / 384U)))))

This macro calculates the size in bytes of the key code for a given key length in bits.

The size is computed as: 36 bytes (base) + (keyLenBits / 8) bytes (key length in bytes) + 16 bytes for each 384 bits in the key length (rounded up).

Parameters:
keyLenBits

Length of the key in bits.