Home
last modified time | relevance | path

Searched refs:useStrongBox (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DAttestKeyTest.java210 private void testEcAttestKey(boolean useStrongBox) throws Exception { in testEcAttestKey() argument
211 if (useStrongBox) { in testEcAttestKey()
220 .setIsStrongBoxBacked(useStrongBox) in testEcAttestKey()
224 testAttestKey(useStrongBox, attestKeyAlias, attestKeyCertChain); in testEcAttestKey()
227 private void testRsaAttestKey(boolean useStrongBox) throws Exception { in testRsaAttestKey() argument
228 if (useStrongBox) { in testRsaAttestKey()
237 .setIsStrongBoxBacked(useStrongBox) in testRsaAttestKey()
241 testAttestKey(useStrongBox, attestKeyAlias, attestKeyCertChain); in testRsaAttestKey()
244 private void testAttestKey(boolean useStrongBox, String attestKeyAlias, in testAttestKey() argument
251 .setIsStrongBoxBacked(useStrongBox) in testAttestKey()
[all …]
DNoAttestKeyTest.java95 private void testAttestKeyFail(boolean useStrongBox, String algorithm) throws Exception { in testAttestKeyFail() argument
96 if (useStrongBox) { in testAttestKeyFail()
109 .setIsStrongBoxBacked(useStrongBox) in testAttestKeyFail()
117 + useStrongBox + " and algorithm = " + algorithm + " as the " in testAttestKeyFail()
127 assertFalse(useStrongBox); in testAttestKeyFail()
DDeviceOwnerKeyManagementTest.java359 String[] signaturePaddings, boolean useStrongBox, in generateKeyAndCheckAttestation() argument
370 .setIsStrongBoxBacked(useStrongBox); in generateKeyAndCheckAttestation()
441 public void assertAllVariantsOfDeviceIdAttestation(boolean useStrongBox) throws Exception { in assertAllVariantsOfDeviceIdAttestation() argument
487 supportedKey.signaturePaddingSchemes, useStrongBox, devIdOpt); in assertAllVariantsOfDeviceIdAttestation()
520 expectedImei, expectedMeid, expectedSecondImei, useStrongBox); in assertAllVariantsOfDeviceIdAttestation()
524 expectedImei, expectedMeid, expectedSecondImei, useStrongBox); in assertAllVariantsOfDeviceIdAttestation()
532 assertThat(useStrongBox && !TestUtils.hasStrongBox(sContext)).isTrue(); in assertAllVariantsOfDeviceIdAttestation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DFingerprintBoundKeysTest.java73 protected boolean useStrongBox; field in FingerprintBoundKeysTest
108 useStrongBox = false; in onRequestPermissionsResult()
199 .setIsStrongBoxBacked(useStrongBox) in createKey()
235 protected boolean doValidityDurationTest(boolean useStrongBox) { in doValidityDurationTest() argument
366 mActivity.useStrongBox)); in onAuthenticationSucceeded()
367 if (mActivity.useStrongBox || !hasStrongBox) { in onAuthenticationSucceeded()
387 if (!mActivity.useStrongBox && hasStrongBox) { in onDismiss()
388 mActivity.useStrongBox = true; in onDismiss()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DAbstractUserAuthenticationMacTest.java31 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument
35 .setIsStrongBoxBacked(useStrongBox) in createUserAuthenticationKey()
DAbstractUserAuthenticationAeadCipherTest.java35 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument
42 .setIsStrongBoxBacked(useStrongBox); in createUserAuthenticationKey()
DAbstractUserAuthenticationSignatureTest.java33 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument
39 .setIsStrongBoxBacked(useStrongBox) in createUserAuthenticationKey()
DAbstractUserAuthenticationCipherTest.java34 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument
41 .setIsStrongBoxBacked(useStrongBox); in createUserAuthenticationKey()
DUtils.java39 static void createBiometricBoundKey(String keyName, boolean useStrongBox) throws Exception { in createBiometricBoundKey() argument
52 .setIsStrongBoxBacked(useStrongBox) in createBiometricBoundKey()
58 static void createTimeBoundSecretKey_deprecated(String keyName, boolean useStrongBox) in createTimeBoundSecretKey_deprecated() argument
72 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey_deprecated()
DCredentialCryptoTests.java115 private void testTimedKey(String keyName, boolean useStrongBox) { in testTimedKey() argument
118 Utils.createTimeBoundSecretKey_deprecated(keyName, useStrongBox /* useStrongBox */); in testTimedKey()
154 if (useStrongBox) { in testTimedKey()
DAbstractUserAuthenticationKeyAgreementTest.java45 String keyName, int timeout, int authType, boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument
52 .setIsStrongBoxBacked(useStrongBox); in createUserAuthenticationKey()
DBiometricStrongTests.java196 private void testBiometricBoundEncryption(String keyName, byte[] secret, boolean useStrongBox) { in testBiometricBoundEncryption() argument
199 Utils.createBiometricBoundKey(keyName, useStrongBox); in testBiometricBoundEncryption()
242 if (useStrongBox) { in testBiometricBoundEncryption()
DAbstractUserAuthenticationTest.java73 boolean useStrongBox) throws Exception; in createUserAuthenticationKey() argument
271 private void testCredentialBoundEncryption(String keyName, int timeout, boolean useStrongBox, in testCredentialBoundEncryption() argument
293 createUserAuthenticationKey(keyName, timeout, getKeyAuthenticators(), useStrongBox); in testCredentialBoundEncryption()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/
DUtils.java201 public static void createTimeBoundSecretKey_deprecated(String keyName, boolean useStrongBox) in createTimeBoundSecretKey_deprecated() argument
215 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey_deprecated()
221 public static void createTimeBoundSecretKey(String keyName, int authTypes, boolean useStrongBox) in createTimeBoundSecretKey() argument
235 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey()
241 public static void generateBiometricBoundKey(String keyName, boolean useStrongBox) in generateBiometricBoundKey() argument
252 .setIsStrongBoxBacked(useStrongBox) in generateBiometricBoundKey()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java195 private KeyGenParameterSpec buildRsaKeySpec(String alias, boolean useStrongBox) { in buildRsaKeySpec() argument
203 .setIsStrongBoxBacked(useStrongBox) in buildRsaKeySpec()
232 private KeyGenParameterSpec buildEcKeySpec(String alias, boolean useStrongBox) { in buildEcKeySpec() argument
237 .setIsStrongBoxBacked(useStrongBox) in buildEcKeySpec()
341 String[] signaturePaddings, boolean useStrongBox, in generateKeyAndCheckAttestation() argument
352 .setIsStrongBoxBacked(useStrongBox); in generateKeyAndCheckAttestation()
450 public void assertAllVariantsOfDeviceIdAttestation(boolean useStrongBox) throws Exception { in assertAllVariantsOfDeviceIdAttestation() argument
496 supportedKey.signaturePaddingSchemes, useStrongBox, devIdOpt); in assertAllVariantsOfDeviceIdAttestation()
531 assertThat(useStrongBox && !hasStrongBox()).isTrue(); in assertAllVariantsOfDeviceIdAttestation()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java401 private KeyGenParameterSpec buildRsaKeySpec(String alias, boolean useStrongBox) { in buildRsaKeySpec() argument
409 .setIsStrongBoxBacked(useStrongBox) in buildRsaKeySpec()