Home
last modified time | relevance | path

Searched refs:rootOfTrust (Results 1 – 5 of 5) sorted by relevance

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DKeystoreAttestationDeviceInfo.java160 if (keyDetailsList.rootOfTrust.isPresent()) { in collectStoredInformation()
161 collectRootOfTrust(keyDetailsList.rootOfTrust, localStore); in collectStoredInformation()
203 Optional<RootOfTrust> rootOfTrust, DeviceInfoStore localStore) throws IOException { in collectRootOfTrust() argument
204 if (rootOfTrust.isPresent()) { in collectRootOfTrust()
207 Base64.getEncoder().encodeToString(rootOfTrust.get().verifiedBootKey)); in collectRootOfTrust()
208 localStore.addResult("device_locked", rootOfTrust.get().deviceLocked); in collectRootOfTrust()
209 localStore.addResult("verified_boot_state", rootOfTrust.get().verifiedBootState.name()); in collectRootOfTrust()
212 Base64.getEncoder().encodeToString(rootOfTrust.get().verifiedBootHash)); in collectRootOfTrust()
/cts/tests/security/src/android/keystore/cts/
DEatAttestation.java38 final RootOfTrust rootOfTrust; field in EatAttestation
113 rootOfTrust = rootOfTrustBuilder.build(); in EatAttestation()
128 return rootOfTrust; in getRootOfTrust()
DAuthorizationList.java196 private RootOfTrust rootOfTrust; field in AuthorizationList
311 rootOfTrust = new RootOfTrust(value, attestationVersion, strictParsing); in AuthorizationList()
704 return rootOfTrust; in getRootOfTrust()
868 if (rootOfTrust != null) { in toString()
870 s.append(rootOfTrust); in toString()
/cts/tests/tests/keystore/src/android/keystore/cts/
DDeviceOwnerKeyManagementTest.java539 RootOfTrust rootOfTrust = attestation.getRootOfTrust(); in checkRootOfTrustForLockedDevice() local
540 assertNotNull(rootOfTrust); in checkRootOfTrustForLockedDevice()
541 assertNotNull(rootOfTrust.getVerifiedBootKey()); in checkRootOfTrustForLockedDevice()
542 assertTrue("Verified boot key is only " + rootOfTrust.getVerifiedBootKey().length in checkRootOfTrustForLockedDevice()
543 + " bytes long", rootOfTrust.getVerifiedBootKey().length >= 32); in checkRootOfTrustForLockedDevice()
544 return (rootOfTrust.isDeviceLocked() in checkRootOfTrustForLockedDevice()
545 && (rootOfTrust.getVerifiedBootState() == KM_VERIFIED_BOOT_VERIFIED)); in checkRootOfTrustForLockedDevice()
DKeyAttestationTest.java1691 RootOfTrust rootOfTrust = attestation.getRootOfTrust(); in checkRootOfTrust() local
1692 assertNotNull(rootOfTrust); in checkRootOfTrust()
1693 assertNotNull(rootOfTrust.getVerifiedBootKey()); in checkRootOfTrust()
1694 assertTrue("Verified boot key is only " + rootOfTrust.getVerifiedBootKey().length + in checkRootOfTrust()
1695 " bytes long", rootOfTrust.getVerifiedBootKey().length >= 32); in checkRootOfTrust()
1699 assertTrue(unlockedDeviceMessage, rootOfTrust.isDeviceLocked()); in checkRootOfTrust()
1700 checkEntropy(rootOfTrust.getVerifiedBootKey()); in checkRootOfTrust()
1701 assertEquals(KM_VERIFIED_BOOT_VERIFIED, rootOfTrust.getVerifiedBootState()); in checkRootOfTrust()
1707 assertNotNull(rootOfTrust.getVerifiedBootHash()); in checkRootOfTrust()
1708 assertEquals(32, rootOfTrust.getVerifiedBootHash().length); in checkRootOfTrust()
[all …]