Home
last modified time | relevance | path

Searched refs:keyLength (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/javax/crypto/
DSecretKeyFactoryTest.java133 int keyLength = 64; in test_PBKDF2_rfc3211_64() local
138 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_64()
139 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_64()
155 int keyLength = 192; in test_PBKDF2_rfc3211_192() local
162 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_192()
163 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected); in test_PBKDF2_rfc3211_192()
176 int keyLength = 160; in test_PBKDF2_b8312059() local
189 test_PBKDF2_UTF8(password, salt, iterations, keyLength, expected_utf8); in test_PBKDF2_b8312059()
190 test_PBKDF2_8BIT(password, salt, iterations, keyLength, expected_8bit); in test_PBKDF2_b8312059()
193 private void test_PBKDF2_8BIT(char[] password, byte[] salt, int iterations, int keyLength, in test_PBKDF2_8BIT() argument
[all …]
/libcore/luni/src/main/java/javax/crypto/spec/
DPBEKeySpec.java35 private final int keyLength; field in PBEKeySpec
52 keyLength = 0; in PBEKeySpec()
74 int keyLength) { in PBEKeySpec() argument
84 if (keyLength <= 0) { in PBEKeySpec()
97 this.keyLength = keyLength; in PBEKeySpec()
135 this.keyLength = 0; in PBEKeySpec()
192 return keyLength; in getKeyLength()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DPBEKeySpecTest.java69 int keyLength = 10; in testPBEKeySpec2() local
73 iterationCount, keyLength); in testPBEKeySpec2()
83 new PBEKeySpec(password, null, iterationCount, keyLength); in testPBEKeySpec2()
92 new PBEKeySpec(password, new byte [0], iterationCount, keyLength); in testPBEKeySpec2()
99 new PBEKeySpec(password, salt, -1, keyLength); in testPBEKeySpec2()
113 new PBEKeySpec(password, salt, 0, keyLength); in testPBEKeySpec2()
127 iterationCount, keyLength); in testPBEKeySpec2()
289 int keyLength = 10; in testGetKeyLength() local
291 iterationCount, keyLength); in testGetKeyLength()
294 pbeks.getKeyLength() == keyLength); in testGetKeyLength()
/libcore/luni/src/main/java/java/util/
DProperties.java283 int offset = 0, keyLength = -1, intVal; in load() local
372 if (offset > 0 || (offset == 0 && keyLength == 0)) { in load()
373 if (keyLength == -1) { in load()
374 keyLength = offset; in load()
377 put(temp.substring(0, keyLength), temp in load()
378 .substring(keyLength)); in load()
380 keyLength = -1; in load()
385 keyLength = offset; in load()
391 if (keyLength == -1) { // if parsing the key in load()
393 keyLength = offset; in load()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherThread.java33 private int keyLength = 0; field in CipherThread
78 keyLength = getNextKey(); in launcher()
122 return keyLength; in getKeyLength()
138 return "Alg name:" + algName + " Key:" + keyLength + " Mode:" + mode + in getCipherParameters()