Searched refs:messageDigest (Results 1 – 6 of 6) sorted by relevance
86 MessageDigest messageDigest; in generatePackageBasedToken() local88 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()
109 MessageDigest messageDigest; in computeSha256DigestBytes() local111 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()117 messageDigest.update(data); in computeSha256DigestBytes()119 return messageDigest.digest(); in computeSha256DigestBytes()
110 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); in calculateThmKfHash() local111 messageDigest.update(THM_KF_HASH_PREFIX); in calculateThmKfHash()112 messageDigest.update(lockScreenHash); in calculateThmKfHash()113 return messageDigest.digest(); in calculateThmKfHash()
150 MessageDigest messageDigest; in secureHash() local153 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()158 byte[] result = messageDigest.digest(input); in secureHash()
214 MessageDigest messageDigest; in getSha256() local216 messageDigest = MessageDigest.getInstance("SHA256"); in getSha256()221 messageDigest.update(str.getBytes()); in getSha256()222 return messageDigest.digest(); in getSha256()
515 MessageDigest messageDigest = MessageDigest.getInstance(SHA_256_ALGORITHM); in calculateSha256() local516 messageDigest.update(bytes); in calculateSha256()517 return messageDigest.digest(); in calculateSha256()