Home
last modified time | relevance | path

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

/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()
/frameworks/base/core/java/android/util/
DPackageUtils.java109 MessageDigest messageDigest; in computeSha256DigestBytes() local
111 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
117 messageDigest.update(data); in computeSha256DigestBytes()
119 return messageDigest.digest(); in computeSha256DigestBytes()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java110 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); in calculateThmKfHash() local
111 messageDigest.update(THM_KF_HASH_PREFIX); in calculateThmKfHash()
112 messageDigest.update(lockScreenHash); in calculateThmKfHash()
113 return messageDigest.digest(); in calculateThmKfHash()
/frameworks/base/telephony/java/android/telephony/
DRlog.java150 MessageDigest messageDigest; in secureHash() local
153 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()
158 byte[] result = messageDigest.digest(input); in secureHash()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistConfig.java214 MessageDigest messageDigest; in getSha256() local
216 messageDigest = MessageDigest.getInstance("SHA256"); in getSha256()
221 messageDigest.update(str.getBytes()); in getSha256()
222 return messageDigest.digest(); in getSha256()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java515 MessageDigest messageDigest = MessageDigest.getInstance(SHA_256_ALGORITHM); in calculateSha256() local
516 messageDigest.update(bytes); in calculateSha256()
517 return messageDigest.digest(); in calculateSha256()