Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/performance/
DRsaCipherPerformanceTest.java58 for (int keySize : keySizes) { in testRsaCipher()
60 TestUtils.getMaxSupportedPlaintextInputSizeBytes(algorithm, keySize); in testRsaCipher()
67 new AndroidKeystoreRsaKeyGenerator(algorithm, keySize), in testRsaCipher()
68 keySize, in testRsaCipher()
71 new AndroidKeystoreRsaKeyGenerator(algorithm, keySize), in testRsaCipher()
72 keySize, in testRsaCipher()
75 new DefaultKeystoreKeyPairGenerator(algorithm, keySize), in testRsaCipher()
76 keySize, in testRsaCipher()
79 new DefaultKeystoreKeyPairGenerator(algorithm, keySize), in testRsaCipher()
80 keySize, in testRsaCipher()
[all …]
DEcdsaSignaturePerformanceTest.java64 for (int keySize : SUPPORTED_KEY_SIZES) { in testEcdsaSign()
66 new AndroidKeystoreEcKeyGenerator(algorithm, keySize); in testEcdsaSign()
68 new DefaultKeystoreEcKeyGenerator(algorithm, keySize); in testEcdsaSign()
72 androidKeystoreEcGenerator, keySize, messageSize), in testEcdsaSign()
74 androidKeystoreEcGenerator, keySize, messageSize), in testEcdsaSign()
76 defaultKeystoreEcGenerator, keySize, messageSize), in testEcdsaSign()
78 defaultKeystoreEcGenerator, keySize, messageSize)); in testEcdsaSign()
85 DefaultKeystoreEcKeyGenerator(String algorithm, int keySize) throws Exception { in DefaultKeystoreEcKeyGenerator() argument
87 getKeyPairGenerator().initialize(keySize); in DefaultKeystoreEcKeyGenerator()
93 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreEcKeyGenerator() argument
[all …]
DRsaSignaturePerformanceTest.java35 for (int keySize : SUPPORTED_RSA_KEY_SIZES) { in testNONEwithRSA()
36 int modulusSizeBytes = (keySize + 7) / 8; in testNONEwithRSA()
39 testRsaSign("NONEwithRSA", new int[] {keySize}, messageSizes); in testNONEwithRSA()
100 for (int keySize : keySizes) { in testRsaSign()
101 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm(algorithm, keySize)) { in testRsaSign()
105 new AndroidKeystoreRsaKeyGenerator(algorithm, keySize); in testRsaSign()
107 new DefaultKeystoreKeyPairGenerator(algorithm, keySize); in testRsaSign()
111 androidKeystoreRsaGenerator, keySize, messageSize), in testRsaSign()
113 defaultKeystoreRsaGenerator, keySize, messageSize), in testRsaSign()
115 androidKeystoreRsaGenerator, keySize, messageSize), in testRsaSign()
[all …]
DRsaKeyGenPerformanceTest.java55 private void measureKeyGen(KeystoreKeyGenerator generator, int keySize) throws Exception { in measureKeyGen() argument
56 measure(new KeystoreKeyPairGenMeasurable(generator, keySize)); in measureKeyGen()
59 private void measureKeyGenWithAndroidProvider(int keySize) throws Exception { in measureKeyGenWithAndroidProvider() argument
67 .setKeySize(keySize) in measureKeyGenWithAndroidProvider()
69 measureKeyGen(generator, keySize); in measureKeyGenWithAndroidProvider()
72 private void measureKeyGenWithDefaultProvider(int keySize) throws Exception { in measureKeyGenWithDefaultProvider() argument
73 measureKeyGen(new DefaultKeystoreKeyPairGenerator("RSA", keySize), keySize); in measureKeyGenWithDefaultProvider()
DDesKeyGenPerformanceTest.java33 for (int keySize : SUPPORTED_DES_KEY_SIZES) { in testDesKeyGen()
36 new DefaultKeystoreSecretKeyGenerator("DESede", keySize), keySize), in testDesKeyGen()
38 new AndroidKeystoreDesKeyGenerator("DESede", keySize), keySize)); in testDesKeyGen()
44 AndroidKeystoreDesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreDesKeyGenerator() argument
51 .setKeySize(keySize) in AndroidKeystoreDesKeyGenerator()
DHmacKeyGenPerformanceTest.java33 for (int keySize : SUPPORTED_KEY_SIZES) { in testHmacKeyGen()
36 new AndroidKeystoreHmacKeyGenerator("HmacSHA1", keySize), keySize), in testHmacKeyGen()
38 new DefaultKeystoreSecretKeyGenerator("HmacSHA1", keySize), keySize)); in testHmacKeyGen()
44 AndroidKeystoreHmacKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreHmacKeyGenerator() argument
51 .setKeySize(keySize) in AndroidKeystoreHmacKeyGenerator()
DAesKeyGenPerformanceTest.java33 for (int keySize : SUPPORTED_AES_KEY_SIZES) { in testAesKeyGen()
36 new DefaultKeystoreSecretKeyGenerator("AES", keySize), keySize), in testAesKeyGen()
38 new AndroidKeystoreAesKeyGenerator("AES", keySize), keySize)); in testAesKeyGen()
44 AndroidKeystoreAesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreAesKeyGenerator() argument
51 .setKeySize(keySize) in AndroidKeystoreAesKeyGenerator()
DDesCipherPerformanceTest.java68 for (int keySize : keySizes) { in testDesCipher()
70 new AndroidKeystoreDesKeyGenerator(algorithm, keySize); in testDesCipher()
72 new DefaultKeystoreSecretKeyGenerator(algorithm, keySize); in testDesCipher()
76 androidKeystoreDesGenerator, keySize, messageSize), in testDesCipher()
78 defaultKeystoreDesGenerator, keySize, messageSize), in testDesCipher()
80 androidKeystoreDesGenerator, keySize, messageSize), in testDesCipher()
82 defaultKeystoreDesGenerator, keySize, messageSize)); in testDesCipher()
88 AndroidKeystoreDesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreDesKeyGenerator() argument
99 .setKeySize(keySize) in AndroidKeystoreDesKeyGenerator()
109 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreDesEncryptMeasurable() argument
[all …]
DAesCipherPerformanceTest.java66 for (int keySize : keySizes) { in testAesCipher()
68 new AndroidKeystoreAesKeyGenerator(algorithm, keySize); in testAesCipher()
70 new DefaultKeystoreSecretKeyGenerator(algorithm, keySize); in testAesCipher()
74 androidKeystoreAesGenerator, keySize, messageSize), in testAesCipher()
76 defaultKeystoreAesGenerator, keySize, messageSize), in testAesCipher()
78 androidKeystoreAesGenerator, keySize, messageSize), in testAesCipher()
80 defaultKeystoreAesGenerator, keySize, messageSize)); in testAesCipher()
86 AndroidKeystoreAesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreAesKeyGenerator() argument
97 .setKeySize(keySize) in AndroidKeystoreAesKeyGenerator()
107 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreAesEncryptMeasurable() argument
[all …]
DHmacMacPerformanceTest.java57 for (int keySize : keySizes) { in testHmac()
59 new AndroidKeystoreHmacKeyGenerator(algorithm, keySize); in testHmac()
61 new DefaultKeystoreSecretKeyGenerator(algorithm, keySize); in testHmac()
65 androidKeystoreHmacKeyGenerator, keySize, messageSize), in testHmac()
67 defaultKeystoreHmacGenerator, keySize, messageSize)); in testHmac()
74 AndroidKeystoreHmacKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreHmacKeyGenerator() argument
81 .setKeySize(keySize) in AndroidKeystoreHmacKeyGenerator()
91 KeystoreKeyGenerator generator, int keySize, int messageSize) throws Exception { in KeystoreHmacMacMeasurable() argument
92 super(generator, "sign", keySize, messageSize); in KeystoreHmacMacMeasurable()
DAttestationPerformanceTest.java45 for (int keySize : RSA_KEY_SIZES) { in testRsaKeyAttestation()
47 new AndroidKeystoreRsaKeyGenerator("SHA1withRSA", keySize, challenge), in testRsaKeyAttestation()
48 keySize, challenge.length)); in testRsaKeyAttestation()
71 AndroidKeystoreRsaKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreRsaKeyGenerator() argument
79 .setKeySize(keySize) in AndroidKeystoreRsaKeyGenerator()
90 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreEcKeyGenerator() argument
98 .setKeySize(keySize) in AndroidKeystoreEcKeyGenerator()
109 AndroidKeystoreKeyGenerator keyGen, int keySize, int challengeSize) in KeystoreAttestationMeasurable() argument
111 super(keyGen, "attest", keySize, challengeSize); in KeystoreAttestationMeasurable()
DPerformanceTestBase.java169 KeystoreKeyGenerator generator, String operation, int keySize, int messageSize) in KeystoreMeasurable() argument
176 + "/" + keySize); in KeystoreMeasurable()
181 + "/" + keySize in KeystoreMeasurable()
187 KeystoreMeasurable(KeystoreKeyGenerator generator, String operation, int keySize) in KeystoreMeasurable() argument
189 this(generator, operation, keySize, -1); in KeystoreMeasurable()
235 KeystoreKeyPairGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreKeyPairGenMeasurable() argument
237 super(keyGenerator, "keygen", keySize); in KeystoreKeyPairGenMeasurable()
258 KeystoreSecretKeyGenMeasurable(KeystoreKeyGenerator keyGenerator, int keySize) in KeystoreSecretKeyGenMeasurable() argument
260 super(keyGenerator, "keygen", keySize); in KeystoreSecretKeyGenMeasurable()
355 DefaultKeystoreKeyPairGenerator(String algorithm, int keySize) throws Exception { in DefaultKeystoreKeyPairGenerator() argument
[all …]
DEcKeyGenPerformanceTest.java46 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreEcKeyGenerator() argument
53 .setKeySize(keySize) in AndroidKeystoreEcKeyGenerator()
/cts/tests/tests/keystore/src/android/keystore/cts/
DImportWrappedKeyTest.java327 int keySize = 2048; in testKeyStore_ImportWrappedKey_RSA() local
328 kpg.initialize(keySize); in testKeyStore_ImportWrappedKey_RSA()
344 makeRsaAuthList(keySize))); in testKeyStore_ImportWrappedKey_RSA()
406 int keySize = 256; in testKeyStore_ImportWrappedKey_EC() local
407 kpg.initialize(keySize); in testKeyStore_ImportWrappedKey_EC()
423 makeEcAuthList(keySize))); in testKeyStore_ImportWrappedKey_EC()
538 DERTaggedObject keySize = in makeSymKeyAuthList() local
562 allItems.add(keySize); in makeSymKeyAuthList()
591 DERTaggedObject keySize = in makeRsaAuthList() local
624 allItems.add(keySize); in makeRsaAuthList()
[all …]
DKeyAttestationTest.java736 for (int keySize : keySizes) { in testRsaAttestation()
740 testRsaAttestations(keySize, challenge, purpose, encryptionPaddingModes, in testRsaAttestation()
743 testRsaAttestations(keySize, challenge, purpose, signaturePaddingModes, in testRsaAttestation()
764 private void testRsaAttestation_TooLargeChallenge(int keySize, boolean isStrongBox) in testRsaAttestation_TooLargeChallenge() argument
773 testRsaAttestation(new byte[129], true /* includeValidityDates */, keySize, in testRsaAttestation_TooLargeChallenge()
957 private void testRsaAttestations(int keySize, byte[] challenge, int purpose, in testRsaAttestations() argument
962 testRsaAttestation(challenge, true /* includeValidityDates */, keySize, purpose, in testRsaAttestations()
964 testRsaAttestation(challenge, false /* includeValidityDates */, keySize, purpose, in testRsaAttestations()
984 throw new Exception("Failed on key size " + keySize + " challenge [" + in testRsaAttestations()
1121 private void testRsaAttestation(byte[] challenge, boolean includeValidityDates, int keySize, in testRsaAttestation() argument
[all …]
/cts/tests/security/src/android/keystore/cts/
DAuthorizationList.java177 private Integer keySize; field in AuthorizationList
247 keySize = Asn1Utils.getIntegerFromAsn1(value); in AuthorizationList()
248 Log.i("Attestation", "Found KEY SIZE, value: " + keySize); in AuthorizationList()
377 keySize = CborUtils.getInt(submodMap, key); in AuthorizationList()
378 Log.i("Attestation", "Found KEY SIZE, value: " + keySize); in AuthorizationList()
578 return keySize; in getKeySize()
800 if (keySize != null) { in toString()
801 s.append("\nKeySize: ").append(keySize); in toString()