| /third_party/typescript/tests/baselines/reference/ |
| D | inferStringLiteralUnionForBindingElement.types | 2 declare function func<T extends string>(arg: { keys: T[] }): { readonly keys: T[]; readonly firstKe… 3 >func : <T extends string>(arg: { keys: T[];}) => { readonly keys: T[]; readonly firstKey:… 4 >arg : { keys: T[]; } 5 >keys : T[] 6 >keys : T[] 12 const { firstKey } = func({keys: ["aa", "bb"]}) 14 >func({keys: ["aa", "bb"]}) : { readonly keys: ("aa" | "bb")[]; readonly firstKey: "aa" | "bb"; } 15 >func : <T extends string>(arg: { keys: T[]; }) => { readonly keys: T[]; readonly firstKey: T; } 16 >{keys: ["aa", "bb"]} : { keys: ("aa" | "bb")[]; } 17 >keys : ("aa" | "bb")[] [all …]
|
| D | inferStringLiteralUnionForBindingElement.symbols | 2 declare function func<T extends string>(arg: { keys: T[] }): { readonly keys: T[]; readonly firstKe… 6 >keys : Symbol(keys, Decl(inferStringLiteralUnionForBindingElement.ts, 0, 46)) 8 >keys : Symbol(keys, Decl(inferStringLiteralUnionForBindingElement.ts, 0, 62)) 16 const { firstKey } = func({keys: ["aa", "bb"]}) 19 >keys : Symbol(keys, Decl(inferStringLiteralUnionForBindingElement.ts, 3, 31)) 25 const { keys } = func({keys: ["aa", "bb"]}) 26 >keys : Symbol(keys, Decl(inferStringLiteralUnionForBindingElement.ts, 6, 11)) 28 >keys : Symbol(keys, Decl(inferStringLiteralUnionForBindingElement.ts, 6, 27)) 30 const b: ("aa" | "bb")[] = keys; 32 >keys : Symbol(keys, Decl(inferStringLiteralUnionForBindingElement.ts, 6, 11)) [all …]
|
| D | inferStringLiteralUnionForBindingElement.js | 2 declare function func<T extends string>(arg: { keys: T[] }): { readonly keys: T[]; readonly firstKe… property 5 const { firstKey } = func({keys: ["aa", "bb"]}) property 8 const { keys } = func({keys: ["aa", "bb"]}) property 9 const b: ("aa" | "bb")[] = keys; 13 const { keys, firstKey } = func({keys: ["aa", "bb"]}) property 15 const b: ("aa" | "bb")[] = keys; 19 const x = func({keys: ["aa", "bb"]}) property 21 const b: ("aa" | "bb")[] = x.keys; 27 var firstKey = func({ keys: ["aa", "bb"] }).firstKey; property 29 var keys = func({ keys: ["aa", "bb"] }).keys; property [all …]
|
| /third_party/python/Lib/test/ |
| D | test_dictviews.py | 10 kt = type({}.keys()) 22 keys = d.keys() 23 self.assertEqual(len(keys), 2) 24 self.assertEqual(set(keys), {1, "a"}) 25 self.assertEqual(keys, {1, "a"}) 26 self.assertNotEqual(keys, {1, "a", "b"}) 27 self.assertNotEqual(keys, {1, "b"}) 28 self.assertNotEqual(keys, {1}) 29 self.assertNotEqual(keys, 42) 30 self.assertIn(1, keys) [all …]
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
| D | ikev2_common.c | 36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */ 371 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() argument 380 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; in ikev2_derive_auth_data() 394 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data() 429 struct ikev2_keys *keys, int initiator, in ikev2_decrypt_payload() argument 440 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_decrypt_payload() 441 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar; in ikev2_decrypt_payload() 476 if (ikev2_integ_hash(integ_id, SK_a, keys->SK_integ_len, in ikev2_decrypt_payload() 499 if (ikev2_encr_decrypt(encr_alg->id, SK_e, keys->SK_encr_len, iv, pos, in ikev2_decrypt_payload() 530 int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, in ikev2_build_encrypted() argument [all …]
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
| D | ikev2_common.c | 36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */ 371 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() argument 380 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; in ikev2_derive_auth_data() 394 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data() 429 struct ikev2_keys *keys, int initiator, in ikev2_decrypt_payload() argument 440 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_decrypt_payload() 441 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar; in ikev2_decrypt_payload() 476 if (ikev2_integ_hash(integ_id, SK_a, keys->SK_integ_len, in ikev2_decrypt_payload() 499 if (ikev2_encr_decrypt(encr_alg->id, SK_e, keys->SK_encr_len, iv, pos, in ikev2_decrypt_payload() 530 int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, in ikev2_build_encrypted() argument [all …]
|
| /third_party/ffmpeg/libavformat/ |
| D | asfcrypt.c | 50 * @brief read keys from keybuf into keys 51 * @param keybuf buffer containing the keys 52 * @param keys output key array containing the keys for encryption in 55 static void multiswap_init(const uint8_t keybuf[48], uint32_t keys[12]) in multiswap_init() 59 keys[i] = AV_RL32(keybuf + (i << 2)) | 1; in multiswap_init() 63 * @brief invert the keys so that encryption become decryption keys and 65 * @param keys key array of ints to invert 67 static void multiswap_invert_keys(uint32_t keys[12]) in multiswap_invert_keys() 71 keys[i] = inverse(keys[i]); in multiswap_invert_keys() 73 keys[i] = inverse(keys[i]); in multiswap_invert_keys() [all …]
|
| /third_party/jerryscript/tests/jerry/es2015/ |
| D | reflect-own-keys.js | 54 var keys = Reflect.ownKeys (obj); variable 55 assert (2 === keys.length); 56 assert ("a" === keys[0]); 57 assert ("b" === keys[1]); 60 var keys = Reflect.ownKeys (obj); 61 assert (2 === keys.length); 62 assert ("a" === keys[0]); 63 assert ("b" === keys[1]); 68 var keys = Reflect.ownKeys (obj) 69 assert (2 === keys.length); [all …]
|
| /third_party/node/test/parallel/ |
| D | test-webcrypto-derivebits-ecdh.js | 52 const keys = {}; 78 keys[namedCurve] = { 85 return keys; 89 const keys = await prepareKeys(); 92 Object.keys(keys).map(async (namedCurve) => { 93 const { size, result, privateKey, publicKey } = keys[namedCurve]; 167 keys['P-384'].privateKey, 168 8 * keys['P-384'].size), 180 keys['P-384'].privateKey, 181 8 * keys['P-384'].size), [all …]
|
| D | test-webcrypto-derivebits-cfrg.js | 37 const keys = {}; 57 keys[name] = { 64 return keys; 68 const keys = await prepareKeys(); 71 Object.keys(keys).map(async (name) => { 72 const { size, result, privateKey, publicKey } = keys[name]; 146 keys.X448.privateKey, 147 8 * keys.X448.size), 159 keys.X448.privateKey, 160 8 * keys.X448.size), [all …]
|
| D | test-webcrypto-derivekey-ecdh.js | 47 const keys = {}; 73 keys[namedCurve] = { 80 return keys; 84 const keys = await prepareKeys(); 91 Object.keys(keys).map(async (namedCurve) => { 92 const { result, privateKey, publicKey } = keys[namedCurve]; 129 keys['P-384'].privateKey, 142 keys['P-384'].privateKey, 153 public: keys['P-384'].publicKey 155 keys['P-521'].privateKey, [all …]
|
| D | test-webcrypto-derivekey-cfrg.js | 36 const keys = {}; 56 keys[name] = { 63 return keys; 67 const keys = await prepareKeys(); 74 Object.keys(keys).map(async (name) => { 75 const { result, privateKey, publicKey } = keys[name]; 112 keys.X448.privateKey, 125 keys.X448.privateKey, 136 public: keys.X25519.publicKey 138 keys.X448.privateKey, [all …]
|
| D | test-whatwg-url-custom-searchparams-keys.js | 9 const keys = params.keys(); constant 11 assert.strictEqual(typeof keys[Symbol.iterator], 'function'); 12 assert.strictEqual(keys[Symbol.iterator](), keys); 13 assert.deepStrictEqual(keys.next(), { 17 assert.deepStrictEqual(keys.next(), { 21 assert.deepStrictEqual(keys.next(), { 25 assert.deepStrictEqual(keys.next(), { 31 keys.next.call(undefined); 38 params.keys.call(undefined);
|
| /third_party/node/deps/npm/node_modules/@tufjs/models/dist/ |
| D | root.js | 16 * The top-level role and metadata file signed by the root keys. 17 * This role specifies trusted keys for all other top-level roles, which may further delegate trust. 23 this.keys = options.keys || {}; 32 const roleNames = new Set(Object.keys(options.roles)); 46 this.keys[key.keyID] = key; 54 util_1.default.isDeepStrictEqual(this.keys, other.keys) && 63 keys: keysToJSON(this.keys), 71 const { keys, roles, consistent_snapshot, ...rest } = unrecognizedFields; 77 keys: keysFromJSON(keys), property 85 function keysToJSON(keys) { argument [all …]
|
| /third_party/rust/crates/clap/src/util/ |
| D | flat_map.rs | 10 keys: Vec<K>, field 20 for (index, existing) in self.keys.iter().enumerate() { in insert() 32 self.keys.push(key); in insert_unchecked() 47 for existing in &self.keys { in contains_key() 69 .keys in remove_entry() 73 let key = self.keys.remove(index); in remove_entry() 79 self.keys.is_empty() in is_empty() 83 for (index, existing) in self.keys.iter().enumerate() { in entry() 96 for (index, existing) in self.keys.iter().enumerate() { in get() 109 for (index, existing) in self.keys.iter().enumerate() { in get_mut() [all …]
|
| /third_party/lzma/Asm/x86/ |
| D | AesOpt.asm | 87 keys equ REG_PARAM_0 ; r1 define 196 mov keys, [r4 + aes_OFFS] 209 mov ksize_x, [keys + 16] 232 op state, [keys + offs] 237 movdqa key, [keys + offs] 272 movdqa iv, [keys] 273 add keys, 32 275 movdqa key0, [keys + 1 * ksize_r] 276 movdqa key_last, [keys] 340 movdqa [keys - 32], iv [all …]
|
| /third_party/protobuf/objectivec/ |
| D | GPBDictionary.h | 64 * Initializes this dictionary, copying the given values and keys. 67 * @param keys The keys under which to store the values. 70 * @return A newly initialized dictionary with a copy of the values and keys. 73 forKeys:(const uint32_t [__nullable])keys 105 * Enumerates the keys and values on this dictionary with the given block. 116 * Adds the keys and values from another dictionary. 159 * Initializes this dictionary, copying the given values and keys. 162 * @param keys The keys under which to store the values. 165 * @return A newly initialized dictionary with a copy of the values and keys. 168 forKeys:(const uint32_t [__nullable])keys [all …]
|
| /third_party/libwebsockets/plugins/ssh-base/crypto/ |
| D | chacha.c | 238 lws_chacha_activate(struct lws_ssh_keys *keys) in lws_chacha_activate() argument 240 if (keys->cipher) { in lws_chacha_activate() 241 free(keys->cipher); in lws_chacha_activate() 242 keys->cipher = NULL; in lws_chacha_activate() 245 keys->cipher = malloc(sizeof(struct lws_cipher_chacha)); in lws_chacha_activate() 246 if (!keys->cipher) in lws_chacha_activate() 249 memset(keys->cipher, 0, sizeof(struct lws_cipher_chacha)); in lws_chacha_activate() 251 /* uses 2 x 256-bit keys, so 512 bits (64 bytes) needed */ in lws_chacha_activate() 252 chacha_keysetup(K_2(keys), keys->key[SSH_KEYIDX_ENC], 256); in lws_chacha_activate() 253 chacha_keysetup(K_1(keys), &keys->key[SSH_KEYIDX_ENC][32], 256); in lws_chacha_activate() [all …]
|
| /third_party/typescript/tests/cases/compiler/ |
| D | inferStringLiteralUnionForBindingElement.ts | 1 declare function func<T extends string>(arg: { keys: T[] }): { readonly keys: T[]; readonly firstKe… 4 const { firstKey } = func({keys: ["aa", "bb"]}) 7 const { keys } = func({keys: ["aa", "bb"]}) constant 8 const b: ("aa" | "bb")[] = keys; 12 const { keys, firstKey } = func({keys: ["aa", "bb"]}) constant 14 const b: ("aa" | "bb")[] = keys; 18 const x = func({keys: ["aa", "bb"]}) 20 const b: ("aa" | "bb")[] = x.keys;
|
| /third_party/icu/docs/userguide/collation/ |
| D | architecture.md | 178 ## Sort Keys 181 it can be more efficient to use sort keys. 182 Sort keys are useful in situations where a large amount of data is indexed 185 The comparison of sort keys is a very efficient and simple binary compare of strings of 188 An important property of ICU sort keys is that you can obtain the same results 189 by comparing 2 strings as you do by comparing the sort keys of the 2 strings 199 ICU actually compresses the sort keys so that they take the 207 One of the more important issues when considering using sort keys is the sort 209 following question: "What is the maximum size for sort keys generated for 216 2. Compression is used in building sort keys. Most 'regular' sequences of [all …]
|
| /third_party/node/deps/v8/src/objects/ |
| D | keys.h | 33 // This is a helper class for JSReceiver::GetKeys which collects and sorts keys. 34 // GetKeys needs to sort keys per prototype level, first showing the integer 36 // does not apply to proxies which are in full control of how the keys are 39 // For performance reasons the KeyAccumulator internally separates integer keys 40 // in |elements_| into sorted lists per prototype level. String keys are 42 // Symbols in |symbol_properties_|. To separate the keys per level later when 44 // String and Symbol keys per level. 46 // Only unique keys are kept by the KeyAccumulator, strings are stored in a 47 // HashSet for inexpensive lookups. Integer keys are kept in sorted lists which 83 // Filter keys based on their property descriptors. [all …]
|
| /third_party/node/deps/npm/node_modules/@npmcli/arborist/lib/ |
| D | case-insensitive-map.js | 6 #keys = new Map() field in module.exports 24 return this.#keys.has(normKey) ? super.get(this.#keys.get(normKey)) 30 if (this.#keys.has(normKey)) { 31 super.delete(this.#keys.get(normKey)) 33 this.#keys.set(normKey, key) 39 if (this.#keys.has(normKey)) { 40 const prevKey = this.#keys.get(normKey) 41 this.#keys.delete(normKey) 48 return this.#keys.has(normKey) && super.has(this.#keys.get(normKey))
|
| /third_party/libwebsockets/include/libwebsockets/ |
| D | lws-jwk.h | 25 /*! \defgroup jwk JSON Web Keys 26 * ## JSON Web Keys API 28 * Lws provides an API to parse JSON Web Keys into a struct lws_gencrypto_keyelem. 30 * "oct" and "RSA" type keys are supported. For "oct" keys, they are held in 33 * Keys elements are allocated on the heap. You must destroy the allocations 76 * key with no parent "keys" JSON 78 * NULL if importing a single key with no parent "keys" JSON 85 * delivered with no parent "keys": [] array. If you call this with cb and 89 * The second case is that you are dealing with a "keys":[] array with one or 90 * more keys in it. In this case, the function iterates through the keys using [all …]
|
| /third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
| D | MapFieldTest.cs | 100 CollectionAssert.AreEqual(new[] { "a", "c", "d" }, map.Keys); in AddPreservesInsertionOrder() 179 CollectionAssert.AreEqual(new[] { "before", "x", "a", "after" }, map2.Keys); in Add_Dictionary() 332 // Surprising, but IDictionary.Contains is only about keys. in IDictionary_Contains() 380 CollectionAssert.AreEqual(new[] { "x" }, dictionary.Keys); in IDictionary_Keys() 433 var keys = map.Keys; in KeysReturnsLiveView() 434 CollectionAssert.AreEqual(new string[0], keys); in KeysReturnsLiveView() 437 CollectionAssert.AreEqual(new[] { "foo", "x" }, keys); in KeysReturnsLiveView() 451 // Just test keys - we know the implementation is the same for values 456 var keys = map.Keys; in ViewsAreReadOnly() 457 Assert.IsTrue(keys.IsReadOnly); in ViewsAreReadOnly() [all …]
|
| /third_party/skia/experimental/tools/ |
| D | get_examples.py | 52 keys = parse_fiddle_sk(match.group(1)) 55 width = keys.get('width', '256') 56 height = keys.get('height', '256') 57 source_image = keys.get('source', 256) 58 duration = keys.get('duration', '0') 59 textonly = 'textonly' in keys 60 srgb = not textonly and 'srgb' in keys 61 f16 = srgb and 'f16' in keys 62 offscreen = 'offscreen' in keys 82 keys.get('offscreen_width', '64'), [all …]
|