Searched refs:K2 (Results 1 – 4 of 4) sorted by relevance
/optee_os/lib/libmbedtls/mbedtls/library/ |
A 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() 308 unsigned char K2[MBEDTLS_CIPHER_BLKSIZE_MAX]; in mbedtls_cipher_cmac_finish() local 322 mbedtls_platform_zeroize( K2, sizeof( K2 ) ); in mbedtls_cipher_cmac_finish() 323 cmac_generate_subkeys( ctx, K1, K2 ); in mbedtls_cipher_cmac_finish() 331 cmac_xor_block( M_last, M_last, K2, block_size ); in mbedtls_cipher_cmac_finish() 353 mbedtls_platform_zeroize( K2, sizeof( K2 ) ); in mbedtls_cipher_cmac_finish() 766 unsigned char K2[MBEDTLS_CIPHER_BLKSIZE_MAX]; in cmac_test_subkeys() local 811 ret = cmac_generate_subkeys( &ctx, K1, K2 ); in cmac_test_subkeys() 821 ( ret = memcmp( K2, &subkeys[block_size], block_size ) ) != 0 ) in cmac_test_subkeys()
|
/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | anubis.c | 894 ulong32 v, K0, K1, K2, K3; in _anubis_setup() local 940 K2 = T4[(kappa[N - 1] >> 8) & 0xff]; in _anubis_setup() 953 K2 = T4[(kappa[i] >> 8) & 0xff] ^ in _anubis_setup() 954 (T5[(K2 >> 24) & 0xff] & 0xff000000U) ^ in _anubis_setup() 955 (T5[(K2 >> 16) & 0xff] & 0x00ff0000U) ^ in _anubis_setup() 956 (T5[(K2 >> 8) & 0xff] & 0x0000ff00U) ^ in _anubis_setup() 957 (T5[(K2 ) & 0xff] & 0x000000ffU); in _anubis_setup() 976 skey->anubis.roundKeyEnc[r][2] = K2; in _anubis_setup()
|
A D | kseed.c | 187 #define F(L1, L2, R1, R2, K1, K2) \ argument 188 T2 = G((R1 ^ K1) ^ (R2 ^ K2)); \
|
A D | khazad.c | 595 ulong64 K2, K1; in khazad_setup() local 612 K2 = in khazad_setup() 647 c[r] ^ K2; in khazad_setup() 648 K2 = K1; K1 = skey->khazad.roundKeyEnc[r]; in khazad_setup()
|
Completed in 40 milliseconds