Searched refs:messageDigest (Results 1 – 8 of 8) 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()
111 MessageDigest messageDigest; in computeSha256DigestBytes() local113 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()119 messageDigest.update(data); in computeSha256DigestBytes()121 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()
142 MessageDigest messageDigest; in secureHash() local145 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()150 byte[] result = messageDigest.digest(input); in secureHash()
149 MessageDigest messageDigest; in secureHash() local152 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()157 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()
685 MessageDigest messageDigest; in secureHash() local688 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()693 byte[] result = messageDigest.digest(input); in secureHash()