Home
last modified time | relevance | path

Searched refs:attestation (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java437 Attestation attestation = new Attestation(attestationCert); in testRsaAttestation() local
439 checkRsaKeyDetails(attestation, keySize, purposes, ImmutableSet.copyOf(paddingModes)); in testRsaAttestation()
442 attestation); in testRsaAttestation()
491 Attestation attestation = new Attestation(attestationCert); in testEcAttestation() local
493 checkEcKeyDetails(attestation, ecCurve, keySize); in testEcAttestation()
496 attestation); in testEcAttestation()
502 private void checkAttestationApplicationId(Attestation attestation) in checkAttestationApplicationId() argument
505 int kmVersion = attestation.getKeymasterVersion(); in checkAttestationApplicationId()
506 assertNull(attestation.getTeeEnforced().getAttestationApplicationId()); in checkAttestationApplicationId()
507 aaid = attestation.getSoftwareEnforced().getAttestationApplicationId(); in checkAttestationApplicationId()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java399 private void validateAttestationRecord(List<Certificate> attestation, byte[] providedChallenge) in validateAttestationRecord() argument
401 assertThat(attestation).isNotNull(); in validateAttestationRecord()
402 assertThat(attestation.size()).isGreaterThan(1); in validateAttestationRecord()
403 X509Certificate leaf = (X509Certificate) attestation.get(0); in validateAttestationRecord()
493 List<Certificate> attestation = generated.getAttestationRecord(); in generateKeyAndCheckAttestation() local
494 validateAttestationRecord(attestation, attestationChallenge); in generateKeyAndCheckAttestation()
495 validateSignatureChain(attestation, keyPair.getPublic()); in generateKeyAndCheckAttestation()
496 return attestation.get(0); in generateKeyAndCheckAttestation()
586 Certificate attestation = generateKeyAndCheckAttestation( in assertAllVariantsOfDeviceIdAttestation() local
591 if (attestation == null && !isDeviceIdAttestationSupported()) { in assertAllVariantsOfDeviceIdAttestation()
[all …]