Home
last modified time | relevance | path

Searched refs:Attestation (Results 1 – 11 of 11) sorted by relevance

/cts/tests/security/src/android/keystore/cts/
DAttestation.java33 public abstract class Attestation { class
76 public static Attestation loadFromCertificate(X509Certificate x509Cert) in loadFromCertificate()
78 return Attestation.loadFromCertificate(x509Cert, true); in loadFromCertificate()
80 public static Attestation loadFromCertificate(X509Certificate x509Cert, boolean strictParsing) in loadFromCertificate()
96 Attestation attestation = new Asn1Attestation(x509Cert, strictParsing); in loadFromCertificate()
105 Attestation(X509Certificate x509Cert) { in Attestation() method in Attestation
DEatAttestation.java35 public class EatAttestation extends Attestation {
137 byte[] attestationExtensionBytes = x509Cert.getExtensionValue(Attestation.EAT_OID); in getEatExtension()
150 return Attestation.KM_SECURITY_LEVEL_SOFTWARE; in eatSecurityLevelToKeymintSecurityLevel()
152 return Attestation.KM_SECURITY_LEVEL_TRUSTED_ENVIRONMENT; in eatSecurityLevelToKeymintSecurityLevel()
154 return Attestation.KM_SECURITY_LEVEL_STRONG_BOX; in eatSecurityLevelToKeymintSecurityLevel()
DAsn1Attestation.java24 public class Asn1Attestation extends Attestation {
72 byte[] attestationExtensionBytes = x509Cert.getExtensionValue(Attestation.ASN1_OID); in getAttestationSequence()
DAuthorizationList.java774 return Attestation.KM_SECURITY_LEVEL_SOFTWARE; in eatSecurityLevelToKeymasterSecurityLevel()
776 return Attestation.KM_SECURITY_LEVEL_TRUSTED_ENVIRONMENT; in eatSecurityLevelToKeymasterSecurityLevel()
778 return Attestation.KM_SECURITY_LEVEL_STRONG_BOX; in eatSecurityLevelToKeymasterSecurityLevel()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java19 import static android.keystore.cts.Attestation.KM_SECURITY_LEVEL_SOFTWARE;
20 import static android.keystore.cts.Attestation.KM_SECURITY_LEVEL_STRONG_BOX;
21 import static android.keystore.cts.Attestation.KM_SECURITY_LEVEL_TRUSTED_ENVIRONMENT;
398 assertNull(attestationCert.getExtensionValue(Attestation.ASN1_OID)); in testEcAttestation_NoChallenge()
399 assertNull(attestationCert.getExtensionValue(Attestation.EAT_OID)); in testEcAttestation_NoChallenge()
438 checkDeviceLocked(Attestation.loadFromCertificate(attestationCert)); in testEcAttestation_DeviceLocked()
515 Attestation attestation = Attestation.loadFromCertificate(attestationCert); in testAttestationKmVersionMatchesFeatureVersion()
616Attestation attestation = Attestation.loadFromCertificate((X509Certificate) certificates[0]); in testEcAttestation_UniqueIdWorksWithCorrectPermission()
629 attestation = Attestation.loadFromCertificate((X509Certificate) certificates[0]); in testEcAttestation_UniqueIdWorksWithCorrectPermission()
825 assertNull(attestationCert.getExtensionValue(Attestation.ASN1_OID)); in testRsaAttestation_NoChallenge()
[all …]
DDeviceOwnerKeyManagementTest.java23 import static android.keystore.cts.Attestation.KM_SECURITY_LEVEL_SOFTWARE;
24 import static android.keystore.cts.Attestation.KM_SECURITY_LEVEL_STRONG_BOX;
25 import static android.keystore.cts.Attestation.KM_SECURITY_LEVEL_TRUSTED_ENVIRONMENT;
155 Attestation attestationRecord = null; in validateDeviceIdAttestationData()
158 Attestation record; in validateDeviceIdAttestationData()
159 record = Attestation.loadFromCertificate((X509Certificate) certs[i]); in validateDeviceIdAttestationData()
219 TestUtils.hasKeystoreVersion(useStrongbox, Attestation.KM_VERSION_KEYMINT_3); in validateSecondImei()
321 Attestation attestationRecord = Attestation.loadFromCertificate(leaf); in validateAttestationRecord()
538 private boolean checkRootOfTrustForLockedDevice(Attestation attestation) { in checkRootOfTrustForLockedDevice()
548 private boolean isDeviceLockedAccordingToAttestation(Attestation attestation) { in isDeviceLockedAccordingToAttestation()
[all …]
DAttestKeyTest.java156 Attestation.KM_VERSION_KEYMINT_1)); in testStrongBoxCannotAttestToTeeKey()
260 final Attestation ecKeyAttestation = Attestation.loadFromCertificate(attestationEcKeyCert); in testAttestKey()
278 final Attestation rsaKeyAttestation = in testAttestKey()
279 Attestation.loadFromCertificate(attestationRsaKeyCert); in testAttestKey()
DKeyAgreementTest.java282 TestUtils.assertImplementedByKeyMintAfter(keyInfo, Attestation.KM_VERSION_KEYMINT_1); in generateEphemeralAndroidKeyPair()
DRSACipherTest.java300 Attestation.KM_VERSION_KEYMINT_1))); in testRsaOaepDecryptWithWrongMGF1DigestFails()
DCipherTest.java1251 Attestation.KM_VERSION_KEYMINT_3) in testKatBasicWithDifferentProviders()
1257 + " below " + Attestation.KM_VERSION_KEYMINT_3); in testKatBasicWithDifferentProviders()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java36 import android.keystore.cts.Attestation;
270 Attestation attestationRecord = Attestation.loadFromCertificate((X509Certificate) leaf); in validateDeviceIdAttestationData()
303 Attestation attestationRecord = Attestation.loadFromCertificate(leaf); in validateAttestationRecord()