Home
last modified time | relevance | path

Searched refs:newKey (Results 1 – 21 of 21) sorted by relevance

/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/
DDESedeKeyGenerator.java44 byte[] newKey = new byte[strength]; in generateKey()
48 random.nextBytes(newKey); in generateKey()
50 DESedeParameters.setOddParity(newKey); in generateKey()
52 while (DESedeParameters.isWeakKey(newKey, 0, newKey.length)); in generateKey()
54 return newKey; in generateKey()
DDESKeyGenerator.java36 byte[] newKey = new byte[DESParameters.DES_KEY_LENGTH]; in generateKey()
40 random.nextBytes(newKey); in generateKey()
42 DESParameters.setOddParity(newKey); in generateKey()
44 while (DESParameters.isWeakKey(newKey, 0)); in generateKey()
46 return newKey; in generateKey()
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/
DDES.java194 int[] newKey = new int[32]; in generateWorkingKey() local
218 newKey[m] = newKey[n] = 0; in generateWorkingKey()
250 newKey[m] |= bigbyte[j]; in generateWorkingKey()
255 newKey[n] |= bigbyte[j]; in generateWorkingKey()
267 i1 = newKey[i]; in generateWorkingKey()
268 i2 = newKey[i + 1]; in generateWorkingKey()
270 newKey[i] = ((i1 & 0x00fc0000) << 6) | ((i1 & 0x00000fc0) << 10) | ((i2 & 0x00fc0000) >>> 10) in generateWorkingKey()
273 newKey[i + 1] = ((i1 & 0x0003f000) << 12) | ((i1 & 0x0000003f) << 16) | ((i2 & 0x0003f000) >>> 4) in generateWorkingKey()
277 return newKey; in generateWorkingKey()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/engines/
DDESEngine.java310 int[] newKey = new int[32]; in generateWorkingKey() local
335 newKey[m] = newKey[n] = 0; in generateWorkingKey()
367 newKey[m] |= bigbyte[j]; in generateWorkingKey()
372 newKey[n] |= bigbyte[j]; in generateWorkingKey()
384 i1 = newKey[i]; in generateWorkingKey()
385 i2 = newKey[i + 1]; in generateWorkingKey()
387 newKey[i] = ((i1 & 0x00fc0000) << 6) | ((i1 & 0x00000fc0) << 10) in generateWorkingKey()
390 newKey[i + 1] = ((i1 & 0x0003f000) << 12) | ((i1 & 0x0000003f) << 16) in generateWorkingKey()
394 return newKey; in generateWorkingKey()
DRC2Engine.java101 int[] newKey = new int[64]; in generateWorkingKey() local
103 for (int i = 0; i != newKey.length; i++) in generateWorkingKey()
105 newKey[i] = (xKey[2 * i] + (xKey[2 * i + 1] << 8)); in generateWorkingKey()
108 return newKey; in generateWorkingKey()
/external/guava/guava-tests/test/com/google/common/cache/
DPopulatedCachesTest.java93 Object newKey = new Object(); in testPut_populated() local
94 assertNull(cache.asMap().put(newKey, entry.getValue())); in testPut_populated()
97 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPut_populated()
99 warmed.add(entryOf(newKey, entry.getValue())); in testPut_populated()
114 Object newKey = new Object(); in testPutIfAbsent_populated() local
115 assertNull(cache.asMap().putIfAbsent(newKey, entry.getValue())); in testPutIfAbsent_populated()
118 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPutIfAbsent_populated()
120 warmed.add(entryOf(newKey, entry.getValue())); in testPutIfAbsent_populated()
131 Object newKey = new Object(); in testPutAll_populated() local
133 cache.asMap().putAll(ImmutableMap.of(newKey, newValue)); in testPutAll_populated()
[all …]
/external/icu4c/i18n/
Dtznames.cpp157 char *newKey = NULL; in TimeZoneNamesDelegate() local
164 newKey = (char *)uprv_malloc(uprv_strlen(key) + 1); in TimeZoneNamesDelegate()
165 if (newKey == NULL) { in TimeZoneNamesDelegate()
168 uprv_strcpy(newKey, key); in TimeZoneNamesDelegate()
180 uhash_put(gTimeZoneNamesCache, newKey, cacheEntry, &status); in TimeZoneNamesDelegate()
187 if (newKey != NULL) { in TimeZoneNamesDelegate()
188 uprv_free(newKey); in TimeZoneNamesDelegate()
Dtzfmt.cpp422 char *newKey = NULL; in TimeZoneFormatDelegate() local
429 newKey = (char *)uprv_malloc(uprv_strlen(key) + 1); in TimeZoneFormatDelegate()
430 if (newKey == NULL) { in TimeZoneFormatDelegate()
433 uprv_strcpy(newKey, key); in TimeZoneFormatDelegate()
445 uhash_put(gTimeZoneFormatCache, newKey, cacheEntry, &status); in TimeZoneFormatDelegate()
452 if (newKey != NULL) { in TimeZoneFormatDelegate()
453 uprv_free(newKey); in TimeZoneFormatDelegate()
Duspoof_conf.cpp545 int32_t newKey = keyChar | tableFlag; in addKeyEntry() local
547 newKey |= USPOOF_KEY_MULTIPLE_VALUES; in addKeyEntry()
553 newKey |= adjustedMappingLength << USPOOF_KEY_LENGTH_SHIFT; in addKeyEntry()
557 fKeyVec->addElement(newKey, status); in addKeyEntry()
Dtznames_impl.cpp1219 const UChar* newKey = ZoneMeta::findMetaZoneID(mzID); in loadMetaZoneNames() local
1220 if (newKey != NULL) { in loadMetaZoneNames()
1221 uhash_put(fMZNamesMap, (void *)newKey, cacheVal, &status); in loadMetaZoneNames()
1235 nameinfo->mzID = newKey; in loadMetaZoneNames()
1296 const UChar* newKey = ZoneMeta::findTimeZoneID(tzID); in loadTimeZoneNames() local
1297 if (newKey != NULL) { in loadTimeZoneNames()
1298 uhash_put(fTZNamesMap, (void *)newKey, cacheVal, &status); in loadTimeZoneNames()
1311 nameinfo->tzID = newKey; in loadTimeZoneNames()
Dsortkey.cpp403 U_NAMESPACE_QUALIFIER CollationKey newKey(key, length); in ucol_keyHashCode() local
404 return newKey.hashCode(); in ucol_keyHashCode()
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DOutputPropertiesFactory.java461 String newKey = fixupPropertyString(key, true); in loadPropertiesFile() local
465 newValue = System.getProperty(newKey); in loadPropertiesFile()
476 if (key != newKey || value != newValue) in loadPropertiesFile()
479 props.put(newKey, newValue); in loadPropertiesFile()
/external/quake/quake/src/WinQuake/
Dkeys.cpp396 char *newKey; in Key_SetBinding() local
411 newKey = (char*) Z_Malloc (l+1); in Key_SetBinding()
412 Q_strcpy (newKey, binding); in Key_SetBinding()
413 newKey[l] = 0; in Key_SetBinding()
414 keybindings[keynum] = newKey; in Key_SetBinding()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DACBTree.h33 + (ACBKey *)newKey;
DAMutableDictionary.m103 //ACBKey *akey = [ACBKey newKey:aKey];
DACBTree.m23 + (ACBKey *)newKey
/external/sqlite/dist/
Dsqlite3.h6280 unsigned oldKey, unsigned newKey);
6301 void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);
Dsqlite3.c6830 unsigned oldKey, unsigned newKey);
6851 void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);
/external/sqlite/dist/orig/
Dsqlite3.h6280 unsigned oldKey, unsigned newKey);
6301 void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);
Dsqlite3.c6830 unsigned oldKey, unsigned newKey);
6851 void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);
/external/webkit/WebKitLibraries/WebCoreSQLite3/
Dsqlite3.h5155 void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);