Searched refs:messageDigest (Results 1 – 6 of 6) sorted by relevance
37 MessageDigest messageDigest; in computeSha256Digest() local39 messageDigest = MessageDigest.getInstance("SHA-256"); in computeSha256Digest()43 messageDigest.update(data); in computeSha256Digest()44 return Optional.of(toHexString(messageDigest.digest())); in computeSha256Digest()
87 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in getSignatureDigest() local88 messageDigest.update(packageInfo.signingInfo.getApkContentsSigners()[0].toByteArray()); in getSignatureDigest()90 final byte[] digest = messageDigest.digest(); in getSignatureDigest()
133 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in computePackageSignatureDigest() local134 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()136 final byte[] digest = messageDigest.digest(); in computePackageSignatureDigest()
283 MessageDigest messageDigest; in computePackageCertDigest() local285 messageDigest = MessageDigest.getInstance("SHA256"); in computePackageCertDigest()291 messageDigest.update(signature.toByteArray()); in computePackageCertDigest()293 final byte[] digest = messageDigest.digest(); in computePackageCertDigest()
225 MessageDigest messageDigest = MessageDigest.getInstance("SHA1"); in getFingerprint() local226 messageDigest.update(certificate.getEncoded()); in getFingerprint()227 byte[] sha1 = messageDigest.digest(); in getFingerprint()
382 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes() local383 messageDigest.update(data); in computeSha256DigestBytes()384 return messageDigest.digest(); in computeSha256DigestBytes()