Searched refs:SHA256_DIGEST_LENGTH (Results 1 – 7 of 7) sorted by relevance
/packages/modules/adb/tls/tests/ |
D | adb_ca_list_test.cpp | 53 std::string sha(SHA256_DIGEST_LENGTH - 1, 0x80); in TEST_F() 59 std::string sha(SHA256_DIGEST_LENGTH + 1, 0x80); in TEST_F() 78 std::string sha_str(SHA256_DIGEST_LENGTH * 2 - 1, 'a'); in TEST_F() 83 std::string sha_str(SHA256_DIGEST_LENGTH * 2 + 1, 'a'); in TEST_F() 89 std::string sha_str(SHA256_DIGEST_LENGTH * 2, 'a'); in TEST_F() 127 while (sha.size() < SHA256_DIGEST_LENGTH) { in TEST_F()
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | sha.rs | 22 pub(crate) const SHA256_DIGEST_LENGTH: usize = bssl_sys::SHA256_DIGEST_LENGTH as usize; constant 25 pub fn sha256(data: &[u8]) -> Result<[u8; SHA256_DIGEST_LENGTH]> { in sha256() argument 26 let mut out = [0u8; SHA256_DIGEST_LENGTH];
|
D | hmac.rs | 18 use crate::sha::SHA256_DIGEST_LENGTH; 24 pub fn hmac_sha256(key: &[u8], data: &[u8]) -> Result<[u8; SHA256_DIGEST_LENGTH]> { in hmac_sha256() argument 25 hmac::<SHA256_DIGEST_LENGTH>(key, data, Digester::sha256())
|
/packages/modules/adb/tls/ |
D | adb_ca_list.cpp | 105 CHECK_EQ(sha256.size(), static_cast<size_t>(SHA256_DIGEST_LENGTH)); in SHA256BitsToHexString() 110 for (size_t i = 0; i < SHA256_DIGEST_LENGTH; ++i) { in SHA256BitsToHexString() 119 if (sha256_str.size() != SHA256_DIGEST_LENGTH * 2) { in SHA256HexStringToBits() 124 for (size_t i = 0; i < SHA256_DIGEST_LENGTH; ++i) { in SHA256HexStringToBits()
|
/packages/modules/NeuralNetworks/common/ |
D | TokenHasher.cpp | 50 static_assert(SHA256_DIGEST_LENGTH == ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN, in finish()
|
/packages/modules/adb/daemon/ |
D | auth.cpp | 138 uint8_t digest[SHA256_DIGEST_LENGTH]; in adbd_tls_client_ca_list()
|
/packages/modules/adb/client/ |
D | auth.cpp | 116 result.resize(SHA256_DIGEST_LENGTH); in hash_key()
|