Home
last modified time | relevance | path

Searched refs:messageDigest (Results 1 – 8 of 8) 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.java111 MessageDigest messageDigest; in computeSha256DigestBytes() local
113 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
119 messageDigest.update(data); in computeSha256DigestBytes()
121 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/com/android/telephony/
DRlog.java142 MessageDigest messageDigest; in secureHash() local
145 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()
150 byte[] result = messageDigest.digest(input); in secureHash()
/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.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()
/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()