Home
last modified time | relevance | path

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

/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/presence/
DExtendedAdvertisementUtilsTest.java78 byte[] saltArray = ExtendedAdvertisementUtils.convertDataElementToBytes(salt); in test_constructDataElement_salt()
80 assertThat(saltArray.length).isEqualTo(ExtendedAdvertisement.SALT_DATA_LENGTH + 1); in test_constructDataElement_salt()
82 assertThat(saltArray[0]).isEqualTo((byte) 0b00100011); in test_constructDataElement_salt()
84 assertThat(saltArray[1]).isEqualTo((byte) 13); in test_constructDataElement_salt()
85 assertThat(saltArray[2]).isEqualTo((byte) 14); in test_constructDataElement_salt()
/packages/modules/AdServices/adservices/service-core/jni/cpp/
Dohttp_jni.cpp447 jbyteArray saltArray) { in Java_com_android_adservices_ohttp_OhttpJniWrapper_hkdfExtract() argument
449 (long)hkdfMd, secretArray, saltArray); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hkdfExtract()
456 jbyte *salt = env->GetByteArrayElements(saltArray, 0); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hkdfExtract()
457 size_t saltLen = env->GetArrayLength(saltArray); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hkdfExtract()
467 env->ReleaseByteArrayElements(saltArray, salt, JNI_ABORT); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hkdfExtract()
473 env->ReleaseByteArrayElements(saltArray, salt, JNI_ABORT); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hkdfExtract()