Home
last modified time | relevance | path

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

/openthread-3.7.0/third_party/mbedtls/repo/library/
Dcmac.c97 unsigned char *K1, unsigned char *K2) in cmac_generate_subkeys() argument
119 if ((ret = cmac_multiply_by_u(K2, K1, block_size)) != 0) { in cmac_generate_subkeys()
274 unsigned char K2[MBEDTLS_CMAC_MAX_BLOCK_SIZE]; in mbedtls_cipher_cmac_finish() local
290 mbedtls_platform_zeroize(K2, sizeof(K2)); in mbedtls_cipher_cmac_finish()
291 cmac_generate_subkeys(ctx, K1, K2); in mbedtls_cipher_cmac_finish()
298 mbedtls_xor(M_last, M_last, K2, block_size); in mbedtls_cipher_cmac_finish()
317 mbedtls_platform_zeroize(K2, sizeof(K2)); in mbedtls_cipher_cmac_finish()
742 unsigned char K2[MBEDTLS_CMAC_MAX_BLOCK_SIZE]; in cmac_test_subkeys() local
787 ret = cmac_generate_subkeys(&ctx, K1, K2); in cmac_test_subkeys()
797 (ret = memcmp(K2, &subkeys[block_size], block_size)) != 0) { in cmac_test_subkeys()