Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DAttestationPerformanceTest.java38 for (byte[] challenge : ATTESTATION_CHALLENGES) { in testRsaKeyAttestation()
41 new AndroidKeystoreRsaKeyGenerator("SHA1withRSA", keySize, challenge), in testRsaKeyAttestation()
42 keySize, challenge.length)); in testRsaKeyAttestation()
48 for (byte[] challenge : ATTESTATION_CHALLENGES) { in testEcKeyAttestation()
51 new AndroidKeystoreEcKeyGenerator("SHA1withECDSA", curve, challenge), in testEcKeyAttestation()
53 challenge.length)); in testEcKeyAttestation()
60 AndroidKeystoreRsaKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreRsaKeyGenerator() argument
72 .setAttestationChallenge(challenge) in AndroidKeystoreRsaKeyGenerator()
79 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreEcKeyGenerator() argument
89 .setAttestationChallenge(challenge) in AndroidKeystoreEcKeyGenerator()
DKeyAttestationTest.java346 for (byte[] challenge : challenges) { in testRsaAttestation()
349 testRsaAttestations(keySize, challenge, purpose, encryptionPaddingModes, in testRsaAttestation()
352 testRsaAttestations(keySize, challenge, purpose, signaturePaddingModes, in testRsaAttestation()
491 private void testRsaAttestations(int keySize, byte[] challenge, int purpose, in testRsaAttestations() argument
495 testRsaAttestation(challenge, true /* includeValidityDates */, keySize, purpose, in testRsaAttestations()
497 testRsaAttestation(challenge, false /* includeValidityDates */, keySize, purpose, in testRsaAttestations()
501 new String(challenge) + "], purposes " + in testRsaAttestations()
517 private void testRsaAttestation(byte[] challenge, boolean includeValidityDates, int keySize, in testRsaAttestation() argument
520 Log.i(TAG, "RSA key attestation with: challenge " + Arrays.toString(challenge) + in testRsaAttestation()
533 .setAttestationChallenge(challenge) in testRsaAttestation()
[all …]
/cts/tests/tests/identity/src/android/security/identity/cts/
DAttestationTest.java62 byte[] challenge = new byte[challengeLength]; in attestationTest()
63 random.nextBytes(challenge); in attestationTest()
69 store, credentialName, challenge); in attestationTest()
116 assertArrayEquals(challenge, record.getAttestationChallenge()); in attestationTest()
DProvisioningTest.java122 byte[] challenge) throws IdentityCredentialException { in createCredentialWithChallenge() argument
123 return createCredentialWithChallengeAndAcpId(store, credentialName, challenge, 0); in createCredentialWithChallenge()
128 byte[] challenge, in createCredentialWithChallengeAndAcpId() argument
134 wc.getCredentialKeyCertificateChain(challenge); in createCredentialWithChallengeAndAcpId()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java1234 String challenge = "10" + EAP_SIM_AKA_RAND; in testEapSimAuthentication() local
1235 String base64Challenge = Base64.encodeToString(hexStringToBytes(challenge), Base64.NO_WRAP); in testEapSimAuthentication()
1253 String challenge = "10" + EAP_SIM_AKA_RAND + "10" + EAP_AKA_AUTN; in testEapAkaAuthentication() local
1254 String base64Challenge = Base64.encodeToString(hexStringToBytes(challenge), Base64.NO_WRAP); in testEapAkaAuthentication()