Home
last modified time | relevance | path

Searched refs:hmac_result (Results 1 – 1 of 1) sorted by relevance

/optee_examples/hotp/ta/
A Dhotp_ta.c117 static void truncate(uint8_t *hmac_result, uint32_t *bin_code) in truncate() argument
119 int offset = hmac_result[19] & 0xf; in truncate()
121 *bin_code = (hmac_result[offset] & 0x7f) << 24 | in truncate()
122 (hmac_result[offset+1] & 0xff) << 16 | in truncate()
123 (hmac_result[offset+2] & 0xff) << 8 | in truncate()
124 (hmac_result[offset+3] & 0xff); in truncate()

Completed in 2 milliseconds