/frameworks/base/core/java/android/util/ |
D | PackageUtils.java | 128 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/ |
D | PackageBasedTokenUtil.java | 86 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()
|
D | InboundSmsTracker.java | 453 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/ |
D | KeySyncUtils.java | 112 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/ |
D | Rlog.java | 149 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/ |
D | WatchlistConfig.java | 209 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/ |
D | Rlog.java | 218 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/ |
D | MasterKey.java | 92 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/ |
D | SourceStampVerifier.java | 496 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/ |
D | KeySyncUtilsTest.java | 507 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/ |
D | SmsNumberUtils.java | 685 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/ |
D | AtomicFormula.java | 521 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/ |
D | AppIntegrityManagerServiceImpl.java | 438 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/ |
D | MediaDrm.java | 1683 MessageDigest messageDigest = MessageDigest.getInstance(algorithm); 1684 return messageDigest.digest(rawBytes);
|