Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 25 of 111) sorted by relevance

12345

/freebsd/contrib/ntp/libntp/
H A Dssl_init.c95 int key_type;
120 key_type = OBJ_sn2nid(upcased); in keytype_from_text()
123 if (!key_type && !strncmp(CMAC, upcased, strlen(CMAC) + 1)) { in keytype_from_text()
124 key_type = NID_cmac; in keytype_from_text()
134 key_type = 0; in keytype_from_text()
137 if (!key_type && 'm' == tolower((unsigned char)text[0])) { in keytype_from_text()
138 key_type = NID_md5; in keytype_from_text()
141 if (!key_type) { in keytype_from_text()
147 md = EVP_get_digestbynid(key_type); in keytype_from_text()
152 if (key_type in keytype_from_text()
102 int key_type; keytype_from_text() local
[all...]
/freebsd/crypto/libecc/include/libecc/sig/
H A Decdsa_common.h55 …ET int __ecdsa_init_pub_key(ec_pub_key *out_pub, const ec_priv_key *in_priv, ec_alg_type key_type);
59 ATTRIBUTE_WARN_UNUSED_RET int __ecdsa_sign_init(struct ec_sign_context *ctx, ec_alg_type key_type);
62 const u8 *chunk, u32 chunklen, ec_alg_type key_type);
64 …T int __ecdsa_sign_finalize(struct ec_sign_context *ctx, u8 *sig, u8 siglen, ec_alg_type key_type);
76 const u8 *sig, u8 siglen, ec_alg_type key_type);
79 const u8 *chunk, u32 chunklen, ec_alg_type key_type);
81 …E_WARN_UNUSED_RET int __ecdsa_verify_finalize(struct ec_verify_context *ctx, ec_alg_type key_type);
85 ec_alg_type key_type);
H A Dbign_common.h71 …RET int __bign_init_pub_key(ec_pub_key *out_pub, const ec_priv_key *in_priv, ec_alg_type key_type);
75 ATTRIBUTE_WARN_UNUSED_RET int __bign_sign_init(struct ec_sign_context *ctx, ec_alg_type key_type);
78 const u8 *chunk, u32 chunklen, ec_alg_type key_type);
80 …ET int __bign_sign_finalize(struct ec_sign_context *ctx, u8 *sig, u8 siglen, ec_alg_type key_type);
93 const u8 *sig, u8 siglen, ec_alg_type key_type);
96 const u8 *chunk, u32 chunklen, ec_alg_type key_type);
98 …TE_WARN_UNUSED_RET int __bign_verify_finalize(struct ec_verify_context *ctx, ec_alg_type key_type);
H A Decsdsa_common.h33 ec_alg_type key_type);
38 ec_alg_type key_type, int optimized);
45 ec_alg_type key_type, int optimized);
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_keycache.c79 u_int32_t key_type; in ar9300_reset_key_cache_entry() local
90 key_type = OS_REG_READ(ah, AR_KEYTABLE_TYPE(entry)); in ar9300_reset_key_cache_entry()
101 if (key_type == AR_KEYTABLE_TYPE_TKIP && IS_MIC_ENABLED(ah)) { in ar9300_reset_key_cache_entry()
118 if (key_type == AR_KEYTABLE_TYPE_TKIP || in ar9300_reset_key_cache_entry()
119 key_type == AR_KEYTABLE_TYPE_40 || in ar9300_reset_key_cache_entry()
120 key_type == AR_KEYTABLE_TYPE_104 || in ar9300_reset_key_cache_entry()
121 key_type == AR_KEYTABLE_TYPE_128) { in ar9300_reset_key_cache_entry()
195 u_int32_t key_type; in ar9300_set_key_cache_entry() local
214 key_type = AR_KEYTABLE_TYPE_AES; in ar9300_set_key_cache_entry()
223 key_type = AR_KEYTABLE_TYPE_CCM; in ar9300_set_key_cache_entry()
[all …]
/freebsd/crypto/libecc/src/sig/
H A Deddsa.c159 ATTRIBUTE_WARN_UNUSED_RET static int eddsa_key_type_check_curve(ec_alg_type key_type, in eddsa_key_type_check_curve() argument
164 switch (key_type) { in eddsa_key_type_check_curve()
196 ret = eddsa_key_type_check_curve(in_priv->key_type, in eddsa_priv_key_sanity_check()
209 ret = eddsa_key_type_check_curve(in_pub->key_type, in eddsa_pub_key_sanity_check()
223 MUST_HAVE((key_pair->priv_key.key_type == key_pair->pub_key.key_type), ret, err); in eddsa_key_pair_sanity_check()
318 MUST_HAVE(((hash_type = get_eddsa_hash_type(in_priv->key_type)) != UNKNOWN_HASH_ALG), ret, err); in eddsa_get_digest_from_priv_key()
586 MUST_HAVE(((hash_type = get_eddsa_hash_type(in_priv->key_type)) != UNKNOWN_HASH_ALG), ret, err); in eddsa_derive_priv_key_hash()
628 MUST_HAVE(((hash_type = get_eddsa_hash_type(priv_key->key_type)) != UNKNOWN_HASH_ALG), ret, err); in eddsa_derive_priv_key()
654 if ((priv_key->key_type == EDDSA25519) || in eddsa_derive_priv_key()
655 (priv_key->key_type == EDDSA25519CTX) || in eddsa_derive_priv_key()
[all …]
H A Decdsa_common.c173 ec_alg_type key_type) in __ecdsa_init_pub_key() argument
184 ret = priv_key_check_initialized_and_type(in_priv, key_type); EG(ret, err); in __ecdsa_init_pub_key()
195 out_pub->key_type = key_type; in __ecdsa_init_pub_key()
265 int __ecdsa_sign_init(struct ec_sign_context *ctx, ec_alg_type key_type) in __ecdsa_sign_init() argument
273 ret = key_pair_check_initialized_and_type(ctx->key_pair, key_type); EG(ret, err); in __ecdsa_sign_init()
293 const u8 *chunk, u32 chunklen, ec_alg_type key_type) in __ecdsa_sign_update() argument
307 ret = key_pair_check_initialized_and_type(ctx->key_pair, key_type); EG(ret, err); in __ecdsa_sign_update()
319 ec_alg_type key_type) in __ecdsa_sign_finalize() argument
350 ret = key_pair_check_initialized_and_type(ctx->key_pair, key_type); EG(ret, err); in __ecdsa_sign_finalize()
364 MUST_HAVE((priv_key->key_type == key_type), ret, err); in __ecdsa_sign_finalize()
[all …]
H A Dbign_common.c346 ec_alg_type key_type) in __bign_init_pub_key() argument
357 ret = priv_key_check_initialized_and_type(in_priv, key_type); EG(ret, err); in __bign_init_pub_key()
368 out_pub->key_type = key_type; in __bign_init_pub_key()
410 int __bign_sign_init(struct ec_sign_context *ctx, ec_alg_type key_type) in __bign_sign_init() argument
418 ret = key_pair_check_initialized_and_type(ctx->key_pair, key_type); EG(ret, err); in __bign_sign_init()
443 const u8 *chunk, u32 chunklen, ec_alg_type key_type) in __bign_sign_update() argument
457 ret = key_pair_check_initialized_and_type(ctx->key_pair, key_type); EG(ret, err); in __bign_sign_update()
469 ec_alg_type key_type) in __bign_sign_finalize() argument
505 ret = key_pair_check_initialized_and_type(ctx->key_pair, key_type); EG(ret, err); in __bign_sign_finalize()
520 MUST_HAVE((priv_key->key_type == key_type), ret, err); in __bign_sign_finalize()
[all …]
H A Dec_key.c44 (A->params != NULL) && (A->key_type == alg_type)), ret, err); in priv_key_check_initialized_and_type()
68 priv_key->key_type = ec_key_alg; in ec_priv_key_import_from_buf()
126 (A->params != NULL) && (A->key_type == alg_type)), ret, err); in pub_key_check_initialized_and_type()
166 pub_key->key_type = ec_key_alg; in ec_pub_key_import_from_buf()
208 pub_key->key_type = ec_key_alg; in ec_pub_key_import_from_aff_buf()
384 priv_key_buf[1] = (u8)priv_key->key_type; in ec_structured_priv_key_export_to_buf()
483 pub_key_buf[1] = (u8)pub_key->key_type; in ec_structured_pub_key_export_to_buf()
605 kp->priv_key.key_type = ec_key_alg; in ec_key_pair_gen()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramStateTrait.h152 using key_type = Key;
165 static lookup_type Lookup(data_type B, key_type K) {
169 static data_type Set(data_type B, key_type K, value_type E,
174 static data_type Remove(data_type B, key_type K, context_type F) {
178 static bool Contains(data_type B, key_type K) {
200 using key_type = Key;
211 static data_type Add(data_type B, key_type K, context_type F) {
215 static data_type Remove(data_type B, key_type K, context_type F) {
219 static bool Contains(data_type B, key_type K) {
240 using key_type = T;
[all …]
H A DProgramState.h423 add(typename ProgramStateTrait<T>::key_type K) const;
433 get(typename ProgramStateTrait<T>::key_type key) const { in get()
443 remove(typename ProgramStateTrait<T>::key_type K) const;
447 remove(typename ProgramStateTrait<T>::key_type K,
458 set(typename ProgramStateTrait<T>::key_type K,
463 set(typename ProgramStateTrait<T>::key_type K,
468 bool contains(typename ProgramStateTrait<T>::key_type key) const { in contains()
649 typename ProgramStateTrait<T>::key_type K, in set()
659 typename ProgramStateTrait<T>::key_type K, in add()
667 typename ProgramStateTrait<T>::key_type K, in remove()
[all …]
/freebsd/contrib/bearssl/tools/
H A Dxmem.c83 pk2->key_type = pk->key_type; in xpkeydup()
84 switch (pk->key_type) { in xpkeydup()
99 (unsigned)pk->key_type); in xpkeydup()
113 switch (pk->key_type) { in xfreepkey()
124 (unsigned)pk->key_type); in xfreepkey()
/freebsd/contrib/llvm-project/libcxx/include/ext/
H A Dhash_set26 typedef Value key_type;
27 typedef key_type value_type;
69 size_type erase(const key_type& k);
78 iterator find(const key_type& k);
79 const_iterator find(const key_type& k) const;
80 size_type count(const key_type& k) const;
81 pair<iterator, iterator> equal_range(const key_type& k);
82 pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
112 typedef Value key_type;
113 typedef key_type value_type;
[all …]
H A Dhash_map26 typedef Key key_type;
31 typedef pair<const key_type, mapped_type> value_type;
73 size_type erase(const key_type& k);
82 iterator find(const key_type& k);
83 const_iterator find(const key_type& k) const;
84 size_type count(const key_type& k) const;
85 pair<iterator, iterator> equal_range(const key_type& k);
86 pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
88 mapped_type& operator[](const key_type& k);
118 typedef Key key_type;
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DMapLattice.h44 using key_type = Key;
58 insert(const std::pair<const key_type, mapped_type> &P) { in insert() argument
62 std::pair<iterator, bool> insert(std::pair<const key_type, mapped_type> &&P) { in insert() argument
85 bool contains(const key_type &K) const { return C.find(K) != C.end(); } in contains()
87 iterator find(const key_type &K) { return C.find(K); } in find()
88 const_iterator find(const key_type &K) const { return C.find(K); } in find()
90 mapped_type &operator[](const key_type &K) { return C[K]; }
/freebsd/contrib/llvm-project/libcxx/include/
H A Dmap26 typedef Key key_type;
28 typedef pair<const key_type, mapped_type> value_type;
125 mapped_type& operator[](const key_type& k);
126 mapped_type& operator[](key_type&& k);
128 mapped_type& at(const key_type& k);
129 const mapped_type& at(const key_type& k) const;
151 node_type extract(const key_type& x); // C++17
156 pair<iterator, bool> try_emplace(const key_type& k, Args&&... args); // C++17
158 pair<iterator, bool> try_emplace(key_type&& k, Args&&... args); // C++17
160 iterator try_emplace(const_iterator hint, const key_type& k, Args&&... args); // C++17
[all …]
H A Dset26 typedef Key key_type;
27 typedef key_type value_type;
127 node_type extract(const key_type& x); // C++17
133 size_type erase(const key_type& k);
158 iterator find(const key_type& k);
159 const_iterator find(const key_type& k) const;
167 size_type count(const key_type& k) const;
169 bool contains(const key_type& x) const; // C++20
172 iterator lower_bound(const key_type& k);
173 const_iterator lower_bound(const key_type& k) const;
[all …]
H A Dunordered_map28 typedef Key key_type;
33 typedef pair<const key_type, mapped_type> value_type;
141 node_type extract(const key_type& x); // C++17
146 pair<iterator, bool> try_emplace(const key_type& k, Args&&... args); // C++17
148 pair<iterator, bool> try_emplace(key_type&& k, Args&&... args); // C++17
150 iterator try_emplace(const_iterator hint, const key_type& k, Args&&... args); // C++17
152 iterator try_emplace(const_iterator hint, key_type&& k, Args&&... args); // C++17
154 pair<iterator, bool> insert_or_assign(const key_type& k, M&& obj); // C++17
156 pair<iterator, bool> insert_or_assign(key_type&& k, M&& obj); // C++17
158 iterator insert_or_assign(const_iterator hint, const key_type& k, M&& obj); // C++17
[all …]
H A Dunordered_set30 typedef Value key_type;
31 typedef key_type value_type;
133 node_type extract(const key_type& x); // C++17
139 size_type erase(const key_type& k);
160 iterator find(const key_type& k);
161 const_iterator find(const key_type& k) const;
166 size_type count(const key_type& k) const;
169 bool contains(const key_type& k) const; // C++20
172 pair<iterator, iterator> equal_range(const key_type& k);
173 pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
[all …]
/freebsd/contrib/ntp/sntp/
H A Dcrypto.c34 int key_type; in compute_mac()
37 key_type = keytype_from_text(macname, NULL); in compute_mac()
41 if (key_type == NID_cmac) { in compute_mac()
89 if (!EVP_DigestInit_ex(ctx, EVP_get_digestbynid(key_type), NULL)) { in compute_mac()
110 (void)key_type; /* unused, so try to prevent compiler from croaks */ in compute_mac()
111 if (!EVP_DigestInit(ctx, EVP_get_digestbynid(key_type))) { in compute_mac()
33 int key_type; compute_mac() local
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DImmutableMap.h31 using key_type = const T; member
67 using key_type = typename ValInfo::key_type; variable
100 TreeTy *T = F.add(Old.Root.get(), std::pair<key_type, data_type>(K, D)); in add()
207 using key_type = typename ValInfo::key_type; variable
244 Factory->add(Root.get(), std::pair<key_type, data_type>(K, D)); in add()
H A DSetVector.h45 /// that value_type can be converted into key_type for insertion. Users must be
47 /// value_type to float and key_type to int can produce very surprising results,
64 using key_type = typename Set::key_type; variable
217 const key_type &V = *I; in erase()
254 bool contains(const key_type &key) const { in contains()
264 size_type count(const key_type &key) const { in count()
/freebsd/contrib/bearssl/inc/
H A Dbearssl_x509.h230 unsigned char key_type; member
1217 unsigned char key_type; member
1262 if (ctx->key_type == 0) { in br_skey_decoder_last_error()
1281 return ctx->key_type; in br_skey_decoder_key_type()
1301 if (ctx->err == 0 && ctx->key_type == BR_KEYTYPE_RSA) { in br_skey_decoder_get_rsa()
1322 if (ctx->err == 0 && ctx->key_type == BR_KEYTYPE_EC) { in br_skey_decoder_get_ec()
/freebsd/contrib/llvm-project/libcxx/include/__functional/
H A Dboyer_moore_searcher.h44 using key_type = _Key;
54 _LIBCPP_HIDE_FROM_ABI void insert(const key_type& __key, value_type __val) { __table_[__key] = __val; }
56 _LIBCPP_HIDE_FROM_ABI value_type operator[](const key_type& __key) const {
67 using key_type = _Key;
69 using unsigned_key_type = make_unsigned_t<key_type>;
78 _LIBCPP_HIDE_FROM_ABI void insert(key_type __key, value_type __val) {
82 _LIBCPP_HIDE_FROM_ABI value_type operator[](key_type __key) const {
51 using key_type = _Key; global() variable
80 using key_type = _Key; global() variable
/freebsd/crypto/openssl/apps/
H A Drsautl.c81 char rsa_mode = RSA_VERIFY, key_type = KEY_PRIVKEY; in rsautl_main() local
149 key_type = KEY_PUBKEY; in rsautl_main()
152 key_type = KEY_CERT; in rsautl_main()
179 if (need_priv && (key_type != KEY_PRIVKEY)) { in rsautl_main()
189 switch (key_type) { in rsautl_main()

12345