Searched refs:Attestation (Results 1 – 11 of 11) sorted by relevance
33 public abstract class Attestation { class76 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
35 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()
24 public class Asn1Attestation extends Attestation {72 byte[] attestationExtensionBytes = x509Cert.getExtensionValue(Attestation.ASN1_OID); in getAttestationSequence()
774 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()
19 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()616 … Attestation 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 …]
23 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 …]
156 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()
282 TestUtils.assertImplementedByKeyMintAfter(keyInfo, Attestation.KM_VERSION_KEYMINT_1); in generateEphemeralAndroidKeyPair()
300 Attestation.KM_VERSION_KEYMINT_1))); in testRsaOaepDecryptWithWrongMGF1DigestFails()
1251 Attestation.KM_VERSION_KEYMINT_3) in testKatBasicWithDifferentProviders()1257 + " below " + Attestation.KM_VERSION_KEYMINT_3); in testKatBasicWithDifferentProviders()
36 import android.keystore.cts.Attestation;270 Attestation attestationRecord = Attestation.loadFromCertificate((X509Certificate) leaf); in validateDeviceIdAttestationData()303 Attestation attestationRecord = Attestation.loadFromCertificate(leaf); in validateAttestationRecord()