Searched refs:K2 (Results 1 – 1 of 1) sorted by relevance
/openthread-3.6.0/third_party/mbedtls/repo/library/ |
D | cmac.c | 120 unsigned char* K1, unsigned char* K2 ) in cmac_generate_subkeys() argument 140 if( ( ret = cmac_multiply_by_u( K2, K1 , block_size ) ) != 0 ) in cmac_generate_subkeys() 299 unsigned char K2[MBEDTLS_CIPHER_BLKSIZE_MAX]; in mbedtls_cipher_cmac_finish() local 313 mbedtls_platform_zeroize( K2, sizeof( K2 ) ); in mbedtls_cipher_cmac_finish() 314 cmac_generate_subkeys( ctx, K1, K2 ); in mbedtls_cipher_cmac_finish() 322 cmac_xor_block( M_last, M_last, K2, block_size ); in mbedtls_cipher_cmac_finish() 344 mbedtls_platform_zeroize( K2, sizeof( K2 ) ); in mbedtls_cipher_cmac_finish() 757 unsigned char K2[MBEDTLS_CIPHER_BLKSIZE_MAX]; in cmac_test_subkeys() local 802 ret = cmac_generate_subkeys( &ctx, K1, K2 ); in cmac_test_subkeys() 812 ( ret = memcmp( K2, &subkeys[block_size], block_size ) ) != 0 ) in cmac_test_subkeys()
|