Home
last modified time | relevance | path

Searched refs:messageDigest (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/android/util/
DPackageUtils.java128 MessageDigest messageDigest; in computeSha256DigestBytes() local
130 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
136 messageDigest.update(data); in computeSha256DigestBytes()
138 return messageDigest.digest(); in computeSha256DigestBytes()
196 MessageDigest messageDigest; in computeSha256DigestForLargeFileAsBytes() local
198 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestForLargeFileAsBytes()
199 messageDigest.reset(); in computeSha256DigestForLargeFileAsBytes()
207 messageDigest)) { in computeSha256DigestForLargeFileAsBytes() argument
214 return messageDigest.digest(); in computeSha256DigestForLargeFileAsBytes()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPackageBasedTokenUtil.java86 MessageDigest messageDigest; in generatePackageBasedToken() local
88 messageDigest = MessageDigest.getInstance(HASH_TYPE); in generatePackageBasedToken()
94 messageDigest.update(packageName.getBytes(CHARSET_UTF_8)); in generatePackageBasedToken()
96 messageDigest.update(space.getBytes(CHARSET_UTF_8)); in generatePackageBasedToken()
98 messageDigest.update(signatures[i].toCharsString().getBytes(CHARSET_UTF_8)); in generatePackageBasedToken()
100 byte[] hashSignatures = messageDigest.digest(); in generatePackageBasedToken()
DInboundSmsTracker.java453 MessageDigest messageDigest = MessageDigest.getInstance("SHA-1"); in getShaBytes() local
454 messageDigest.reset(); in getShaBytes()
455 messageDigest.update(messagePrint.getBytes("UTF-8")); in getShaBytes()
456 byte[] hashResult = messageDigest.digest(); in getShaBytes()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java112 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); in calculateThmKfHash() local
113 messageDigest.update(THM_KF_HASH_PREFIX); in calculateThmKfHash()
114 messageDigest.update(lockScreenHash); in calculateThmKfHash()
115 return messageDigest.digest(); in calculateThmKfHash()
/frameworks/base/core/java/android/telephony/
DRlog.java149 MessageDigest messageDigest; in secureHash() local
152 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()
157 byte[] result = messageDigest.digest(input); in secureHash()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistConfig.java209 MessageDigest messageDigest; in getSha256() local
211 messageDigest = MessageDigest.getInstance("SHA256"); in getSha256()
216 messageDigest.update(str.getBytes()); in getSha256()
217 return messageDigest.digest(); in getSha256()
/frameworks/base/telephony/java/com/android/telephony/
DRlog.java218 MessageDigest messageDigest; in secureHash() local
221 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()
226 byte[] result = messageDigest.digest(input); in secureHash()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/
DMasterKey.java92 MessageDigest messageDigest = MessageDigest.getInstance("SHA-1"); in from() local
93 messageDigest.update(data); in from()
94 mMasterKey = messageDigest.digest(); in from()
/frameworks/base/core/java/android/util/apk/
DSourceStampVerifier.java496 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); in computeSha256Digest() local
497 messageDigest.update(input); in computeSha256Digest()
498 return messageDigest.digest(); in computeSha256Digest()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java507 MessageDigest messageDigest = MessageDigest.getInstance(SHA_256_ALGORITHM); in calculateSha256() local
508 messageDigest.update(bytes); in calculateSha256()
509 return messageDigest.digest(); in calculateSha256()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsNumberUtils.java685 MessageDigest messageDigest; in secureHash() local
688 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()
693 byte[] result = messageDigest.digest(input); in secureHash()
/frameworks/base/core/java/android/content/integrity/
DAtomicFormula.java521 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); in hash() local
522 byte[] hashBytes = messageDigest.digest(value.getBytes(StandardCharsets.UTF_8)); in hash()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java438 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); in getPackageNameNormalized() local
439 byte[] hashBytes = messageDigest.digest(packageName.getBytes(StandardCharsets.UTF_8)); in getPackageNameNormalized()
/frameworks/base/media/java/android/media/
DMediaDrm.java1683 MessageDigest messageDigest = MessageDigest.getInstance(algorithm);
1684 return messageDigest.digest(rawBytes);