Searched refs:key (Results 176 - 200 of 2503) sorted by relevance

1234567891011>>

/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dcrypto-des.c43 krb5_keyblock *key)
45 DES_cblock *k = key->keyvalue.data;
55 struct _krb5_key_data *key)
57 DES_set_key_unchecked(key->key->keyvalue.data, key->schedule->data);
62 krb5_keyblock *key,
66 DES_cblock *k = key->keyvalue.data;
67 memcpy(k, data, key->keyvalue.length);
101 struct _krb5_key_data *key,
42 krb5_DES_random_key(krb5_context context, krb5_keyblock *key) argument
53 krb5_DES_schedule_old(krb5_context context, struct _krb5_key_type *kt, struct _krb5_key_data *key) argument
61 krb5_DES_random_to_key(krb5_context context, krb5_keyblock *key, const void *data, size_t size) argument
100 CRC32_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument
119 RSA_MD4_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument
132 RSA_MD4_DES_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *cksum) argument
143 RSA_MD4_DES_verify(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument
154 RSA_MD5_DES_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument
165 RSA_MD5_DES_verify(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument
216 evp_des_encrypt_null_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument
235 evp_des_encrypt_key_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument
254 DES_CFB64_encrypt_null_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument
272 DES_PCBC_encrypt_key_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument
[all...]
H A Dsalt-des.c44 * encryption key. It is compatible with the original Andrew authentication
54 DES_cblock *key)
67 memcpy(key, crypt(password, "p1") + 2, sizeof(DES_cblock));
73 ((unsigned char*)key)[i] <<= 1;
74 DES_set_odd_parity (key);
83 DES_cblock *key)
110 DES_cbc_cksum ((void*)password, key, passlen, &schedule, &ivec);
116 DES_set_odd_parity (key);
125 krb5_keyblock *key)
132 key
52 krb5_DES_AFS3_CMU_string_to_key(krb5_data pw, krb5_data cell, DES_cblock *key) argument
81 krb5_DES_AFS3_Transarc_string_to_key(krb5_data pw, krb5_data cell, DES_cblock *key) argument
120 DES_AFS3_string_to_key(krb5_context context, krb5_enctype enctype, krb5_data password, krb5_salt salt, krb5_data opaque, krb5_keyblock *key) argument
140 DES_string_to_key_int(unsigned char *data, size_t length, DES_cblock *key) argument
173 krb5_DES_string_to_key(krb5_context context, krb5_enctype enctype, krb5_data password, krb5_salt salt, krb5_data opaque, krb5_keyblock *key) argument
[all...]
/netbsd-6-1-5-RELEASE/tests/include/sys/
H A Dt_tree.c38 int key; member in struct:mist
46 return (b->key - a->key); /* wrong, can overflow */
48 if (b->key > a->key)
50 else if (b->key < a->key)
61 addmist(int key) argument
66 m->key = key;
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/contrib/idn/idnkit-1.0-src/lib/
H A Dstrhash.c75 char *key; member in struct:strhash_entry
85 static unsigned long hash_value(const char *key);
86 static strhash_entry_t *find_entry(strhash_entry_t *entry, const char *key,
88 static strhash_entry_t *new_entry(const char *key, void *value);
143 idn__strhash_put(idn__strhash_t hash, const char *key, void *value) { argument
147 assert(hash != NULL && key != NULL);
149 h = hash_value(key);
152 if ((entry = find_entry(hash->bins[h_index], key, h)) != NULL) {
157 if ((entry = new_entry(key, value)) == NULL) {
179 idn__strhash_get(idn__strhash_t hash, const char *key, voi argument
195 idn__strhash_exists(idn__strhash_t hash, const char *key) argument
205 hash_value(const char *key) argument
217 find_entry(strhash_entry_t *entry, const char *key, unsigned long hash) argument
229 new_entry(const char *key, void *value) argument
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/
H A Dprefix.c42 be considered a "key" and looked up as follows:
45 an entry of "key" in
53 key_ROOT (the value of "key" concatenated with the constant "_ROOT")
91 get_key_value (char *key) argument
97 prefix = lookup_key (key);
101 prefix = getenv (temp = concat (key, "_ROOT", NULL));
130 /* Look up "key" in the registry, as above. */
133 lookup_key (char *key) argument
163 res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size);
167 res = RegQueryValueExA (reg_key, key,
188 char *key, *old_name; local
249 update_path(const char *path, const char *key) argument
[all...]
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/
H A Dprefix.c43 be considered a "key" and looked up as follows:
46 an entry of "key" in
54 key_ROOT (the value of "key" concatenated with the constant "_ROOT")
92 get_key_value (char *key) argument
98 prefix = lookup_key (key);
102 prefix = getenv (temp = concat (key, "_ROOT", NULL));
131 /* Look up "key" in the registry, as above. */
134 lookup_key (char *key) argument
164 res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size);
168 res = RegQueryValueExA (reg_key, key,
189 char *key, *old_name; local
250 update_path(const char *path, const char *key) argument
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/des/
H A Dstr2key.c62 void DES_string_to_key(const char *str, DES_cblock *key) argument
68 memset(key,0,8);
72 (*key)[i%8]^=(str[i]<<1);
78 (*key)[i%8]^=(j<<1);
85 (*key)[7-(i%8)]^=j;
89 DES_set_odd_parity(key);
91 if(DES_is_weak_key(key))
92 (*key)[7] ^= 0xF0;
93 DES_set_key(key,&ks);
95 DES_set_key_unchecked(key,
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/readline/
H A Dmisc.c123 int key, r; local
125 key = c;
127 /* If we see a key bound to `universal-argument' after seeing digits,
144 key = rl_read_key ();
149 return (_rl_dispatch (key, _rl_keymap));
177 r = _rl_dispatch (key, _rl_keymap);
228 rl_digit_argument (ignore, key)
229 int ignore, key;
234 _rl_arg_dispatch (_rl_argcxt, key);
240 rl_execute_next (key);
[all...]
/netbsd-6-1-5-RELEASE/sys/external/bsd/drm/dist/libdrm/
H A Dxf86drmSL.c76 unsigned long key; member in struct:SLEntry
93 extern int drmSLLookup(void *l, unsigned long key, void **value);
94 extern int drmSLInsert(void *l, unsigned long key, void *value);
95 extern int drmSLDelete(void *l, unsigned long key);
96 extern int drmSLNext(void *l, unsigned long *key, void **value);
97 extern int drmSLFirst(void *l, unsigned long *key, void **value);
99 extern int drmSLLookupNeighbors(void *l, unsigned long key,
104 static SLEntryPtr SLCreateEntry(int max_level, unsigned long key, void *value) argument
114 entry->key = key;
169 SLLocate(void *l, unsigned long key, SLEntryPtr *update) argument
186 drmSLInsert(void *l, unsigned long key, void *value) argument
219 drmSLDelete(void *l, unsigned long key) argument
246 drmSLLookup(void *l, unsigned long key, void **value) argument
262 drmSLLookupNeighbors(void *l, unsigned long key, unsigned long *prev_key, void **prev_value, unsigned long *next_key, void **next_value) argument
289 drmSLNext(void *l, unsigned long *key, void **value) argument
308 drmSLFirst(void *l, unsigned long *key, void **value) argument
356 unsigned long key; local
372 unsigned long key; local
416 print_neighbors(void *list, unsigned long key) argument
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/tests/
H A Dhash_test.c64 unsigned char key[20]; local
108 memset(key, 0x0b, 16);
109 isc_hmacmd5_init(&hmacmd5, key, 16);
116 strcpy((char *)key, "Jefe");
117 isc_hmacmd5_init(&hmacmd5, key, 4);
128 memset(key, 0xaa, 16);
129 isc_hmacmd5_init(&hmacmd5, key, 16);
139 memset(key, 0x0b, 20);
140 isc_hmacsha1_init(&hmacsha1, key, 20);
147 strcpy((char *)key, "Jef
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Dauthfd.c58 #include "key.h"
320 Key *key = NULL; local
332 key = key_new(KEY_RSA1);
334 buffer_get_bignum(&auth->identities, key->rsa->e);
335 buffer_get_bignum(&auth->identities, key->rsa->n);
337 keybits = BN_num_bits(key->rsa->n);
340 BN_num_bits(key->rsa->n), bits);
345 key = key_from_blob(blob, blen);
353 return key;
366 Key* key, BIGNU
365 ssh_decrypt_challenge(AuthenticationConnection *auth, Key* key, BIGNUM *challenge, u_char session_id[16], u_int response_type, u_char response[16]) argument
416 ssh_agent_sign(AuthenticationConnection *auth, Key *key, u_char **sigp, u_int *lenp, u_char *data, u_int datalen) argument
461 ssh_encode_identity_rsa1(Buffer *b, RSA *key, const char *comment) argument
475 ssh_encode_identity_ssh2(Buffer *b, Key *key, const char *comment) argument
536 ssh_add_identity_constrained(AuthenticationConnection *auth, Key *key, const char *comment, u_int life, u_int confirm) argument
593 ssh_remove_identity(AuthenticationConnection *auth, Key *key) argument
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/evp/
H A Devp_pkey.c66 /* Extract a private key from a PKCS8 structure */
117 /* Turn a private key into a PKCS8 structure */
184 int EVP_PKEY_get_attr_count(const EVP_PKEY *key) argument
186 return X509at_get_attr_count(key->attributes);
189 int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, argument
192 return X509at_get_attr_by_NID(key->attributes, nid, lastpos);
195 int EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, ASN1_OBJECT *obj, argument
198 return X509at_get_attr_by_OBJ(key->attributes, obj, lastpos);
201 X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc) argument
203 return X509at_get_attr(key
206 EVP_PKEY_delete_attr(EVP_PKEY *key, int loc) argument
211 EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr) argument
217 EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key, const ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len) argument
226 EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key, int nid, int type, const unsigned char *bytes, int len) argument
235 EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key, const char *attrname, int type, const unsigned char *bytes, int len) argument
[all...]
/netbsd-6-1-5-RELEASE/lib/libcrypt/
H A Dhmac.c62 * rather than filling the pads with 0, copying in the key and then
64 * XOR with the key.
68 const unsigned char *key, size_t key_len,
72 /* Inner padding key XOR'd with ipad */
74 /* Outer padding key XOR'd with opad */
76 /* HASH(key) if needed */
81 * If key is longer than HMAC_BLOCKSZ bytes
82 * reset it to key=HASH(key)
88 HASH_Update(&tctx, key, key_le
67 HMAC_FUNC(const unsigned char *text, size_t text_len, const unsigned char *key, size_t key_len, unsigned char *digest) argument
200 unsigned char *key; member in struct:test_s
252 unsigned char *key; local
285 unsigned char *key; local
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/netpgp/dist/src/pgp2ssh/
H A Dmain.c47 char key[8192]; local
82 (void) fprintf(stderr, "No such key '%s'\n", argv[i]);
85 if ((keyc = netpgp_write_sshkey(&netpgp, res, argv[i], key, sizeof(key))) <= 0) {
89 for (cp = &key[keyc - 1] ; cp > key && *cp != ' ' ; --cp) {
91 if (cp == key) {
97 ascc = b64encode(key, keyc, asc, sizeof(asc), 0xffffffff);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/rc2/
H A Drc2.h85 void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits);
87 void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits);
88 void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key,
91 void RC2_encrypt(unsigned long *data,RC2_KEY *key);
92 void RC2_decrypt(unsigned long *data,RC2_KEY *key);
94 void RC2_encrypt(uint32_t *data,RC2_KEY *key);
95 void RC2_decrypt(uint32_t *data,RC2_KEY *key);
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/libraries/libldap_r/
H A Dthr_cthreads.c159 ldap_pvt_thread_key_create( ldap_pvt_thread_key_t *key )
161 return cthread_keycreate( key );
165 ldap_pvt_thread_key_destroy( ldap_pvt_thread_key_t key )
171 ldap_pvt_thread_key_setdata( ldap_pvt_thread_key_t key, void *data ) argument
173 return cthread_setspecific( key, data );
177 ldap_pvt_thread_key_getdata( ldap_pvt_thread_key_t key, void **data ) argument
179 return cthread_getspecific( key, data );
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/crypto/
H A Dmd5-non-fips.c24 * @key: Key for HMAC operations
25 * @key_len: Length of the key in bytes
32 int hmac_md5_vector_non_fips_allow(const u8 *key, size_t key_len, argument
36 u8 k_pad[64]; /* padding - key XORd with ipad/opad */
49 /* if key is longer than 64 bytes reset it to key = MD5(key) */
51 if (md5_vector_non_fips_allow(1, &key, &key_len, tk))
53 key = tk;
61 * where K is an n byte key
108 hmac_md5_non_fips_allow(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
[all...]
H A Dmd5.c24 * @key: Key for HMAC operations
25 * @key_len: Length of the key in bytes
32 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, argument
35 u8 k_pad[64]; /* padding - key XORd with ipad/opad */
48 /* if key is longer than 64 bytes reset it to key = MD5(key) */
50 if (md5_vector(1, &key, &key_len, tk))
52 key = tk;
60 * where K is an n byte key
107 hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/prep/prep/
H A Dibm_machdep.c49 char key[20]; local
63 sprintf(key, "pin-%c", 'A' + j);
64 prop_dictionary_set(sub, key, intr_num);
74 sprintf(key, "devfunc-%d", i);
76 sprintf(key, "pin-%c", 'A' + j);
77 prop_dictionary_set(sub, key, intr_num);
79 prop_dictionary_set(dict, key, sub);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dkeys.c63 keys[i].key.keyvalue.length = 0;
64 keys[i].key.keyvalue.data = NULL;
69 * return 1 if any key in `keys1, len1' exists in `keys2, len2'
92 if (keys1[i].key.keytype != keys2[j].key.keytype)
94 if (keys1[i].key.keyvalue.length != keys2[j].key.keyvalue.length)
96 if (memcmp (keys1[i].key.keyvalue.data, keys2[j].key.keyvalue.data,
97 keys1[i].key
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/amd/
H A Dsun2amd.c80 char line_buff[INFO_MAX_LINE_LEN], *tmp, *key, *entry; local
96 /* find start of key */
97 key = line_buff;
98 while (*key != '\0' && isspace((unsigned char)*key)) {
99 key++;
103 if (*key == '\0') {
107 /* find the end of the key and NULL terminate */
108 tmp = key;
124 if ((tmp = sun_entry2amd(key, entr
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/tmux/dist/
H A Dcmd-unbind-key.c1 /* $Id: cmd-unbind-key.c,v 1.1.1.2 2011/08/17 18:40:04 jmmv Exp $ */
24 * Unbind key from command.
33 "unbind-key", "unbind",
35 "[-acn] [-t key-table] key",
57 int key; local
69 key = key_string_lookup_string(args->argv[0]);
70 if (key == KEYC_NONE) {
71 ctx->error(ctx, "unknown key: %s", args->argv[0]);
76 return (cmd_unbind_key_table(self, ctx, key));
85 cmd_unbind_key_table(struct cmd *self, struct cmd_ctx *ctx, int key) argument
[all...]
/netbsd-6-1-5-RELEASE/tests/lib/libc/stdlib/
H A Dt_hsearch.c98 e.key = strdup(ch); /* ptr to provided key is kept! */
99 ATF_REQUIRE(e.key != NULL);
105 ATF_REQUIRE_STREQ(ep->key, ch);
109 /* e.key should be constant from here on down. */
110 e.key = ch;
119 ATF_REQUIRE_STREQ(ep->key, ch);
140 e.key = strdup("a");
141 ATF_REQUIRE(e.key != NULL);
147 ATF_REQUIRE_STREQ(ep->key, "
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/
H A Dhmacsha.c41 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key, argument
44 HMAC_Init(ctx, (const void *) key, (int) len, EVP_sha1());
72 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key, argument
75 HMAC_Init(ctx, (const void *) key, (int) len, EVP_sha224());
103 isc_hmacsha256_init(isc_hmacsha256_t *ctx, const unsigned char *key, argument
106 HMAC_Init(ctx, (const void *) key, (int) len, EVP_sha256());
134 isc_hmacsha384_init(isc_hmacsha384_t *ctx, const unsigned char *key, argument
137 HMAC_Init(ctx, (const void *) key, (int) len, EVP_sha384());
165 isc_hmacsha512_init(isc_hmacsha512_t *ctx, const unsigned char *key, argument
168 HMAC_Init(ctx, (const void *) key, (in
204 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key, unsigned int len) argument
273 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key, unsigned int len) argument
340 isc_hmacsha256_init(isc_hmacsha256_t *ctx, const unsigned char *key, unsigned int len) argument
407 isc_hmacsha384_init(isc_hmacsha384_t *ctx, const unsigned char *key, unsigned int len) argument
474 isc_hmacsha512_init(isc_hmacsha512_t *ctx, const unsigned char *key, unsigned int len) argument
[all...]
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/racoon/
H A Drsalist.c92 rsa_key_dup(struct rsa_key *key) argument
100 if (key->rsa) {
101 new->rsa = key->rsa->d != NULL ? RSAPrivateKey_dup(key->rsa) : RSAPublicKey_dup(key->rsa);
106 if (key->src) {
110 memcpy(new->src, key->src, sizeof(*new->src));
112 if (key->dst) {
116 memcpy(new->dst, key->dst, sizeof(*new->dst));
153 struct rsa_key *key local
197 struct rsa_key *key = entry; local
262 struct rsa_key *key; local
[all...]

Completed in 318 milliseconds

1234567891011>>