Home
last modified time | relevance | path

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

/optee_examples/hotp/host/
A Dmain.c55 uint8_t K[] = { in main() local
75 op.params[0].tmpref.buffer = K; in main()
76 op.params[0].tmpref.size = sizeof(K); in main()
78 fprintf(stdout, "Register the shared key: %s\n", K); in main()
/optee_examples/hotp/ta/
A Dhotp_ta.c27 static uint8_t K[MAX_KEY_SIZE]; variable
143 if (params[0].memref.size > sizeof(K)) in register_shared_key()
146 memset(K, 0, sizeof(K)); in register_shared_key()
147 memcpy(K, params[0].memref.buffer, params[0].memref.size); in register_shared_key()
150 DMSG("Got shared key %s (%u bytes).", K, params[0].memref.size); in register_shared_key()
173 res = hmac_sha1(K, K_len, counter, sizeof(counter), mac, &mac_len); in get_hotp()

Completed in 3 milliseconds