/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | RsaCipherPerformanceTest.java | 52 for (int keySize : keySizes) { in testRsaCipher() 54 TestUtils.getMaxSupportedPlaintextInputSizeBytes(algorithm, keySize); in testRsaCipher() 61 new AndroidKeystoreRsaKeyGenerator(algorithm, keySize), in testRsaCipher() 62 keySize, in testRsaCipher() 65 new AndroidKeystoreRsaKeyGenerator(algorithm, keySize), in testRsaCipher() 66 keySize, in testRsaCipher() 69 new DefaultKeystoreKeyPairGenerator(algorithm, keySize), in testRsaCipher() 70 keySize, in testRsaCipher() 73 new DefaultKeystoreKeyPairGenerator(algorithm, keySize), in testRsaCipher() 74 keySize, in testRsaCipher() [all …]
|
D | EcdsaSignaturePerformanceTest.java | 57 for (int keySize : SUPPORTED_KEY_SIZES) { in testEcdsaSign() 59 new AndroidKeystoreEcKeyGenerator(algorithm, keySize); in testEcdsaSign() 61 new DefaultKeystoreEcKeyGenerator(algorithm, keySize); in testEcdsaSign() 65 androidKeystoreEcGenerator, keySize, messageSize), in testEcdsaSign() 67 androidKeystoreEcGenerator, keySize, messageSize), in testEcdsaSign() 69 defaultKeystoreEcGenerator, keySize, messageSize), in testEcdsaSign() 71 defaultKeystoreEcGenerator, keySize, messageSize)); in testEcdsaSign() 78 DefaultKeystoreEcKeyGenerator(String algorithm, int keySize) throws Exception { in DefaultKeystoreEcKeyGenerator() argument 80 getKeyPairGenerator().initialize(keySize); in DefaultKeystoreEcKeyGenerator() 86 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreEcKeyGenerator() argument [all …]
|
D | RsaSignaturePerformanceTest.java | 33 for (int keySize : SUPPORTED_RSA_KEY_SIZES) { in testNONEwithRSA() 34 int modulusSizeBytes = (keySize + 7) / 8; in testNONEwithRSA() 37 testRsaSign("NONEwithRSA", new int[] {keySize}, messageSizes); in testNONEwithRSA() 87 for (int keySize : keySizes) { in testRsaSign() 88 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm(algorithm, keySize)) { in testRsaSign() 92 new AndroidKeystoreRsaKeyGenerator(algorithm, keySize); in testRsaSign() 94 new DefaultKeystoreKeyPairGenerator(algorithm, keySize); in testRsaSign() 98 androidKeystoreRsaGenerator, keySize, messageSize), in testRsaSign() 100 defaultKeystoreRsaGenerator, keySize, messageSize), in testRsaSign() 102 androidKeystoreRsaGenerator, keySize, messageSize), in testRsaSign() [all …]
|
D | DesKeyGenPerformanceTest.java | 29 for (int keySize : SUPPORTED_DES_KEY_SIZES) { in testDesKeyGen() 32 new DefaultKeystoreSecretKeyGenerator("DESede", keySize), keySize), in testDesKeyGen() 34 new AndroidKeystoreDesKeyGenerator("DESede", keySize), keySize)); in testDesKeyGen() 40 AndroidKeystoreDesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreDesKeyGenerator() argument 47 .setKeySize(keySize) in AndroidKeystoreDesKeyGenerator()
|
D | AesKeyGenPerformanceTest.java | 28 for (int keySize : SUPPORTED_AES_KEY_SIZES) { in testAesKeyGen() 31 new DefaultKeystoreSecretKeyGenerator("AES", keySize), keySize), in testAesKeyGen() 33 new AndroidKeystoreAesKeyGenerator("AES", keySize), keySize)); in testAesKeyGen() 39 AndroidKeystoreAesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreAesKeyGenerator() argument 46 .setKeySize(keySize) in AndroidKeystoreAesKeyGenerator()
|
D | HmacKeyGenPerformanceTest.java | 28 for (int keySize : SUPPORTED_KEY_SIZES) { in testHmacKeyGen() 31 new AndroidKeystoreHmacKeyGenerator("HmacSHA1", keySize), keySize), in testHmacKeyGen() 33 new DefaultKeystoreSecretKeyGenerator("HmacSHA1", keySize), keySize)); in testHmacKeyGen() 39 AndroidKeystoreHmacKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreHmacKeyGenerator() argument 46 .setKeySize(keySize) in AndroidKeystoreHmacKeyGenerator()
|
D | RsaKeyGenPerformanceTest.java | 28 for (int keySize : SUPPORTED_RSA_KEY_SIZES) { in testRsaKeyGen() 31 new AndroidKeystoreRsaKeyenerator("RSA", keySize), in testRsaKeyGen() 32 keySize), in testRsaKeyGen() 34 new DefaultKeystoreKeyPairGenerator("RSA", keySize), in testRsaKeyGen() 35 keySize)); in testRsaKeyGen() 41 AndroidKeystoreRsaKeyenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreRsaKeyenerator() argument 48 .setKeySize(keySize) in AndroidKeystoreRsaKeyenerator()
|
D | AesCipherPerformanceTest.java | 59 for (int keySize : keySizes) { in testAesCipher() 61 new AndroidKeystoreAesKeyGenerator(algorithm, keySize); in testAesCipher() 63 new DefaultKeystoreSecretKeyGenerator(algorithm, keySize); in testAesCipher() 67 androidKeystoreAesGenerator, keySize, messageSize), in testAesCipher() 69 defaultKeystoreAesGenerator, keySize, messageSize), in testAesCipher() 71 androidKeystoreAesGenerator, keySize, messageSize), in testAesCipher() 73 defaultKeystoreAesGenerator, keySize, messageSize)); in testAesCipher() 79 AndroidKeystoreAesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreAesKeyGenerator() argument 90 .setKeySize(keySize) in AndroidKeystoreAesKeyGenerator() 100 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreAesEncryptMeasurable() argument [all …]
|
D | DesCipherPerformanceTest.java | 61 for (int keySize : keySizes) { in testDesCipher() 63 new AndroidKeystoreDesKeyGenerator(algorithm, keySize); in testDesCipher() 65 new DefaultKeystoreSecretKeyGenerator(algorithm, keySize); in testDesCipher() 69 androidKeystoreDesGenerator, keySize, messageSize), in testDesCipher() 71 defaultKeystoreDesGenerator, keySize, messageSize), in testDesCipher() 73 androidKeystoreDesGenerator, keySize, messageSize), in testDesCipher() 75 defaultKeystoreDesGenerator, keySize, messageSize)); in testDesCipher() 81 AndroidKeystoreDesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreDesKeyGenerator() argument 92 .setKeySize(keySize) in AndroidKeystoreDesKeyGenerator() 102 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreDesEncryptMeasurable() argument [all …]
|
D | HmacMacPerformanceTest.java | 52 for (int keySize : keySizes) { in testHmac() 54 new AndroidKeystoreHmacKeyGenerator(algorithm, keySize); in testHmac() 56 new DefaultKeystoreSecretKeyGenerator(algorithm, keySize); in testHmac() 60 androidKeystoreHmacKeyGenerator, keySize, messageSize), in testHmac() 62 defaultKeystoreHmacGenerator, keySize, messageSize)); in testHmac() 69 AndroidKeystoreHmacKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreHmacKeyGenerator() argument 76 .setKeySize(keySize) in AndroidKeystoreHmacKeyGenerator() 86 KeystoreKeyGenerator generator, int keySize, int messageSize) throws Exception { in KeystoreHmacMacMeasurable() argument 87 super(generator, "sign", keySize, messageSize); in KeystoreHmacMacMeasurable()
|
D | AttestationPerformanceTest.java | 43 for (int keySize : RSA_KEY_SIZES) { in testRsaKeyAttestation() 45 new AndroidKeystoreRsaKeyGenerator("SHA1withRSA", keySize, challenge), in testRsaKeyAttestation() 46 keySize, challenge.length)); in testRsaKeyAttestation() 68 AndroidKeystoreRsaKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreRsaKeyGenerator() argument 76 .setKeySize(keySize) in AndroidKeystoreRsaKeyGenerator() 87 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreEcKeyGenerator() argument 95 .setKeySize(keySize) in AndroidKeystoreEcKeyGenerator() 106 AndroidKeystoreKeyGenerator keyGen, int keySize, int challengeSize) in KeystoreAttestationMeasurable() argument 108 super(keyGen, "attest", keySize, challengeSize); in KeystoreAttestationMeasurable()
|
D | PerformanceTestBase.java | 164 KeystoreKeyGenerator generator, String operation, int keySize, int messageSize) in KeystoreMeasurable() argument 171 + "/" + keySize); in KeystoreMeasurable() 176 + "/" + keySize in KeystoreMeasurable() 182 KeystoreMeasurable(KeystoreKeyGenerator generator, String operation, int keySize) in KeystoreMeasurable() argument 184 this(generator, operation, keySize, -1); in KeystoreMeasurable() 230 KeystoreKeyPairGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreKeyPairGenMeasurable() argument 232 super(keyGenerator, "keygen", keySize); in KeystoreKeyPairGenMeasurable() 253 KeystoreSecretKeyGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreSecretKeyGenMeasurable() argument 255 super(keyGenerator, "keygen", keySize); in KeystoreSecretKeyGenMeasurable() 350 DefaultKeystoreKeyPairGenerator(String algorithm, int keySize) throws Exception { in DefaultKeystoreKeyPairGenerator() argument [all …]
|
D | EcKeyGenPerformanceTest.java | 41 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreEcKeyGenerator() argument 48 .setKeySize(keySize) in AndroidKeystoreEcKeyGenerator()
|
D | KeyAttestationTest.java | 490 for (int keySize : keySizes) { in testRsaAttestation() 494 testRsaAttestations(keySize, challenge, purpose, encryptionPaddingModes, in testRsaAttestation() 497 testRsaAttestations(keySize, challenge, purpose, signaturePaddingModes, in testRsaAttestation() 650 private void testRsaAttestations(int keySize, byte[] challenge, int purpose, in testRsaAttestations() argument 654 testRsaAttestation(challenge, true /* includeValidityDates */, keySize, purpose, in testRsaAttestations() 656 testRsaAttestation(challenge, false /* includeValidityDates */, keySize, purpose, in testRsaAttestations() 665 throw new Exception("Failed on key size " + keySize + " challenge [" + in testRsaAttestations() 682 private void testRsaAttestation(byte[] challenge, boolean includeValidityDates, int keySize, in testRsaAttestation() argument 686 " / includeValidityDates " + includeValidityDates + " / keySize " + keySize + in testRsaAttestation() 696 .setKeySize(keySize) in testRsaAttestation() [all …]
|
D | ImportWrappedKeyTest.java | 378 DERTaggedObject keySize = in makeAuthList() local 399 allItems.add(keySize); in makeAuthList()
|
/cts/tests/security/src/android/keystore/cts/ |
D | AuthorizationList.java | 176 private Integer keySize; field in AuthorizationList 238 keySize = Asn1Utils.getIntegerFromAsn1(value); in AuthorizationList() 239 Log.i("Attestation", "Found KEY SIZE, value: " + keySize); in AuthorizationList() 362 keySize = CborUtils.getInt(submodMap, key); in AuthorizationList() 363 Log.i("Attestation", "Found KEY SIZE, value: " + keySize); in AuthorizationList() 560 return keySize; in getKeySize() 772 if (keySize != null) { in toString() 773 s.append("\nKeySize: ").append(keySize); in toString()
|