Searched refs:key_buf (Results 1 – 6 of 6) sorted by relevance
/third_party/mbedtls/library/ |
D | constant_time.c | 541 unsigned char key_buf[MAX_HASH_BLOCK_LENGTH]; in mbedtls_ct_hmac() local 566 PSA_CHK(psa_export_key(key, key_buf, block_size, &mac_key_length)); in mbedtls_ct_hmac() 570 key_buf[i] = (unsigned char) (key_buf[i] ^ 0x36); in mbedtls_ct_hmac() 573 key_buf[i] = 0x36; in mbedtls_ct_hmac() 579 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac() 608 key_buf[i] = (unsigned char) ((key_buf[i] ^ 0x36) ^ 0x5C); in mbedtls_ct_hmac() 611 key_buf[i] = 0x5C; in mbedtls_ct_hmac() 616 PSA_CHK(psa_hash_update(&operation, key_buf, block_size)); in mbedtls_ct_hmac() 623 mbedtls_platform_zeroize(key_buf, MAX_HASH_BLOCK_LENGTH); in mbedtls_ct_hmac()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
D | eap_sake_common.c | 271 u8 key_buf[EAP_MSK_LEN + EAP_EMSK_LEN]; in eap_sake_derive_keys() local 302 key_buf, sizeof(key_buf)) < 0) in eap_sake_derive_keys() 304 os_memcpy(msk, key_buf, EAP_MSK_LEN); in eap_sake_derive_keys() 305 os_memcpy(emsk, key_buf + EAP_MSK_LEN, EAP_EMSK_LEN); in eap_sake_derive_keys()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
D | eap_sake_common.c | 271 u8 key_buf[EAP_MSK_LEN + EAP_EMSK_LEN]; in eap_sake_derive_keys() local 302 key_buf, sizeof(key_buf)) < 0) in eap_sake_derive_keys() 304 os_memcpy(msk, key_buf, EAP_MSK_LEN); in eap_sake_derive_keys() 305 os_memcpy(emsk, key_buf + EAP_MSK_LEN, EAP_EMSK_LEN); in eap_sake_derive_keys()
|
/third_party/node/src/crypto/ |
D | crypto_cipher.cc | 405 const ArrayBufferOrViewContents<unsigned char>& key_buf, in Init() argument 428 key_buf.data(), in Init() 429 key_buf.size(), in Init() 458 ArrayBufferOrViewContents<unsigned char> key_buf(args[1]); in Init() local 459 if (!key_buf.CheckSizeInt32()) in Init() 472 cipher->Init(*cipher_type, key_buf, auth_tag_len); in Init() 476 const ByteSource& key_buf, in Init() argument 515 key_buf.data<unsigned char>(), in Init() 516 key_buf.size(), in Init() 534 const ByteSource key_buf = ByteSource::FromSecretKeyBytes(env, args[1]); in Init() local [all …]
|
D | crypto_cipher.h | 54 const ArrayBufferOrViewContents<unsigned char>& key_buf, 57 const ByteSource& key_buf,
|
D | crypto_dh.cc | 396 ArrayBufferOrViewContents<unsigned char> key_buf(args[0]); in ComputeSecret() local 397 if (UNLIKELY(!key_buf.CheckSizeInt32())) in ComputeSecret() 399 BignumPointer key(BN_bin2bn(key_buf.data(), key_buf.size(), nullptr)); in ComputeSecret()
|