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/
DRsaCipherPerformanceTest.java52 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 …]
DRsaSignaturePerformanceTest.java33 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 …]
DEcdsaSignaturePerformanceTest.java57 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 …]
DDesCipherPerformanceTest.java51 for (int keySize : keySizes) { in testDesCipher()
53 new AndroidKeystoreDesKeyGenerator(algorithm, keySize); in testDesCipher()
55 new DefaultKeystoreSecretKeyGenerator(algorithm, keySize); in testDesCipher()
59 androidKeystoreDesGenerator, keySize, messageSize), in testDesCipher()
61 defaultKeystoreDesGenerator, keySize, messageSize), in testDesCipher()
63 androidKeystoreDesGenerator, keySize, messageSize), in testDesCipher()
65 defaultKeystoreDesGenerator, keySize, messageSize)); in testDesCipher()
71 AndroidKeystoreDesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreDesKeyGenerator() argument
82 .setKeySize(keySize) in AndroidKeystoreDesKeyGenerator()
92 KeystoreKeyGenerator keyGenerator, int keySize, int messageSize) throws Exception { in KeystoreDesEncryptMeasurable() argument
[all …]
DAesCipherPerformanceTest.java59 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 …]
DDesKeyGenPerformanceTest.java28 for (int keySize : SUPPORTED_DES_KEY_SIZES) { in testDesKeyGen()
31 new DefaultKeystoreSecretKeyGenerator("DESede", keySize), keySize), in testDesKeyGen()
33 new AndroidKeystoreDesKeyGenerator("DESede", keySize), keySize)); in testDesKeyGen()
39 AndroidKeystoreDesKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreDesKeyGenerator() argument
46 .setKeySize(keySize) in AndroidKeystoreDesKeyGenerator()
DAesKeyGenPerformanceTest.java28 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()
DRsaKeyGenPerformanceTest.java28 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()
DHmacKeyGenPerformanceTest.java28 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()
DAttestationPerformanceTest.java39 for (int keySize : RSA_KEY_SIZES) { in testRsaKeyAttestation()
41 new AndroidKeystoreRsaKeyGenerator("SHA1withRSA", keySize, challenge), in testRsaKeyAttestation()
42 keySize, challenge.length)); in testRsaKeyAttestation()
60 AndroidKeystoreRsaKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreRsaKeyGenerator() argument
68 .setKeySize(keySize) in AndroidKeystoreRsaKeyGenerator()
79 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize, byte[] challenge) in AndroidKeystoreEcKeyGenerator() argument
87 .setKeySize(keySize) in AndroidKeystoreEcKeyGenerator()
98 AndroidKeystoreKeyGenerator keyGen, int keySize, int challengeSize) in KeystoreAttestationMeasurable() argument
100 super(keyGen, "attest", keySize, challengeSize); in KeystoreAttestationMeasurable()
DHmacMacPerformanceTest.java52 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()
DPerformanceTestBase.java164 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 …]
DKeyAttestationTest.java345 for (int keySize : keySizes) { 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()
500 throw new Exception("Failed on key size " + keySize + " challenge [" + in testRsaAttestations()
517 private void testRsaAttestation(byte[] challenge, boolean includeValidityDates, int keySize, in testRsaAttestation() argument
521 " / includeValidityDates " + includeValidityDates + " / keySize " + keySize + in testRsaAttestation()
531 .setKeySize(keySize) in testRsaAttestation()
[all …]
DEcKeyGenPerformanceTest.java41 AndroidKeystoreEcKeyGenerator(String algorithm, int keySize) throws Exception { in AndroidKeystoreEcKeyGenerator() argument
48 .setKeySize(keySize) in AndroidKeystoreEcKeyGenerator()
DImportWrappedKeyTest.java378 DERTaggedObject keySize = in makeAuthList() local
399 allItems.add(keySize); in makeAuthList()
/cts/tests/security/src/android/keystore/cts/
DAuthorizationList.java171 private Integer keySize; field in AuthorizationList
229 keySize = Asn1Utils.getIntegerFromAsn1(value); in AuthorizationList()
230 Log.i("Attestation", "Found KEY SIZE, value: " + keySize); in AuthorizationList()
427 return keySize; in getKeySize()
626 if (keySize != null) { in toString()
627 s.append("\nKeySize: ").append(keySize); in toString()