Home
last modified time | relevance | path

Searched refs:MessageDigest (Results 1 – 25 of 70) sorted by relevance

123

/packages/modules/Virtualization/libs/apkverify/src/
Dhashtree.rs17 use openssl::hash::{DigestBytes, Hasher, MessageDigest};
36 algorithm: MessageDigest, in from() argument
70 algorithm: MessageDigest, in generate_hash_tree() argument
118 algorithm: MessageDigest, in hash_one_block() argument
181 fn zero_pad_salt(salt: &[u8], algorithm: MessageDigest) -> Vec<u8> { in zero_pad_salt()
195 use openssl::hash::MessageDigest;
211 let ht = HashTree::from(&mut input, size, &salt, 4096, MessageDigest::sha256())?; in compare_with_golden_output()
Dalgorithms.rs24 use openssl::hash::MessageDigest;
117 pub(crate) fn new_message_digest(&self) -> MessageDigest { in new_message_digest() argument
125 | SignatureAlgorithmID::VerityDsaWithSha256 => MessageDigest::sha256(), in new_message_digest()
128 | SignatureAlgorithmID::EcdsaWithSha512 => MessageDigest::sha512(), in new_message_digest()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DDigestAuthUtils.java29 import java.security.MessageDigest;
103 MessageDigest md5Digest = getMd5Digest(); in computeResponse()
125 MessageDigest md5Digest = getMd5Digest(); in generateA1Hash()
135 MessageDigest md5Digest = getMd5Digest(); in generateA2Hash()
144 private static MessageDigest getMd5Digest() { in getMd5Digest()
146 return MessageDigest.getInstance("MD5"); in getMd5Digest()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMD5Calculator.java21 import java.security.MessageDigest;
28 MessageDigest digester; in checksum()
30 digester = MessageDigest.getInstance("MD5"); in checksum()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/
DAdIdEncryption.java24 import java.security.MessageDigest;
52 MessageDigest sha256Digest = MessageDigest.getInstance(SHA256_DIGEST_ALGORITHM_NAME); in encryptAdIdAndEnrollmentSha256()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/kanon/
DKAnonUtil.java20 import java.security.MessageDigest;
59 MessageDigest md = MessageDigest.getInstance(SHA256); in getKAnonEntitiesFromAuctionResult()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionUtils.java29 import java.security.MessageDigest;
54 MessageDigest md = MessageDigest.getInstance("MD5"); in getFingerprintFor()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java27 import java.security.MessageDigest;
59 MessageDigest algorithm = MessageDigest.getInstance("MD5"); in toMd5()
/packages/apps/Dialer/java/com/android/dialer/oem/
DCequintPackageUtils.java25 import java.security.MessageDigest;
299 MessageDigest digest; in getSHA256()
301 digest = MessageDigest.getInstance("SHA256", "BC"); in getSHA256()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapMsChapV2MethodStateMachine.java65 import java.security.MessageDigest;
528 MessageDigest sha1 = MessageDigest.getInstance(SHA_ALG); in challengeHash()
609 MessageDigest sha1 = MessageDigest.getInstance(SHA_ALG); in generateAuthenticatorResponse()
644 MessageDigest sha1 = MessageDigest.getInstance(SHA_ALG); in getMasterKey()
657 MessageDigest sha1 = MessageDigest.getInstance(SHA_ALG); in getAsymmetricStartKey()
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DPackageUtils.java37 import java.security.MessageDigest;
58 MessageDigest messageDigest; in computeSha256DigestBytes()
60 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFingerprint.java22 import java.security.MessageDigest;
32 private static final MessageDigest DIGESTER;
51 DIGESTER = MessageDigest.getInstance(DIGEST_MD5);
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationUtils.java32 import java.security.MessageDigest;
130 MessageDigest messageDigest; in computeSha256DigestBytes()
132 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAllowLists.java31 import java.security.MessageDigest;
173 MessageDigest digest = MessageDigest.getInstance(HASH_ALGORITHM); in getAppSignatureHash()
/packages/apps/Dialer/java/com/android/incallui/
DLog.java23 import java.security.MessageDigest;
117 MessageDigest messageDigest; in secureHash()
119 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DServiceProviderVerifier.java33 import java.security.MessageDigest;
209 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in computeHash()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DAdbDumpUtil.java32 import java.security.MessageDigest;
52 MessageDigest md = MessageDigest.getInstance("MD5"); in generateFingerprintMd5()
DPackageManagerUtil.java26 import java.security.MessageDigest;
81 MessageDigest.getInstance(/* algorithm= */ "SHA-256") in hasSigningCertificateBelowP()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/helpers/
DCoverArt.java30 import java.security.MessageDigest;
89 final MessageDigest digest = MessageDigest.getInstance("MD5"); in getImageHash()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifier.java25 import java.security.MessageDigest;
47 private MessageDigest mDigester;
152 mDigester = MessageDigest.getInstance("SHA-256"); in initialize()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DUtils.java43 import java.security.MessageDigest;
271 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in encodeP256PubKey()
285 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in encodeX25519PubKey()
/packages/apps/SecureElement/src/com/android/se/security/
DAccessControlEnforcer.java57 import java.security.MessageDigest;
380 MessageDigest md = MessageDigest.getInstance("SHA"); in getAppCertHashes()
381 MessageDigest md256 = MessageDigest.getInstance("SHA-256"); in getAppCertHashes()
/packages/apps/Dialer/java/com/android/dialer/simulator/service/
DSimulatorService.java36 import java.security.MessageDigest;
175 MessageDigest messageDigest = MessageDigest.getInstance("MD5"); in hasAccessToService()
/packages/services/Telephony/src/com/android/phone/utils/
DCarrierAllowListInfo.java35 import java.security.MessageDigest;
160 MessageDigest sha256MDigest = MessageDigest.getInstance(MESSAGE_DIGEST_256_ALGORITHM); in validateCallerSignature()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DHashUtils.java26 import java.security.MessageDigest;
45 return asLong(MessageDigest.getInstance("SHA-256").digest(data.getBytes())); in sha256()

123