Home
last modified time | relevance | path

Searched refs:messageDigest (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/src/android/appsecurity/cts/keyrotationtest/utils/
DSignatureUtils.java37 MessageDigest messageDigest; in computeSha256Digest() local
39 messageDigest = MessageDigest.getInstance("SHA-256"); in computeSha256Digest()
43 messageDigest.update(data); in computeSha256Digest()
44 return Optional.of(toHexString(messageDigest.digest())); in computeSha256Digest()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/
DModuleDetector.java87 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in getSignatureDigest() local
88 messageDigest.update(packageInfo.signingInfo.getApkContentsSigners()[0].toByteArray()); in getSignatureDigest()
90 final byte[] digest = messageDigest.digest(); in getSignatureDigest()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java127 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in computePackageSignatureDigest() local
128 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()
130 final byte[] digest = messageDigest.digest(); in computePackageSignatureDigest()
DBaseDefaultPermissionGrantPolicyTest.java265 MessageDigest messageDigest; in computePackageCertDigest() local
267 messageDigest = MessageDigest.getInstance("SHA256"); in computePackageCertDigest()
273 messageDigest.update(signature.toByteArray()); in computePackageCertDigest()
275 final byte[] digest = messageDigest.digest(); in computePackageCertDigest()
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java192 MessageDigest messageDigest = MessageDigest.getInstance("SHA1"); in getFingerprint() local
193 messageDigest.update(certificate.getEncoded()); in getFingerprint()
194 byte[] sha1 = messageDigest.digest(); in getFingerprint()
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java283 MessageDigest messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes() local
284 messageDigest.update(data); in computeSha256DigestBytes()
285 return messageDigest.digest(); in computeSha256DigestBytes()