Home
last modified time | relevance | path

Searched refs:key_id (Results 1 – 25 of 58) sorted by relevance

123

/external/marisa-trie/lib/marisa/
Dtrie-c.cc16 bool operator()(marisa::UInt32 key_id, std::size_t key_length) const { in operator ()() argument
17 return func_(first_arg_, key_id, key_length) != 0; in operator ()()
37 bool operator()(marisa::UInt32 key_id, const std::string &key) const { in operator ()() argument
38 return func_(first_arg_, key_id, key.c_str(), key.length()) != 0; in operator ()()
162 marisa_status marisa_restore(const marisa_trie *h, marisa_uint32 key_id, in marisa_restore() argument
169 *key_length = h->trie.restore(key_id, key_buf, key_buf_size); in marisa_restore()
174 const char *ptr, size_t length, marisa_uint32 *key_id) { in marisa_lookup() argument
177 } else if (key_id == NULL) { in marisa_lookup()
181 *key_id = h->trie.lookup(ptr); in marisa_lookup()
183 *key_id = h->trie.lookup(ptr, length); in marisa_lookup()
[all …]
Dtrie-search.cc20 bool operator()(marisa::UInt32 key_id, const std::string &key) { in operator ()() argument
22 key_ids_.insert(num_results_, key_id); in operator ()()
42 std::string Trie::restore(UInt32 key_id) const { in restore()
44 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
46 restore_(key_id, &key); in restore()
50 void Trie::restore(UInt32 key_id, std::string *key) const { in restore() argument
52 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
54 restore_(key_id, key); in restore()
57 std::size_t Trie::restore(UInt32 key_id, char *key_buf, in restore() argument
60 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
[all …]
Dcell.h18 void set_key_id(UInt32 key_id) { in set_key_id() argument
19 key_id_ = key_id; in set_key_id()
31 UInt32 key_id() const { in key_id() function
Dtrie.h54 std::string operator[](UInt32 key_id) const;
59 std::string restore(UInt32 key_id) const;
60 void restore(UInt32 key_id, std::string *key) const;
61 std::size_t restore(UInt32 key_id, char *key_buf,
231 void restore_(UInt32 key_id, std::string *key) const;
235 std::size_t restore_(UInt32 key_id, char *key_buf,
281 UInt32 key_id_to_node(UInt32 key_id) const;
339 marisa_status marisa_restore(const marisa_trie *h, marisa_uint32 key_id,
343 const char *ptr, size_t length, marisa_uint32 *key_id);
351 marisa_uint32 *key_id, size_t *key_length);
[all …]
Dtrie-inline.h10 inline std::string Trie::operator[](UInt32 key_id) const {
12 restore(key_id, &key);
282 if (!callback(cur.key_id(), key)) { in predict_callback_()
285 cur.set_key_id(cur.key_id() + 1); in predict_callback_()
300 inline UInt32 Trie::key_id_to_node(UInt32 key_id) const { in key_id_to_node() argument
301 return terminal_flags_.select1(key_id); in key_id_to_node()
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dtrie-c.cc16 bool operator()(marisa_alpha::UInt32 key_id, std::size_t key_length) const { in operator ()() argument
17 return func_(first_arg_, key_id, key_length) != 0; in operator ()()
37 bool operator()(marisa_alpha::UInt32 key_id, const std::string &key) const { in operator ()() argument
38 return func_(first_arg_, key_id, key.c_str(), key.length()) != 0; in operator ()()
183 marisa_alpha_uint32 key_id, char *key_buf, size_t key_buf_size, in marisa_alpha_restore() argument
190 *key_length = h->trie.restore(key_id, key_buf, key_buf_size); in marisa_alpha_restore()
197 const char *ptr, size_t length, marisa_alpha_uint32 *key_id) try { in marisa_alpha_lookup() argument
200 } else if (key_id == NULL) { in marisa_alpha_lookup()
204 *key_id = h->trie.lookup(ptr); in marisa_alpha_lookup()
206 *key_id = h->trie.lookup(ptr, length); in marisa_alpha_lookup()
[all …]
Dtrie-search.cc20 bool operator()(marisa_alpha::UInt32 key_id, const std::string &key) { in operator ()() argument
22 key_ids_.insert(num_results_, key_id); in operator ()()
42 std::string Trie::restore(UInt32 key_id) const { in restore()
44 MARISA_ALPHA_THROW_IF(key_id >= num_keys_, MARISA_ALPHA_PARAM_ERROR); in restore()
46 restore_(key_id, &key); in restore()
50 void Trie::restore(UInt32 key_id, std::string *key) const { in restore() argument
52 MARISA_ALPHA_THROW_IF(key_id >= num_keys_, MARISA_ALPHA_PARAM_ERROR); in restore()
54 restore_(key_id, key); in restore()
57 std::size_t Trie::restore(UInt32 key_id, char *key_buf, in restore() argument
60 MARISA_ALPHA_THROW_IF(key_id >= num_keys_, MARISA_ALPHA_PARAM_ERROR); in restore()
[all …]
Dcell.h18 void set_key_id(UInt32 key_id) { in set_key_id() argument
19 key_id_ = key_id; in set_key_id()
31 UInt32 key_id() const { in key_id() function
Dtrie.h54 std::string operator[](UInt32 key_id) const;
59 std::string restore(UInt32 key_id) const;
60 void restore(UInt32 key_id, std::string *key) const;
61 std::size_t restore(UInt32 key_id, char *key_buf,
231 void restore_(UInt32 key_id, std::string *key) const;
235 std::size_t restore_(UInt32 key_id, char *key_buf,
281 UInt32 key_id_to_node(UInt32 key_id) const;
342 marisa_alpha_uint32 key_id, char *key_buf, size_t key_buf_size,
346 const char *ptr, size_t length, marisa_alpha_uint32 *key_id);
354 marisa_alpha_uint32 *key_id, size_t *key_length);
[all …]
Dtrie-inline.h10 inline std::string Trie::operator[](UInt32 key_id) const {
12 restore(key_id, &key);
287 if (!callback(cur.key_id(), key)) { in predict_callback_()
290 cur.set_key_id(cur.key_id() + 1); in predict_callback_()
309 inline UInt32 Trie::key_id_to_node(UInt32 key_id) const { in key_id_to_node() argument
310 return terminal_flags_.select1(key_id); in key_id_to_node()
/external/marisa-trie/tests/
Dc-test.c61 marisa_uint32 key_id, size_t key_length) { in callback_for_find() argument
63 ASSERT(key_id == 1); in callback_for_find()
70 marisa_uint32 key_id, const char *key, size_t key_length) { in callback_for_predict() argument
74 ASSERT(key_id == 0); in callback_for_predict()
80 ASSERT(key_id == 3); in callback_for_predict()
97 marisa_uint32 key_id; in TestTrie() local
143 keys[i], MARISA_ZERO_TERMINATED, &key_id) == MARISA_OK); in TestTrie()
144 ASSERT(key_id == key_ids[i]); in TestTrie()
147 keys[i], strlen(keys[i]), &key_id) == MARISA_OK); in TestTrie()
148 ASSERT(key_id == key_ids[i]); in TestTrie()
/external/marisa-trie/v0_1_5/tests/
Dc-test.c66 marisa_alpha_uint32 key_id, size_t key_length) { in callback_for_find() argument
68 ASSERT(key_id == 1); in callback_for_find()
75 marisa_alpha_uint32 key_id, const char *key, size_t key_length) { in callback_for_predict() argument
79 ASSERT(key_id == 0); in callback_for_predict()
85 ASSERT(key_id == 3); in callback_for_predict()
102 marisa_alpha_uint32 key_id; in TestTrie() local
151 keys[i], MARISA_ALPHA_ZERO_TERMINATED, &key_id) == MARISA_ALPHA_OK); in TestTrie()
152 ASSERT(key_id == key_ids[i]); in TestTrie()
155 keys[i], strlen(keys[i]), &key_id) == MARISA_ALPHA_OK); in TestTrie()
156 ASSERT(key_id == key_ids[i]); in TestTrie()
/external/marisa-trie/tools/
Dmarisa-find.cc58 const marisa::UInt32 key_id = trie.find_first(str, &length); in find_first() local
59 if (key_id != trie.notfound()) { in find_first()
60 std::cout << key_id << '\t'; in find_first()
69 const marisa::UInt32 key_id = trie.find_last(str, &length); in find_last() local
70 if (key_id != trie.notfound()) { in find_last()
71 std::cout << key_id << '\t'; in find_last()
Dmarisa-lookup.cc55 const marisa::UInt32 key_id = trie.lookup(str); in lookup() local
56 if (key_id != trie.notfound()) { in lookup()
57 std::cout << key_id << '\t' << str << '\n'; in lookup()
/external/marisa-trie/v0_1_5/tools/
Dmarisa_alpha-find.cc58 const marisa_alpha::UInt32 key_id = trie.find_first(str, &length); in find_first() local
59 if (key_id != trie.notfound()) { in find_first()
60 std::cout << key_id << '\t'; in find_first()
69 const marisa_alpha::UInt32 key_id = trie.find_last(str, &length); in find_last() local
70 if (key_id != trie.notfound()) { in find_last()
71 std::cout << key_id << '\t'; in find_last()
Dmarisa_alpha-lookup.cc55 const marisa_alpha::UInt32 key_id = trie.lookup(str); in lookup() local
56 if (key_id != trie.notfound()) { in lookup()
57 std::cout << key_id << '\t' << str << '\n'; in lookup()
/external/openssh/
Dkrl.c67 char *key_id; member
115 return strcmp(a->key_id, b->key_id); in key_id_cmp()
156 free(rki->key_id); in revoked_certs_free()
338 const char *key_id) in ssh_krl_revoke_cert_by_key_id() argument
347 KRL_DBG(("%s: revoke %s", __func__, key_id)); in ssh_krl_revoke_cert_by_key_id()
349 (rki->key_id = strdup(key_id)) == NULL) { in ssh_krl_revoke_cert_by_key_id()
355 free(rki->key_id); in ssh_krl_revoke_cert_by_key_id()
435 key->cert->key_id); in ssh_krl_revoke_key()
689 KRL_DBG(("%s: key ID %s", __func__, rki->key_id)); in revoked_certs_generate()
690 if ((r = sshbuf_put_cstring(sect, rki->key_id)) != 0) in revoked_certs_generate()
[all …]
Dkrl.h53 const struct sshkey *ca_key, const char *key_id);
Dauth2-pubkey.c234 key_type(key), key->cert->key_id, in pubkey_auth_info()
417 "signed by %s CA %s via %s", key->cert->key_id, in check_authkeys_file()
489 key->cert->key_id, key_type(key->cert->signature_key), ca_fp, in user_cert_trusted_ca()
/external/tcpdump/
Dprint-ntp.c186 TCHECK(bp->key_id); in ntp_print()
187 printf("\n\tKey id: %u", bp->key_id); in ntp_print()
189 TCHECK(bp->key_id); in ntp_print()
190 printf("\n\tKey id: %u", bp->key_id); in ntp_print()
Dntp.h90 u_int32_t key_id; member
/external/marisa-trie/
Dandroid_diff.txt242 marisa_status marisa_restore(const marisa_trie *h, marisa_uint32 key_id,
248 @@ -186,12 +168,10 @@ marisa_status marisa_restore(const marisa_trie *h, marisa_uint32 key_id,
250 *key_length = h->trie.restore(key_id, key_buf, key_buf_size);
257 - const char *ptr, size_t length, marisa_uint32 *key_id) try {
258 + const char *ptr, size_t length, marisa_uint32 *key_id) {
261 } else if (key_id == NULL) {
263 *key_id = h->trie.lookup(ptr, length);
397 inline UInt32 Trie::key_id_to_node(UInt32 key_id) const {
404 void Trie::restore_(UInt32 key_id, std::string *key) const {
407 - UInt32 node = key_id_to_node(key_id);
[all …]
/external/wpa_supplicant_8/wpa_supplicant/examples/
DopenCryptoki.conf34 key_id="4"
/external/wpa_supplicant_8/src/eap_peer/
Deap_config.h532 char *key_id; member
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c875 EVP_PKEY* EVP_PKEY_from_keystore(const char* key_id);
900 const char *pin, const char *key_id, in tls_engine_init() argument
909 conn->private_key = EVP_PKEY_from_keystore(key_id); in tls_engine_init()
913 key_id, in tls_engine_init()
951 if (key_id) { in tls_engine_init()
963 key_id, NULL, in tls_engine_init()
970 key_id, in tls_engine_init()
3448 const char *key_id = params->key_id; in tls_connection_set_params() local
3464 if (!key_id && params->private_key && can_pkcs11 && in tls_connection_set_params()
3467 key_id = params->private_key; in tls_connection_set_params()
[all …]

123