Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 25 of 187) sorted by relevance

12345678

/external/vboot_reference/tests/
Dvb20_common2_tests.c24 static void test_unpack_key(const struct vb2_packed_key *key1) in test_unpack_key() argument
32 uint32_t size = key1->key_offset + key1->key_size; in test_unpack_key()
36 memcpy(key, key1, size); in test_unpack_key()
45 memcpy(key, key1, size); in test_unpack_key()
51 memcpy(key, key1, size); in test_unpack_key()
57 memcpy(key, key1, size); in test_unpack_key()
63 memcpy(key, key1, size); in test_unpack_key()
69 memcpy(key, key1, size); in test_unpack_key()
77 static void test_verify_data(const struct vb2_packed_key *key1, in test_verify_data() argument
84 uint32_t pubkey_size = key1->key_offset + key1->key_size; in test_verify_data()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
DKeyPairTest.java76 Key key1 = ((KeyPair) test).getPublic();
79 assertEquals("PublicKey class", key1.getClass(), key2.getClass());
80 assertEquals("PublicKey algorithm", key1.getAlgorithm(), key2
82 assertEquals("PublicKey format", key1.getFormat(), key2.getFormat());
83 assertTrue("PublicKey encoded", Arrays.equals(key1.getEncoded(),
87 key1 = ((KeyPair) test).getPrivate();
90 assertEquals("PrivateKey class", key1.getClass(), key2.getClass());
91 assertEquals("PrivateKey algorithm", key1.getAlgorithm(), key2
93 assertEquals("PrivateKey format", key1.getFormat(), key2.getFormat());
94 assertTrue("PrivateKey encoded", Arrays.equals(key1.getEncoded(),
/external/selinux/libsepol/cil/src/
Dcil_symtab.c152 intptr_t sum = ckey->key1 + ckey->key2 + ckey->key3 + ckey->key4; in cil_complex_symtab_hash()
184 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
191 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
196 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
202 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
232 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
240 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
245 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
251 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
/external/guice/core/test/com/google/inject/internal/
DWeakKeySetTest.java112 Key<Integer> key1 = Key.get(Integer.class); in testEviction_keyOverlap_2x() local
117 set.add(key1, state1, source1); in testEviction_keyOverlap_2x()
118 assertInSet(set, key1, 1, source1); in testEviction_keyOverlap_2x()
123 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<Key<Integer>>(key1); in testEviction_keyOverlap_2x()
128 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testEviction_keyOverlap_2x()
160 Key<Integer> key1 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x() local
165 set.add(key1, state1, source1); in testNoEviction_keyOverlap_2x()
166 assertInSet(set, key1, 1, source1); in testNoEviction_keyOverlap_2x()
171 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<Key<Integer>>(key1); in testNoEviction_keyOverlap_2x()
174 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x()
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/misc/
DTestDictionary.m31 NSString *key1 = @"a101";
35 [testDict setObject:obj1 forKey:key1];
37 NSString *result = [testDict objectForKey:key1];
44 NSString *key1 = @"a101";
50 [testDict setObject:obj1 forKey:key1];
53 NSString *result = [testDict objectForKey:key1];
60 NSString *key1 = @"a101";
64 [testDict setObject:obj1 forKey:key1];
84 NSString *key1 = @"a101";
88 [testDict setObject:obj1 forKey:key1];
[all …]
/external/skia/tests/
DImageFilterCacheTest.cpp36 SkImageFilter::Cache::Key key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing() local
40 cache->set(key1, image, offset); in test_find_existing()
44 SkSpecialImage* foundImage = cache->get(key1, &foundOffset); in test_find_existing()
62 SkImageFilter::Cache::Key key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key() local
72 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_dont_find_if_diff_key()
85 SkImageFilter::Cache::Key key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() local
89 cache->set(key1, image, offset); in test_internal_purge()
93 REPORTER_ASSERT(reporter, cache->get(key1, &foundOffset)); in test_internal_purge()
99 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_internal_purge()
110 SkImageFilter::Cache::Key key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_explicit_purging() local
[all …]
DResourceCacheTest.cpp881 GrUniqueKey key1, key2, key3; in test_purge_invalidated() local
882 make_unique_key<0>(&key1, 1); in test_purge_invalidated()
891 a->resourcePriv().setUniqueKey(key1); in test_purge_invalidated()
898 REPORTER_ASSERT(reporter, cache->hasUniqueKey(key1)); in test_purge_invalidated()
907 Bus::Post(Msg(key1)); in test_purge_invalidated()
911 REPORTER_ASSERT(reporter, !cache->hasUniqueKey(key1)); in test_purge_invalidated()
949 GrUniqueKey key1, key2; in test_cache_chained_purge() local
950 make_unique_key<0>(&key1, 1); in test_cache_chained_purge()
955 a->resourcePriv().setUniqueKey(key1); in test_cache_chained_purge()
981 GrUniqueKey key1, key2; in test_resource_size_changed() local
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheReferencesTest.java90 Key key1 = new Key(1);
91 String value1 = key1.toString();
94 assertSame(value1, cache.getUnchecked(key1));
96 assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
98 assertEquals(ImmutableSet.of(immutableEntry(key1, value1), immutableEntry(key2, value2)),
105 Key key1 = new Key(1);
106 String value1 = key1.toString();
109 assertSame(value1, cache.getUnchecked(key1));
111 cache.invalidate(key1);
112 assertFalse(cache.asMap().containsKey(key1));
/external/boringssl/src/decrepit/xts/
Dxts.c60 void *key1, *key2; member
91 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
121 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
145 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
156 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
198 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
212 if (!xctx->xts.key1 || in aes_xts_cipher()
228 if (xctx->xts.key1) { in aes_xts_ctrl()
229 if (xctx->xts.key1 != &xctx->ks1) { in aes_xts_ctrl()
232 xctx_out->xts.key1 = &xctx_out->ks1; in aes_xts_ctrl()
[all …]
/external/v8/test/mjsunit/es6/regress/
Dregress-2156.js30 var key1 = {}; variable
36 assertTrue(%HaveSameMap(key1, key2));
37 map.set(key1, 1);
39 assertTrue(%HaveSameMap(key1, key2));
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/dynamodb/
Dtest_layer1.py134 key1 = {'HashKeyElement': {hash_key_type: item1_key},
136 result = c.get_item(table_name, key=key1, consistent_read=True)
148 result = c.get_item(table_name, key=key1, consistent_read=True,
156 c.delete_item, table_name, key=key1,
164 result = c.update_item(table_name, key=key1,
174 c.update_item, table_name, key=key1,
228 result = c.delete_item(table_name, key=key1)
262 key1 = {'HashKeyElement': {self.hash_key_type: item1_key},
264 result = c.get_item(self.table_name, key=key1, consistent_read=True)
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DEncodedKeySpec2Test.java62 private boolean isEqual(Key key1, Key key2) { in isEqual() argument
63 if (key1 instanceof DSAPublicKey && key2 instanceof DSAPublicKey) { in isEqual()
64 DSAPublicKey dsa1 = ((DSAPublicKey) key1); in isEqual()
71 } else if (key1 instanceof DSAPrivateKey in isEqual()
73 DSAPrivateKey dsa1 = ((DSAPrivateKey) key1); in isEqual()
/external/libchrome/crypto/
Dsymmetric_key_unittest.cc34 scoped_ptr<crypto::SymmetricKey> key1( in TEST() local
36 ASSERT_TRUE(NULL != key1.get()); in TEST()
38 EXPECT_TRUE(key1->GetRawKey(&raw_key1)); in TEST()
51 scoped_ptr<crypto::SymmetricKey> key1( in TEST() local
54 ASSERT_TRUE(NULL != key1.get()); in TEST()
56 EXPECT_TRUE(key1->GetRawKey(&raw_key1)); in TEST()
/external/boringssl/src/crypto/dh/
Ddh_test.cc168 std::vector<uint8_t> key1(DH_size(a.get())); in RunBasicTests() local
169 int ret = DH_compute_key(key1.data(), b->pub_key, a.get()); in RunBasicTests()
173 key1.resize(ret); in RunBasicTests()
176 for (size_t i = 0; i < key1.size(); i++) { in RunBasicTests()
177 printf("%02x", key1[i]); in RunBasicTests()
194 if (key1.size() < 4 || key1 != key2) { in RunBasicTests()
/external/v8/src/compiler/
Dstate-values-utils.cc20 bool StateValuesCache::AreKeysEqual(void* key1, void* key2) { in AreKeysEqual() argument
21 NodeKey* node_key1 = reinterpret_cast<NodeKey*>(key1); in AreKeysEqual()
26 return AreValueKeysEqual(reinterpret_cast<StateValuesKey*>(key1), in AreKeysEqual()
29 return IsKeysEqualToNode(reinterpret_cast<StateValuesKey*>(key1), in AreKeysEqual()
60 bool StateValuesCache::AreValueKeysEqual(StateValuesKey* key1, in AreValueKeysEqual() argument
62 if (key1->count != key2->count) { in AreValueKeysEqual()
65 for (size_t i = 0; i < key1->count; i++) { in AreValueKeysEqual()
66 if (key1->values[i] != key2->values[i]) { in AreValueKeysEqual()
/external/mesa3d/src/gallium/state_trackers/vega/
Dhandle.c53 compare(void *key1, void *key2) in compare() argument
55 if (key1 < key2) in compare()
57 else if (key1 > key2) in compare()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DDESedeEngine.java55 byte[] key1 = new byte[8]; in init()
56 System.arraycopy(keyMaster, 0, key1, 0, key1.length); in init()
57 workingKey1 = generateWorkingKey(encrypting, key1); in init()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDESedeKeySpecTest.java121 byte[] key1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, in testGetKey()
124 ks = new DESedeKeySpec(key1, 2); in testGetKey()
131 + "as specified in a constructor.", key1, res); in testGetKey()
133 System.arraycopy(key1, 2, exp, 0, 24); in testGetKey()
DDESKeySpecTest.java178 byte[] key1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }; in testGetKey()
180 ks = new DESKeySpec(key1, 2); in testGetKey()
187 + "as specified in a constructor.", key1, res); in testGetKey()
189 System.arraycopy(key1, 2, exp, 0, 8); in testGetKey()
/external/guava/guava-tests/test/com/google/common/hash/
DHashTestUtils.java258 int key1 = rand.nextInt(); in checkNoFunnels() local
260 int key2 = key1 ^ (1 << i); in checkNoFunnels()
262 int hash1 = function.hashInt(key1).asInt(); in checkNoFunnels()
297 int key1 = rand.nextInt(); in checkAvalanche() local
299 int key2 = key1 ^ (1 << i); in checkAvalanche()
301 int hash1 = function.hashInt(key1).asInt(); in checkAvalanche()
342 int key1 = rand.nextInt(); in checkNo2BitCharacteristics() local
344 int key2 = key1 ^ delta; in checkNo2BitCharacteristics()
347 int hash1 = function.hashInt(key1).asInt(); in checkNo2BitCharacteristics()
387 int key1 = rand.nextInt(); in check2BitAvalanche() local
[all …]
/external/jetty/src/java/org/eclipse/jetty/websocket/
DWebSocketConnectionD00.java76 public void setHixieKeys(String key1,String key2) in setHixieKeys() argument
78 _key1=key1; in setHixieKeys()
326 public static byte[] doTheHixieHixieShake(long key1,long key2,byte[] key3) in doTheHixieHixieShake() argument
333 fodder[0]=(byte)(0xff&(key1>>24)); in doTheHixieHixieShake()
334 fodder[1]=(byte)(0xff&(key1>>16)); in doTheHixieHixieShake()
335 fodder[2]=(byte)(0xff&(key1>>8)); in doTheHixieHixieShake()
336 fodder[3]=(byte)(0xff&key1); in doTheHixieHixieShake()
/external/icu/icu4c/source/test/intltest/
Duvectest.cpp70 UVectorTest_compareInt32(UElement key1, UElement key2) { in UVectorTest_compareInt32() argument
71 if (key1.integer > key2.integer) { in UVectorTest_compareInt32()
74 else if (key1.integer < key2.integer) { in UVectorTest_compareInt32()
82 UVectorTest_compareCstrings(const UElement key1, const UElement key2) { in UVectorTest_compareCstrings() argument
83 return !strcmp((const char *)key1.pointer, (const char *)key2.pointer); in UVectorTest_compareCstrings()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DKeyStore_Impl1Test.java491 Key key1 = ((KeyStore.PrivateKeyEntry) en).getPrivateKey(); in testEntry02() local
492 if (!key.getAlgorithm().equals(key1.getAlgorithm()) || in testEntry02()
493 !key.getFormat().equals(key1.getFormat())) { in testEntry02()
497 byte[] enc1 = key1.getEncoded(); in testEntry02()
508 key1 = privKey; in testEntry02()
509 if (!key.getAlgorithm().equals(key1.getAlgorithm()) || in testEntry02()
510 !key.getFormat().equals(key1.getFormat())) { in testEntry02()
514 enc1 = key1.getEncoded(); in testEntry02()
601 Key key1; in testEntry03() local
603 key1 = kss[i].getKey(aliases[j], pwd); in testEntry03()
[all …]
/external/libvncserver/libvncserver/
Dwebsockets.c169 void webSocketsGenMd5(char * target, char *key1, char *key2, char *key3);
255 char *key1 = NULL, *key2 = NULL, *key3 = NULL; in webSocketsHandshake() local
293 if (key1 && key2) { in webSocketsHandshake()
328 key1 = line+20; in webSocketsHandshake()
397 if (!(key1 && key2 && key3)) { in webSocketsHandshake()
404 webSocketsGenMd5(trailer, key1, key2, key3); in webSocketsHandshake()
438 webSocketsGenMd5(char * target, char *key1, char *key2, char *key3) in webSocketsGenMd5() argument
445 for (i=0; i < strlen(key1); i++) { in webSocketsGenMd5()
446 if (key1[i] == ' ') { in webSocketsGenMd5()
449 if ((key1[i] >= 48) && (key1[i] <= 57)) { in webSocketsGenMd5()
[all …]
/external/boringssl/src/crypto/rsa/
Drsa_test.cc747 ScopedRSA key1(RSA_new()); in TestRecoverCRTParams() local
748 if (!key1 || in TestRecoverCRTParams()
749 !RSA_generate_key_ex(key1.get(), 512, e.get(), nullptr)) { in TestRecoverCRTParams()
755 if (!RSA_check_key(key1.get())) { in TestRecoverCRTParams()
765 key2->n = BN_dup(key1->n); in TestRecoverCRTParams()
766 key2->e = BN_dup(key1->e); in TestRecoverCRTParams()
767 key2->d = BN_dup(key1->d); in TestRecoverCRTParams()

12345678