Searched refs:K2 (Results 1 – 1 of 1) sorted by relevance
/mbedtls-3.5.0/library/ |
D | cmac.c | 114 unsigned char *K1, unsigned char *K2) in cmac_generate_subkeys() argument 136 if ((ret = cmac_multiply_by_u(K2, K1, block_size)) != 0) { in cmac_generate_subkeys() 287 unsigned char K2[MBEDTLS_CIPHER_BLKSIZE_MAX]; in mbedtls_cipher_cmac_finish() local 302 mbedtls_platform_zeroize(K2, sizeof(K2)); in mbedtls_cipher_cmac_finish() 303 cmac_generate_subkeys(ctx, K1, K2); in mbedtls_cipher_cmac_finish() 310 mbedtls_xor(M_last, M_last, K2, block_size); in mbedtls_cipher_cmac_finish() 329 mbedtls_platform_zeroize(K2, sizeof(K2)); in mbedtls_cipher_cmac_finish() 750 unsigned char K2[MBEDTLS_CIPHER_BLKSIZE_MAX]; in cmac_test_subkeys() local 795 ret = cmac_generate_subkeys(&ctx, K1, K2); in cmac_test_subkeys() 805 (ret = memcmp(K2, &subkeys[block_size], block_size)) != 0) { in cmac_test_subkeys()
|