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.java358 String[] signaturePaddings, boolean useStrongBox, in generateKeyAndCheckAttestation() argument
369 .setIsStrongBoxBacked(useStrongBox); in generateKeyAndCheckAttestation()
440 public void assertAllVariantsOfDeviceIdAttestation(boolean useStrongBox) throws Exception { in assertAllVariantsOfDeviceIdAttestation() argument
486 supportedKey.signaturePaddingSchemes, useStrongBox, devIdOpt); in assertAllVariantsOfDeviceIdAttestation()
519 expectedImei, expectedMeid, expectedSecondImei, useStrongBox); in assertAllVariantsOfDeviceIdAttestation()
523 expectedImei, expectedMeid, expectedSecondImei, useStrongBox); in assertAllVariantsOfDeviceIdAttestation()
531 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()
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()
DAbstractUserAuthenticationAeadCipherTest.java35 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument
42 .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.java200 public static void createTimeBoundSecretKey_deprecated(String keyName, boolean useStrongBox) in createTimeBoundSecretKey_deprecated() argument
214 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey_deprecated()
220 public static void createTimeBoundSecretKey(String keyName, int authTypes, boolean useStrongBox) in createTimeBoundSecretKey() argument
234 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey()
240 public static void generateBiometricBoundKey(String keyName, boolean useStrongBox) in generateBiometricBoundKey() argument
251 .setIsStrongBoxBacked(useStrongBox) in generateBiometricBoundKey()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java194 private KeyGenParameterSpec buildRsaKeySpec(String alias, boolean useStrongBox) { in buildRsaKeySpec() argument
202 .setIsStrongBoxBacked(useStrongBox) in buildRsaKeySpec()
231 private KeyGenParameterSpec buildEcKeySpec(String alias, boolean useStrongBox) { in buildEcKeySpec() argument
236 .setIsStrongBoxBacked(useStrongBox) in buildEcKeySpec()
340 String[] signaturePaddings, boolean useStrongBox, in generateKeyAndCheckAttestation() argument
351 .setIsStrongBoxBacked(useStrongBox); in generateKeyAndCheckAttestation()
450 public void assertAllVariantsOfDeviceIdAttestation(boolean useStrongBox) throws Exception { in assertAllVariantsOfDeviceIdAttestation() argument
494 supportedKey.signaturePaddingSchemes, useStrongBox, devIdOpt); in assertAllVariantsOfDeviceIdAttestation()
530 assertThat(useStrongBox && !hasStrongBox()).isTrue(); in assertAllVariantsOfDeviceIdAttestation()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java432 private KeyGenParameterSpec buildRsaKeySpec(String alias, boolean useStrongBox) { in buildRsaKeySpec() argument
440 .setIsStrongBoxBacked(useStrongBox) in buildRsaKeySpec()