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()
127 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in computePackageSignatureDigest() local128 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()130 final byte[] digest = messageDigest.digest(); in computePackageSignatureDigest()
265 MessageDigest messageDigest; in computePackageCertDigest() local267 messageDigest = MessageDigest.getInstance("SHA256"); in computePackageCertDigest()273 messageDigest.update(signature.toByteArray()); in computePackageCertDigest()275 final byte[] digest = messageDigest.digest(); in computePackageCertDigest()
192 MessageDigest messageDigest = MessageDigest.getInstance("SHA1"); in getFingerprint() local193 messageDigest.update(certificate.getEncoded()); in getFingerprint()194 byte[] sha1 = messageDigest.digest(); in getFingerprint()
283 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes() local284 messageDigest.update(data); in computeSha256DigestBytes()285 return messageDigest.digest(); in computeSha256DigestBytes()