/packages/modules/Virtualization/libs/bssl/tests/ |
D | eckey_test.rs | 15 use bssl_avf::{sha256, ApiName, Digester, EcKey, EcdsaError, Error, PKey, Result}; 86 let digester = Digester::sha256(); in ecdsa_p256_signing_and_verification_succeed() 88 assert_eq!(digest, sha256(MESSAGE1)?); in ecdsa_p256_signing_and_verification_succeed() 115 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_p256_signed_with_a_different_key_fails() 125 let err = pkey.verify(&signature, MESSAGE1, Some(Digester::sha256())).unwrap_err(); in verifying_ecdsa_p256_signed_with_a_different_key_fails() 136 let digest1 = sha256(MESSAGE1)?; in verifying_ecdsa_p256_signed_with_a_different_message_fails() 138 let digest2 = sha256(MESSAGE2)?; in verifying_ecdsa_p256_signed_with_a_different_message_fails() 148 let digest = sha256(MESSAGE1)?; in ecdsa_cose_signing_and_verification_succeed() 160 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_cose_signed_with_a_different_message_fails() 166 let err = ec_key.ecdsa_verify_cose(&signature, &sha256(MESSAGE2)?).unwrap_err(); in verifying_ecdsa_cose_signed_with_a_different_message_fails() [all …]
|
D | hkdf_test.rs | 36 assert_eq!(OKM, hkdf::<L>(&IKM, &SALT, &INFO, Digester::sha256())?.as_slice()); in rfc5869_test_case_1() 75 assert_eq!(OKM, hkdf::<L>(&IKM, &SALT, &INFO, Digester::sha256())?.as_slice()); in rfc5869_test_case_2() 93 assert_eq!(OKM, hkdf::<L>(&IKM, &SALT, &INFO, Digester::sha256())?.as_slice()); in rfc5869_test_case_3()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/ |
D | HashUtilsTest.java | 29 assertThat(HashUtils.sha256("")).isEqualTo(1449310910991872227L); in testSha256() 30 assertThat(HashUtils.sha256("a")).isEqualTo(-3837880752741967926L); in testSha256() 31 assertThat(HashUtils.sha256("aa")).isEqualTo(-8157175689457624170L); in testSha256() 32 assertThat(HashUtils.sha256("b")).isEqualTo(5357375904281011006L); in testSha256()
|
/packages/modules/adb/tls/ |
D | adb_ca_list.cpp | 104 std::string SHA256BitsToHexString(std::string_view sha256) { in SHA256BitsToHexString() argument 105 CHECK_EQ(sha256.size(), static_cast<size_t>(SHA256_DIGEST_LENGTH)); in SHA256BitsToHexString() 107 auto* u8 = reinterpret_cast<const uint8_t*>(sha256.data()); in SHA256BitsToHexString()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | MetricsLogger.java | 384 byte[] sha256 = getSha256(word); in getMatchedString() 385 if (mBloomFilter.mightContain(sha256) && word.length() > matchedString.length()) { in getMatchedString() 415 String sha256 = getSha256String(matchedString); in statslogBluetoothDeviceNames() local 416 Log.d(TAG, "Uploading sha256 hash of matched bluetooth device name: " + sha256); in statslogBluetoothDeviceNames() 418 BluetoothStatsLog.BLUETOOTH_HASHED_DEVICE_NAME_REPORTED, metricId, sha256); in statslogBluetoothDeviceNames()
|
/packages/apps/Car/DebuggingRestrictionController/server/ |
D | genkey.sh | 56 openssl req -nodes -newkey rsa:2048 -sha256 -keyout "${key}" -out "${req}" 61 -sha256 -days "$validity" -set_serial 666 \
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | client_vm.rs | 22 use bssl_avf::{rand_bytes, sha256, Digester, EcKey, PKey}; 120 let digest = sha256(message)?; in ecdsa_verify_cose() 125 let digest = sha256(message)?; in ecdsa_sign_der()
|
/packages/modules/Virtualization/microdroid/ |
D | Android.bp | 67 avb_hash_algorithm: "sha256", 267 avb_hash_algorithm: "sha256", 395 // python -c "import hashlib; print(hashlib.sha256(b'bootloader').hexdigest())" 464 // python -c "import hashlib; print(hashlib.sha256(b'initrd_normal').hexdigest())" 494 // python -c "import hashlib; print(hashlib.sha256(b'initrd_debug').hexdigest())"
|
/packages/modules/Virtualization/authfs/src/fsverity/metadata/ |
D | metadata.rs | 23 use openssl::sha::sha256; 99 FSVERITY_HASH_ALG_SHA256 => Ok(sha256( in parse_fsverity_metadata()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 368 byte[] sha256 = new byte[] {100, -45, -118, -68, -104, -15, 63, -60, -84, -44, -13, -63, in testComputeHashOfByteArray() 373 assertTrue(Arrays.equals(sha256, mUtils.computeHashOfByteArray(bytes))); in testComputeHashOfByteArray() 389 byte[] sha256 = new byte[] {-64, 83, 94, 75, -30, -73, -97, -3, -109, 41, 19, 5, 67, 107, in testComputeHashOfFile() 394 Arrays.equals(sha256, mUtils.computeHashOfFile(fileLocation, Utils.SHA256_TYPE))); in testComputeHashOfFile()
|
/packages/modules/Virtualization/service_vm/client_vm_csr/src/ |
D | lib.rs | 32 sha::sha256, 120 let digest = sha256(message); in ecdsa_sign_cose() 219 let digest = sha256(message); in ecdsa_verify_cose()
|
/packages/modules/Virtualization/authfs/src/fsverity/ |
D | editor.rs | 62 use openssl::sha::{sha256, Sha256}; 115 let hash = sha256(buf); in read_backing_chunk_verified() 143 let hash = sha256(&orig_data); in new_hash_for_incomplete_write() 167 Ok(sha256(source)) in new_chunk_hash()
|
D | builder.rs | 157 use openssl::sha::sha256; 209 let hash = sha256(&vec![1u8; CHUNK_SIZE as usize]); in merkle_tree_non_sequential()
|
D | verifier.rs | 23 use openssl::sha::{sha256, Sha256}; 141 let root_hash = sha256(&buf[..]); in new()
|
/packages/modules/Virtualization/libs/apkverify/tests/data/ |
D | create.sh | 8 --hash-alg=sha256 \
|
/packages/modules/adb/tls/include/adb/tls/ |
D | adb_ca_list.h | 40 std::string SHA256BitsToHexString(std::string_view sha256);
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | sha.rs | 25 pub fn sha256(data: &[u8]) -> Result<[u8; SHA256_DIGEST_LENGTH]> { in sha256() function
|
D | lib.rs | 48 pub use sha::sha256;
|
D | hmac.rs | 25 hmac::<SHA256_DIGEST_LENGTH>(key, data, Digester::sha256())
|
D | digest.rs | 36 pub fn sha256() -> Self { in sha256() method
|
/packages/services/Car/tools/telemetry/lua-interpreter/ |
D | WORKSPACE | 5 sha256 = "5fa3c738d33acca3b97622a13a741129f67ef43f5fdfcec63b29374cc0574c29",
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | vm_secret.rs | 142 hkdf(key, Md::sha256(), &hasher.finish(), salt, identifier)? in get_vm_secret() 145 hkdf(key, Md::sha256(), dice_artifacts.cdi_seal(), salt, identifier)? in get_vm_secret()
|
/packages/services/Car/service/src/com/android/car/telemetry/publisher/ |
D | HashUtils.java | 43 public static long sha256(@NonNull String data) { in sha256() method in HashUtils
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | MetricsLoggerTest.java | 251 String sha256 = MetricsLogger.getSha256String(entry.getValue()); in testDeviceNameToSha() local 254 sha256, in testDeviceNameToSha()
|
/packages/modules/Virtualization/vm_payload/src/ |
D | lib.rs | 29 use openssl::{ec::EcKey, sha::sha256, ecdsa::EcdsaSig}; 489 let digest = sha256(message); in try_ecdsa_sign()
|