bin/pax/getoldopt.c
24
static char *key; /* Points to next keyletter */
bin/pax/getoldopt.c
31
if (key == NULL) { /* First time */
bin/pax/getoldopt.c
34
key = argv[1];
bin/pax/getoldopt.c
35
if (*key == '-')
bin/pax/getoldopt.c
44
c = *key++;
bin/pax/getoldopt.c
46
key--;
bin/pax/tables.c
1228
u_int key = 0;
bin/pax/tables.c
1261
key += val;
bin/pax/tables.c
1273
key += val;
bin/pax/tables.c
1279
return(key % tabsz);
bin/ps/keyword.c
330
VAR *t, key;
bin/ps/keyword.c
339
key.name = k->aliased;
bin/ps/keyword.c
340
t = bsearch(&key, keywords, known_keywords_nb, sizeof(VAR), vcmp);
bin/ps/keyword.c
399
VAR *v, key;
bin/ps/keyword.c
438
key.name = cp;
bin/ps/keyword.c
439
v = bsearch(&key, keywords,
bin/sh/mksyntax.c
234
add_one(const char *key, const char *type)
bin/sh/mksyntax.c
236
fprintf(cfile, "\t[SYNBASE + %s] = %s,\n", key, type);
bin/stty/key.c
102
struct key *kp, tmp;
bin/stty/key.c
112
if (!(kp = (struct key *)bsearch(&tmp, keys,
bin/stty/key.c
113
sizeof(keys)/sizeof(struct key), sizeof(struct key), c_key)))
bin/stty/key.c
95
return (strcmp(((const struct key *)a)->name, ((const struct key *)b)->name));
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
374
void cfb64_session(Session_Key *key, int server)
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
376
fb64_session(key, server, &fb[CFB]);
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
379
void ofb64_session(Session_Key *key, int server)
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
381
fb64_session(key, server, &fb[OFB]);
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
384
static void fb64_session(Session_Key *key, int server, struct fb *fbp)
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
387
if (!key || key->type != SK_DES) {
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
390
key ? key->type : -1, SK_DES);
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
393
memcpy(fbp->krbdes_key, key->data, sizeof(DES_cblock));
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
398
RAND_seed(key->data, key->length);
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
508
void fb64_stream_key(DES_cblock key, struct stinfo *stp)
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
510
memcpy(stp->str_ikey, key, sizeof(DES_cblock));
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
511
DES_set_key_checked((DES_cblock*)key, &stp->str_sched);
crypto/heimdal/appl/telnet/libtelnet/enc_des.c
94
char *key;
crypto/heimdal/appl/telnet/libtelnet/encrypt.c
678
encrypt_session_key(Session_Key *key, int server)
crypto/heimdal/appl/telnet/libtelnet/encrypt.c
686
(*ep->session)(key, server);
crypto/heimdal/appl/telnet/libtelnet/encrypt.h
66
#define VALIDKEY(key) ( key[0] | key[1] | key[2] | key[3] | \
crypto/heimdal/appl/telnet/libtelnet/encrypt.h
67
key[4] | key[5] | key[6] | key[7])
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
201
char *cp, key[160];
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
222
j = getc(fp); key[i]=j;
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
226
r = accept_rsa_encpwd(&auth, key, challenge,
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
284
j = getc(fp); key[i]=j;
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
299
memmove(ptr, key, i);
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
476
prkey(msg, key)
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
478
unsigned char *key;
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
483
printf(" %3d", key[i]);
crypto/heimdal/appl/telnet/libtelnet/spx.c
579
prkey(msg, key)
crypto/heimdal/appl/telnet/libtelnet/spx.c
581
unsigned char *key;
crypto/heimdal/appl/telnet/libtelnet/spx.c
586
printf(" %3d", key[i]);
crypto/heimdal/base/dict.c
155
if (heim_cmp(ptr, p->key) == 0)
crypto/heimdal/base/dict.c
171
heim_dict_copy_value(heim_dict_t dict, heim_object_t key)
crypto/heimdal/base/dict.c
174
p = _search(dict, key);
crypto/heimdal/base/dict.c
192
heim_dict_add_value(heim_dict_t dict, heim_object_t key, heim_object_t value)
crypto/heimdal/base/dict.c
196
h = _search(dict, key);
crypto/heimdal/base/dict.c
207
h->key = heim_retain(key);
crypto/heimdal/base/dict.c
210
v = heim_get_hash(key);
crypto/heimdal/base/dict.c
231
heim_dict_delete_key(heim_dict_t dict, heim_object_t key)
crypto/heimdal/base/dict.c
233
struct hashentry *h = _search(dict, key);
crypto/heimdal/base/dict.c
238
heim_release(h->key);
crypto/heimdal/base/dict.c
262
func(g->key, g->value, arg);
crypto/heimdal/base/dict.c
280
func(g->key, g->value);
crypto/heimdal/base/dict.c
41
heim_object_t key;
crypto/heimdal/base/dict.c
59
heim_release(g->key);
crypto/heimdal/kadmin/add_enctype.c
100
if (etypes[j] == key->key_data_type[0]) {
crypto/heimdal/kadmin/add_enctype.c
107
new_key_data[i] = *key;
crypto/heimdal/kadmin/add_enctype.c
97
krb5_key_data *key = &princ.key_data[i];
crypto/heimdal/kadmin/del_enctype.c
100
new_key_data[j++] = *key;
crypto/heimdal/kadmin/del_enctype.c
104
kadm5_free_key_data (kadm_handle, &ignore, key);
crypto/heimdal/kadmin/del_enctype.c
91
krb5_key_data *key = &princ.key_data[i];
crypto/heimdal/kadmin/del_enctype.c
95
if (etypes[k] == key->key_data_type[0]) {
crypto/heimdal/kadmin/load.c
164
Key *key;
crypto/heimdal/kadmin/load.c
165
key = realloc(ent->keys.val,
crypto/heimdal/kadmin/load.c
167
if(key == NULL)
crypto/heimdal/kadmin/load.c
169
ent->keys.val = key;
crypto/heimdal/kadmin/load.c
170
key = ent->keys.val + ent->keys.len;
crypto/heimdal/kadmin/load.c
172
memset(key, 0, sizeof(*key));
crypto/heimdal/kadmin/load.c
174
key->mkvno = malloc(sizeof(*key->mkvno));
crypto/heimdal/kadmin/load.c
175
*key->mkvno = tmp;
crypto/heimdal/kadmin/load.c
177
key->mkvno = NULL;
crypto/heimdal/kadmin/load.c
181
key->key.keytype = tmp;
crypto/heimdal/kadmin/load.c
183
ret = krb5_data_alloc(&key->key.keyvalue, (strlen(p) - 1) / 2 + 1);
crypto/heimdal/kadmin/load.c
189
((u_char*)key->key.keyvalue.data)[i / 2] = tmp;
crypto/heimdal/kadmin/load.c
204
key->salt = calloc(1, sizeof(*key->salt));
crypto/heimdal/kadmin/load.c
205
if (key->salt == NULL)
crypto/heimdal/kadmin/load.c
207
key->salt->type = type;
crypto/heimdal/kadmin/load.c
211
ret = krb5_data_copy(&key->salt->salt, p + 1, p_len - 2);
crypto/heimdal/kadmin/load.c
215
ret = krb5_data_alloc(&key->salt->salt,
crypto/heimdal/kadmin/load.c
222
((u_char*)key->salt->salt.data)[i / 2] = tmp;
crypto/heimdal/kadmin/load.c
226
krb5_data_zero (&key->salt->salt);
crypto/heimdal/kadmin/load.c
40
char *key;
crypto/heimdal/kadmin/load.c
415
e.key = p;
crypto/heimdal/kadmin/load.c
458
if (parse_keys(&ent.entry, e.key)) {
crypto/heimdal/kadmin/load.c
460
filename, line, e.key);
crypto/heimdal/kadmin/random_password.c
81
RND(unsigned char *key, int keylen, int *left)
crypto/heimdal/kadmin/random_password.c
84
krb5_generate_random_block(key, keylen);
crypto/heimdal/kadmin/random_password.c
88
return ((unsigned char*)key)[*left];
crypto/heimdal/kadmin/stash.c
105
ret = krb5_string_to_key_salt(context, enctype, buf, salt, &key);
crypto/heimdal/kadmin/stash.c
107
ret = hdb_add_master_key(context, &key, &mkey);
crypto/heimdal/kadmin/stash.c
110
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/kadmin/stash.c
79
krb5_keyblock key;
crypto/heimdal/kcm/acquire.c
101
&ccache->key.keyblock,
crypto/heimdal/kcm/acquire.c
110
ccache->key.keytab,
crypto/heimdal/kcm/acquire.c
58
if (ccache->key.keyblock.keyvalue.length == 0)
crypto/heimdal/kcm/acquire.c
62
if (ccache->key.keytab == NULL)
crypto/heimdal/kcm/cache.c
200
krb5_kt_close(context, cache->key.keytab);
crypto/heimdal/kcm/cache.c
201
cache->key.keytab = NULL;
crypto/heimdal/kcm/cache.c
203
krb5_free_keyblock_contents(context, &cache->key.keyblock);
crypto/heimdal/kcm/cache.c
204
krb5_keyblock_zero(&cache->key.keyblock);
crypto/heimdal/kcm/cache.c
319
slot->key.keytab = NULL;
crypto/heimdal/kcm/config.c
267
ret = krb5_kt_resolve(kcm_context, system_keytab, &ccache->key.keytab);
crypto/heimdal/kcm/config.c
269
ret = krb5_kt_default(kcm_context, &ccache->key.keytab);
crypto/heimdal/kcm/kcm_locl.h
103
} key;
crypto/heimdal/kcm/protocol.c
1567
ret = heim_ntlm_calculate_ntlm2(ctx->client->key.data,
crypto/heimdal/kcm/protocol.c
1568
ctx->client->key.length,
crypto/heimdal/kcm/protocol.c
1621
RC4_set_key(&ctx->u.v1.crypto_recv.key,
crypto/heimdal/kcm/protocol.c
1624
RC4_set_key(&ctx->u.v1.crypto_send.key,
crypto/heimdal/kcm/protocol.c
765
krb5_keyblock key;
crypto/heimdal/kcm/protocol.c
767
krb5_keyblock_zero(&key);
crypto/heimdal/kcm/protocol.c
789
ret = krb5_ret_keyblock(request, &key);
crypto/heimdal/kcm/protocol.c
807
krb5_free_keyblock(context, &ccache->key.keyblock);
crypto/heimdal/kcm/protocol.c
810
ccache->key.keyblock = key;
crypto/heimdal/kcm/protocol.c
816
krb5_keyblock_zero(&ccache->key.keyblock);
crypto/heimdal/kcm/protocol.c
827
krb5_free_keyblock(context, &key);
crypto/heimdal/kcm/protocol.c
992
MOVE(newid, oldid, key);
crypto/heimdal/kdc/announce.c
193
domains_add(const void *key, const void *value, void *context)
crypto/heimdal/kdc/digest-service.c
120
ETYPE_ARCFOUR_HMAC_MD5, &key);
crypto/heimdal/kdc/digest-service.c
136
ret = heim_ntlm_verify_ntlm2(key->key.keyvalue.data,
crypto/heimdal/kdc/digest-service.c
137
key->key.keyvalue.length,
crypto/heimdal/kdc/digest-service.c
172
ret = heim_ntlm_calculate_ntlm1(key->key.keyvalue.data,
crypto/heimdal/kdc/digest-service.c
173
key->key.keyvalue.length,
crypto/heimdal/kdc/digest-service.c
191
EVP_DigestUpdate(ctxp, key->key.keyvalue.data, key->key.keyvalue.length);
crypto/heimdal/kdc/digest-service.c
62
Key *key = NULL;
crypto/heimdal/kdc/digest.c
1144
Key *key = NULL;
crypto/heimdal/kdc/digest.c
1213
ETYPE_ARCFOUR_HMAC_MD5, &key);
crypto/heimdal/kdc/digest.c
1241
ret = heim_ntlm_verify_ntlm2(key->key.keyvalue.data,
crypto/heimdal/kdc/digest.c
1242
key->key.keyvalue.length,
crypto/heimdal/kdc/digest.c
1301
ret = heim_ntlm_calculate_ntlm1(key->key.keyvalue.data,
crypto/heimdal/kdc/digest.c
1302
key->key.keyvalue.length,
crypto/heimdal/kdc/digest.c
1326
key->key.keyvalue.data,
crypto/heimdal/kdc/digest.c
1327
key->key.keyvalue.length);
crypto/heimdal/kdc/digest.c
1455
krb5_keyblock *key;
crypto/heimdal/kdc/digest.c
1457
ret = krb5_auth_con_getlocalsubkey(context, ac, &key);
crypto/heimdal/kdc/digest.c
1461
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/kdc/digest.c
1462
krb5_free_keyblock (context, key);
crypto/heimdal/kdc/digest.c
336
krb5_keyblock *key;
crypto/heimdal/kdc/digest.c
338
ret = krb5_auth_con_getremotesubkey(context, ac, &key);
crypto/heimdal/kdc/digest.c
341
if (key == NULL) {
crypto/heimdal/kdc/digest.c
347
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/kdc/digest.c
348
krb5_free_keyblock (context, key);
crypto/heimdal/kdc/digest.c
65
Key *key;
crypto/heimdal/kdc/digest.c
72
&key);
crypto/heimdal/kdc/digest.c
75
return krb5_crypto_init(context, &key->key, 0, crypto);
crypto/heimdal/kdc/digest.c
806
Key *key = NULL;
crypto/heimdal/kdc/digest.c
887
ETYPE_ARCFOUR_HMAC_MD5, &key);
crypto/heimdal/kdc/digest.c
896
ret = heim_ntlm_calculate_ntlm1(key->key.keyvalue.data,
crypto/heimdal/kdc/digest.c
897
key->key.keyvalue.length,
crypto/heimdal/kdc/digest.c
934
key->key.keyvalue.data,
crypto/heimdal/kdc/digest.c
935
key->key.keyvalue.length);
crypto/heimdal/kdc/hprop.h
62
DES_cblock key;
crypto/heimdal/kdc/kerberos5.c
108
is_default_salt_p(const krb5_salt *default_salt, const Key *key)
crypto/heimdal/kdc/kerberos5.c
110
if (key->salt == NULL)
crypto/heimdal/kdc/kerberos5.c
112
if (default_salt->salttype != key->salt->type)
crypto/heimdal/kdc/kerberos5.c
114
if (krb5_data_cmp(&default_salt->saltvalue, &key->salt->salt))
crypto/heimdal/kdc/kerberos5.c
1236
ret = krb5_crypto_init(context, &pa_key->key, 0, &crypto);
crypto/heimdal/kdc/kerberos5.c
1261
pa_key->key.keytype, &str);
crypto/heimdal/kdc/kerberos5.c
1326
reply_key = &pa_key->key;
crypto/heimdal/kdc/kerberos5.c
1328
ret = krb5_enctype_to_string(context, pa_key->key.keytype, &str);
crypto/heimdal/kdc/kerberos5.c
134
Key *key;
crypto/heimdal/kdc/kerberos5.c
1415
if (older_enctype(ckey->key.keytype)) {
crypto/heimdal/kdc/kerberos5.c
1676
&reply_key, &et.key, rep.padata);
crypto/heimdal/kdc/kerberos5.c
1689
ret = krb5_generate_random_keyblock(context, sessionetype, &et.key);
crypto/heimdal/kdc/kerberos5.c
1700
ret = copy_EncryptionKey(&et.key, &ek.key);
crypto/heimdal/kdc/kerberos5.c
1725
ret = krb5_crypto_init(context, &et.key, 0, &cryptox);
crypto/heimdal/kdc/kerberos5.c
174
ret = hdb_enctype2key(context, &princ->entry, p[i], &key);
crypto/heimdal/kdc/kerberos5.c
177
if (is_preauth && !is_default_salt_p(&def_salt, key))
crypto/heimdal/kdc/kerberos5.c
1775
&skey->key, /* Server key */
crypto/heimdal/kdc/kerberos5.c
1776
&skey->key, /* FIXME: should be krbtgt key */
crypto/heimdal/kdc/kerberos5.c
1813
&skey->key, client->entry.kvno,
crypto/heimdal/kdc/kerberos5.c
189
*ret_key = key;
crypto/heimdal/kdc/kerberos5.c
200
for(key = NULL, i = 0; ret != 0 && i < len; i++, key = NULL) {
crypto/heimdal/kdc/kerberos5.c
206
while (hdb_next_enctype2key(context, &princ->entry, etypes[i], &key) == 0) {
crypto/heimdal/kdc/kerberos5.c
207
if (key->key.keyvalue.length == 0) {
crypto/heimdal/kdc/kerberos5.c
212
*ret_key = key;
crypto/heimdal/kdc/kerberos5.c
216
if (is_preauth && is_default_salt_p(&def_salt, key))
crypto/heimdal/kdc/kerberos5.c
474
make_etype_info_entry(krb5_context context, ETYPE_INFO_ENTRY *ent, Key *key)
crypto/heimdal/kdc/kerberos5.c
476
ent->etype = key->key.keytype;
crypto/heimdal/kdc/kerberos5.c
477
if(key->salt){
crypto/heimdal/kdc/kerberos5.c
481
if(key->salt->type == hdb_pw_salt)
crypto/heimdal/kdc/kerberos5.c
483
else if(key->salt->type == hdb_afs3_salt)
crypto/heimdal/kdc/kerberos5.c
487
key->salt->type);
crypto/heimdal/kdc/kerberos5.c
497
*ent->salttype = key->salt->type;
crypto/heimdal/kdc/kerberos5.c
507
krb5_copy_data(context, &key->salt->salt,
crypto/heimdal/kdc/kerberos5.c
565
make_etype_info2_entry(ETYPE_INFO2_ENTRY *ent, Key *key)
crypto/heimdal/kdc/kerberos5.c
567
ent->etype = key->key.keytype;
crypto/heimdal/kdc/kerberos5.c
568
if(key->salt) {
crypto/heimdal/kdc/kerberos5.c
572
*ent->salt = malloc(key->salt->salt.length + 1);
crypto/heimdal/kdc/kerberos5.c
578
memcpy(*ent->salt, key->salt->salt.data, key->salt->salt.length);
crypto/heimdal/kdc/kerberos5.c
579
(*ent->salt)[key->salt->salt.length] = '\0';
crypto/heimdal/kdc/kerberos5.c
585
switch (key->key.keytype) {
crypto/heimdal/kdc/kerberos5.c
606
if(key->salt && key->salt->type == hdb_afs3_salt){
crypto/heimdal/kdc/krb5tgs.c
1001
krb5_enctype_disable(context, et.key.keytype);
crypto/heimdal/kdc/krb5tgs.c
1015
memset(et.key.keyvalue.data, 0, et.key.keyvalue.length);
crypto/heimdal/kdc/krb5tgs.c
1016
free_EncryptionKey(&et.key);
crypto/heimdal/kdc/krb5tgs.c
1026
krb5_keyblock *key)
crypto/heimdal/kdc/krb5tgs.c
1072
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/kdc/krb5tgs.c
1270
&tkey->key,
crypto/heimdal/kdc/krb5tgs.c
1308
ac, b, e_text, &(*ticket)->ticket.key);
crypto/heimdal/kdc/krb5tgs.c
141
Key *key;
crypto/heimdal/kdc/krb5tgs.c
142
ret = hdb_enctype2key(context, &krbtgt->entry, enctype, &key);
crypto/heimdal/kdc/krb5tgs.c
144
ret = krb5_crypto_init(context, &key->key, 0, &crypto);
crypto/heimdal/kdc/krb5tgs.c
1570
ret = krb5_decrypt_ticket(context, t, &uukey->key, &adtkt, 0);
crypto/heimdal/kdc/krb5tgs.c
1692
ekey = &adtkt.key;
crypto/heimdal/kdc/krb5tgs.c
1694
if (b->etype.val[i] == adtkt.key.keytype)
crypto/heimdal/kdc/krb5tgs.c
1719
ekey = &skey->key;
crypto/heimdal/kdc/krb5tgs.c
1720
etype = skey->key.keytype;
crypto/heimdal/kdc/krb5tgs.c
1839
&tkey_check->key, &tkey_check->key,
crypto/heimdal/kdc/krb5tgs.c
1840
ekey, &tkey_sign->key,
crypto/heimdal/kdc/krb5tgs.c
1906
ret = krb5_crypto_init(context, &tgt->key, 0, &crypto);
crypto/heimdal/kdc/krb5tgs.c
1988
ekey, &tkey_sign->key,
crypto/heimdal/kdc/krb5tgs.c
2064
ret = krb5_decrypt_ticket(context, t, &clientkey->key, &adtkt, 0);
crypto/heimdal/kdc/krb5tgs.c
2128
&clientkey->key, &tkey_check->key,
crypto/heimdal/kdc/krb5tgs.c
2129
ekey, &tkey_sign->key,
crypto/heimdal/kdc/krb5tgs.c
228
Key *key;
crypto/heimdal/kdc/krb5tgs.c
229
ret = hdb_enctype2key(context, &krbtgt->entry, sp.etype, &key);
crypto/heimdal/kdc/krb5tgs.c
231
ret = krb5_crypto_init(context, &key->key, 0, &crypto);
crypto/heimdal/kdc/krb5tgs.c
922
ret = krb5_copy_keyblock_contents(context, sessionkey, &et.key);
crypto/heimdal/kdc/krb5tgs.c
928
ek.key = et.key;
crypto/heimdal/kdc/krb5tgs.c
977
if (krb5_enctype_valid(context, et.key.keytype) != 0
crypto/heimdal/kdc/krb5tgs.c
978
&& _kdc_is_weak_exception(server->entry.principal, et.key.keytype))
crypto/heimdal/kdc/krb5tgs.c
980
krb5_enctype_enable(context, et.key.keytype);
crypto/heimdal/kdc/krb5tgs.c
996
&rep, &et, &ek, et.key.keytype,
crypto/heimdal/kdc/kstash.c
102
krb5_keyblock key;
crypto/heimdal/kdc/kstash.c
109
ret = krb5_generate_random_keyblock(context, enctype, &key);
crypto/heimdal/kdc/kstash.c
126
krb5_string_to_key_salt(context, enctype, buf, salt, &key);
crypto/heimdal/kdc/kstash.c
128
ret = hdb_add_master_key(context, &key, &mkey);
crypto/heimdal/kdc/kstash.c
132
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/kdc/kx509.c
102
krb5_keyblock *key,
crypto/heimdal/kdc/kx509.c
115
HMAC_Init_ex(ctx, key->keyvalue.data, key->keyvalue.length,
crypto/heimdal/kdc/kx509.c
151
const krb5_data *key,
crypto/heimdal/kdc/kx509.c
212
spki.subjectPublicKey.data = key->data;
crypto/heimdal/kdc/kx509.c
213
spki.subjectPublicKey.length = key->length * 8;
crypto/heimdal/kdc/kx509.c
304
krb5_keyblock *key = NULL;
crypto/heimdal/kdc/kx509.c
380
ret = krb5_auth_con_getkey(context, ac, &key);
crypto/heimdal/kdc/kx509.c
381
if (ret == 0 && key == NULL)
crypto/heimdal/kdc/kx509.c
388
ret = verify_req_hash(context, req, key);
crypto/heimdal/kdc/kx509.c
394
RSAPublicKey key;
crypto/heimdal/kdc/kx509.c
398
&key, &size);
crypto/heimdal/kdc/kx509.c
401
free_RSAPublicKey(&key);
crypto/heimdal/kdc/kx509.c
423
ret = calculate_reply_hash(context, key, &rep);
crypto/heimdal/kdc/kx509.c
469
if (key)
crypto/heimdal/kdc/kx509.c
470
krb5_free_keyblock (context, key);
crypto/heimdal/kdc/kx509.c
64
krb5_keyblock *key)
crypto/heimdal/kdc/kx509.c
83
key->keyvalue.data, key->keyvalue.length,
crypto/heimdal/kdc/misc.c
135
Key **key)
crypto/heimdal/kdc/misc.c
146
ret = hdb_enctype2key(context, &h->entry, p[i], key);
crypto/heimdal/kdc/misc.c
154
*key = NULL;
crypto/heimdal/kdc/misc.c
157
if (krb5_enctype_valid(context, h->entry.keys.val[i].key.keytype)
crypto/heimdal/kdc/misc.c
161
h->entry.keys.val[i].key.keytype, key);
crypto/heimdal/kdc/misc.c
165
*enctype = (*key)->key.keytype;
crypto/heimdal/kdc/pkinit.c
1120
DH *kdc_dh = cp->u.dh.key;
crypto/heimdal/kdc/pkinit.c
1147
len = i2o_ECPublicKey(cp->u.ecdh.key, NULL);
crypto/heimdal/kdc/pkinit.c
1158
len = i2o_ECPublicKey(cp->u.ecdh.key, &p);
crypto/heimdal/kdc/pkinit.c
179
if (cp->u.dh.key)
crypto/heimdal/kdc/pkinit.c
180
DH_free(cp->u.dh.key);
crypto/heimdal/kdc/pkinit.c
186
if (cp->u.ecdh.key)
crypto/heimdal/kdc/pkinit.c
187
EC_KEY_free(cp->u.ecdh.key);
crypto/heimdal/kdc/pkinit.c
209
krb5_keyblock key;
crypto/heimdal/kdc/pkinit.c
213
memset(&key, 0, sizeof(key));
crypto/heimdal/kdc/pkinit.c
223
if (!DH_generate_key(client_params->u.dh.key)) {
crypto/heimdal/kdc/pkinit.c
230
size = DH_size(client_params->u.dh.key);
crypto/heimdal/kdc/pkinit.c
239
dh_gen_keylen = DH_compute_key(dh_gen_key,client_params->u.dh.public_key, client_params->u.dh.key);
crypto/heimdal/kdc/pkinit.c
261
client_params->u.ecdh.key = EC_KEY_new();
crypto/heimdal/kdc/pkinit.c
262
if (client_params->u.ecdh.key == NULL) {
crypto/heimdal/kdc/pkinit.c
266
EC_KEY_set_group(client_params->u.ecdh.key,
crypto/heimdal/kdc/pkinit.c
269
if (EC_KEY_generate_key(client_params->u.ecdh.key) != 1) {
crypto/heimdal/kdc/pkinit.c
274
size = (EC_GROUP_get_degree(EC_KEY_get0_group(client_params->u.ecdh.key)) + 7) / 8;
crypto/heimdal/kdc/pkinit.c
285
client_params->u.ecdh.key, NULL);
crypto/heimdal/kdc/pkinit.c
304
if (key.keyvalue.data)
crypto/heimdal/kdc/pkinit.c
305
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/kdc/pkinit.c
417
client_params->u.dh.key = dh;
crypto/heimdal/kdc/pkinit.c
54
DH *key;
crypto/heimdal/kdc/pkinit.c
59
EC_KEY *key;
crypto/heimdal/kdc/string2key.c
79
krb5_keyblock key;
crypto/heimdal/kdc/string2key.c
82
ret = krb5_string_to_key_salt(context, enctype, pw, salt, &key);
crypto/heimdal/kdc/string2key.c
90
for(i = 0; i < key.keyvalue.length; i++)
crypto/heimdal/kdc/string2key.c
91
printf("%02x", ((unsigned char*)key.keyvalue.data)[i]);
crypto/heimdal/kdc/string2key.c
93
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/kuser/kdecode_ticket.c
51
krb5_keyblock key;
crypto/heimdal/kuser/kdecode_ticket.c
58
ret = krb5_string_to_key (context, enctype, "foo", server, &key);
crypto/heimdal/kuser/kdecode_ticket.c
62
ret = krb5_crypto_init(context, &key, 0, &crypto);
crypto/heimdal/kuser/kdigest.c
211
char *key;
crypto/heimdal/kuser/kdigest.c
212
hex_encode(session_key.data, session_key.length, &key);
crypto/heimdal/kuser/kdigest.c
213
if (key == NULL)
crypto/heimdal/kuser/kdigest.c
216
printf("session-key=%s\n", key);
crypto/heimdal/kuser/kdigest.c
217
free(key);
crypto/heimdal/kuser/kimpersonate.c
83
et.key = cred->session;
crypto/heimdal/lib/asn1/hash.h
85
#define hashtabdel(htab,key) _hashtabdel(htab,key,FALSE)
crypto/heimdal/lib/asn1/hash.h
87
#define hashtabfree(htab,key) _hashtabdel(htab,key,TRUE) /* Do! */
crypto/heimdal/lib/asn1/symbol.c
76
Symbol key, *s;
crypto/heimdal/lib/asn1/symbol.c
78
key.name = name;
crypto/heimdal/lib/asn1/symbol.c
79
s = (Symbol *) hashtabsearch(htab, (void *) &key);
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
108
krb5_keyblock *key;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
112
key = ctx->auth_context->local_subkey;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
114
key = ctx->auth_context->remote_subkey;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
117
key = ctx->auth_context->remote_subkey;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
119
key = ctx->auth_context->local_subkey;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
121
if (key == NULL)
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
122
key = ctx->auth_context->keyblock;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
124
if (key == NULL)
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
127
switch (key->keytype) {
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
147
ret = krb5_crypto_init(context, key, 0, &ctx->crypto);
crypto/heimdal/lib/gssapi/krb5/arcfour.c
116
krb5_keyblock *key, unsigned usage,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
140
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/gssapi/krb5/arcfour.c
170
krb5_keyblock *key)
crypto/heimdal/lib/gssapi/krb5/arcfour.c
204
key, KRB5_KU_USAGE_SIGN,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
215
ret = arcfour_mic_key(context, key,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
263
krb5_keyblock *key,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
292
key, KRB5_KU_USAGE_SIGN,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
302
ret = arcfour_mic_key(context, key,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
363
krb5_keyblock *key)
crypto/heimdal/lib/gssapi/krb5/arcfour.c
440
key, KRB5_KU_USAGE_SEAL,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
455
Klocal.keytype = key->keytype;
crypto/heimdal/lib/gssapi/krb5/arcfour.c
460
Klocaldata[i] = ((u_char *)key->keyvalue.data)[i] ^ 0xF0;
crypto/heimdal/lib/gssapi/krb5/arcfour.c
488
ret = arcfour_mic_key(context, key,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
526
krb5_keyblock *key)
crypto/heimdal/lib/gssapi/krb5/arcfour.c
594
ret = arcfour_mic_key(context, key,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
631
Klocal.keytype = key->keytype;
crypto/heimdal/lib/gssapi/krb5/arcfour.c
636
Klocaldata[i] = ((u_char *)key->keyvalue.data)[i] ^ 0xF0;
crypto/heimdal/lib/gssapi/krb5/arcfour.c
686
key, KRB5_KU_USAGE_SEAL,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
71
arcfour_mic_key(krb5_context context, krb5_keyblock *key,
crypto/heimdal/lib/gssapi/krb5/arcfour.c
769
krb5_keyblock *key)
crypto/heimdal/lib/gssapi/krb5/arcfour.c
774
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/gssapi/krb5/arcfour.c
89
if (key->keytype == ENCTYPE_ARCFOUR_HMAC_MD5_56) {
crypto/heimdal/lib/gssapi/krb5/arcfour.c
94
L40, 14, 0, key, &cksum_k5);
crypto/heimdal/lib/gssapi/krb5/arcfour.c
98
T, 4, 0, key, &cksum_k5);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
125
EVP_CipherInit_ex(des_ctx, EVP_des_cbc(), NULL, key->keyvalue.data, p + 8, 1);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
150
krb5_keyblock *key
crypto/heimdal/lib/gssapi/krb5/get_mic.c
200
kret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
243
kret = krb5_crypto_init(context, key,
crypto/heimdal/lib/gssapi/krb5/get_mic.c
296
krb5_keyblock *key;
crypto/heimdal/lib/gssapi/krb5/get_mic.c
307
ret = _gsskrb5i_get_token_key(ctx, context, &key);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
313
krb5_enctype_to_keytype (context, key->keytype, &keytype);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
319
message_buffer, message_token, key);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
326
message_buffer, message_token, key);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
331
message_buffer, message_token, key);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
337
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/get_mic.c
46
krb5_keyblock *key
crypto/heimdal/lib/gssapi/krb5/get_mic.c
93
memcpy (&deskey, key->keyvalue.data, sizeof(deskey));
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
111
krb5_keyblock *key = NULL;
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
129
ret = _gsskrb5i_get_acceptor_subkey(context_handle, context, &key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
132
ret = _gsskrb5i_get_initiator_subkey(context_handle, context, &key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
135
ret = _gsskrb5i_get_token_key(context_handle, context, &key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
145
if (key == NULL) {
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
151
ret = krb5_store_keyblock(sp, *key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
152
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
188
krb5_keyblock *key;
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
194
ret = _gsskrb5i_get_token_key(context_handle, context, &key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
199
if (key == NULL) {
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
204
value.length = key->keyvalue.length;
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
205
value.value = key->keyvalue.data;
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
210
krb5_free_keyblock(context, key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
314
krb5_keyblock *key = NULL;
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
355
ret = _gsskrb5i_get_token_key(context_handle, context, &key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
361
switch (key->keytype) {
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
388
ret = krb5_store_keyblock(sp, *key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
397
ret = krb5_store_keyblock(sp, *key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
401
ret = krb5_store_keyblock(sp, *key);
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
421
if (key)
crypto/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c
422
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/prf.c
52
krb5_keyblock *key = NULL;
crypto/heimdal/lib/gssapi/krb5/prf.c
70
_gsskrb5i_get_acceptor_subkey(ctx, context, &key);
crypto/heimdal/lib/gssapi/krb5/prf.c
73
_gsskrb5i_get_initiator_subkey(ctx, context, &key);
crypto/heimdal/lib/gssapi/krb5/prf.c
81
if (key == NULL) {
crypto/heimdal/lib/gssapi/krb5/prf.c
87
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/gssapi/krb5/prf.c
88
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
107
memcpy (&deskey, key->keyvalue.data, sizeof(deskey));
crypto/heimdal/lib/gssapi/krb5/unwrap.c
146
memcpy (&deskey, key->keyvalue.data, sizeof(deskey));
crypto/heimdal/lib/gssapi/krb5/unwrap.c
170
EVP_CipherInit_ex(des_ctx, EVP_des_cbc(), NULL, key->keyvalue.data, hash, 0);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
222
krb5_keyblock *key
crypto/heimdal/lib/gssapi/krb5/unwrap.c
283
ret = krb5_crypto_init(context, key,
crypto/heimdal/lib/gssapi/krb5/unwrap.c
319
ret = krb5_crypto_init(context, key,
crypto/heimdal/lib/gssapi/krb5/unwrap.c
383
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
423
krb5_keyblock *key;
crypto/heimdal/lib/gssapi/krb5/unwrap.c
442
ret = _gsskrb5i_get_token_key(ctx, context, &key);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
448
krb5_enctype_to_keytype (context, key->keytype, &keytype);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
457
conf_state, qop_state, key);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
46
krb5_keyblock *key
crypto/heimdal/lib/gssapi/krb5/unwrap.c
465
conf_state, qop_state, key);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
471
conf_state, qop_state, key);
crypto/heimdal/lib/gssapi/krb5/unwrap.c
477
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
111
EVP_CipherInit_ex(des_ctx, EVP_des_cbc(), NULL, key->keyvalue.data, hash, 0);
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
151
krb5_keyblock *key,
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
181
ret = krb5_crypto_init(context, key,
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
262
ret = krb5_crypto_init(context, key,
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
297
krb5_keyblock *key;
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
307
ret = _gsskrb5i_get_token_key(ctx, context, &key);
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
314
krb5_enctype_to_keytype (context, key->keytype, &keytype);
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
319
message_buffer, token_buffer, qop_state, key,
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
327
message_buffer, token_buffer, qop_state, key,
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
335
qop_state, key, type);
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
340
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
46
krb5_keyblock *key,
crypto/heimdal/lib/gssapi/krb5/verify_mic.c
86
memcpy (&deskey, key->keyvalue.data, sizeof(deskey));
crypto/heimdal/lib/gssapi/krb5/wrap.c
104
_gsskrb5i_get_initiator_subkey(ctx, context, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
106
if (*key == NULL) {
crypto/heimdal/lib/gssapi/krb5/wrap.c
148
krb5_keyblock *key;
crypto/heimdal/lib/gssapi/krb5/wrap.c
161
ret = _gsskrb5i_get_token_key(ctx, context, &key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
167
krb5_enctype_to_keytype (context, key->keytype, &keytype);
crypto/heimdal/lib/gssapi/krb5/wrap.c
181
req_output_size, max_input_size, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
190
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
207
krb5_keyblock *key
crypto/heimdal/lib/gssapi/krb5/wrap.c
280
memcpy (&deskey, key->keyvalue.data, sizeof(deskey));
crypto/heimdal/lib/gssapi/krb5/wrap.c
312
EVP_CipherInit_ex(des_ctx, EVP_des_cbc(), NULL, key->keyvalue.data, p + 8, 1);
crypto/heimdal/lib/gssapi/krb5/wrap.c
324
memcpy (&deskey, key->keyvalue.data, sizeof(deskey));
crypto/heimdal/lib/gssapi/krb5/wrap.c
355
krb5_keyblock *key
crypto/heimdal/lib/gssapi/krb5/wrap.c
415
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/gssapi/krb5/wrap.c
43
krb5_keyblock **key)
crypto/heimdal/lib/gssapi/krb5/wrap.c
46
*key = NULL;
crypto/heimdal/lib/gssapi/krb5/wrap.c
461
ret = krb5_crypto_init(context, key, ETYPE_DES3_CBC_NONE,
crypto/heimdal/lib/gssapi/krb5/wrap.c
506
ret = krb5_crypto_init(context, key,
crypto/heimdal/lib/gssapi/krb5/wrap.c
51
key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
548
krb5_keyblock *key;
crypto/heimdal/lib/gssapi/krb5/wrap.c
55
key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
564
ret = _gsskrb5i_get_token_key(ctx, context, &key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
57
if (ret == 0 && *key == NULL)
crypto/heimdal/lib/gssapi/krb5/wrap.c
570
krb5_enctype_to_keytype (context, key->keytype, &keytype);
crypto/heimdal/lib/gssapi/krb5/wrap.c
577
output_message_buffer, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
585
output_message_buffer, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
591
output_message_buffer, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
597
krb5_free_keyblock (context, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
60
key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
61
if (ret == 0 && *key == NULL) {
crypto/heimdal/lib/gssapi/krb5/wrap.c
71
krb5_keyblock **key)
crypto/heimdal/lib/gssapi/krb5/wrap.c
74
*key = NULL;
crypto/heimdal/lib/gssapi/krb5/wrap.c
79
key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
83
key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
85
if (ret == 0 && *key == NULL) {
crypto/heimdal/lib/gssapi/krb5/wrap.c
95
krb5_keyblock **key)
crypto/heimdal/lib/gssapi/krb5/wrap.c
97
_gsskrb5i_get_acceptor_subkey(ctx, context, key);
crypto/heimdal/lib/gssapi/krb5/wrap.c
98
if(*key == NULL) {
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
241
set_key(krb5_keyblock *keyblock, gss_krb5_lucid_key_t *key)
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
243
key->type = keyblock->keytype;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
244
key->length = keyblock->keyvalue.length;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
245
key->data = malloc(key->length);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
246
if (key->data == NULL && key->length != 0)
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
248
memcpy(key->data, keyblock->keyvalue.data, key->length);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
253
free_key(gss_krb5_lucid_key_t *key)
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
255
memset(key->data, 0, key->length);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
256
free(key->data);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
257
memset(key, 0, sizeof(*key));
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
344
krb5_keyblock key;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
353
ret = krb5_ret_keyblock(sp, &key);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
355
ret = set_key(&key, &ctx->rfc1964_kd.ctx_key);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
356
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
359
krb5_keyblock key;
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
365
ret = krb5_ret_keyblock(sp, &key);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
367
ret = set_key(&key, &ctx->cfx_kd.ctx_key);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
368
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
372
ret = krb5_ret_keyblock(sp, &key);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
374
ret = set_key(&key, &ctx->cfx_kd.acceptor_subkey);
crypto/heimdal/lib/gssapi/mech/gss_krb5.c
375
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/gssapi/ntlm/accept_sec_context.c
246
RC4_set_key(&ctx->u.v1.crypto_send.key,
crypto/heimdal/lib/gssapi/ntlm/accept_sec_context.c
249
RC4_set_key(&ctx->u.v1.crypto_recv.key,
crypto/heimdal/lib/gssapi/ntlm/crypto.c
107
RC4_set_key(&key->sealkey, 16, out);
crypto/heimdal/lib/gssapi/ntlm/crypto.c
109
key->signsealkey = &key->sealkey;
crypto/heimdal/lib/gssapi/ntlm/crypto.c
312
&ctx->u.v1.crypto_send.key,
crypto/heimdal/lib/gssapi/ntlm/crypto.c
385
RC4(&ctx->u.v1.crypto_recv.key, sizeof(sigature),
crypto/heimdal/lib/gssapi/ntlm/crypto.c
498
RC4(&ctx->u.v1.crypto_send.key, input_message_buffer->length,
crypto/heimdal/lib/gssapi/ntlm/crypto.c
573
RC4(&ctx->u.v1.crypto_recv.key, output_message_buffer->length,
crypto/heimdal/lib/gssapi/ntlm/crypto.c
77
_gss_ntlm_set_key(struct ntlmv2_key *key, int acceptor, int sealsign,
crypto/heimdal/lib/gssapi/ntlm/crypto.c
93
key->seq = 0;
crypto/heimdal/lib/gssapi/ntlm/crypto.c
99
EVP_DigestFinal_ex(ctx, key->signkey, NULL);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
100
get_user_ccache(const ntlm_name name, char **username, struct ntlm_buf *key)
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
111
key->length = 0;
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
112
key->data = NULL;
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
145
key->data = malloc(data.length);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
146
if (key->data == NULL) {
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
150
key->length = data.length;
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
151
memcpy(key->data, data.data, data.length);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
174
ret = get_user_file(target_name, &cred->username, &cred->key);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
176
ret = get_user_ccache(target_name, &cred->username, &cred->key);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
205
(*to)->key.data = malloc(from->key.length);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
206
if ((*to)->key.data == NULL) {
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
212
memcpy((*to)->key.data, from->key.data, from->key.length);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
213
(*to)->key.length = from->key.length;
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
352
ctx->client->key.data,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
356
ret = heim_ntlm_calculate_ntlm1(ctx->client->key.data,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
357
ctx->client->key.length,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
368
ret = heim_ntlm_build_ntlm1_master(ctx->client->key.data,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
369
ctx->client->key.length,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
38
char **username, struct ntlm_buf *key)
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
418
ret = heim_ntlm_calculate_ntlm2(ctx->client->key.data,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
419
ctx->client->key.length,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
467
RC4_set_key(&ctx->u.v1.crypto_recv.key,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
470
RC4_set_key(&ctx->u.v1.crypto_send.key,
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
66
heim_ntlm_nt_key(p, key);
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
79
char **username, struct ntlm_buf *key)
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
89
if (from_file(fn, target_name->domain, username, key) == 0)
crypto/heimdal/lib/gssapi/ntlm/kdc.c
50
struct ntlm_buf key;
crypto/heimdal/lib/gssapi/ntlm/ntlm.h
106
struct ntlm_buf key;
crypto/heimdal/lib/gssapi/ntlm/ntlm.h
128
RC4_KEY key;
crypto/heimdal/lib/gssapi/ntlm/release_cred.c
56
if (cred->key.data) {
crypto/heimdal/lib/gssapi/ntlm/release_cred.c
57
memset(cred->key.data, 0, cred->key.length);
crypto/heimdal/lib/gssapi/ntlm/release_cred.c
58
free(cred->key.data);
crypto/heimdal/lib/gssapi/test_ntlm.c
116
struct ntlm_buf key;
crypto/heimdal/lib/gssapi/test_ntlm.c
118
heim_ntlm_nt_key(password, &key);
crypto/heimdal/lib/gssapi/test_ntlm.c
120
heim_ntlm_calculate_ntlm1(key.data, key.length,
crypto/heimdal/lib/gssapi/test_ntlm.c
126
heim_ntlm_build_ntlm1_master(key.data, key.length,
crypto/heimdal/lib/gssapi/test_ntlm.c
131
free(key.data);
crypto/heimdal/lib/gssapi/test_ntlm.c
240
struct ntlm_buf key;
crypto/heimdal/lib/gssapi/test_ntlm.c
243
heim_ntlm_nt_key(password, &key);
crypto/heimdal/lib/gssapi/test_ntlm.c
245
heim_ntlm_calculate_ntlm2(key.data, key.length,
crypto/heimdal/lib/gssapi/test_ntlm.c
252
free(key.data);
crypto/heimdal/lib/hdb/common.c
106
krb5_data key, value;
crypto/heimdal/lib/hdb/common.c
124
hdb_principal2key(context, principal, &key);
crypto/heimdal/lib/hdb/common.c
127
ret = db->hdb__get(context, db, key, &value);
crypto/heimdal/lib/hdb/common.c
128
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
143
hdb_principal2key(context, alias.principal, &key);
crypto/heimdal/lib/hdb/common.c
147
ret = db->hdb__get(context, db, key, &value);
crypto/heimdal/lib/hdb/common.c
148
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
198
hdb_remove_aliases(krb5_context context, HDB *db, krb5_data *key)
crypto/heimdal/lib/hdb/common.c
206
code = db->hdb__get(context, db, *key, &value);
crypto/heimdal/lib/hdb/common.c
243
krb5_data key, value;
crypto/heimdal/lib/hdb/common.c
254
hdb_principal2key(context, &aliases->aliases.val[i], &key);
crypto/heimdal/lib/hdb/common.c
257
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
260
code = db->hdb__put(context, db, flags, key, value);
crypto/heimdal/lib/hdb/common.c
261
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
314
krb5_data key, value;
crypto/heimdal/lib/hdb/common.c
340
hdb_principal2key(context, entry->entry.principal, &key);
crypto/heimdal/lib/hdb/common.c
343
code = hdb_remove_aliases(context, db, &key);
crypto/heimdal/lib/hdb/common.c
345
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
349
code = db->hdb__put(context, db, flags & HDB_F_REPLACE, key, value);
crypto/heimdal/lib/hdb/common.c
351
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
363
krb5_data key;
crypto/heimdal/lib/hdb/common.c
366
hdb_principal2key(context, principal, &key);
crypto/heimdal/lib/hdb/common.c
368
code = hdb_remove_aliases(context, db, &key);
crypto/heimdal/lib/hdb/common.c
37
hdb_principal2key(krb5_context context, krb5_const_principal p, krb5_data *key)
crypto/heimdal/lib/hdb/common.c
370
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
373
code = db->hdb__del(context, db, key);
crypto/heimdal/lib/hdb/common.c
374
krb5_data_free(&key);
crypto/heimdal/lib/hdb/common.c
48
ASN1_MALLOC_ENCODE(Principal, key->data, key->length, &new, &len, ret);
crypto/heimdal/lib/hdb/common.c
49
if (ret == 0 && key->length != len)
crypto/heimdal/lib/hdb/common.c
56
hdb_key2principal(krb5_context context, krb5_data *key, krb5_principal p)
crypto/heimdal/lib/hdb/common.c
58
return decode_Principal(key->data, key->length, p, NULL);
crypto/heimdal/lib/hdb/db.c
104
code = (*d->seq)(d, &key, &value, flag);
crypto/heimdal/lib/hdb/db.c
117
key_data.data = key.data;
crypto/heimdal/lib/hdb/db.c
118
key_data.length = key.size;
crypto/heimdal/lib/hdb/db.c
176
DB__get(krb5_context context, HDB *db, krb5_data key, krb5_data *reply)
crypto/heimdal/lib/hdb/db.c
182
k.data = key.data;
crypto/heimdal/lib/hdb/db.c
183
k.size = key.length;
crypto/heimdal/lib/hdb/db.c
206
krb5_data key, krb5_data value)
crypto/heimdal/lib/hdb/db.c
212
k.data = key.data;
crypto/heimdal/lib/hdb/db.c
213
k.size = key.length;
crypto/heimdal/lib/hdb/db.c
235
DB__del(krb5_context context, HDB *db, krb5_data key)
crypto/heimdal/lib/hdb/db.c
240
k.data = key.data;
crypto/heimdal/lib/hdb/db.c
241
k.size = key.length;
crypto/heimdal/lib/hdb/db.c
95
DBT key, value;
crypto/heimdal/lib/hdb/db3.c
103
memset(&key, 0, sizeof(DBT));
crypto/heimdal/lib/hdb/db3.c
107
code = (*dbcp->c_get)(dbcp, &key, &value, flag);
crypto/heimdal/lib/hdb/db3.c
114
key_data.data = key.data;
crypto/heimdal/lib/hdb/db3.c
115
key_data.length = key.size;
crypto/heimdal/lib/hdb/db3.c
173
DB__get(krb5_context context, HDB *db, krb5_data key, krb5_data *reply)
crypto/heimdal/lib/hdb/db3.c
181
k.data = key.data;
crypto/heimdal/lib/hdb/db3.c
182
k.size = key.length;
crypto/heimdal/lib/hdb/db3.c
199
krb5_data key, krb5_data value)
crypto/heimdal/lib/hdb/db3.c
207
k.data = key.data;
crypto/heimdal/lib/hdb/db3.c
208
k.size = key.length;
crypto/heimdal/lib/hdb/db3.c
225
DB__del(krb5_context context, HDB *db, krb5_data key)
crypto/heimdal/lib/hdb/db3.c
231
k.data = key.data;
crypto/heimdal/lib/hdb/db3.c
232
k.size = key.length;
crypto/heimdal/lib/hdb/db3.c
98
DBT key, value;
crypto/heimdal/lib/hdb/ext.c
293
hdb_master_key key;
crypto/heimdal/lib/hdb/ext.c
295
key = _hdb_find_master_key(ext->data.u.password.mkvno,
crypto/heimdal/lib/hdb/ext.c
298
if (key == NULL) {
crypto/heimdal/lib/hdb/ext.c
305
ret = _hdb_mkey_decrypt(context, key, HDB_KU_MKEY,
crypto/heimdal/lib/hdb/ext.c
349
hdb_master_key key;
crypto/heimdal/lib/hdb/ext.c
357
key = _hdb_find_master_key(NULL, db->hdb_master_key);
crypto/heimdal/lib/hdb/ext.c
358
if (key == NULL) {
crypto/heimdal/lib/hdb/ext.c
365
ret = _hdb_mkey_encrypt(context, key, HDB_KU_MKEY,
crypto/heimdal/lib/hdb/ext.c
378
*ext.data.u.password.mkvno = _hdb_mkey_version(key);
crypto/heimdal/lib/hdb/hdb-ldap.c
1085
if (ent->entry.keys.val[i].key.keytype == ETYPE_ARCFOUR_HMAC_MD5) {
crypto/heimdal/lib/hdb/hdb-ldap.c
1108
ent->entry.keys.val[ent->entry.keys.len].key.keytype = ETYPE_ARCFOUR_HMAC_MD5;
crypto/heimdal/lib/hdb/hdb-ldap.c
1109
ret = krb5_data_alloc (&ent->entry.keys.val[ent->entry.keys.len].key.keyvalue, 16);
crypto/heimdal/lib/hdb/hdb-ldap.c
1117
ent->entry.keys.val[ent->entry.keys.len].key.keyvalue.data, 16);
crypto/heimdal/lib/hdb/hdb-ldap.c
630
&& ent->entry.keys.val[i].key.keytype == ETYPE_ARCFOUR_HMAC_MD5) {
crypto/heimdal/lib/hdb/hdb-ldap.c
641
nt = ent->entry.keys.val[i].key.keyvalue.data;
crypto/heimdal/lib/hdb/hdb-ldap.c
711
ent->entry.keys.val[i].key.keytype == ETYPE_ARCFOUR_HMAC_MD5)
crypto/heimdal/lib/hdb/hdb-mitdb.c
119
krb5_data *key)
crypto/heimdal/lib/hdb/hdb-mitdb.c
127
key->data = str;
crypto/heimdal/lib/hdb/hdb-mitdb.c
128
key->length = strlen(str) + 1;
crypto/heimdal/lib/hdb/hdb-mitdb.c
437
k->key.keytype = type;
crypto/heimdal/lib/hdb/hdb-mitdb.c
452
k->key.keyvalue.length = u16 - 2; /* adjust cipher len */
crypto/heimdal/lib/hdb/hdb-mitdb.c
453
k->key.keyvalue.data = malloc(k->key.keyvalue.length);
crypto/heimdal/lib/hdb/hdb-mitdb.c
454
krb5_storage_read(sp, k->key.keyvalue.data,
crypto/heimdal/lib/hdb/hdb-mitdb.c
455
k->key.keyvalue.length);
crypto/heimdal/lib/hdb/hdb-mitdb.c
581
DBT key, value;
crypto/heimdal/lib/hdb/hdb-mitdb.c
590
code = (*d->seq)(d, &key, &value, flag);
crypto/heimdal/lib/hdb/hdb-mitdb.c
603
key_data.data = key.data;
crypto/heimdal/lib/hdb/hdb-mitdb.c
604
key_data.length = key.size;
crypto/heimdal/lib/hdb/hdb-mitdb.c
655
mdb__get(krb5_context context, HDB *db, krb5_data key, krb5_data *reply)
crypto/heimdal/lib/hdb/hdb-mitdb.c
661
k.data = key.data;
crypto/heimdal/lib/hdb/hdb-mitdb.c
662
k.size = key.length;
crypto/heimdal/lib/hdb/hdb-mitdb.c
685
krb5_data key, krb5_data value)
crypto/heimdal/lib/hdb/hdb-mitdb.c
691
k.data = key.data;
crypto/heimdal/lib/hdb/hdb-mitdb.c
692
k.size = key.length;
crypto/heimdal/lib/hdb/hdb-mitdb.c
714
mdb__del(krb5_context context, HDB *db, krb5_data key)
crypto/heimdal/lib/hdb/hdb-mitdb.c
719
k.data = key.data;
crypto/heimdal/lib/hdb/hdb-mitdb.c
720
k.size = key.length;
crypto/heimdal/lib/hdb/hdb-mitdb.c
741
krb5_data key, value;
crypto/heimdal/lib/hdb/hdb-mitdb.c
744
ret = mdb_principal2key(context, principal, &key);
crypto/heimdal/lib/hdb/hdb-mitdb.c
747
ret = db->hdb__get(context, db, key, &value);
crypto/heimdal/lib/hdb/hdb-mitdb.c
748
krb5_data_free(&key);
crypto/heimdal/lib/hdb/hdb-mitdb.c
775
krb5_data key = { 0, 0 };
crypto/heimdal/lib/hdb/hdb-mitdb.c
798
ret = mdb_principal2key(context, entry->entry.principal, &key);
crypto/heimdal/lib/hdb/hdb-mitdb.c
800
ret = mdb__put(context, db, 1, key, kdb_ent);
crypto/heimdal/lib/hdb/hdb-mitdb.c
809
krb5_data_free(&key);
crypto/heimdal/lib/hdb/hdb-mitdb.c
818
krb5_data key;
crypto/heimdal/lib/hdb/hdb-mitdb.c
820
code = db->hdb__del(context, db, key);
crypto/heimdal/lib/hdb/hdb-mitdb.c
821
krb5_data_free(&key);
crypto/heimdal/lib/hdb/hdb.c
100
Key **key)
crypto/heimdal/lib/hdb/hdb.c
104
for (k = *key ? (*key) + 1 : e->keys.val;
crypto/heimdal/lib/hdb/hdb.c
108
if(k->key.keytype == enctype){
crypto/heimdal/lib/hdb/hdb.c
109
*key = k;
crypto/heimdal/lib/hdb/hdb.c
123
Key **key)
crypto/heimdal/lib/hdb/hdb.c
125
*key = NULL;
crypto/heimdal/lib/hdb/hdb.c
126
return hdb_next_enctype2key(context, e, enctype, key);
crypto/heimdal/lib/hdb/hdb.c
130
hdb_free_key(Key *key)
crypto/heimdal/lib/hdb/hdb.c
132
memset(key->key.keyvalue.data,
crypto/heimdal/lib/hdb/hdb.c
134
key->key.keyvalue.length);
crypto/heimdal/lib/hdb/hdb.c
135
free_Key(key);
crypto/heimdal/lib/hdb/hdb.c
136
free(key);
crypto/heimdal/lib/hdb/hdb.c
180
memset (k->key.keyvalue.data, 0, k->key.keyvalue.length);
crypto/heimdal/lib/hdb/hdb.c
441
&entry->entry.keys.val[0].key);
crypto/heimdal/lib/hdb/keys.c
108
p = key;
crypto/heimdal/lib/hdb/keys.c
178
krb5_set_error_message(context, EINVAL, "bad value for default_keys `%s'", key);
crypto/heimdal/lib/hdb/keys.c
271
Key key, *tmp;
crypto/heimdal/lib/hdb/keys.c
273
memset(&key, 0, sizeof(key));
crypto/heimdal/lib/hdb/keys.c
281
key.key.keytype = enctype;
crypto/heimdal/lib/hdb/keys.c
282
key.key.keyvalue.length = 0;
crypto/heimdal/lib/hdb/keys.c
283
key.key.keyvalue.data = NULL;
crypto/heimdal/lib/hdb/keys.c
286
key.salt = calloc(1, sizeof(*key.salt));
crypto/heimdal/lib/hdb/keys.c
287
if (key.salt == NULL) {
crypto/heimdal/lib/hdb/keys.c
288
free_Key(&key);
crypto/heimdal/lib/hdb/keys.c
292
key.salt->type = salt->salttype;
crypto/heimdal/lib/hdb/keys.c
293
krb5_data_zero (&key.salt->salt);
crypto/heimdal/lib/hdb/keys.c
295
ret = krb5_data_copy(&key.salt->salt,
crypto/heimdal/lib/hdb/keys.c
299
free_Key(&key);
crypto/heimdal/lib/hdb/keys.c
303
key.salt = NULL;
crypto/heimdal/lib/hdb/keys.c
305
(*key_set)[*nkeyset] = key;
crypto/heimdal/lib/hdb/keys.c
377
if (k->key.keytype == enctypes[i]) {
crypto/heimdal/lib/hdb/keys.c
449
(*keys)[i].key.keytype,
crypto/heimdal/lib/hdb/keys.c
452
&(*keys)[i].key);
crypto/heimdal/lib/hdb/keys.c
54
krb5_free_keyblock_contents(context, &keys[i].key);
crypto/heimdal/lib/hdb/keys.c
96
parse_key_set(krb5_context context, const char *key,
crypto/heimdal/lib/hdb/keytab.c
232
enctype = ent.entry.keys.val[0].key.keytype;
crypto/heimdal/lib/hdb/keytab.c
235
if(ent.entry.keys.val[i].key.keytype == enctype) {
crypto/heimdal/lib/hdb/keytab.c
239
&ent.entry.keys.val[i].key,
crypto/heimdal/lib/hdb/keytab.c
371
&c->hdb_entry.entry.keys.val[c->key_idx].key,
crypto/heimdal/lib/hdb/mkey.c
105
ret = hdb_process_master_key(context, vno, key, 0, &p);
crypto/heimdal/lib/hdb/mkey.c
158
krb5_keyblock key;
crypto/heimdal/lib/hdb/mkey.c
182
key.keytype = enctype;
crypto/heimdal/lib/hdb/mkey.c
183
ret = krb5_ret_data(sp, &key.keyvalue);
crypto/heimdal/lib/hdb/mkey.c
187
ret = hdb_process_master_key(context, 1, &key, 0, mkey);
crypto/heimdal/lib/hdb/mkey.c
188
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/hdb/mkey.c
201
krb5_keyblock key;
crypto/heimdal/lib/hdb/mkey.c
224
ret = decode_EncryptionKey(buf, len, &key, &ret_len);
crypto/heimdal/lib/hdb/mkey.c
234
if(key.keytype == ETYPE_DES_CBC_CRC || key.keytype == ETYPE_DES_CBC_MD5)
crypto/heimdal/lib/hdb/mkey.c
235
key.keytype = ETYPE_DES_CFB64_NONE;
crypto/heimdal/lib/hdb/mkey.c
237
ret = hdb_process_master_key(context, 0, &key, 0, mkey);
crypto/heimdal/lib/hdb/mkey.c
238
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/hdb/mkey.c
248
krb5_keyblock key;
crypto/heimdal/lib/hdb/mkey.c
275
memset(&key, 0, sizeof(key));
crypto/heimdal/lib/hdb/mkey.c
276
key.keytype = ETYPE_DES_PCBC_NONE;
crypto/heimdal/lib/hdb/mkey.c
277
ret = krb5_data_copy(&key.keyvalue, buf, len);
crypto/heimdal/lib/hdb/mkey.c
282
ret = hdb_process_master_key(context, 0, &key, 0, mkey);
crypto/heimdal/lib/hdb/mkey.c
283
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/hdb/mkey.c
401
_hdb_mkey_decrypt(krb5_context context, hdb_master_key key,
crypto/heimdal/lib/hdb/mkey.c
405
return krb5_decrypt(context, key->crypto, usage,
crypto/heimdal/lib/hdb/mkey.c
410
_hdb_mkey_encrypt(krb5_context context, hdb_master_key key,
crypto/heimdal/lib/hdb/mkey.c
414
return krb5_encrypt(context, key->crypto, usage,
crypto/heimdal/lib/hdb/mkey.c
431
hdb_master_key key, mitkey;
crypto/heimdal/lib/hdb/mkey.c
436
key = _hdb_find_master_key(k->mkvno, mkey);
crypto/heimdal/lib/hdb/mkey.c
438
if (key == NULL)
crypto/heimdal/lib/hdb/mkey.c
441
ret = _hdb_mkey_decrypt(context, key, HDB_KU_MKEY,
crypto/heimdal/lib/hdb/mkey.c
442
k->key.keyvalue.data,
crypto/heimdal/lib/hdb/mkey.c
443
k->key.keyvalue.length,
crypto/heimdal/lib/hdb/mkey.c
447
ret = _hdb_mkey_decrypt(context, key, 0,
crypto/heimdal/lib/hdb/mkey.c
448
k->key.keyvalue.data,
crypto/heimdal/lib/hdb/mkey.c
449
k->key.keyvalue.length,
crypto/heimdal/lib/hdb/mkey.c
456
ret = krb5_enctype_keysize(context, k->key.keytype, &keysize);
crypto/heimdal/lib/hdb/mkey.c
483
krb5_data_free(&k->key.keyvalue);
crypto/heimdal/lib/hdb/mkey.c
485
k->key.keyvalue = res;
crypto/heimdal/lib/hdb/mkey.c
486
k->key.keyvalue.length = keysize;
crypto/heimdal/lib/hdb/mkey.c
490
k->key.keyvalue = mitres;
crypto/heimdal/lib/hdb/mkey.c
516
if (mitkey == NULL || mit_strong_etype(ent->keys.val[i].key.keytype)) {
crypto/heimdal/lib/hdb/mkey.c
532
krb5_keyblock key;
crypto/heimdal/lib/hdb/mkey.c
535
krb5_free_keyblock_contents(context, &ent->keys.val[0].key);
crypto/heimdal/lib/hdb/mkey.c
540
"XXXX", salt, &ent->keys.val[0].key);
crypto/heimdal/lib/hdb/mkey.c
63
int kvno, krb5_keyblock *key, krb5_enctype etype,
crypto/heimdal/lib/hdb/mkey.c
663
hdb_master_key key;
crypto/heimdal/lib/hdb/mkey.c
668
key = _hdb_find_master_key(k->mkvno, mkey);
crypto/heimdal/lib/hdb/mkey.c
670
if (key == NULL)
crypto/heimdal/lib/hdb/mkey.c
673
ret = _hdb_mkey_encrypt(context, key, HDB_KU_MKEY,
crypto/heimdal/lib/hdb/mkey.c
674
k->key.keyvalue.data,
crypto/heimdal/lib/hdb/mkey.c
675
k->key.keyvalue.length,
crypto/heimdal/lib/hdb/mkey.c
680
memset(k->key.keyvalue.data, 0, k->key.keyvalue.length);
crypto/heimdal/lib/hdb/mkey.c
681
free(k->key.keyvalue.data);
crypto/heimdal/lib/hdb/mkey.c
682
k->key.keyvalue = res;
crypto/heimdal/lib/hdb/mkey.c
689
*k->mkvno = key->keytab.vno;
crypto/heimdal/lib/hdb/mkey.c
729
krb5_keyblock *key)
crypto/heimdal/lib/hdb/mkey.c
734
ret = hdb_process_master_key(context, 0, key, 0, &mkey);
crypto/heimdal/lib/hdb/mkey.c
739
des_set_random_generator_seed(key.keyvalue.data);
crypto/heimdal/lib/hdb/mkey.c
751
hdb_master_key key;
crypto/heimdal/lib/hdb/mkey.c
754
ret = hdb_read_master_key(context, keyfile, &key);
crypto/heimdal/lib/hdb/mkey.c
761
db->hdb_master_key = key;
crypto/heimdal/lib/hdb/mkey.c
78
ret = krb5_copy_keyblock_contents(context, key, &(*mkey)->keytab.keyblock);
crypto/heimdal/lib/hdb/mkey.c
84
ret = krb5_crypto_init(context, key, etype, &(*mkey)->crypto);
crypto/heimdal/lib/hdb/mkey.c
95
hdb_add_master_key(krb5_context context, krb5_keyblock *key,
crypto/heimdal/lib/hdb/ndbm.c
224
NDBM__get(krb5_context context, HDB *db, krb5_data key, krb5_data *reply)
crypto/heimdal/lib/hdb/ndbm.c
230
k.dptr = key.data;
crypto/heimdal/lib/hdb/ndbm.c
231
k.dsize = key.length;
crypto/heimdal/lib/hdb/ndbm.c
246
krb5_data key, krb5_data value)
crypto/heimdal/lib/hdb/ndbm.c
253
k.dptr = key.data;
crypto/heimdal/lib/hdb/ndbm.c
254
k.dsize = key.length;
crypto/heimdal/lib/hdb/ndbm.c
274
NDBM__del(krb5_context context, HDB *db, krb5_data key)
crypto/heimdal/lib/hdb/ndbm.c
281
k.dptr = key.data;
crypto/heimdal/lib/hdb/ndbm.c
282
k.dsize = key.length;
crypto/heimdal/lib/hdb/ndbm.c
82
datum key, value;
crypto/heimdal/lib/hdb/ndbm.c
87
key = dbm_firstkey(d->db);
crypto/heimdal/lib/hdb/ndbm.c
89
key = dbm_nextkey(d->db);
crypto/heimdal/lib/hdb/ndbm.c
90
if(key.dptr == NULL)
crypto/heimdal/lib/hdb/ndbm.c
92
key_data.data = key.dptr;
crypto/heimdal/lib/hdb/ndbm.c
93
key_data.length = key.dsize;
crypto/heimdal/lib/hdb/ndbm.c
96
value = dbm_fetch(d->db, key);
crypto/heimdal/lib/hdb/print.c
149
unsigned int kvno, Key *key)
crypto/heimdal/lib/hdb/print.c
153
size_t key_versions = key->salt ? 2 : 1;
crypto/heimdal/lib/hdb/print.c
160
key->key.keytype, key->key.keyvalue.length + 2);
crypto/heimdal/lib/hdb/print.c
162
ret = krb5_enctype_keysize(context, key->key.keytype, &decrypted_key_length);
crypto/heimdal/lib/hdb/print.c
170
sz = append_hex(context, sp, 1, 1, &key->key.keyvalue);
crypto/heimdal/lib/hdb/print.c
171
if (!key->salt)
crypto/heimdal/lib/hdb/print.c
175
if (key->salt->type == KRB5_PADATA_PW_SALT) {
crypto/heimdal/lib/hdb/print.c
183
if (k5salt.saltvalue.length == key->salt->salt.length &&
crypto/heimdal/lib/hdb/print.c
184
memcmp(k5salt.saltvalue.data, key->salt->salt.data,
crypto/heimdal/lib/hdb/print.c
187
else if (key->salt->salt.length == strlen(princ->realm) &&
crypto/heimdal/lib/hdb/print.c
188
memcmp(key->salt->salt.data, princ->realm,
crypto/heimdal/lib/hdb/print.c
189
key->salt->salt.length) == 0)
crypto/heimdal/lib/hdb/print.c
191
else if (key->salt->salt.length == k5salt.saltvalue.length - strlen(princ->realm) &&
crypto/heimdal/lib/hdb/print.c
193
key->salt->salt.data, key->salt->salt.length) == 0)
crypto/heimdal/lib/hdb/print.c
198
} else if (key->salt->type == KRB5_PADATA_AFS3_SALT) {
crypto/heimdal/lib/hdb/print.c
202
key->salt->salt.length);
crypto/heimdal/lib/hdb/print.c
204
return append_hex(context, sp, 1, 1, &key->salt->salt);
crypto/heimdal/lib/hdb/print.c
228
ent->keys.val[i].key.keytype);
crypto/heimdal/lib/hdb/print.c
231
ent->keys.val[i].key.keytype);
crypto/heimdal/lib/hdb/print.c
233
append_hex(context, sp, 0, 0, &ent->keys.val[i].key.keyvalue);
crypto/heimdal/lib/hdb/print.c
394
if (!mit_strong_etype(ent->keys.val[i].key.keytype))
crypto/heimdal/lib/hdb/print.c
408
if (ent->keys.val[k].key.keytype == ETYPE_DES_CBC_MD4 ||
crypto/heimdal/lib/hdb/print.c
409
ent->keys.val[k].key.keytype == ETYPE_DES_CBC_MD5)
crypto/heimdal/lib/hdb/print.c
534
if (!mit_strong_etype(ent->keys.val[i].key.keytype))
crypto/heimdal/lib/hdb/print.c
548
if (ent->keys.val[k].key.keytype == ETYPE_DES_CBC_MD4 ||
crypto/heimdal/lib/hdb/print.c
549
ent->keys.val[k].key.keytype == ETYPE_DES_CBC_MD5)
crypto/heimdal/lib/hx509/ca.c
1039
if (tbs->flags.key == 0) {
crypto/heimdal/lib/hx509/ca.c
256
tbs->flags.key = !ret;
crypto/heimdal/lib/hx509/ca.c
375
tbs->flags.key = !ret;
crypto/heimdal/lib/hx509/ca.c
53
unsigned int key:1;
crypto/heimdal/lib/hx509/cms.c
357
heim_octet_string key;
crypto/heimdal/lib/hx509/cms.c
369
memset(&key, 0, sizeof(key));
crypto/heimdal/lib/hx509/cms.c
427
cert, &key);
crypto/heimdal/lib/hx509/cms.c
488
ret = hx509_crypto_set_key_data(crypto, key.data, key.length);
crypto/heimdal/lib/hx509/cms.c
513
der_free_octet_string(&key);
crypto/heimdal/lib/hx509/cms.c
562
heim_octet_string key;
crypto/heimdal/lib/hx509/cms.c
569
memset(&key, 0, sizeof(key));
crypto/heimdal/lib/hx509/cms.c
589
ret = hx509_crypto_set_random_key(crypto, &key);
crypto/heimdal/lib/hx509/cms.c
670
&key, cert,
crypto/heimdal/lib/hx509/cms.c
712
der_free_octet_string(&key);
crypto/heimdal/lib/hx509/collector.c
104
free_private_key(struct private_key *key)
crypto/heimdal/lib/hx509/collector.c
106
free_AlgorithmIdentifier(&key->alg);
crypto/heimdal/lib/hx509/collector.c
107
if (key->private_key)
crypto/heimdal/lib/hx509/collector.c
108
hx509_private_key_free(&key->private_key);
crypto/heimdal/lib/hx509/collector.c
109
der_free_octet_string(&key->localKeyId);
crypto/heimdal/lib/hx509/collector.c
110
free(key);
crypto/heimdal/lib/hx509/collector.c
121
struct private_key *key;
crypto/heimdal/lib/hx509/collector.c
125
key = calloc(1, sizeof(*key));
crypto/heimdal/lib/hx509/collector.c
126
if (key == NULL)
crypto/heimdal/lib/hx509/collector.c
131
free(key);
crypto/heimdal/lib/hx509/collector.c
137
ret = copy_AlgorithmIdentifier(alg, &key->alg);
crypto/heimdal/lib/hx509/collector.c
144
key->private_key = private_key;
crypto/heimdal/lib/hx509/collector.c
149
&key->private_key);
crypto/heimdal/lib/hx509/collector.c
154
ret = der_copy_octet_string(localKeyId, &key->localKeyId);
crypto/heimdal/lib/hx509/collector.c
161
memset(&key->localKeyId, 0, sizeof(key->localKeyId));
crypto/heimdal/lib/hx509/collector.c
163
c->val.data[c->val.len] = key;
crypto/heimdal/lib/hx509/collector.c
168
free_private_key(key);
crypto/heimdal/lib/hx509/crypto.c
1016
hx509_private_key key,
crypto/heimdal/lib/hx509/crypto.c
1052
BIGNUM *key, *p, *q, *g;
crypto/heimdal/lib/hx509/crypto.c
1070
key = heim_int2BN(&pk);
crypto/heimdal/lib/hx509/crypto.c
1074
if (key == NULL) {
crypto/heimdal/lib/hx509/crypto.c
1080
ret = DSA_set0_key(dsa, key, NULL);
crypto/heimdal/lib/hx509/crypto.c
1083
BN_free(key);
crypto/heimdal/lib/hx509/crypto.c
2021
hx509_private_key_init(hx509_private_key *key,
crypto/heimdal/lib/hx509/crypto.c
2025
*key = calloc(1, sizeof(**key));
crypto/heimdal/lib/hx509/crypto.c
2026
if (*key == NULL)
crypto/heimdal/lib/hx509/crypto.c
2028
(*key)->ref = 1;
crypto/heimdal/lib/hx509/crypto.c
2029
(*key)->ops = ops;
crypto/heimdal/lib/hx509/crypto.c
2030
(*key)->private_key.keydata = keydata;
crypto/heimdal/lib/hx509/crypto.c
2035
_hx509_private_key_ref(hx509_private_key key)
crypto/heimdal/lib/hx509/crypto.c
2037
if (key->ref == 0)
crypto/heimdal/lib/hx509/crypto.c
2039
key->ref++;
crypto/heimdal/lib/hx509/crypto.c
2040
if (key->ref == UINT_MAX)
crypto/heimdal/lib/hx509/crypto.c
2042
return key;
crypto/heimdal/lib/hx509/crypto.c
2046
_hx509_private_pem_name(hx509_private_key key)
crypto/heimdal/lib/hx509/crypto.c
2048
return key->ops->pemtype;
crypto/heimdal/lib/hx509/crypto.c
2052
hx509_private_key_free(hx509_private_key *key)
crypto/heimdal/lib/hx509/crypto.c
2054
if (key == NULL || *key == NULL)
crypto/heimdal/lib/hx509/crypto.c
2057
if ((*key)->ref == 0)
crypto/heimdal/lib/hx509/crypto.c
2059
if (--(*key)->ref > 0)
crypto/heimdal/lib/hx509/crypto.c
2062
if ((*key)->ops && der_heim_oid_cmp((*key)->ops->key_oid, ASN1_OID_ID_PKCS1_RSAENCRYPTION) == 0) {
crypto/heimdal/lib/hx509/crypto.c
2063
if ((*key)->private_key.rsa)
crypto/heimdal/lib/hx509/crypto.c
2064
RSA_free((*key)->private_key.rsa);
crypto/heimdal/lib/hx509/crypto.c
2066
} else if ((*key)->ops && der_heim_oid_cmp((*key)->ops->key_oid, ASN1_OID_ID_ECPUBLICKEY) == 0) {
crypto/heimdal/lib/hx509/crypto.c
2067
if ((*key)->private_key.ecdsa)
crypto/heimdal/lib/hx509/crypto.c
2068
EC_KEY_free((*key)->private_key.ecdsa);
crypto/heimdal/lib/hx509/crypto.c
2071
(*key)->private_key.rsa = NULL;
crypto/heimdal/lib/hx509/crypto.c
2072
free(*key);
crypto/heimdal/lib/hx509/crypto.c
2073
*key = NULL;
crypto/heimdal/lib/hx509/crypto.c
2078
hx509_private_key_assign_rsa(hx509_private_key key, void *ptr)
crypto/heimdal/lib/hx509/crypto.c
2080
if (key->private_key.rsa)
crypto/heimdal/lib/hx509/crypto.c
2081
RSA_free(key->private_key.rsa);
crypto/heimdal/lib/hx509/crypto.c
2082
key->private_key.rsa = ptr;
crypto/heimdal/lib/hx509/crypto.c
2083
key->signature_alg = ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION;
crypto/heimdal/lib/hx509/crypto.c
2084
key->md = &pkcs1_rsa_sha1_alg;
crypto/heimdal/lib/hx509/crypto.c
2089
const hx509_private_key key,
crypto/heimdal/lib/hx509/crypto.c
2093
ret = der_copy_oid(key->ops->key_oid, data);
crypto/heimdal/lib/hx509/crypto.c
2100
_hx509_private_key_exportable(hx509_private_key key)
crypto/heimdal/lib/hx509/crypto.c
2102
if (key->ops->export == NULL)
crypto/heimdal/lib/hx509/crypto.c
2109
hx509_private_key key,
crypto/heimdal/lib/hx509/crypto.c
2112
if (key->ops->get_internal == NULL)
crypto/heimdal/lib/hx509/crypto.c
2114
return (*key->ops->get_internal)(context, key, type);
crypto/heimdal/lib/hx509/crypto.c
2119
const hx509_private_key key,
crypto/heimdal/lib/hx509/crypto.c
2123
if (key->ops->export == NULL) {
crypto/heimdal/lib/hx509/crypto.c
2127
return (*key->ops->export)(context, key, format, data);
crypto/heimdal/lib/hx509/crypto.c
2157
heim_octet_string key;
crypto/heimdal/lib/hx509/crypto.c
2465
if (crypto->key.data)
crypto/heimdal/lib/hx509/crypto.c
2466
free(crypto->key.data);
crypto/heimdal/lib/hx509/crypto.c
2509
if (crypto->key.data) {
crypto/heimdal/lib/hx509/crypto.c
2510
free(crypto->key.data);
crypto/heimdal/lib/hx509/crypto.c
2511
crypto->key.data = NULL;
crypto/heimdal/lib/hx509/crypto.c
2512
crypto->key.length = 0;
crypto/heimdal/lib/hx509/crypto.c
2514
crypto->key.data = malloc(length);
crypto/heimdal/lib/hx509/crypto.c
2515
if (crypto->key.data == NULL)
crypto/heimdal/lib/hx509/crypto.c
2517
memcpy(crypto->key.data, data, length);
crypto/heimdal/lib/hx509/crypto.c
2518
crypto->key.length = length;
crypto/heimdal/lib/hx509/crypto.c
2524
hx509_crypto_set_random_key(hx509_crypto crypto, heim_octet_string *key)
crypto/heimdal/lib/hx509/crypto.c
2526
if (crypto->key.data) {
crypto/heimdal/lib/hx509/crypto.c
2527
free(crypto->key.data);
crypto/heimdal/lib/hx509/crypto.c
2528
crypto->key.length = 0;
crypto/heimdal/lib/hx509/crypto.c
2531
crypto->key.length = EVP_CIPHER_key_length(crypto->c);
crypto/heimdal/lib/hx509/crypto.c
2532
crypto->key.data = malloc(crypto->key.length);
crypto/heimdal/lib/hx509/crypto.c
2533
if (crypto->key.data == NULL) {
crypto/heimdal/lib/hx509/crypto.c
2534
crypto->key.length = 0;
crypto/heimdal/lib/hx509/crypto.c
2537
if (RAND_bytes(crypto->key.data, crypto->key.length) <= 0) {
crypto/heimdal/lib/hx509/crypto.c
2538
free(crypto->key.data);
crypto/heimdal/lib/hx509/crypto.c
2539
crypto->key.data = NULL;
crypto/heimdal/lib/hx509/crypto.c
2540
crypto->key.length = 0;
crypto/heimdal/lib/hx509/crypto.c
2543
if (key)
crypto/heimdal/lib/hx509/crypto.c
2544
return der_copy_octet_string(&crypto->key, key);
crypto/heimdal/lib/hx509/crypto.c
2610
crypto->key.data, ivec->data, 1);
crypto/heimdal/lib/hx509/crypto.c
2696
if (crypto->key.data == NULL)
crypto/heimdal/lib/hx509/crypto.c
2707
crypto->key.data, idata, 0);
crypto/heimdal/lib/hx509/crypto.c
2775
heim_octet_string *key, heim_octet_string *iv,
crypto/heimdal/lib/hx509/crypto.c
2804
PKCS12_KEY_ID, iter, key->length, key->data, md)) {
crypto/heimdal/lib/hx509/crypto.c
2821
ret = hx509_crypto_set_key_data(c, key->data, key->length);
crypto/heimdal/lib/hx509/crypto.c
2898
heim_octet_string key, iv;
crypto/heimdal/lib/hx509/crypto.c
2906
memset(&key, 0, sizeof(key));
crypto/heimdal/lib/hx509/crypto.c
2919
key.length = EVP_CIPHER_key_length(c);
crypto/heimdal/lib/hx509/crypto.c
2920
key.data = malloc(key.length);
crypto/heimdal/lib/hx509/crypto.c
2921
if (key.data == NULL) {
crypto/heimdal/lib/hx509/crypto.c
2950
&key, &iv, enc_oid, md);
crypto/heimdal/lib/hx509/crypto.c
2965
if (key.data)
crypto/heimdal/lib/hx509/crypto.c
2966
der_free_octet_string(&key);
crypto/heimdal/lib/hx509/crypto.c
3091
_hx509_match_keys(hx509_cert c, hx509_private_key key)
crypto/heimdal/lib/hx509/crypto.c
3093
if (der_heim_oid_cmp(key->ops->key_oid, ASN1_OID_ID_PKCS1_RSAENCRYPTION) == 0)
crypto/heimdal/lib/hx509/crypto.c
3094
return match_keys_rsa(c, key);
crypto/heimdal/lib/hx509/crypto.c
3095
if (der_heim_oid_cmp(key->ops->key_oid, ASN1_OID_ID_ECPUBLICKEY) == 0)
crypto/heimdal/lib/hx509/crypto.c
3096
return match_keys_ec(c, key);
crypto/heimdal/lib/hx509/crypto.c
3103
find_keytype(const hx509_private_key key)
crypto/heimdal/lib/hx509/crypto.c
3107
if (key == NULL)
crypto/heimdal/lib/hx509/crypto.c
3110
md = find_sig_alg(key->signature_alg);
crypto/heimdal/lib/hx509/crypto.c
346
EC_KEY *key = NULL;
crypto/heimdal/lib/hx509/crypto.c
384
key = EC_KEY_new();
crypto/heimdal/lib/hx509/crypto.c
386
EC_KEY_set_group(key, group);
crypto/heimdal/lib/hx509/crypto.c
392
if (o2i_ECPublicKey(&key, &p, len) == NULL) {
crypto/heimdal/lib/hx509/crypto.c
393
EC_KEY_free(key);
crypto/heimdal/lib/hx509/crypto.c
397
key = SubjectPublicKeyInfo2EC_KEY(spi);
crypto/heimdal/lib/hx509/crypto.c
401
sig->data, sig->length, key);
crypto/heimdal/lib/hx509/crypto.c
403
EC_KEY_free(key);
crypto/heimdal/lib/hx509/crypto.c
858
const hx509_private_key key,
crypto/heimdal/lib/hx509/crypto.c
870
ret = i2d_RSAPrivateKey(key->private_key.rsa, NULL);
crypto/heimdal/lib/hx509/crypto.c
888
i2d_RSAPrivateKey(key->private_key.rsa, &p);
crypto/heimdal/lib/hx509/crypto.c
900
hx509_private_key key,
crypto/heimdal/lib/hx509/crypto.c
906
RSA_get0_key(key->private_key.rsa, &n, NULL, NULL);
crypto/heimdal/lib/hx509/crypto.c
908
RSA_get0_key(key->private_key.rsa, NULL, &n, NULL);
crypto/heimdal/lib/hx509/crypto.c
940
const hx509_private_key key,
crypto/heimdal/lib/hx509/crypto.c
961
EC_KEY *key;
crypto/heimdal/lib/hx509/crypto.c
968
key = EC_KEY_new();
crypto/heimdal/lib/hx509/crypto.c
969
if (key == NULL)
crypto/heimdal/lib/hx509/crypto.c
974
EC_KEY_free(key);
crypto/heimdal/lib/hx509/crypto.c
978
if (EC_KEY_set_group(key, group) == 0) {
crypto/heimdal/lib/hx509/crypto.c
979
EC_KEY_free(key);
crypto/heimdal/lib/hx509/crypto.c
984
pkey = &key;
crypto/heimdal/lib/hx509/env.c
108
const char *key, hx509_env list)
crypto/heimdal/lib/hx509/env.c
120
n->name = strdup(key);
crypto/heimdal/lib/hx509/env.c
155
const char *key, size_t len)
crypto/heimdal/lib/hx509/env.c
158
if (strncmp(key, env->name ,len) == 0
crypto/heimdal/lib/hx509/env.c
179
hx509_env_find(hx509_context context, hx509_env env, const char *key)
crypto/heimdal/lib/hx509/env.c
182
if (strcmp(key, env->name) == 0 && env->type == env_string)
crypto/heimdal/lib/hx509/env.c
204
const char *key)
crypto/heimdal/lib/hx509/env.c
207
if (strcmp(key, env->name) == 0 && env->type == env_list)
crypto/heimdal/lib/hx509/env.c
57
const char *key, const char *value)
crypto/heimdal/lib/hx509/env.c
69
n->name = strdup(key);
crypto/heimdal/lib/hx509/hxtool.c
1198
read_private_key(const char *fn, hx509_private_key *key)
crypto/heimdal/lib/hx509/hxtool.c
1204
*key = NULL;
crypto/heimdal/lib/hx509/hxtool.c
1217
*key = _hx509_private_key_ref(keys[0]);
crypto/heimdal/lib/hx509/hxtool.c
1287
SubjectPublicKeyInfo key;
crypto/heimdal/lib/hx509/hxtool.c
1290
memset(&key, 0, sizeof(key));
crypto/heimdal/lib/hx509/hxtool.c
1331
ret = hx509_private_key2SPKI(context, signer, &key);
crypto/heimdal/lib/hx509/hxtool.c
1337
&key);
crypto/heimdal/lib/hx509/hxtool.c
1338
free_SubjectPublicKeyInfo(&key);
crypto/heimdal/lib/hx509/keyset.c
780
hx509_private_key key)
crypto/heimdal/lib/hx509/keyset.c
789
return (*certs->ops->addkey)(context, certs, certs->ops_data, key);
crypto/heimdal/lib/hx509/ks_file.c
119
EVP_CipherInit_ex(ctx, c, NULL, key, ivdata, 0);
crypto/heimdal/lib/hx509/ks_file.c
134
memset(key, 0, keylen);
crypto/heimdal/lib/hx509/ks_file.c
135
free(key);
crypto/heimdal/lib/hx509/ks_file.c
552
hx509_private_key key = _hx509_cert_private_key(c);
crypto/heimdal/lib/hx509/ks_file.c
553
ret = _hx509_private_key_export(context, key,
crypto/heimdal/lib/hx509/ks_file.c
557
ret = hx509_pem_write(context, _hx509_private_pem_name(key), NULL,
crypto/heimdal/lib/hx509/ks_file.c
636
hx509_private_key key)
crypto/heimdal/lib/hx509/ks_file.c
639
return _hx509_certs_keys_add(context, ksf->certs, key);
crypto/heimdal/lib/hx509/ks_file.c
80
void *key;
crypto/heimdal/lib/hx509/ks_file.c
85
key = malloc(keylen);
crypto/heimdal/lib/hx509/ks_file.c
86
if (key == NULL) {
crypto/heimdal/lib/hx509/ks_file.c
93
1, key, NULL);
crypto/heimdal/lib/hx509/ks_keychain.c
258
hx509_private_key key;
crypto/heimdal/lib/hx509/ks_keychain.c
262
ret = hx509_private_key_init(&key, NULL, NULL);
crypto/heimdal/lib/hx509/ks_keychain.c
305
hx509_private_key_assign_rsa(key, rsa);
crypto/heimdal/lib/hx509/ks_keychain.c
306
_hx509_cert_assign_key(cert, key);
crypto/heimdal/lib/hx509/ks_mem.c
183
hx509_private_key key)
crypto/heimdal/lib/hx509/ks_mem.c
197
mem->keys[i] = _hx509_private_key_ref(key);
crypto/heimdal/lib/hx509/ks_p11.c
130
CK_OBJECT_HANDLE key = p11rsa->private_key;
crypto/heimdal/lib/hx509/ks_p11.c
148
ret = P11FUNC(p11rsa->p, SignInit, (session, &mechanism, key));
crypto/heimdal/lib/hx509/ks_p11.c
168
CK_OBJECT_HANDLE key = p11rsa->private_key;
crypto/heimdal/lib/hx509/ks_p11.c
186
ret = P11FUNC(p11rsa->p, DecryptInit, (session, &mechanism, key));
crypto/heimdal/lib/hx509/ks_p11.c
633
hx509_private_key key;
crypto/heimdal/lib/hx509/ks_p11.c
644
ret = hx509_private_key_init(&key, NULL, NULL);
crypto/heimdal/lib/hx509/ks_p11.c
663
hx509_private_key_free(&key);
crypto/heimdal/lib/hx509/ks_p11.c
689
hx509_private_key_assign_rsa(key, rsa);
crypto/heimdal/lib/hx509/ks_p11.c
694
key,
crypto/heimdal/lib/hx509/ks_p11.c
699
hx509_private_key_free(&key);
crypto/heimdal/lib/hx509/ks_p12.c
524
hx509_private_key key = _hx509_cert_private_key(c);
crypto/heimdal/lib/hx509/ks_p12.c
532
ret = _hx509_private_key_oid(context, key,
crypto/heimdal/lib/hx509/ref/pkcs11.h
823
ck_object_handle_t key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
842
ck_object_handle_t key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
870
(ck_session_handle_t session, ck_object_handle_t key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
879
ck_object_handle_t key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
895
ck_object_handle_t key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
905
ck_object_handle_t key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
921
ck_object_handle_t key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
957
ck_object_handle_t *key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
971
ck_object_handle_t key,
crypto/heimdal/lib/hx509/ref/pkcs11.h
982
ck_object_handle_t *key));
crypto/heimdal/lib/hx509/ref/pkcs11.h
989
ck_object_handle_t *key));
crypto/heimdal/lib/hx509/req.c
101
const SubjectPublicKeyInfo *key)
crypto/heimdal/lib/hx509/req.c
103
free_SubjectPublicKeyInfo(&req->key);
crypto/heimdal/lib/hx509/req.c
104
return copy_SubjectPublicKeyInfo(key, &req->key);
crypto/heimdal/lib/hx509/req.c
110
SubjectPublicKeyInfo *key)
crypto/heimdal/lib/hx509/req.c
112
return copy_SubjectPublicKeyInfo(&req->key, key);
crypto/heimdal/lib/hx509/req.c
195
ret = copy_SubjectPublicKeyInfo(&req->key,
crypto/heimdal/lib/hx509/req.c
39
SubjectPublicKeyInfo key;
crypto/heimdal/lib/hx509/req.c
63
free_SubjectPublicKeyInfo(&(*req)->key);
crypto/heimdal/lib/kadm5/default_keys.c
50
ret = krb5_enctype_to_string(context, keys[i].key.keytype, &str);
crypto/heimdal/lib/kadm5/default_keys.c
53
(int)keys[i].key.keytype);
crypto/heimdal/lib/kadm5/get_s.c
173
Key *key;
crypto/heimdal/lib/kadm5/get_s.c
184
key = &ent.entry.keys.val[i];
crypto/heimdal/lib/kadm5/get_s.c
188
kd->key_data_type[0] = key->key.keytype;
crypto/heimdal/lib/kadm5/get_s.c
189
if(key->salt)
crypto/heimdal/lib/kadm5/get_s.c
190
kd->key_data_type[1] = key->salt->type;
crypto/heimdal/lib/kadm5/get_s.c
194
kd->key_data_length[0] = key->key.keyvalue.length;
crypto/heimdal/lib/kadm5/get_s.c
200
memcpy(kd->key_data_contents[0], key->key.keyvalue.data,
crypto/heimdal/lib/kadm5/get_s.c
203
if(key->salt)
crypto/heimdal/lib/kadm5/get_s.c
204
sp = &key->salt->salt;
crypto/heimdal/lib/kadm5/keys.c
61
keys[i].key.keyvalue.length = 0;
crypto/heimdal/lib/kadm5/keys.c
62
keys[i].key.keyvalue.data = NULL;
crypto/heimdal/lib/kadm5/keys.c
90
if (keys1[i].key.keytype != keys2[j].key.keytype)
crypto/heimdal/lib/kadm5/keys.c
92
if (keys1[i].key.keyvalue.length != keys2[j].key.keyvalue.length)
crypto/heimdal/lib/kadm5/keys.c
94
if (memcmp (keys1[i].key.keyvalue.data, keys2[j].key.keyvalue.data,
crypto/heimdal/lib/kadm5/keys.c
95
keys1[i].key.keyvalue.length) != 0)
crypto/heimdal/lib/kadm5/marshall.c
41
krb5_key_data *key)
crypto/heimdal/lib/kadm5/marshall.c
44
CHECK(krb5_store_int32(sp, key->key_data_ver));
crypto/heimdal/lib/kadm5/marshall.c
45
CHECK(krb5_store_int32(sp, key->key_data_kvno));
crypto/heimdal/lib/kadm5/marshall.c
46
CHECK(krb5_store_int32(sp, key->key_data_type[0]));
crypto/heimdal/lib/kadm5/marshall.c
47
c.length = key->key_data_length[0];
crypto/heimdal/lib/kadm5/marshall.c
48
c.data = key->key_data_contents[0];
crypto/heimdal/lib/kadm5/marshall.c
50
CHECK(krb5_store_int32(sp, key->key_data_type[1]));
crypto/heimdal/lib/kadm5/marshall.c
51
c.length = key->key_data_length[1];
crypto/heimdal/lib/kadm5/marshall.c
52
c.data = key->key_data_contents[1];
crypto/heimdal/lib/kadm5/marshall.c
59
krb5_key_data *key)
crypto/heimdal/lib/kadm5/marshall.c
66
key->key_data_ver = tmp;
crypto/heimdal/lib/kadm5/marshall.c
70
key->key_data_kvno = tmp;
crypto/heimdal/lib/kadm5/marshall.c
74
key->key_data_type[0] = tmp;
crypto/heimdal/lib/kadm5/marshall.c
78
key->key_data_length[0] = c.length;
crypto/heimdal/lib/kadm5/marshall.c
79
key->key_data_contents[0] = c.data;
crypto/heimdal/lib/kadm5/marshall.c
83
key->key_data_type[1] = tmp;
crypto/heimdal/lib/kadm5/marshall.c
87
key->key_data_length[1] = c.length;
crypto/heimdal/lib/kadm5/marshall.c
88
key->key_data_contents[1] = c.data;
crypto/heimdal/lib/kadm5/set_keys.c
100
ret = krb5_data_copy(&keys[i].key.keyvalue,
crypto/heimdal/lib/kadm5/set_keys.c
160
&keys[i].key);
crypto/heimdal/lib/kadm5/set_keys.c
229
if (des_keyblock != -1 && is_des_key_p(keys[i].key.keytype)) {
crypto/heimdal/lib/kadm5/set_keys.c
235
kblock[i].keytype = keys[i].key.keytype;
crypto/heimdal/lib/kadm5/set_keys.c
238
keys[i].key.keytype,
crypto/heimdal/lib/kadm5/set_keys.c
243
if (is_des_key_p(keys[i].key.keytype))
crypto/heimdal/lib/kadm5/set_keys.c
249
&keys[i].key);
crypto/heimdal/lib/kadm5/set_keys.c
99
keys[i].key.keytype = key_data[i].key_data_type[0];
crypto/heimdal/lib/krb5/aes-test.c
246
krb5_keyblock key;
crypto/heimdal/lib/krb5/aes-test.c
253
&key);
crypto/heimdal/lib/krb5/aes-test.c
261
if (key.keyvalue.length != keys[i].keylen) {
crypto/heimdal/lib/krb5/aes-test.c
263
i, (unsigned long)key.keyvalue.length,
crypto/heimdal/lib/krb5/aes-test.c
269
if (memcmp(key.keyvalue.data, keys[i].key, keys[i].keylen) != 0) {
crypto/heimdal/lib/krb5/aes-test.c
277
hex_dump_data(key.keyvalue.data, key.keyvalue.length);
crypto/heimdal/lib/krb5/aes-test.c
279
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/aes-test.c
522
krb5_keyblock *key,
crypto/heimdal/lib/krb5/aes-test.c
537
ret = krb5_c_decrypt(context, *key, usage, NULL, &e, &decrypt);
crypto/heimdal/lib/krb5/aes-test.c
567
void *key;
crypto/heimdal/lib/krb5/aes-test.c
602
kb.keyvalue.data = krbencs[i].key;
crypto/heimdal/lib/krb5/aes-test.c
62
char *key;
crypto/heimdal/lib/krb5/aes-test.c
646
krb5_keyblock key;
crypto/heimdal/lib/krb5/aes-test.c
652
ret = krb5_generate_random_keyblock(context, enctype, &key);
crypto/heimdal/lib/krb5/aes-test.c
656
ret = krb5_crypto_init(context, &key, 0, &crypto);
crypto/heimdal/lib/krb5/aes-test.c
814
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/aes-test.c
825
krb5_keyblock key;
crypto/heimdal/lib/krb5/aes-test.c
833
&key);
crypto/heimdal/lib/krb5/aes-test.c
838
if (key.keyvalue.length != 24)
crypto/heimdal/lib/krb5/aes-test.c
841
if (memcmp(key.keyvalue.data,
crypto/heimdal/lib/krb5/aes-test.c
848
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/auth_context.c
325
krb5_keyblock *key)
crypto/heimdal/lib/krb5/auth_context.c
330
ret = krb5_generate_subkey_extended (context, key,
crypto/heimdal/lib/krb5/config_file.c
270
convert_content(const void *key, const void *value, void *context)
crypto/heimdal/lib/krb5/config_file.c
275
if (CFGetTypeID(key) != CFStringGetTypeID())
crypto/heimdal/lib/krb5/config_file.c
278
k = cfstring2cstring(key);
crypto/heimdal/lib/krb5/context.c
782
HKEY key;
crypto/heimdal/lib/krb5/context.c
784
rcode = RegOpenKeyEx(HKEY_CURRENT_USER, KeyName, 0, KEY_READ, &key);
crypto/heimdal/lib/krb5/context.c
786
config_file = _krb5_parse_reg_value_as_multi_string(NULL, key, "config",
crypto/heimdal/lib/krb5/context.c
788
RegCloseKey(key);
crypto/heimdal/lib/krb5/context.c
794
rcode = RegOpenKeyEx(HKEY_LOCAL_MACHINE, KeyName, 0, KEY_READ, &key);
crypto/heimdal/lib/krb5/context.c
796
config_file = _krb5_parse_reg_value_as_multi_string(NULL, key, "config",
crypto/heimdal/lib/krb5/context.c
798
RegCloseKey(key);
crypto/heimdal/lib/krb5/crypto-aes.c
116
ret = krb5_derive_key(context, crypto->key.key,
crypto/heimdal/lib/krb5/crypto-arcfour.c
126
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-arcfour.c
150
ret = _krb5_internal_hmac(NULL, c, t, sizeof(t), 0, key, &k1_c);
crypto/heimdal/lib/krb5/crypto-arcfour.c
159
ke.key = &kb;
crypto/heimdal/lib/krb5/crypto-arcfour.c
169
ke.key = &kb;
crypto/heimdal/lib/krb5/crypto-arcfour.c
195
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-arcfour.c
220
ret = _krb5_internal_hmac(NULL, c, t, sizeof(t), 0, key, &k1_c);
crypto/heimdal/lib/krb5/crypto-arcfour.c
229
ke.key = &kb;
crypto/heimdal/lib/krb5/crypto-arcfour.c
246
ke.key = &kb;
crypto/heimdal/lib/krb5/crypto-arcfour.c
297
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-arcfour.c
311
return ARCFOUR_subencrypt (context, key, data, len, keyusage, ivec);
crypto/heimdal/lib/krb5/crypto-arcfour.c
313
return ARCFOUR_subdecrypt (context, key, data, len, keyusage, ivec);
crypto/heimdal/lib/krb5/crypto-arcfour.c
60
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-arcfour.c
85
0, key, &ksign_c);
crypto/heimdal/lib/krb5/crypto-arcfour.c
90
ksign.key = &kb;
crypto/heimdal/lib/krb5/crypto-des-common.c
133
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des-common.c
43
_krb5_xor (DES_cblock *key, const unsigned char *b)
crypto/heimdal/lib/krb5/crypto-des-common.c
45
unsigned char *a = (unsigned char*)key;
crypto/heimdal/lib/krb5/crypto-des-common.c
60
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des-common.c
65
struct _krb5_evp_schedule *ctx = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-des-common.c
93
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des-common.c
98
struct _krb5_evp_schedule *ctx = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-des.c
101
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
120
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
133
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
139
return _krb5_des_checksum(context, EVP_md4(), key, data, len, cksum);
crypto/heimdal/lib/krb5/crypto-des.c
144
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
150
return _krb5_des_verify(context, EVP_md4(), key, data, len, C);
crypto/heimdal/lib/krb5/crypto-des.c
155
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
161
return _krb5_des_checksum(context, EVP_md5(), key, data, len, C);
crypto/heimdal/lib/krb5/crypto-des.c
166
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
172
return _krb5_des_verify(context, EVP_md5(), key, data, len, C);
crypto/heimdal/lib/krb5/crypto-des.c
217
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
224
struct _krb5_evp_schedule *ctx = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-des.c
236
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
243
struct _krb5_evp_schedule *ctx = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-des.c
246
memcpy(&ivec, key->key->keyvalue.data, sizeof(ivec));
crypto/heimdal/lib/krb5/crypto-des.c
255
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
264
DES_key_schedule *s = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-des.c
273
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des.c
281
DES_key_schedule *s = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-des.c
282
memcpy(&ivec, key->key->keyvalue.data, sizeof(ivec));
crypto/heimdal/lib/krb5/crypto-des.c
41
krb5_keyblock *key)
crypto/heimdal/lib/krb5/crypto-des.c
43
DES_cblock *k = key->keyvalue.data;
crypto/heimdal/lib/krb5/crypto-des.c
53
struct _krb5_key_data *key)
crypto/heimdal/lib/krb5/crypto-des.c
55
DES_set_key_unchecked(key->key->keyvalue.data, key->schedule->data);
crypto/heimdal/lib/krb5/crypto-des.c
60
krb5_keyblock *key,
crypto/heimdal/lib/krb5/crypto-des.c
64
DES_cblock *k = key->keyvalue.data;
crypto/heimdal/lib/krb5/crypto-des.c
65
memcpy(k, data, key->keyvalue.length);
crypto/heimdal/lib/krb5/crypto-des3.c
100
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des3.c
106
return _krb5_des_verify(context, EVP_md5(), key, data, len, C);
crypto/heimdal/lib/krb5/crypto-des3.c
196
krb5_keyblock *key,
crypto/heimdal/lib/krb5/crypto-des3.c
200
unsigned char *x = key->keyvalue.data;
crypto/heimdal/lib/krb5/crypto-des3.c
205
memset(key->keyvalue.data, 0, key->keyvalue.length);
crypto/heimdal/lib/krb5/crypto-des3.c
220
k = key->keyvalue.data;
crypto/heimdal/lib/krb5/crypto-des3.c
42
krb5_keyblock *key)
crypto/heimdal/lib/krb5/crypto-des3.c
44
DES_cblock *k = key->keyvalue.data;
crypto/heimdal/lib/krb5/crypto-des3.c
89
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-des3.c
95
return _krb5_des_checksum(context, EVP_md5(), key, data, len, C);
crypto/heimdal/lib/krb5/crypto-evp.c
102
struct _krb5_evp_schedule *ctx = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-evp.c
41
struct _krb5_evp_schedule *key = kd->schedule->data;
crypto/heimdal/lib/krb5/crypto-evp.c
44
key->ectx = EVP_CIPHER_CTX_new();
crypto/heimdal/lib/krb5/crypto-evp.c
45
key->dctx = EVP_CIPHER_CTX_new();
crypto/heimdal/lib/krb5/crypto-evp.c
46
if (key->ectx == NULL || key->dctx == NULL)
crypto/heimdal/lib/krb5/crypto-evp.c
49
EVP_CipherInit_ex(key->ectx, c, NULL, kd->key->keyvalue.data, NULL, 1);
crypto/heimdal/lib/krb5/crypto-evp.c
50
EVP_CipherInit_ex(key->dctx, c, NULL, kd->key->keyvalue.data, NULL, 0);
crypto/heimdal/lib/krb5/crypto-evp.c
56
struct _krb5_evp_schedule *key = kd->schedule->data;
crypto/heimdal/lib/krb5/crypto-evp.c
57
EVP_CIPHER_CTX_free(key->ectx);
crypto/heimdal/lib/krb5/crypto-evp.c
58
EVP_CIPHER_CTX_free(key->dctx);
crypto/heimdal/lib/krb5/crypto-evp.c
63
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-evp.c
70
struct _krb5_evp_schedule *ctx = key->schedule->data;
crypto/heimdal/lib/krb5/crypto-evp.c
94
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-null.c
53
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-null.c
74
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto-pk.c
102
ret = krb5_random_to_key(context, type, keydata, keylen, key);
crypto/heimdal/lib/krb5/crypto-pk.c
208
krb5_keyblock *key)
crypto/heimdal/lib/krb5/crypto-pk.c
296
ret = krb5_random_to_key(context, enctype, keydata, keylen, key);
crypto/heimdal/lib/krb5/crypto-pk.c
45
krb5_keyblock *key)
crypto/heimdal/lib/krb5/crypto.c
1094
ret = _key_schedule(context, &crypto->key);
crypto/heimdal/lib/krb5/crypto.c
1099
ret = (*et->encrypt)(context, &crypto->key, p, len, 0, 0, ivec);
crypto/heimdal/lib/krb5/crypto.c
111
krb5_keyblock *key)
crypto/heimdal/lib/krb5/crypto.c
1162
ret = (*et->encrypt)(context, &crypto->key, p, len, FALSE, usage, ivec);
crypto/heimdal/lib/krb5/crypto.c
118
ret = krb5_data_alloc(&key->keyvalue, et->keytype->size);
crypto/heimdal/lib/krb5/crypto.c
121
key->keytype = type;
crypto/heimdal/lib/krb5/crypto.c
123
(*et->keytype->random_key)(context, key);
crypto/heimdal/lib/krb5/crypto.c
125
krb5_generate_random_block(key->keyvalue.data,
crypto/heimdal/lib/krb5/crypto.c
126
key->keyvalue.length);
crypto/heimdal/lib/krb5/crypto.c
132
struct _krb5_key_data *key)
crypto/heimdal/lib/krb5/crypto.c
135
struct _krb5_encryption_type *et = _krb5_find_enctype(key->key->keytype);
crypto/heimdal/lib/krb5/crypto.c
140
key->key->keytype);
crypto/heimdal/lib/krb5/crypto.c
147
if (key->schedule != NULL)
crypto/heimdal/lib/krb5/crypto.c
149
ALLOC(key->schedule, 1);
crypto/heimdal/lib/krb5/crypto.c
150
if(key->schedule == NULL) {
crypto/heimdal/lib/krb5/crypto.c
154
ret = krb5_data_alloc(key->schedule, kt->schedule_size);
crypto/heimdal/lib/krb5/crypto.c
156
free(key->schedule);
crypto/heimdal/lib/krb5/crypto.c
157
key->schedule = NULL;
crypto/heimdal/lib/krb5/crypto.c
160
(*kt->schedule)(context, kt, key);
crypto/heimdal/lib/krb5/crypto.c
170
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto.c
1845
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto.c
1854
ret = _key_schedule(context, key);
crypto/heimdal/lib/krb5/crypto.c
1876
(*et->encrypt)(context, key, k + i * et->blocksize, et->blocksize,
crypto/heimdal/lib/krb5/crypto.c
1890
(*et->encrypt)(context, key, c, len, 1, 0, NULL);
crypto/heimdal/lib/krb5/crypto.c
1909
_krb5_DES3_random_to_key(context, key->key, k, nblocks * et->blocksize);
crypto/heimdal/lib/krb5/crypto.c
1913
memcpy(key->key->keyvalue.data, k, key->key->keyvalue.length);
crypto/heimdal/lib/krb5/crypto.c
192
unsigned char *key;
crypto/heimdal/lib/krb5/crypto.c
1923
if (key->schedule) {
crypto/heimdal/lib/krb5/crypto.c
1924
free_key_schedule(context, key, et);
crypto/heimdal/lib/krb5/crypto.c
1925
key->schedule = NULL;
crypto/heimdal/lib/krb5/crypto.c
1945
return &d->key;
crypto/heimdal/lib/krb5/crypto.c
1950
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/crypto.c
1967
ret = krb5_copy_keyblock(context, key, &d.key);
crypto/heimdal/lib/krb5/crypto.c
1974
ret = krb5_copy_keyblock(context, d.key, derived_key);
crypto/heimdal/lib/krb5/crypto.c
1983
struct _krb5_key_data **key)
crypto/heimdal/lib/krb5/crypto.c
1991
*key = &crypto->key_usage[i].key;
crypto/heimdal/lib/krb5/crypto.c
1999
krb5_copy_keyblock(context, crypto->key.key, &d->key);
crypto/heimdal/lib/krb5/crypto.c
2002
*key = d;
crypto/heimdal/lib/krb5/crypto.c
2026
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/crypto.c
2037
etype = key->keytype;
crypto/heimdal/lib/krb5/crypto.c
2044
if((*crypto)->et->keytype->size != key->keyvalue.length) {
crypto/heimdal/lib/krb5/crypto.c
2051
ret = krb5_copy_keyblock(context, key, &(*crypto)->key.key);
crypto/heimdal/lib/krb5/crypto.c
2060
(*crypto)->key.schedule = NULL;
crypto/heimdal/lib/krb5/crypto.c
2068
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto.c
207
if(keyblock->key->keyvalue.length > cm->blocksize){
crypto/heimdal/lib/krb5/crypto.c
2072
(*et->keytype->cleanup)(context, key);
crypto/heimdal/lib/krb5/crypto.c
2073
memset(key->schedule->data, 0, key->schedule->length);
crypto/heimdal/lib/krb5/crypto.c
2074
krb5_free_data(context, key->schedule);
crypto/heimdal/lib/krb5/crypto.c
2078
_krb5_free_key_data(krb5_context context, struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto.c
2081
krb5_free_keyblock(context, key->key);
crypto/heimdal/lib/krb5/crypto.c
2082
if(key->schedule) {
crypto/heimdal/lib/krb5/crypto.c
2083
free_key_schedule(context, key, et);
crypto/heimdal/lib/krb5/crypto.c
2084
key->schedule = NULL;
crypto/heimdal/lib/krb5/crypto.c
2092
_krb5_free_key_data(context, &ku->key, et);
crypto/heimdal/lib/krb5/crypto.c
210
keyblock->key->keyvalue.data,
crypto/heimdal/lib/krb5/crypto.c
211
keyblock->key->keyvalue.length,
crypto/heimdal/lib/krb5/crypto.c
2115
_krb5_free_key_data(context, &crypto->key, crypto->et);
crypto/heimdal/lib/krb5/crypto.c
214
key = result->checksum.data;
crypto/heimdal/lib/krb5/crypto.c
217
key = keyblock->key->keyvalue.data;
crypto/heimdal/lib/krb5/crypto.c
218
key_len = keyblock->key->keyvalue.length;
crypto/heimdal/lib/krb5/crypto.c
221
ipad[i] ^= key[i];
crypto/heimdal/lib/krb5/crypto.c
222
opad[i] ^= key[i];
crypto/heimdal/lib/krb5/crypto.c
2400
krb5_keyblock *key)
crypto/heimdal/lib/krb5/crypto.c
2418
ret = krb5_data_alloc(&key->keyvalue, et->keytype->size);
crypto/heimdal/lib/krb5/crypto.c
2421
key->keytype = type;
crypto/heimdal/lib/krb5/crypto.c
2423
(*et->keytype->random_to_key)(context, key, data, size);
crypto/heimdal/lib/krb5/crypto.c
2425
memcpy(key->keyvalue.data, data, et->keytype->size);
crypto/heimdal/lib/krb5/crypto.c
245
krb5_keyblock *key,
crypto/heimdal/lib/krb5/crypto.c
259
kd.key = key;
crypto/heimdal/lib/krb5/crypto.c
272
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto.c
286
ret = _krb5_internal_hmac(context, c, data, len, usage, key, &res);
crypto/heimdal/lib/krb5/crypto.c
318
struct _krb5_key_data **key)
crypto/heimdal/lib/krb5/crypto.c
323
ret = _get_derived_key(context, crypto, usage, key);
crypto/heimdal/lib/krb5/crypto.c
327
*key = _new_derived_key(crypto, 0xff/* KRB5_KU_RFC1510_VARIANT */);
crypto/heimdal/lib/krb5/crypto.c
328
if(*key == NULL) {
crypto/heimdal/lib/krb5/crypto.c
332
ret = krb5_copy_keyblock(context, crypto->key.key, &(*key)->key);
crypto/heimdal/lib/krb5/crypto.c
335
for(i = 0; i < (*key)->key->keyvalue.length; i++)
crypto/heimdal/lib/krb5/crypto.c
336
((unsigned char*)(*key)->key->keyvalue.data)[i] ^= 0xF0;
crypto/heimdal/lib/krb5/crypto.c
338
*key = &crypto->key;
crypto/heimdal/lib/krb5/crypto.c
341
ret = _key_schedule(context, *key);
crypto/heimdal/lib/krb5/crypto.c
38
struct _krb5_key_data key;
crypto/heimdal/lib/krb5/crypto.c
387
(crypto->key.key->keytype == KEYTYPE_ARCFOUR);
crypto/heimdal/lib/krb5/crypto.c
925
ret = _key_schedule(context, &crypto->key);
crypto/heimdal/lib/krb5/crypto.c
928
ret = (*et->encrypt)(context, &crypto->key, p, block_sz, 1, 0, ivec);
crypto/heimdal/lib/krb5/crypto.c
969
ret = (*et->encrypt)(context, &crypto->key, tmp, sz, TRUE, usage, ivec);
crypto/heimdal/lib/krb5/crypto.h
114
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto.h
39
krb5_keyblock *key;
crypto/heimdal/lib/krb5/crypto.h
47
struct _krb5_key_data key;
crypto/heimdal/lib/krb5/crypto.h
92
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/crypto.h
97
struct _krb5_key_data *key,
crypto/heimdal/lib/krb5/deprecated.c
190
krb5_keyblock **key)
crypto/heimdal/lib/krb5/deprecated.c
197
*key = malloc (sizeof (**key));
crypto/heimdal/lib/krb5/deprecated.c
198
if (*key == NULL) {
crypto/heimdal/lib/krb5/deprecated.c
204
free (*key);
crypto/heimdal/lib/krb5/deprecated.c
210
ret = krb5_string_to_key_salt (context, type, password, salt, *key);
crypto/heimdal/lib/krb5/deprecated.c
252
krb5_keyblock **key)
crypto/heimdal/lib/krb5/deprecated.c
254
return krb5_copy_keyblock (context, keyseed, key);
crypto/heimdal/lib/krb5/deprecated.c
269
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/deprecated.c
275
if(key == NULL)
crypto/heimdal/lib/krb5/deprecated.c
292
key,
crypto/heimdal/lib/krb5/deprecated.c
311
krb5_keyblock **key)
crypto/heimdal/lib/krb5/deprecated.c
329
ret = krb5_copy_keyblock (context, &entry.keyblock, key);
crypto/heimdal/lib/krb5/deprecated.c
584
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/deprecated.c
588
return krb5_generate_subkey_extended(context, key, ETYPE_NULL, subkey);
crypto/heimdal/lib/krb5/derived-key-test.c
42
unsigned char key[MAXSIZE];
crypto/heimdal/lib/krb5/derived-key-test.c
91
krb5_keyblock key;
crypto/heimdal/lib/krb5/derived-key-test.c
94
key.keytype = KEYTYPE_DES3;
crypto/heimdal/lib/krb5/derived-key-test.c
95
key.keyvalue.length = MAXSIZE;
crypto/heimdal/lib/krb5/derived-key-test.c
96
key.keyvalue.data = t->key;
crypto/heimdal/lib/krb5/derived-key-test.c
98
ret = krb5_derive_key(context, &key, t->enctype, t->constant,
crypto/heimdal/lib/krb5/digest.c
299
krb5_keyblock *key;
crypto/heimdal/lib/krb5/digest.c
301
ret = krb5_auth_con_getlocalsubkey(context, ac, &key);
crypto/heimdal/lib/krb5/digest.c
304
if (key == NULL) {
crypto/heimdal/lib/krb5/digest.c
311
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/digest.c
312
krb5_free_keyblock (context, key);
crypto/heimdal/lib/krb5/digest.c
356
krb5_keyblock *key;
crypto/heimdal/lib/krb5/digest.c
358
ret = krb5_auth_con_getremotesubkey(context, ac, &key);
crypto/heimdal/lib/krb5/digest.c
361
if (key == NULL) {
crypto/heimdal/lib/krb5/digest.c
369
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/digest.c
370
krb5_free_keyblock (context, key);
crypto/heimdal/lib/krb5/generate_seq_number.c
38
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/generate_subkey.c
51
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/generate_subkey.c
64
etype = key->keytype; /* use session key etype */
crypto/heimdal/lib/krb5/get_cred.c
325
krb5_keyblock *key,
crypto/heimdal/lib/krb5/get_cred.c
366
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/get_for_creds.c
365
copy_EncryptionKey (&out_creds->session, &krb_cred_info->key);
crypto/heimdal/lib/krb5/get_in_tkt.c
127
krb5_keyblock *key;
crypto/heimdal/lib/krb5/get_in_tkt.c
129
ret = (*key_proc)(context, enctypes[i], *salt, keyseed, &key);
crypto/heimdal/lib/krb5/get_in_tkt.c
133
enctypes[i], key);
crypto/heimdal/lib/krb5/get_in_tkt.c
134
krb5_free_keyblock (context, key);
crypto/heimdal/lib/krb5/get_in_tkt.c
384
krb5_keyblock *key;
crypto/heimdal/lib/krb5/get_in_tkt.c
40
krb5_enctype etype, krb5_keyblock *key)
crypto/heimdal/lib/krb5/get_in_tkt.c
486
ret = (*key_proc)(context, etype, salt, keyseed, &key);
crypto/heimdal/lib/krb5/get_in_tkt.c
493
ret = (*key_proc)(context, etype, salt, keyseed, &key);
crypto/heimdal/lib/krb5/get_in_tkt.c
507
key,
crypto/heimdal/lib/krb5/get_in_tkt.c
516
memset (key->keyvalue.data, 0, key->keyvalue.length);
crypto/heimdal/lib/krb5/get_in_tkt.c
517
krb5_free_keyblock_contents (context, key);
crypto/heimdal/lib/krb5/get_in_tkt.c
518
free (key);
crypto/heimdal/lib/krb5/get_in_tkt.c
61
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/init_creds_pw.c
101
krb5_keyblock **key)
crypto/heimdal/lib/krb5/init_creds_pw.c
1010
krb5_keyblock *key;
crypto/heimdal/lib/krb5/init_creds_pw.c
1015
*salt, s2kparams, &key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1018
ret = make_pa_enc_timestamp (context, md, enctypes[i], key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1019
krb5_free_keyblock (context, key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1073
krb5_keyblock **key)
crypto/heimdal/lib/krb5/init_creds_pw.c
1078
salt, s2kparams, key);
crypto/heimdal/lib/krb5/init_creds_pw.c
116
*key = malloc(sizeof(**key));
crypto/heimdal/lib/krb5/init_creds_pw.c
117
if (*key == NULL)
crypto/heimdal/lib/krb5/init_creds_pw.c
120
salt, opaque, *key);
crypto/heimdal/lib/krb5/init_creds_pw.c
122
free(*key);
crypto/heimdal/lib/krb5/init_creds_pw.c
123
*key = NULL;
crypto/heimdal/lib/krb5/init_creds_pw.c
1255
krb5_keyblock **key)
crypto/heimdal/lib/krb5/init_creds_pw.c
1309
key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1317
ppaid->salt, ppaid->s2kparams, etype, key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1478
krb5_keyblock **key)
crypto/heimdal/lib/krb5/init_creds_pw.c
1495
ret = krb5_copy_keyblock(context, &entry.keyblock, key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1603
krb5_keyblock **key)
crypto/heimdal/lib/krb5/init_creds_pw.c
1605
return krb5_copy_keyblock (context, keyseed, key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1685
krb5_keyblock *key = NULL;
crypto/heimdal/lib/krb5/init_creds_pw.c
1696
&ctx->as_req, &rep.kdc_rep, hostinfo, &key);
crypto/heimdal/lib/krb5/init_creds_pw.c
1707
key,
crypto/heimdal/lib/krb5/init_creds_pw.c
1715
krb5_free_keyblock(context, key);
crypto/heimdal/lib/krb5/init_creds_pw.c
603
krb5_keyblock **key)
crypto/heimdal/lib/krb5/init_creds_pw.c
605
return krb5_copy_keyblock (context, keyseed, key);
crypto/heimdal/lib/krb5/init_creds_pw.c
927
krb5_enctype etype, krb5_keyblock *key)
crypto/heimdal/lib/krb5/init_creds_pw.c
949
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/kcm.c
1221
krb5_keyblock *key)
crypto/heimdal/lib/krb5/kcm.c
1251
ret = krb5_store_keyblock(request, *key);
crypto/heimdal/lib/krb5/keyblock.c
178
krb5_keyblock *key)
crypto/heimdal/lib/krb5/keyblock.c
183
memset(key, 0, sizeof(*key));
crypto/heimdal/lib/krb5/keyblock.c
196
ret = krb5_data_copy(&key->keyvalue, data, len);
crypto/heimdal/lib/krb5/keyblock.c
201
key->keytype = type;
crypto/heimdal/lib/krb5/keytab.c
349
krb5_keyblock **key)
crypto/heimdal/lib/krb5/keytab.c
366
ret = krb5_copy_keyblock (context, &entry.keyblock, key);
crypto/heimdal/lib/krb5/mit_glue.c
188
krb5_keyblock key;
crypto/heimdal/lib/krb5/mit_glue.c
190
ret = krb5_generate_random_keyblock(context, enctype, &key);
crypto/heimdal/lib/krb5/mit_glue.c
194
ret = krb5_crypto_init(context, &key, 0, &crypto);
crypto/heimdal/lib/krb5/mit_glue.c
195
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/mit_glue.c
206
const krb5_keyblock key,
crypto/heimdal/lib/krb5/mit_glue.c
215
ret = krb5_crypto_init(context, &key, input->enctype, &crypto);
crypto/heimdal/lib/krb5/mit_glue.c
246
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/mit_glue.c
255
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/mit_glue.c
294
krb5_keyblock key;
crypto/heimdal/lib/krb5/mit_glue.c
296
ret = krb5_generate_random_keyblock(context, enctype, &key);
crypto/heimdal/lib/krb5/mit_glue.c
300
ret = krb5_crypto_init(context, &key, 0, &crypto);
crypto/heimdal/lib/krb5/mit_glue.c
301
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/mit_glue.c
361
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/mit_glue.c
368
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/mit_glue.c
45
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/mit_glue.c
53
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/mit_glue.c
65
krb5_c_verify_checksum(krb5_context context, const krb5_keyblock *key,
crypto/heimdal/lib/krb5/mit_glue.c
75
key, usage, data, &data_cksum);
crypto/heimdal/lib/krb5/mk_priv.c
106
s.enc_part.etype = key->keytype;
crypto/heimdal/lib/krb5/mk_priv.c
109
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/mk_priv.c
50
krb5_keyblock *key;
crypto/heimdal/lib/krb5/mk_priv.c
59
key = auth_context->local_subkey;
crypto/heimdal/lib/krb5/mk_priv.c
61
key = auth_context->remote_subkey;
crypto/heimdal/lib/krb5/mk_priv.c
63
key = auth_context->keyblock;
crypto/heimdal/lib/krb5/mk_safe.c
107
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/mk_safe.c
49
krb5_keyblock *key;
crypto/heimdal/lib/krb5/mk_safe.c
58
key = auth_context->local_subkey;
crypto/heimdal/lib/krb5/mk_safe.c
60
key = auth_context->remote_subkey;
crypto/heimdal/lib/krb5/mk_safe.c
62
key = auth_context->keyblock;
crypto/heimdal/lib/krb5/n-fold.c
100
_krb5_n_fold(const void *str, size_t len, void *key, size_t size)
crypto/heimdal/lib/krb5/n-fold.c
116
memset(key, 0, size);
crypto/heimdal/lib/krb5/n-fold.c
124
add1(key, tmp, size);
crypto/heimdal/lib/krb5/pac.c
1001
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/pac.c
1009
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/pac.c
101
krb5_free_keyblock(context, local_key.key);
crypto/heimdal/lib/krb5/pac.c
110
krb5_free_keyblock(context, local_key.key);
crypto/heimdal/lib/krb5/pac.c
522
const krb5_keyblock *key)
crypto/heimdal/lib/krb5/pac.c
575
ret = HMAC_MD5_any_checksum(context, key, ptr, len,
crypto/heimdal/lib/krb5/pac.c
589
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/pac.c
612
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/pac.c
631
ret = HMAC_MD5_any_checksum(context, key, data, datalen,
crypto/heimdal/lib/krb5/pac.c
634
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/pac.c
84
const krb5_keyblock *key,
crypto/heimdal/lib/krb5/pac.c
95
ret = krb5_copy_keyblock(context, key, &local_key.key);
crypto/heimdal/lib/krb5/pkinit.c
1004
free(*key);
crypto/heimdal/lib/krb5/pkinit.c
1005
*key = NULL;
crypto/heimdal/lib/krb5/pkinit.c
1015
krb5_keyblock **key)
crypto/heimdal/lib/krb5/pkinit.c
1056
*key = malloc (sizeof (**key));
crypto/heimdal/lib/krb5/pkinit.c
1057
if (*key == NULL) {
crypto/heimdal/lib/krb5/pkinit.c
1064
ret = copy_EncryptionKey(&key_pack.replyKey, *key);
crypto/heimdal/lib/krb5/pkinit.c
1069
free(*key);
crypto/heimdal/lib/krb5/pkinit.c
1070
*key = NULL;
crypto/heimdal/lib/krb5/pkinit.c
1175
krb5_keyblock **key)
crypto/heimdal/lib/krb5/pkinit.c
1287
ret = get_reply_key(context, &content, req_buffer, key);
crypto/heimdal/lib/krb5/pkinit.c
1289
ret = get_reply_key_win(context, &content, nonce, key);
crypto/heimdal/lib/krb5/pkinit.c
1292
ret = get_reply_key(context, &content, req_buffer, key);
crypto/heimdal/lib/krb5/pkinit.c
1413
krb5_keyblock **key)
crypto/heimdal/lib/krb5/pkinit.c
1605
*key = malloc (sizeof (**key));
crypto/heimdal/lib/krb5/pkinit.c
1606
if (*key == NULL) {
crypto/heimdal/lib/krb5/pkinit.c
1617
*key);
crypto/heimdal/lib/krb5/pkinit.c
1621
free(*key);
crypto/heimdal/lib/krb5/pkinit.c
1622
*key = NULL;
crypto/heimdal/lib/krb5/pkinit.c
1652
krb5_keyblock **key)
crypto/heimdal/lib/krb5/pkinit.c
1742
nonce, pa, key);
crypto/heimdal/lib/krb5/pkinit.c
1746
ctx, etype, hi, nonce, req_buffer, pa, key);
crypto/heimdal/lib/krb5/pkinit.c
1798
ctx, etype, hi, nonce, req_buffer, pa, key);
crypto/heimdal/lib/krb5/pkinit.c
967
krb5_keyblock **key)
crypto/heimdal/lib/krb5/pkinit.c
991
*key = malloc (sizeof (**key));
crypto/heimdal/lib/krb5/pkinit.c
992
if (*key == NULL) {
crypto/heimdal/lib/krb5/pkinit.c
999
ret = copy_EncryptionKey(&key_pack.replyKey, *key);
crypto/heimdal/lib/krb5/plugin.c
547
search_modules(void *ctx, heim_object_t key, heim_object_t value)
crypto/heimdal/lib/krb5/rd_cred.c
278
copy_EncryptionKey (&kci->key, &creds->session);
crypto/heimdal/lib/krb5/rd_priv.c
48
krb5_keyblock *key;
crypto/heimdal/lib/krb5/rd_priv.c
83
key = auth_context->remote_subkey;
crypto/heimdal/lib/krb5/rd_priv.c
85
key = auth_context->local_subkey;
crypto/heimdal/lib/krb5/rd_priv.c
87
key = auth_context->keyblock;
crypto/heimdal/lib/krb5/rd_priv.c
89
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/rd_req.c
226
krb5_keyblock *key,
crypto/heimdal/lib/krb5/rd_req.c
232
ret = decrypt_tkt_enc_part (context, key, &ticket->enc_part, &t);
crypto/heimdal/lib/krb5/rd_req.c
279
krb5_keyblock *key;
crypto/heimdal/lib/krb5/rd_req.c
292
ret = krb5_auth_con_getkey(context, ac, &key);
crypto/heimdal/lib/krb5/rd_req.c
297
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/rd_req.c
309
krb5_free_keyblock(context, key);
crypto/heimdal/lib/krb5/rd_req.c
39
krb5_keyblock *key,
crypto/heimdal/lib/krb5/rd_req.c
397
&t->ticket.key,
crypto/heimdal/lib/krb5/rd_req.c
48
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/rd_req.c
482
ret = krb5_copy_keyblock(context, &t->ticket.key, &ac->keyblock);
crypto/heimdal/lib/krb5/rd_req.c
71
EncryptionKey *key,
crypto/heimdal/lib/krb5/rd_req.c
81
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/rd_safe.c
47
krb5_keyblock *key;
crypto/heimdal/lib/krb5/rd_safe.c
61
key = auth_context->remote_subkey;
crypto/heimdal/lib/krb5/rd_safe.c
63
key = auth_context->local_subkey;
crypto/heimdal/lib/krb5/rd_safe.c
65
key = auth_context->keyblock;
crypto/heimdal/lib/krb5/rd_safe.c
67
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/salt-aes.c
44
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt-aes.c
65
ALLOC(kd.key, 1);
crypto/heimdal/lib/krb5/salt-aes.c
66
if(kd.key == NULL) {
crypto/heimdal/lib/krb5/salt-aes.c
70
kd.key->keytype = enctype;
crypto/heimdal/lib/krb5/salt-aes.c
71
ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size);
crypto/heimdal/lib/krb5/salt-aes.c
80
et->keytype->size, kd.key->keyvalue.data);
crypto/heimdal/lib/krb5/salt-aes.c
90
ret = krb5_copy_keyblock_contents(context, kd.key, key);
crypto/heimdal/lib/krb5/salt-arcfour.c
42
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt-arcfour.c
89
key->keytype = enctype;
crypto/heimdal/lib/krb5/salt-arcfour.c
90
ret = krb5_data_alloc (&key->keyvalue, 16);
crypto/heimdal/lib/krb5/salt-arcfour.c
95
EVP_DigestFinal_ex (m, key->keyvalue.data, NULL);
crypto/heimdal/lib/krb5/salt-des.c
108
DES_cbc_cksum ((void*)password, key, passlen, &schedule, &ivec);
crypto/heimdal/lib/krb5/salt-des.c
114
DES_set_odd_parity (key);
crypto/heimdal/lib/krb5/salt-des.c
123
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt-des.c
130
key->keytype = enctype;
crypto/heimdal/lib/krb5/salt-des.c
131
krb5_data_copy(&key->keyvalue, tmp, sizeof(tmp));
crypto/heimdal/lib/krb5/salt-des.c
132
memset(&key, 0, sizeof(key));
crypto/heimdal/lib/krb5/salt-des.c
138
DES_string_to_key_int(unsigned char *data, size_t length, DES_cblock *key)
crypto/heimdal/lib/krb5/salt-des.c
147
memset(key, 0, 8);
crypto/heimdal/lib/krb5/salt-des.c
149
p = (unsigned char*)key;
crypto/heimdal/lib/krb5/salt-des.c
159
DES_set_odd_parity(key);
crypto/heimdal/lib/krb5/salt-des.c
160
if(DES_is_weak_key(key))
crypto/heimdal/lib/krb5/salt-des.c
161
(*key)[7] ^= 0xF0;
crypto/heimdal/lib/krb5/salt-des.c
162
DES_set_key_unchecked(key, &schedule);
crypto/heimdal/lib/krb5/salt-des.c
163
DES_cbc_cksum((void*)data, key, length, &schedule, key);
crypto/heimdal/lib/krb5/salt-des.c
165
DES_set_odd_parity(key);
crypto/heimdal/lib/krb5/salt-des.c
166
if(DES_is_weak_key(key))
crypto/heimdal/lib/krb5/salt-des.c
167
(*key)[7] ^= 0xF0;
crypto/heimdal/lib/krb5/salt-des.c
176
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt-des.c
188
salt, opaque, key);
crypto/heimdal/lib/krb5/salt-des.c
201
key->keytype = enctype;
crypto/heimdal/lib/krb5/salt-des.c
202
krb5_data_copy(&key->keyvalue, tmp, sizeof(tmp));
crypto/heimdal/lib/krb5/salt-des.c
52
DES_cblock *key)
crypto/heimdal/lib/krb5/salt-des.c
65
memcpy(key, crypt(password, "p1") + 2, sizeof(DES_cblock));
crypto/heimdal/lib/krb5/salt-des.c
71
((unsigned char*)key)[i] <<= 1;
crypto/heimdal/lib/krb5/salt-des.c
72
DES_set_odd_parity (key);
crypto/heimdal/lib/krb5/salt-des.c
81
DES_cblock *key)
crypto/heimdal/lib/krb5/salt-des3.c
108
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt-des3.c
125
key);
crypto/heimdal/lib/krb5/salt-des3.c
43
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt-des3.c
93
key->keytype = enctype;
crypto/heimdal/lib/krb5/salt-des3.c
94
krb5_data_copy(&key->keyvalue, keys, sizeof(keys));
crypto/heimdal/lib/krb5/salt.c
142
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt.c
150
ret = krb5_string_to_key_data_salt(context, enctype, password, salt, key);
crypto/heimdal/lib/krb5/salt.c
160
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt.c
165
return krb5_string_to_key_data(context, enctype, pw, principal, key);
crypto/heimdal/lib/krb5/salt.c
173
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt.c
178
salt, opaque, key);
crypto/heimdal/lib/krb5/salt.c
193
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt.c
207
salt, opaque, key);
crypto/heimdal/lib/krb5/salt.c
225
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt.c
230
return krb5_string_to_key_data_salt(context, enctype, pw, salt, key);
crypto/heimdal/lib/krb5/salt.c
239
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt.c
245
pw, salt, opaque, key);
crypto/heimdal/lib/krb5/salt.c
254
krb5_keyblock *key)
crypto/heimdal/lib/krb5/salt.c
270
ALLOC(kd.key, 1);
crypto/heimdal/lib/krb5/salt.c
271
if(kd.key == NULL) {
crypto/heimdal/lib/krb5/salt.c
276
ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size);
crypto/heimdal/lib/krb5/salt.c
278
free(kd.key);
crypto/heimdal/lib/krb5/salt.c
281
kd.key->keytype = etype;
crypto/heimdal/lib/krb5/salt.c
284
krb5_free_keyblock(context, kd.key);
crypto/heimdal/lib/krb5/salt.c
295
_krb5_DES3_random_to_key(context, kd.key, tmp, keylen);
crypto/heimdal/lib/krb5/salt.c
307
ret = krb5_copy_keyblock_contents(context, kd.key, key);
crypto/heimdal/lib/krb5/string-to-key-test.c
109
krb5_keyblock key;
crypto/heimdal/lib/krb5/string-to-key-test.c
118
principal, &key);
crypto/heimdal/lib/krb5/string-to-key-test.c
122
if (memcmp (key.keyvalue.data, t->res, key.keyvalue.length) != 0) {
crypto/heimdal/lib/krb5/string-to-key-test.c
123
const unsigned char *p = key.keyvalue.data;
crypto/heimdal/lib/krb5/string-to-key-test.c
128
for (i = 0; i < key.keyvalue.length; ++i)
crypto/heimdal/lib/krb5/string-to-key-test.c
131
for (i = 0; i < key.keyvalue.length; ++i)
crypto/heimdal/lib/krb5/string-to-key-test.c
136
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/test_crypto.c
115
opaque, &key);
crypto/heimdal/lib/krb5/test_crypto.c
118
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/test_crypto.c
43
krb5_keyblock key;
crypto/heimdal/lib/krb5/test_crypto.c
50
ret = krb5_generate_random_keyblock(context, etype, &key);
crypto/heimdal/lib/krb5/test_crypto.c
63
ret = krb5_crypto_init(context, &key, 0, &crypto);
crypto/heimdal/lib/krb5/test_crypto.c
87
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/test_crypto.c
99
krb5_keyblock key;
crypto/heimdal/lib/krb5/test_crypto_wrapping.c
45
krb5_keyblock key;
crypto/heimdal/lib/krb5/test_crypto_wrapping.c
52
ret = krb5_generate_random_keyblock(context, etype, &key);
crypto/heimdal/lib/krb5/test_crypto_wrapping.c
65
ret = krb5_crypto_init(context, &key, 0, &crypto);
crypto/heimdal/lib/krb5/test_crypto_wrapping.c
93
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/test_pkinit_dh2key.c
210
tests[i].type, &tests[i].key);
crypto/heimdal/lib/krb5/test_pkinit_dh2key.c
47
krb5_keyblock key;
crypto/heimdal/lib/krb5/test_pkinit_dh2key.c
54
&key);
crypto/heimdal/lib/krb5/test_pkinit_dh2key.c
58
if (key.keyvalue.length != result->length ||
crypto/heimdal/lib/krb5/test_pkinit_dh2key.c
59
memcmp(key.keyvalue.data, result->data, result->length) != 0)
crypto/heimdal/lib/krb5/test_pkinit_dh2key.c
62
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/test_pkinit_dh2key.c
69
krb5_data key;
crypto/heimdal/lib/krb5/test_prf.c
54
krb5_keyblock key;
crypto/heimdal/lib/krb5/test_prf.c
64
ret = krb5_generate_random_keyblock(context, etype, &key);
crypto/heimdal/lib/krb5/test_prf.c
72
ret = krb5_crypto_init(context, &key, 0, &crypto);
crypto/heimdal/lib/krb5/test_prf.c
95
krb5_free_keyblock_contents(context, &key);
crypto/heimdal/lib/krb5/ticket.c
361
&ticket->ticket.key, ad, 0);
crypto/heimdal/lib/krb5/ticket.c
380
krb5_keyblock * key)
crypto/heimdal/lib/krb5/ticket.c
416
ret = krb5_crypto_init(context, key, 0, &session);
crypto/heimdal/lib/krb5/ticket.c
512
krb5_keyblock const * key)
crypto/heimdal/lib/krb5/ticket.c
550
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/ticket.c
607
krb5_keyblock *key,
crypto/heimdal/lib/krb5/ticket.c
617
ret = krb5_crypto_init(context, key, 0, &crypto);
crypto/heimdal/lib/krb5/ticket.c
653
krb5_keyblock *key,
crypto/heimdal/lib/krb5/ticket.c
673
ret = (*decrypt_proc)(context, key, key_usage, decryptarg, rep);
crypto/heimdal/lib/krb5/ticket.c
681
creds->session.keytype = rep->enc_part.key.keytype;
crypto/heimdal/lib/krb5/ticket.c
683
rep->enc_part.key.keyvalue.data,
crypto/heimdal/lib/krb5/ticket.c
684
rep->enc_part.key.keyvalue.length);
crypto/heimdal/lib/krb5/ticket.c
847
memset (rep->enc_part.key.keyvalue.data, 0,
crypto/heimdal/lib/krb5/ticket.c
848
rep->enc_part.key.keyvalue.length);
crypto/heimdal/lib/ntlm/ntlm.c
1020
unsigned char key[8];
crypto/heimdal/lib/ntlm/ntlm.c
1022
key[0] = hash[0];
crypto/heimdal/lib/ntlm/ntlm.c
1023
key[1] = (hash[0] << 7) | (hash[1] >> 1);
crypto/heimdal/lib/ntlm/ntlm.c
1024
key[2] = (hash[1] << 6) | (hash[2] >> 2);
crypto/heimdal/lib/ntlm/ntlm.c
1025
key[3] = (hash[2] << 5) | (hash[3] >> 3);
crypto/heimdal/lib/ntlm/ntlm.c
1026
key[4] = (hash[3] << 4) | (hash[4] >> 4);
crypto/heimdal/lib/ntlm/ntlm.c
1027
key[5] = (hash[4] << 3) | (hash[5] >> 5);
crypto/heimdal/lib/ntlm/ntlm.c
1028
key[6] = (hash[5] << 2) | (hash[6] >> 6);
crypto/heimdal/lib/ntlm/ntlm.c
1029
key[7] = (hash[6] << 1);
crypto/heimdal/lib/ntlm/ntlm.c
1035
EVP_CipherInit_ex(ctx, EVP_des_cbc(), NULL, key, NULL, 1);
crypto/heimdal/lib/ntlm/ntlm.c
1038
memset(key, 0, sizeof(key));
crypto/heimdal/lib/ntlm/ntlm.c
1055
heim_ntlm_nt_key(const char *password, struct ntlm_buf *key)
crypto/heimdal/lib/ntlm/ntlm.c
1061
key->data = malloc(MD5_DIGEST_LENGTH);
crypto/heimdal/lib/ntlm/ntlm.c
1062
if (key->data == NULL)
crypto/heimdal/lib/ntlm/ntlm.c
1064
key->length = MD5_DIGEST_LENGTH;
crypto/heimdal/lib/ntlm/ntlm.c
1068
heim_ntlm_free_buf(key);
crypto/heimdal/lib/ntlm/ntlm.c
1074
heim_ntlm_free_buf(key);
crypto/heimdal/lib/ntlm/ntlm.c
1081
EVP_DigestFinal_ex(m, key->data, NULL);
crypto/heimdal/lib/ntlm/ntlm.c
1103
heim_ntlm_calculate_ntlm1(void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1113
memcpy(res, key, len);
crypto/heimdal/lib/ntlm/ntlm.c
1139
heim_ntlm_v1_base_session(void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1157
EVP_DigestUpdate(m, key, len);
crypto/heimdal/lib/ntlm/ntlm.c
1165
heim_ntlm_v2_base_session(void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1186
HMAC_Init_ex(c, key, len, EVP_md5(), NULL);
crypto/heimdal/lib/ntlm/ntlm.c
1265
heim_ntlm_build_ntlm1_master(void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1272
ret = heim_ntlm_v1_base_session(key, len, &sess);
crypto/heimdal/lib/ntlm/ntlm.c
1299
heim_ntlm_build_ntlm2_master(void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1307
ret = heim_ntlm_v2_base_session(key, len, blob, &sess);
crypto/heimdal/lib/ntlm/ntlm.c
1382
heim_ntlm_ntlmv2_key(const void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1394
HMAC_Init_ex(c, key, len, EVP_md5(), NULL);
crypto/heimdal/lib/ntlm/ntlm.c
1458
heim_ntlm_calculate_lm2(const void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1473
heim_ntlm_ntlmv2_key(key, len, username, target, ntlmv2);
crypto/heimdal/lib/ntlm/ntlm.c
1510
heim_ntlm_calculate_ntlm2(const void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1533
heim_ntlm_ntlmv2_key(key, len, username, target, ntlmv2);
crypto/heimdal/lib/ntlm/ntlm.c
1611
heim_ntlm_verify_ntlm2(const void *key, size_t len,
crypto/heimdal/lib/ntlm/ntlm.c
1641
heim_ntlm_ntlmv2_key(key, len, username, target, ntlmv2);
crypto/heimdal/lib/ntlm/test_ntlm.c
117
struct ntlm_buf key;
crypto/heimdal/lib/ntlm/test_ntlm.c
118
heim_ntlm_nt_key(password, &key);
crypto/heimdal/lib/ntlm/test_ntlm.c
120
heim_ntlm_calculate_ntlm1(key.data, key.length,
crypto/heimdal/lib/ntlm/test_ntlm.c
123
free(key.data);
crypto/heimdal/lib/ntlm/test_ntlm.c
190
struct ntlm_buf infotarget, infotarget2, answer, key;
crypto/heimdal/lib/ntlm/test_ntlm.c
206
heim_ntlm_nt_key(password, &key);
crypto/heimdal/lib/ntlm/test_ntlm.c
208
ret = heim_ntlm_calculate_ntlm2(key.data,
crypto/heimdal/lib/ntlm/test_ntlm.c
209
key.length,
crypto/heimdal/lib/ntlm/test_ntlm.c
219
ret = heim_ntlm_verify_ntlm2(key.data,
crypto/heimdal/lib/ntlm/test_ntlm.c
220
key.length,
crypto/heimdal/lib/ntlm/test_ntlm.c
240
free(key.data);
crypto/heimdal/lib/roken/getcap.c
620
DBT key;
crypto/heimdal/lib/roken/getcap.c
624
key.data = (char *)name;
crypto/heimdal/lib/roken/getcap.c
625
key.size = strlen(name);
crypto/heimdal/lib/roken/getcap.c
629
switch(capdbp->get(capdbp, &key, &data, 0)) {
crypto/heimdal/lib/roken/getcap.c
640
key.data = (char *)data.data + 1;
crypto/heimdal/lib/roken/getcap.c
641
key.size = data.size - 1;
crypto/heimdal/lib/roken/ndbm_wrap.c
100
&key, &value, 0) != 0) {
crypto/heimdal/lib/roken/ndbm_wrap.c
113
DBT key, value;
crypto/heimdal/lib/roken/ndbm_wrap.c
118
if(cursor->c_get(cursor, &key, &value, flags) != 0) {
crypto/heimdal/lib/roken/ndbm_wrap.c
124
db->seq(db, &key, &value, flags);
crypto/heimdal/lib/roken/ndbm_wrap.c
198
DBT key, value;
crypto/heimdal/lib/roken/ndbm_wrap.c
202
DATUM2DBT(&dkey, &key);
crypto/heimdal/lib/roken/ndbm_wrap.c
208
&key, &value, myflags);
crypto/heimdal/lib/roken/ndbm_wrap.c
81
DBT key;
crypto/heimdal/lib/roken/ndbm_wrap.c
82
DATUM2DBT(&dkey, &key);
crypto/heimdal/lib/roken/ndbm_wrap.c
84
RETURN(D(db)->del(D(db), NULL, &key, 0));
crypto/heimdal/lib/roken/ndbm_wrap.c
86
RETURN(D(db)->del(D(db), &key, 0));
crypto/heimdal/lib/roken/ndbm_wrap.c
94
DBT key, value;
crypto/heimdal/lib/roken/ndbm_wrap.c
95
DATUM2DBT(&dkey, &key);
crypto/heimdal/lib/roken/resolve-test.c
145
struct rk_key_record *key = rr->u.key;
crypto/heimdal/lib/roken/resolve-test.c
148
key->flags, key->protocol, key->algorithm);
crypto/heimdal/lib/roken/resolve.c
262
rr->u.key = malloc (sizeof(*rr->u.key) + key_len - 1);
crypto/heimdal/lib/roken/resolve.c
263
if (rr->u.key == NULL) {
crypto/heimdal/lib/roken/resolve.c
268
rr->u.key->flags = (p[0] << 8) | p[1];
crypto/heimdal/lib/roken/resolve.c
269
rr->u.key->protocol = p[2];
crypto/heimdal/lib/roken/resolve.c
270
rr->u.key->algorithm = p[3];
crypto/heimdal/lib/roken/resolve.c
271
rr->u.key->key_len = key_len;
crypto/heimdal/lib/roken/resolve.c
272
memcpy (rr->u.key->key_data, p + 4, key_len);
crypto/heimdal/lib/roken/resolve.c
71
DECL(key),
crypto/heimdal/lib/roken/resolve.c
795
rr->u.key = malloc (sizeof(*rr->u.key) + key_len - 1);
crypto/heimdal/lib/roken/resolve.c
796
if (rr->u.key == NULL) {
crypto/heimdal/lib/roken/resolve.c
801
rr->u.key->flags = pRec->Data.KEY.wFlags;
crypto/heimdal/lib/roken/resolve.c
802
rr->u.key->protocol = pRec->Data.KEY.chProtocol;
crypto/heimdal/lib/roken/resolve.c
803
rr->u.key->algorithm = pRec->Data.KEY.chAlgorithm;
crypto/heimdal/lib/roken/resolve.c
804
rr->u.key->key_len = key_len;
crypto/heimdal/lib/roken/resolve.c
805
memcpy_s (rr->u.key->key_data, key_len,
crypto/heimdal/lib/roken/resolve.h
196
struct rk_key_record *key;
crypto/heimdal/lib/roken/tsearch.c
126
while ((cmp = (*compar)(vkey, (*rootp)->key)) != 0) {
crypto/heimdal/lib/roken/tsearch.c
173
if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */
crypto/heimdal/lib/roken/tsearch.c
23
char *key;
crypto/heimdal/lib/roken/tsearch.c
52
if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */
crypto/heimdal/lib/roken/tsearch.c
64
q->key = __DECONST(void *, vkey); /* initialize new node */
crypto/heimdal/lib/wind/combining.c
41
translation_cmp(const void *key, const void *data)
crypto/heimdal/lib/wind/combining.c
43
const struct translation *t1 = (const struct translation *)key;
crypto/heimdal/lib/wind/combining.c
46
return t1->key - t2->key;
crypto/heimdal/lib/wind/combining_table.h
10
uint32_t key;
crypto/heimdal/lib/wind/map.c
44
translation_cmp(const void *key, const void *data)
crypto/heimdal/lib/wind/map.c
46
const struct translation *t1 = (const struct translation *)key;
crypto/heimdal/lib/wind/map.c
49
return t1->key - t2->key;
crypto/heimdal/lib/wind/map_table.h
10
uint32_t key;
crypto/heimdal/lib/wind/normalize.c
49
translation_cmp(const void *key, const void *data)
crypto/heimdal/lib/wind/normalize.c
51
const struct translation *t1 = (const struct translation *)key;
crypto/heimdal/lib/wind/normalize.c
54
return t1->key - t2->key;
crypto/heimdal/lib/wind/normalize_table.h
12
uint32_t key;
crypto/krb5/src/clients/klist/klist.c
337
printf(" (%s) " , etype_string(entry.key.enctype));
crypto/krb5/src/clients/klist/klist.c
340
for (i = 0; i < entry.key.length; i++)
crypto/krb5/src/clients/klist/klist.c
341
printf("%02x", entry.key.contents[i]);
crypto/krb5/src/include/k5-hashtab.h
69
int k5_hashtab_add(struct k5_hashtab *ht, const void *key, size_t klen,
crypto/krb5/src/include/k5-hashtab.h
74
int k5_hashtab_remove(struct k5_hashtab *ht, const void *key, size_t klen);
crypto/krb5/src/include/k5-hashtab.h
77
void *k5_hashtab_get(struct k5_hashtab *ht, const void *key, size_t klen);
crypto/krb5/src/include/k5-int-pkinit.h
207
krb5_encrypt_helper(krb5_context context, const krb5_keyblock *key,
crypto/krb5/src/include/k5-int.h
2410
k5_hmac_md5(const krb5_data *key, const krb5_crypto_iov *data, size_t num_data,
crypto/krb5/src/include/k5-int.h
691
void krb5int_c_free_keyblock(krb5_context, krb5_keyblock *key);
crypto/krb5/src/include/k5-int.h
959
const krb5_keyblock *key, krb5_authdata ***adata_out);
crypto/krb5/src/include/k5-json.h
161
typedef void (*k5_json_object_iterator_fn)(void *arg, const char *key,
crypto/krb5/src/include/k5-json.h
176
int k5_json_object_set(k5_json_object obj, const char *key, k5_json_value val);
crypto/krb5/src/include/k5-json.h
180
k5_json_value k5_json_object_get(k5_json_object obj, const char *key);
crypto/krb5/src/include/k5-trace.h
115
#define TRACE_CC_GET_CONFIG(c, cache, princ, key, data) \
crypto/krb5/src/include/k5-trace.h
117
cache, princ, key, data)
crypto/krb5/src/include/k5-trace.h
132
#define TRACE_CC_SET_CONFIG(c, cache, princ, key, data) \
crypto/krb5/src/include/k5-trace.h
134
cache, princ, key, data)
crypto/krb5/src/include/kdb.h
1187
krb5_keyblock *key, krb5_kvno *kvno,
crypto/krb5/src/include/kdb.h
1206
const krb5_keyblock *key,
crypto/krb5/src/include/kdb.h
157
char *key;
crypto/krb5/src/include/kdb.h
410
krb5_keyblock *key,
crypto/krb5/src/include/kdb.h
424
krb5_keyblock *key);
crypto/krb5/src/include/kdb.h
596
const char *key, char **value_out);
crypto/krb5/src/include/kdb.h
601
const char *key, const char *value);
crypto/krb5/src/include/kdb.h
621
krb5_dbe_compute_salt(krb5_context context, const krb5_key_data *key,
crypto/krb5/src/include/kdb.h
760
krb5_keyblock *key,
crypto/krb5/src/include/krb5/authdata_plugin.h
159
const krb5_keyblock *key,
crypto/krb5/src/include/krb5/clpreauth_plugin.h
152
krb5_clpreauth_rock rock, const char *key);
crypto/krb5/src/include/krb5/clpreauth_plugin.h
161
const char *key, const char *data);
crypto/krb5/src/include/krb5/kadm5_auth_plugin.h
152
const char *key, const char *value);
crypto/krb5/src/include/krb5/kdcpreauth_plugin.h
159
krb5_kdcpreauth_rock rock, const char *key,
crypto/krb5/src/include/krb5/kdcpreauth_plugin.h
269
const krb5_keyblock *key,
crypto/krb5/src/kadmin/cli/kadmin.c
1960
printf("%s: %s\n", strings[i].key, strings[i].value);
crypto/krb5/src/kadmin/cli/kadmin.c
1973
char *pname, *canon = NULL, *key, *value;
crypto/krb5/src/kadmin/cli/kadmin.c
1981
key = argv[2];
crypto/krb5/src/kadmin/cli/kadmin.c
1996
retval = kadm5_set_string(handle, princ, key, value);
crypto/krb5/src/kadmin/cli/kadmin.c
2014
char *pname, *canon = NULL, *key;
crypto/krb5/src/kadmin/cli/kadmin.c
2022
key = argv[2];
crypto/krb5/src/kadmin/cli/kadmin.c
2036
retval = kadm5_set_string(handle, princ, key, NULL);
crypto/krb5/src/kadmin/cli/kadmin.c
258
int n_ks, krb5_key_salt_tuple *ks, krb5_keyblock **key,
crypto/krb5/src/kadmin/cli/kadmin.c
265
ret = kadm5_randkey_principal_3(lhandle, princ, keepold, n_ks, ks, key,
crypto/krb5/src/kadmin/cli/kadmin.c
271
ret = kadm5_randkey_principal(lhandle, princ, key, n_keys);
crypto/krb5/src/kadmin/cli/kadmin.h
81
int n_ks, krb5_key_salt_tuple *ks, krb5_keyblock **key,
crypto/krb5/src/kadmin/cli/keytab.c
281
key_data[i].key = keys[i];
crypto/krb5/src/kadmin/cli/keytab.c
338
new_entry.key = key_data[i].key;
crypto/krb5/src/kadmin/cli/keytab.c
351
etype_string(key_data[i].key.enctype), keytab_str);
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
238
rblock.key = &master_keyblock;
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
344
krb5_keyblock key;
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
366
&key))) {
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
367
kret = krb5_dbe_encrypt_key_data(context, iargs->rblock->key,
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
368
&key, NULL, 1,
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
370
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
421
if ((retval = krb5_dbe_encrypt_key_data(context, pblock->key,
crypto/krb5/src/kadmin/dbutil/kdb5_create.c
74
krb5_keyblock *key;
crypto/krb5/src/kadmin/dbutil/tabdump.c
536
if (writefield(h, "%s", attrs[i].key) < 0) {
crypto/krb5/src/kadmin/ktutil/ktutil.c
253
if ((retval = krb5_enctype_to_name(lp->entry->key.enctype, FALSE,
crypto/krb5/src/kadmin/ktutil/ktutil.c
265
for (j = 0; j < lp->entry->key.length; j++)
crypto/krb5/src/kadmin/ktutil/ktutil.c
266
printf("%02x", lp->entry->key.contents[j]);
crypto/krb5/src/kadmin/ktutil/ktutil_funcs.c
151
krb5_keyblock key;
crypto/krb5/src/kadmin/ktutil/ktutil_funcs.c
200
&salt, s2kparams, &key);
crypto/krb5/src/kadmin/ktutil/ktutil_funcs.c
203
entry->key = key;
crypto/krb5/src/kadmin/ktutil/ktutil_funcs.c
231
entry->key.enctype = enctype;
crypto/krb5/src/kadmin/ktutil/ktutil_funcs.c
232
entry->key.contents = keybytes;
crypto/krb5/src/kadmin/ktutil/ktutil_funcs.c
233
entry->key.length = keylen;
crypto/krb5/src/kadmin/server/auth_acl.c
597
const char *key, const char *value)
crypto/krb5/src/kadmin/server/server_stubs.c
1593
arg->key, arg->value)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1599
arg->key, arg->value);
crypto/krb5/src/kdc/cammac.c
141
krb5_keyblock tgtkey, *key;
crypto/krb5/src/kdc/cammac.c
153
key = tgt_key;
crypto/krb5/src/kdc/cammac.c
159
key = &tgtkey;
crypto/krb5/src/kdc/cammac.c
168
(void)krb5_c_verify_checksum(context, key, KRB5_KEYUSAGE_CAMMAC,
crypto/krb5/src/kdc/do_tgs_req.c
266
krb5_keyblock *key = NULL;
crypto/krb5/src/kdc/do_tgs_req.c
280
retval = kdc_get_server_key(context, stkt, flags, TRUE, &server, &key,
crypto/krb5/src/kdc/do_tgs_req.c
286
retval = krb5_decrypt_tkt_part(context, key, stkt);
crypto/krb5/src/kdc/do_tgs_req.c
291
retval = get_verified_pac(context, stkt->enc_part2, server, key, local_tgt,
crypto/krb5/src/kdc/do_tgs_req.c
299
*key_out = key;
crypto/krb5/src/kdc/do_tgs_req.c
301
key = NULL;
crypto/krb5/src/kdc/do_tgs_req.c
305
krb5_free_keyblock(context, key);
crypto/krb5/src/kdc/fast_util.c
500
krb5_keyblock storage, *key;
crypto/krb5/src/kdc/fast_util.c
508
key = tgt_key;
crypto/krb5/src/kdc/fast_util.c
517
key = &storage;
crypto/krb5/src/kdc/fast_util.c
520
ret = derive_cookie_key(context, key, client_princ, key_out);
crypto/krb5/src/kdc/fast_util.c
553
krb5_keyblock *key = NULL;
crypto/krb5/src/kdc/fast_util.c
571
&key);
crypto/krb5/src/kdc/fast_util.c
577
enc.enctype = key->enctype;
crypto/krb5/src/kdc/fast_util.c
582
ret = krb5_c_decrypt(context, key, KRB5_KEYUSAGE_PA_FX_COOKIE, NULL, &enc,
crypto/krb5/src/kdc/fast_util.c
608
krb5_free_keyblock(context, key);
crypto/krb5/src/kdc/fast_util.c
664
krb5_keyblock *key = NULL;
crypto/krb5/src/kdc/fast_util.c
678
ret = derive_cookie_key(context, local_tgt_key, client_princ, &key);
crypto/krb5/src/kdc/fast_util.c
693
ret = krb5_c_encrypt_length(context, key->enctype, der_cookie->length,
crypto/krb5/src/kdc/fast_util.c
700
ret = krb5_c_encrypt(context, key, KRB5_KEYUSAGE_PA_FX_COOKIE, NULL,
crypto/krb5/src/kdc/fast_util.c
714
krb5_free_keyblock(context, key);
crypto/krb5/src/kdc/kdc_preauth.c
358
krb5_keyblock *keys, key;
crypto/krb5/src/kdc/kdc_preauth.c
373
&key, NULL) != 0)
crypto/krb5/src/kdc/kdc_preauth.c
375
keys[k++] = key;
crypto/krb5/src/kdc/kdc_preauth.c
410
get_string(krb5_context context, krb5_kdcpreauth_rock rock, const char *key,
crypto/krb5/src/kdc/kdc_preauth.c
413
return krb5_dbe_get_string(context, rock->client, key, value_out);
crypto/krb5/src/kdc/kdc_preauth.c
569
const krb5_keyblock *key, krb5_boolean is_strengthen)
crypto/krb5/src/kdc/kdc_preauth.c
573
if (krb5_copy_keyblock_contents(context, key, ©) != 0)
crypto/krb5/src/kdc/kdc_preauth_encts.c
58
krb5_keyblock key;
crypto/krb5/src/kdc/kdc_preauth_encts.c
82
&key, NULL)))
crypto/krb5/src/kdc/kdc_preauth_encts.c
85
key.enctype = enc_data->enctype;
crypto/krb5/src/kdc/kdc_preauth_encts.c
87
retval = krb5_c_decrypt(context, &key, KRB5_KEYUSAGE_AS_REQ_PA_ENC_TS,
crypto/krb5/src/kdc/kdc_preauth_encts.c
89
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/kdc/kdc_util.c
1234
krb5_keyblock *key,
crypto/krb5/src/kdc/kdc_util.c
1290
key,
crypto/krb5/src/kdc/kdc_util.c
1348
krb5_keyblock *key,
crypto/krb5/src/kdc/kdc_util.c
1357
if (enctype_requires_etype_info_2(key->enctype) &&
crypto/krb5/src/kdc/kdc_util.c
1373
key,
crypto/krb5/src/kdc/kdc_util.c
1389
key,
crypto/krb5/src/kdc/kdc_util.c
363
krb5_keyblock **key, krb5_kvno *kvno)
crypto/krb5/src/kdc/kdc_util.c
396
if (key) {
crypto/krb5/src/kdc/kdc_util.c
398
key, kvno);
crypto/krb5/src/kdc/kdc_util.c
423
krb5_keyblock * key;
crypto/krb5/src/kdc/kdc_util.c
432
if ((key = (krb5_keyblock *)malloc(sizeof *key)) == NULL)
crypto/krb5/src/kdc/kdc_util.c
435
key, NULL);
crypto/krb5/src/kdc/kdc_util.c
440
retval = krb5_c_enctype_compare(context, enctype, key->enctype,
crypto/krb5/src/kdc/kdc_util.c
448
key->enctype = enctype;
crypto/krb5/src/kdc/kdc_util.c
450
*key_out = key;
crypto/krb5/src/kdc/kdc_util.c
451
key = NULL;
crypto/krb5/src/kdc/kdc_util.c
455
krb5_free_keyblock(context, key);
crypto/krb5/src/lib/crypto/builtin/aes/aes-gen.c
12
uint8_t key[16] = { 0x46, 0x64, 0x31, 0x29, 0x64, 0x86, 0xED, 0x9C,
crypto/krb5/src/lib/crypto/builtin/aes/aes-gen.c
267
hexdump (key, sizeof(key));
crypto/krb5/src/lib/crypto/builtin/aes/aes-gen.c
62
r = aes_encrypt_key128(key, &ctx);
crypto/krb5/src/lib/crypto/builtin/aes/aes-gen.c
64
r = aes_decrypt_key128(key, &dctx);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
135
AES_RETURN aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
139
AES_RETURN aes_encrypt_key192(const unsigned char *key, aes_encrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
143
AES_RETURN aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
147
AES_RETURN aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
157
AES_RETURN aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
161
AES_RETURN aes_decrypt_key192(const unsigned char *key, aes_decrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
165
AES_RETURN aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
169
AES_RETURN aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]);
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
264
unsigned char *key,
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
271
unsigned char *key,
crypto/krb5/src/lib/crypto/builtin/aes/aes.h
279
const unsigned char *key,
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
141
AES_RETURN aes_xi(encrypt_key192)(const unsigned char *key, aes_encrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
144
cx->ks[0] = ss[0] = word_in(key, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
145
cx->ks[1] = ss[1] = word_in(key, 1);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
146
cx->ks[2] = ss[2] = word_in(key, 2);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
147
cx->ks[3] = ss[3] = word_in(key, 3);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
148
cx->ks[4] = ss[4] = word_in(key, 4);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
149
cx->ks[5] = ss[5] = word_in(key, 5);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
193
AES_RETURN aes_xi(encrypt_key256)(const unsigned char *key, aes_encrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
196
cx->ks[0] = ss[0] = word_in(key, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
197
cx->ks[1] = ss[1] = word_in(key, 1);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
198
cx->ks[2] = ss[2] = word_in(key, 2);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
199
cx->ks[3] = ss[3] = word_in(key, 3);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
200
cx->ks[4] = ss[4] = word_in(key, 4);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
201
cx->ks[5] = ss[5] = word_in(key, 5);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
202
cx->ks[6] = ss[6] = word_in(key, 6);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
203
cx->ks[7] = ss[7] = word_in(key, 7);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
317
AES_RETURN aes_xi(decrypt_key128)(const unsigned char *key, aes_decrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
323
cx->ks[v(40,(0))] = ss[0] = word_in(key, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
324
cx->ks[v(40,(1))] = ss[1] = word_in(key, 1);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
325
cx->ks[v(40,(2))] = ss[2] = word_in(key, 2);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
326
cx->ks[v(40,(3))] = ss[3] = word_in(key, 3);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
398
AES_RETURN aes_xi(decrypt_key192)(const unsigned char *key, aes_decrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
404
cx->ks[v(48,(0))] = ss[0] = word_in(key, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
405
cx->ks[v(48,(1))] = ss[1] = word_in(key, 1);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
406
cx->ks[v(48,(2))] = ss[2] = word_in(key, 2);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
407
cx->ks[v(48,(3))] = ss[3] = word_in(key, 3);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
410
ss[4] = word_in(key, 4);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
411
ss[5] = word_in(key, 5);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
419
cx->ks[v(48,(4))] = ss[4] = word_in(key, 4);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
420
cx->ks[v(48,(5))] = ss[5] = word_in(key, 5);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
493
AES_RETURN aes_xi(decrypt_key256)(const unsigned char *key, aes_decrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
499
cx->ks[v(56,(0))] = ss[0] = word_in(key, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
500
cx->ks[v(56,(1))] = ss[1] = word_in(key, 1);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
501
cx->ks[v(56,(2))] = ss[2] = word_in(key, 2);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
502
cx->ks[v(56,(3))] = ss[3] = word_in(key, 3);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
505
ss[4] = word_in(key, 4);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
506
ss[5] = word_in(key, 5);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
507
ss[6] = word_in(key, 6);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
508
ss[7] = word_in(key, 7);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
518
cx->ks[v(56,(4))] = ss[4] = word_in(key, 4);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
519
cx->ks[v(56,(5))] = ss[5] = word_in(key, 5);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
520
cx->ks[v(56,(6))] = ss[6] = word_in(key, 6);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
521
cx->ks[v(56,(7))] = ss[7] = word_in(key, 7);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
550
AES_RETURN aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
554
case 16: case 128: return aes_encrypt_key128(key, cx);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
555
case 24: case 192: return aes_encrypt_key192(key, cx);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
556
case 32: case 256: return aes_encrypt_key256(key, cx);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
561
AES_RETURN aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
565
case 16: case 128: return aes_decrypt_key128(key, cx);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
566
case 24: case 192: return aes_decrypt_key192(key, cx);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
567
case 32: case 256: return aes_decrypt_key256(key, cx);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
92
AES_RETURN aes_xi(encrypt_key128)(const unsigned char *key, aes_encrypt_ctx cx[1])
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
95
cx->ks[0] = ss[0] = word_in(key, 0);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
96
cx->ks[1] = ss[1] = word_in(key, 1);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
97
cx->ks[2] = ss[2] = word_in(key, 2);
crypto/krb5/src/lib/crypto/builtin/aes/aeskey.c
98
cx->ks[3] = ss[3] = word_in(key, 3);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
12
unsigned char key[16];
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
247
hexdump (key, sizeof(key));
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
30
key[i] = 0xff & rand();
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
37
r = camellia_enc_key (key, sizeof(key), &ctx);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
39
r = camellia_dec_key (key, sizeof(key), &dctx);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
455
camellia_setup128(const unsigned char *key, u32 *subkey)
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
466
kll = GETU32(key );
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
467
klr = GETU32(key + 4);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
468
krl = GETU32(key + 8);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
469
krr = GETU32(key + 12);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
667
camellia_setup256(const unsigned char *key, u32 *subkey)
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
681
kll = GETU32(key );
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
682
klr = GETU32(key + 4);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
683
krl = GETU32(key + 8);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
684
krr = GETU32(key + 12);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
685
krll = GETU32(key + 16);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
686
krlr = GETU32(key + 20);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
687
krrl = GETU32(key + 24);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
688
krrr = GETU32(key + 28);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
954
camellia_setup192(const unsigned char *key, u32 *subkey)
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
959
memcpy(kk, key, 24);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
960
memcpy((unsigned char *)&krll, key+16,4);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.c
961
memcpy((unsigned char *)&krlr, key+20,4);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.h
63
void camellia_setup128(const unsigned char *key, u32 *subkey);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.h
64
void camellia_setup192(const unsigned char *key, u32 *subkey);
crypto/krb5/src/lib/crypto/builtin/camellia/camellia.h
65
void camellia_setup256(const unsigned char *key, u32 *subkey);
crypto/krb5/src/lib/crypto/builtin/cmac.c
126
krb5int_cmac_checksum(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/builtin/cmac.c
148
ret = generate_subkey(enc, key, K1, K2);
crypto/krb5/src/lib/crypto/builtin/cmac.c
175
ret = enc->cbc_mac(key, iov, 1, &d, &d);
crypto/krb5/src/lib/crypto/builtin/cmac.c
192
ret = enc->cbc_mac(key, iov, 1, &d, &d);
crypto/krb5/src/lib/crypto/builtin/cmac.c
68
krb5_key key,
crypto/krb5/src/lib/crypto/builtin/cmac.c
80
ret = encrypt_block(enc, key, &d);
crypto/krb5/src/lib/crypto/builtin/des/des_int.h
260
int mit_des3_key_sched(mit_des3_cblock key, mit_des3_key_schedule schedule);
crypto/krb5/src/lib/crypto/builtin/des/destest.c
172
mit_des_is_weak_key(mit_des_cblock key)
crypto/krb5/src/lib/crypto/builtin/des/destest.c
203
mit_des_check_key_parity(mit_des_cblock key)
crypto/krb5/src/lib/crypto/builtin/des/destest.c
208
if ((key[i] & 1) == parity_char(0xfe&key[i])) {
crypto/krb5/src/lib/crypto/builtin/des/destest.c
210
des_cblock_print_file(key, stdout);
crypto/krb5/src/lib/crypto/builtin/des/destest.c
221
mit_des_fixup_key_parity(mit_des_cblock key)
crypto/krb5/src/lib/crypto/builtin/des/destest.c
226
key[i] &= 0xfe;
crypto/krb5/src/lib/crypto/builtin/des/destest.c
227
key[i] |= 1^parity_char(key[i]);
crypto/krb5/src/lib/crypto/builtin/des/destest.c
74
unsigned char *key = ioblocks+27;
crypto/krb5/src/lib/crypto/builtin/des/destest.c
82
convert(block1, key);
crypto/krb5/src/lib/crypto/builtin/des/destest.c
86
retval = mit_des_key_sched(key, sched);
crypto/krb5/src/lib/crypto/builtin/des/f_parity.c
27
mit_des_fixup_key_parity(mit_des_cblock key)
crypto/krb5/src/lib/crypto/builtin/des/f_parity.c
32
key[i] &= 0xfe;
crypto/krb5/src/lib/crypto/builtin/des/f_parity.c
33
key[i] |= 1^parity_char(key[i]);
crypto/krb5/src/lib/crypto/builtin/des/f_parity.c
49
mit_des_check_key_parity(mit_des_cblock key)
crypto/krb5/src/lib/crypto/builtin/des/f_parity.c
55
if((key[i] & 1) == parity_char(0xfe&key[i]))
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
244
mit_des_make_key_sched(mit_des_cblock key, mit_des_key_schedule schedule)
crypto/krb5/src/lib/crypto/builtin/des/f_sched.c
258
k = key;
crypto/krb5/src/lib/crypto/builtin/des/t_verify.c
385
mit_des_is_weak_key(mit_des_cblock key)
crypto/krb5/src/lib/crypto/builtin/des/weak_key.c
77
mit_des_is_weak_key(mit_des_cblock key)
crypto/krb5/src/lib/crypto/builtin/des/weak_key.c
83
if (!memcmp(weak_p++,key,sizeof(mit_des_cblock)))
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
100
struct aes_key_info_cache *cache = CACHE(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
102
if (key->keyblock.length == 16)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
103
k5_iDecExpandKey128(key->keyblock.contents, cache->dec_ctx.ks);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
105
k5_iDecExpandKey256(key->keyblock.contents, cache->dec_ctx.ks);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
110
aesni_enc(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
112
struct aes_key_info_cache *cache = CACHE(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
120
if (key->keyblock.length == 16)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
127
aesni_dec(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
129
struct aes_key_info_cache *cache = CACHE(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
137
if (key->keyblock.length == 16)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
146
#define aesni_supported(key) FALSE
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
147
#define aesni_expand_enc_key(key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
148
#define aesni_expand_dec_key(key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
149
#define aesni_enc(key, data, nblocks, iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
150
#define aesni_dec(key, data, nblocks, iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
165
init_key_cache(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
167
if (key->cache != NULL)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
169
key->cache = malloc(sizeof(struct aes_key_info_cache));
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
170
if (key->cache == NULL)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
172
CACHE(key)->enc_ctx.inf.l = CACHE(key)->dec_ctx.inf.l = 0;
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
173
CACHE(key)->aesni = aesni_supported_by_cpu();
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
178
expand_enc_key(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
180
if (CACHE(key)->enc_ctx.inf.l != 0)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
182
if (aesni_supported(key))
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
183
aesni_expand_enc_key(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
184
else if (aes_encrypt_key(key->keyblock.contents, key->keyblock.length,
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
185
&CACHE(key)->enc_ctx) != EXIT_SUCCESS)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
190
expand_dec_key(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
192
if (CACHE(key)->dec_ctx.inf.l != 0)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
194
if (aesni_supported(key))
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
195
aesni_expand_dec_key(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
196
else if (aes_decrypt_key(key->keyblock.contents, key->keyblock.length,
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
197
&CACHE(key)->dec_ctx) != EXIT_SUCCESS)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
203
cbc_enc(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
205
if (aesni_supported(key)) {
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
206
aesni_enc(key, data, nblocks, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
211
if (aes_encrypt(data, data, &CACHE(key)->enc_ctx) != EXIT_SUCCESS)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
219
cbc_dec(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
223
if (aesni_supported(key)) {
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
224
aesni_dec(key, data, nblocks, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
231
if (aes_decrypt(data, data, &CACHE(key)->dec_ctx) != EXIT_SUCCESS)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
239
krb5int_aes_encrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
247
if (init_key_cache(key))
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
249
expand_enc_key(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
258
cbc_enc(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
274
cbc_enc(key, iov_cursor_ptr(&cursor), ncontig, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
279
cbc_enc(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
289
cbc_enc(key, blockN2, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
290
cbc_enc(key, blockN1, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
301
krb5int_aes_decrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
310
if (init_key_cache(key))
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
312
expand_dec_key(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
322
cbc_dec(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
338
cbc_dec(key, iov_cursor_ptr(&cursor), ncontig, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
343
cbc_dec(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
358
cbc_dec(key, blockN2, 1, dummy_iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
363
cbc_dec(key, blockN1, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
373
aes_init_state(const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
385
aes_key_cleanup(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
387
zapfree(key->cache, sizeof(struct aes_key_info_cache));
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
61
void k5_iEncExpandKey128(unsigned char *key, uint32_t *expanded_key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
62
void k5_iEncExpandKey256(unsigned char *key, uint32_t *expanded_key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
63
void k5_iDecExpandKey256(unsigned char *key, uint32_t *expanded_key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
64
void k5_iDecExpandKey128(unsigned char *key, uint32_t *expanded_key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
80
aesni_supported(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
82
return CACHE(key)->aesni;
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
86
aesni_expand_enc_key(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
88
struct aes_key_info_cache *cache = CACHE(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
90
if (key->keyblock.length == 16)
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
91
k5_iEncExpandKey128(key->keyblock.contents, cache->enc_ctx.ks);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
93
k5_iEncExpandKey256(key->keyblock.contents, cache->enc_ctx.ks);
crypto/krb5/src/lib/crypto/builtin/enc_provider/aes.c
98
aesni_expand_dec_key(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
100
cbc_dec(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
108
if (camellia_dec_blk(data, data, &CACHE(key)->dec_ctx) !=
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
117
krb5int_camellia_encrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
125
if (init_key_cache(key))
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
127
expand_enc_key(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
136
cbc_enc(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
152
cbc_enc(key, iov_cursor_ptr(&cursor), ncontig, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
157
cbc_enc(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
167
cbc_enc(key, blockN2, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
168
cbc_enc(key, blockN1, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
179
krb5int_camellia_decrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
187
if (init_key_cache(key))
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
189
expand_dec_key(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
199
cbc_dec(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
215
cbc_dec(key, iov_cursor_ptr(&cursor), ncontig, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
220
cbc_dec(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
235
cbc_dec(key, blockN2, 1, dummy_iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
240
cbc_dec(key, blockN1, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
250
krb5int_camellia_cbc_mac(krb5_key key, const krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
260
if (init_key_cache(key))
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
262
expand_enc_key(key);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
271
cbc_enc(key, block, 1, iv);
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
280
camellia_init_state(const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
292
camellia_key_cleanup(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
294
zapfree(key->cache, sizeof(struct camellia_key_info_cache));
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
54
init_key_cache(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
56
if (key->cache != NULL)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
58
key->cache = malloc(sizeof(struct camellia_key_info_cache));
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
59
if (key->cache == NULL)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
61
CACHE(key)->enc_ctx.keybitlen = CACHE(key)->dec_ctx.keybitlen = 0;
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
66
expand_enc_key(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
68
if (CACHE(key)->enc_ctx.keybitlen)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
70
if (camellia_enc_key(key->keyblock.contents, key->keyblock.length,
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
71
&CACHE(key)->enc_ctx) != camellia_good)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
76
expand_dec_key(krb5_key key)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
78
if (CACHE(key)->dec_ctx.keybitlen)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
80
if (camellia_dec_key(key->keyblock.contents, key->keyblock.length,
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
81
&CACHE(key)->dec_ctx) != camellia_good)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
87
cbc_enc(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv)
crypto/krb5/src/lib/crypto/builtin/enc_provider/camellia.c
91
if (camellia_enc_blk(data, data, &CACHE(key)->enc_ctx) !=
crypto/krb5/src/lib/crypto/builtin/enc_provider/des3.c
34
validate_and_schedule(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/builtin/enc_provider/des3.c
38
if (key->keyblock.length != 24)
crypto/krb5/src/lib/crypto/builtin/enc_provider/des3.c
45
switch (mit_des3_key_sched(*(mit_des3_cblock *)key->keyblock.contents,
crypto/krb5/src/lib/crypto/builtin/enc_provider/des3.c
56
k5_des3_encrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/builtin/enc_provider/des3.c
62
err = validate_and_schedule(key, ivec, data, num_data, &schedule);
crypto/krb5/src/lib/crypto/builtin/enc_provider/des3.c
78
k5_des3_decrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/builtin/enc_provider/des3.c
84
err = validate_and_schedule(key, ivec, data, num_data, &schedule);
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
104
k5_arcfour_docrypt(krb5_key key, const krb5_data *state, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
112
if (key->keyblock.length != 16)
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
121
ret = k5_arcfour_init(arcfour_ctx, key->keyblock.contents,
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
122
key->keyblock.length);
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
133
ret = k5_arcfour_init(arcfour_ctx, key->keyblock.contents,
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
134
key->keyblock.length);
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
156
k5_arcfour_init_state (const krb5_keyblock *key,
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
34
static krb5_error_code k5_arcfour_init(ArcfourContext *ctx, const unsigned char *key,
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
70
k5_arcfour_init(ArcfourContext *ctx, const unsigned char *key,
crypto/krb5/src/lib/crypto/builtin/enc_provider/rc4.c
92
stateindex = (stateindex + key[keyindex] + t) & 0xff;
crypto/krb5/src/lib/crypto/builtin/hmac.c
117
krb5int_hmac(const struct krb5_hash_provider *hash, krb5_key key,
crypto/krb5/src/lib/crypto/builtin/hmac.c
121
return krb5int_hmac_keyblock(hash, &key->keyblock, data, num_data, output);
crypto/krb5/src/lib/crypto/builtin/kdf.c
122
ret = krb5int_cmac_checksum(enc, key, iov, 6, &prf);
crypto/krb5/src/lib/crypto/builtin/kdf.c
141
k5_derive_random_rfc3961(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/builtin/kdf.c
153
if (key->keyblock.length != enc->keylength || rnd_out->length != keybytes)
crypto/krb5/src/lib/crypto/builtin/kdf.c
172
ret = encrypt_block(enc, key, &block);
crypto/krb5/src/lib/crypto/builtin/kdf.c
34
krb5_key key, const krb5_data *label,
crypto/krb5/src/lib/crypto/builtin/kdf.c
68
ret = krb5int_hmac(hash, key, iov, 5, &prf);
crypto/krb5/src/lib/crypto/builtin/kdf.c
76
k5_sp800_108_feedback_cmac(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/builtin/kdf.c
89
if (key->keyblock.length != enc->keylength || rnd_out->length != keybytes)
crypto/krb5/src/lib/crypto/builtin/sha1/shs.h
38
krb5_octet *key,
crypto/krb5/src/lib/crypto/crypto_tests/aes-test.c
110
memset(key, 0, len);
crypto/krb5/src/lib/crypto/crypto_tests/aes-test.c
111
hexdump("KEY", key, len);
crypto/krb5/src/lib/crypto/crypto_tests/aes-test.c
35
static char key[32];
crypto/krb5/src/lib/crypto/crypto_tests/aes-test.c
42
enc_key.contents = (krb5_octet *)key;
crypto/krb5/src/lib/crypto/crypto_tests/aes-test.c
87
memset(key, 0, len);
crypto/krb5/src/lib/crypto/crypto_tests/aes-test.c
88
set_bit(key, i);
crypto/krb5/src/lib/crypto/crypto_tests/aes-test.c
90
hexdump("KEY", key, len);
crypto/krb5/src/lib/crypto/crypto_tests/camellia-test.c
108
memset(key, 0, len);
crypto/krb5/src/lib/crypto/crypto_tests/camellia-test.c
109
hexdump("KEY", key, len);
crypto/krb5/src/lib/crypto/crypto_tests/camellia-test.c
33
static char key[32];
crypto/krb5/src/lib/crypto/crypto_tests/camellia-test.c
40
enc_key.contents = (unsigned char *)key;
crypto/krb5/src/lib/crypto/crypto_tests/camellia-test.c
85
memset(key, 0, len);
crypto/krb5/src/lib/crypto/crypto_tests/camellia-test.c
86
set_bit(key, i);
crypto/krb5/src/lib/crypto/crypto_tests/camellia-test.c
88
hexdump("KEY", key, len);
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
105
krb5_key key;
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
116
ret = krb5_k_create_key(context, &keyblock, &key);
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
122
ret = krb5int_cmac_checksum(enc, key, &iov, 1, &result);
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
128
ret = krb5int_cmac_checksum(enc, key, &iov, 1, &result);
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
134
ret = krb5int_cmac_checksum(enc, key, &iov, 1, &result);
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
140
ret = krb5int_cmac_checksum(enc, key, &iov, 1, &result);
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
145
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/crypto_tests/t_cts.c
105
err = krb5_k_create_key(NULL, &keyblock, &key);
crypto/krb5/src/lib/crypto/crypto_tests/t_cts.c
121
err = krb5int_aes_encrypt(key, &enciv, &iov, 1);
crypto/krb5/src/lib/crypto/crypto_tests/t_cts.c
129
err = krb5int_aes_decrypt(key, &deciv, &iov, 1);
crypto/krb5/src/lib/crypto/crypto_tests/t_cts.c
143
krb5_k_free_key(NULL, key);
crypto/krb5/src/lib/crypto/crypto_tests/t_cts.c
92
krb5_key key;
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
318
krb5_key inkey = NULL, key = NULL;
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
338
ret = krb5int_derive_key(enc, hash, inkey, &key, &test->constant,
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
341
outcmp = make_data(key->keyblock.contents, key->keyblock.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
369
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
371
inkey = key = NULL;
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
101
krb5_key key;
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
137
krb5_k_create_key (context, keyblock, &key));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
157
krb5_k_encrypt (context, key, 7, 0, &in, &enc_out));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
160
krb5_k_decrypt (context, key, 7, 0, &enc_out, &check));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
182
krb5_k_decrypt_iov( context, key, 7, 0, iov, 2));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
225
krb5_k_encrypt_iov(context, key, 7, 0, iov, 5));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
232
krb5_k_decrypt_iov(context, key, 7, 0, iov, 5));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
264
krb5_k_free_key (context, key);
crypto/krb5/src/lib/crypto/crypto_tests/t_fork.c
49
prepare_enc_data(krb5_key key, size_t in_len, krb5_enc_data *enc_data)
crypto/krb5/src/lib/crypto/crypto_tests/t_fork.c
53
t(krb5_c_encrypt_length(ctx, key->keyblock.enctype, in_len, &out_len));
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
101
if (key->length > blocksize) {
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
103
iov.data = make_data(key->contents, key->length);
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
110
key->length = d.length;
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
111
key->contents = (krb5_octet *) d.data;
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
112
printk(" pre-hashed key", key);
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
115
krb5_k_create_key(NULL, key, &k);
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
128
krb5_keyblock key;
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
225
key.contents = (krb5_octet *)md5tests[i].key;
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
226
key.length = md5tests[i].key_len;
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
232
err = hmac1(&krb5int_hash_md5, &key, &in, &out);
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
79
unsigned char key[180];
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
86
krb5_keyblock *key,
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
96
printk(" test key", key);
crypto/krb5/src/lib/crypto/crypto_tests/t_kperf.c
113
krb5_k_encrypt(NULL, key, 0, NULL, &block, &outblock);
crypto/krb5/src/lib/crypto/crypto_tests/t_kperf.c
115
krb5_k_decrypt(NULL, key, 0, NULL, &outblock, &block);
crypto/krb5/src/lib/crypto/crypto_tests/t_kperf.c
117
krb5_k_make_checksum(NULL, cktype, key, 0, &block, &sum);
crypto/krb5/src/lib/crypto/crypto_tests/t_kperf.c
119
krb5_k_verify_checksum(NULL, key, 0, &block, &sum, &val);
crypto/krb5/src/lib/crypto/crypto_tests/t_kperf.c
50
krb5_key key;
crypto/krb5/src/lib/crypto/crypto_tests/t_kperf.c
77
krb5_k_create_key(NULL, &kblock, &key);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
122
krb5_keyblock key;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
126
key.contents = key_contents;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
141
r = krb5int_des_string_to_key (0, &pd, &sd, 0, &key);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
143
printhex (key.length, key.contents);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
168
krb5_keyblock key;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
176
key.contents = key_contents;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
186
r = krb5_c_string_to_key (0, enctype, &pd, &sd, &key);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
188
printhex (key.length, key.contents);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
322
krb5_keyblock key;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
330
key.length = KEYLENGTH, key.contents = D.keydata;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
335
printf ("key:\t"); printkey (&key); printf ("\n");
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
337
DR (&dr, &key, &usage);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
339
DK (&dk, &key, &usage);
crypto/krb5/src/lib/crypto/krb/aead.c
112
ret = ktp->decrypt(ktp, key, keyusage, ivec, iov, i);
crypto/krb5/src/lib/crypto/krb/aead.c
52
krb5int_c_iov_decrypt_stream(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/checksum_dk_cmac.c
33
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/checksum_dk_cmac.c
47
ret = krb5int_derive_key(enc, NULL, key, &kc, &datain,
crypto/krb5/src/lib/crypto/krb/checksum_dk_hmac.c
34
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/checksum_dk_hmac.c
48
ret = krb5int_derive_key(enc, NULL, key, &kc, &datain, DERIVE_RFC3961);
crypto/krb5/src/lib/crypto/krb/checksum_etm.c
36
krb5int_etm_checksum(const struct krb5_cksumtypes *ctp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/checksum_etm.c
52
ret = krb5int_derive_random(ctp->enc, ctp->hash, key, &kc, &label_data,
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
108
if (key->length > hash->blocksize) {
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
111
iov.data = *key;
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
115
key = &hashed_key;
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
119
keyblock.length = key->length;
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
120
keyblock.contents = (uint8_t *)key->data;
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
37
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
49
if (key == NULL || key->keyblock.length > ctp->hash->blocksize)
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
59
ret = krb5int_hmac(ctp->hash, key, &iov, 1, &ds);
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
66
keyblock = &key->keyblock;
crypto/krb5/src/lib/crypto/krb/checksum_hmac_md5.c
97
k5_hmac_md5(const krb5_data *key, const krb5_crypto_iov *data, size_t num_data,
crypto/krb5/src/lib/crypto/krb/checksum_unkeyed.c
31
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
102
krb5_error_code (*decrypt)(krb5_key key, const krb5_data *cipher_state,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
106
krb5_error_code (*cbc_mac)(krb5_key key, const krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
110
krb5_error_code (*init_state)(const krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
116
void (*key_cleanup)(krb5_key key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
137
krb5_key key, krb5_keyusage keyusage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
145
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
148
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
151
krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
197
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
210
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
254
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
258
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
263
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
267
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
272
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
278
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
282
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
287
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
291
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
296
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
305
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
310
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
315
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
320
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
325
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
330
krb5_keyblock *key);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
340
krb5_key key, const krb5_data *in,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
343
krb5_key key, const krb5_data *in,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
345
krb5_error_code krb5int_dk_prf(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
348
krb5_key key, const krb5_data *in,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
350
krb5_error_code krb5int_aes2_prf(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
356
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
361
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
366
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
370
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
374
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
415
krb5_error_code krb5int_des_init_state(const krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
449
krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
494
krb5_key key, const krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
499
krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
530
krb5_key key, const krb5_data *label,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
543
k5_sp800_108_feedback_cmac(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
549
k5_derive_random_rfc3961(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
554
krb5_error_code krb5int_aes_encrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
556
krb5_error_code krb5int_aes_decrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
558
krb5_error_code krb5int_camellia_encrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
598
verify_key(const struct krb5_cksumtypes *ctp, krb5_key key)
crypto/krb5/src/lib/crypto/krb/crypto_int.h
602
ktp = key ? find_enctype(key->keyblock.enctype) : NULL;
crypto/krb5/src/lib/crypto/krb/crypto_int.h
605
if (key && (!ktp || key->keyblock.length != ktp->enc->keylength))
crypto/krb5/src/lib/crypto/krb/crypto_int.h
612
encrypt_block(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/krb/crypto_int.h
623
return enc->cbc_mac(key, &iov, 1, NULL, block);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
625
return enc->encrypt(key, 0, &iov, 1);
crypto/krb5/src/lib/crypto/krb/crypto_int.h
99
krb5_error_code (*encrypt)(krb5_key key, const krb5_data *cipher_state,
crypto/krb5/src/lib/crypto/krb/decrypt.c
31
krb5_k_decrypt(krb5_context context, krb5_key key,
crypto/krb5/src/lib/crypto/krb/decrypt.c
41
ktp = find_enctype(key->keyblock.enctype);
crypto/krb5/src/lib/crypto/krb/decrypt.c
78
ret = ktp->decrypt(ktp, key, usage, cipher_state, iov, 4);
crypto/krb5/src/lib/crypto/krb/decrypt.c
92
krb5_key key;
crypto/krb5/src/lib/crypto/krb/decrypt.c
95
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/decrypt.c
98
ret = krb5_k_decrypt(context, key, usage, cipher_state, input, output);
crypto/krb5/src/lib/crypto/krb/decrypt.c
99
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
30
krb5_k_decrypt_iov(krb5_context context, krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
36
ktp = find_enctype(key->keyblock.enctype);
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
42
return krb5int_c_iov_decrypt_stream(ktp, key, usage, cipher_state,
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
46
return ktp->decrypt(ktp, key, usage, cipher_state, data, num_data);
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
54
krb5_key key;
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
57
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
60
ret = krb5_k_decrypt_iov(context, key, usage, cipher_state, data,
crypto/krb5/src/lib/crypto/krb/decrypt_iov.c
62
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/default_state.c
36
krb5int_des_init_state(const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/derive.c
43
add_cached_dkey(krb5_key key, const krb5_data *constant,
crypto/krb5/src/lib/crypto/krb/derive.c
66
dkent->next = key->derived;
crypto/krb5/src/lib/crypto/krb/derive.c
67
key->derived = dkent;
crypto/krb5/src/lib/crypto/krb/enc_dk_cmac.c
110
ret = derive_keys(enc, key, usage, &ke, &ki);
crypto/krb5/src/lib/crypto/krb/enc_dk_cmac.c
137
krb5int_dk_cmac_decrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_dk_cmac.c
158
ret = derive_keys(enc, key, usage, &ke, &ki);
crypto/krb5/src/lib/crypto/krb/enc_dk_cmac.c
54
derive_keys(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_dk_cmac.c
67
ret = krb5int_derive_key(enc, NULL, key, &ke, &constant,
crypto/krb5/src/lib/crypto/krb/enc_dk_cmac.c
74
ret = krb5int_derive_key(enc, NULL, key, &ki, &constant,
crypto/krb5/src/lib/crypto/krb/enc_dk_cmac.c
87
krb5int_dk_cmac_encrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_dk_hmac.c
134
ret = krb5int_derive_key(enc, NULL, key, &ke, &d1, DERIVE_RFC3961);
crypto/krb5/src/lib/crypto/krb/enc_dk_hmac.c
140
ret = krb5int_derive_key(enc, NULL, key, &ki, &d1, DERIVE_RFC3961);
crypto/krb5/src/lib/crypto/krb/enc_dk_hmac.c
179
krb5int_dk_decrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_dk_hmac.c
235
ret = krb5int_derive_key(enc, NULL, key, &ke, &d1, DERIVE_RFC3961);
crypto/krb5/src/lib/crypto/krb/enc_dk_hmac.c
241
ret = krb5int_derive_key(enc, NULL, key, &ki, &d1, DERIVE_RFC3961);
crypto/krb5/src/lib/crypto/krb/enc_dk_hmac.c
69
krb5int_dk_encrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_etm.c
137
krb5int_etm_encrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_etm.c
172
ret = derive_keys(ktp, key, usage, &ke, &ki);
crypto/krb5/src/lib/crypto/krb/enc_etm.c
210
krb5int_etm_decrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_etm.c
233
ret = derive_keys(ktp, key, usage, &ke, &ki);
crypto/krb5/src/lib/crypto/krb/enc_etm.c
55
derive_keys(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_etm.c
69
ret = krb5int_derive_key(ktp->enc, ktp->hash, key, &ke, &label_data,
crypto/krb5/src/lib/crypto/krb/enc_etm.c
79
ret = krb5int_derive_random(NULL, ktp->hash, key, &ki, &label_data,
crypto/krb5/src/lib/crypto/krb/enc_raw.c
108
return ktp->enc->decrypt(key, ivec, data, num_data);
crypto/krb5/src/lib/crypto/krb/enc_raw.c
43
krb5int_raw_encrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_raw.c
75
return ktp->enc->encrypt(key, ivec, data, num_data);
crypto/krb5/src/lib/crypto/krb/enc_raw.c
79
krb5int_raw_decrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
119
krb5_key key;
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
121
ret = krb5_k_create_key(NULL, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
125
ret = enc->encrypt(key, ivec, data, num_data);
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
126
krb5_k_free_key(NULL, key);
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
131
krb5int_arcfour_encrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
168
ret = krb5int_c_init_keyblock(NULL, key->keyblock.enctype, enc->keybytes,
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
172
ret = krb5int_c_init_keyblock(NULL, key->keyblock.enctype, enc->keybytes,
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
178
ret = usage_key(enc, hash, &key->keyblock, usage, usage_keyblock);
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
216
krb5int_arcfour_decrypt(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
242
ret = krb5int_c_init_keyblock(NULL, key->keyblock.enctype, enc->keybytes,
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
246
ret = krb5int_c_init_keyblock(NULL, key->keyblock.enctype, enc->keybytes,
crypto/krb5/src/lib/crypto/krb/enc_rc4.c
260
ret = usage_key(enc, hash, &key->keyblock, usage, usage_keyblock);
crypto/krb5/src/lib/crypto/krb/encrypt.c
31
krb5_k_encrypt(krb5_context context, krb5_key key,
crypto/krb5/src/lib/crypto/krb/encrypt.c
40
ktp = find_enctype(key->keyblock.enctype);
crypto/krb5/src/lib/crypto/krb/encrypt.c
46
output->enctype = key->keyblock.enctype;
crypto/krb5/src/lib/crypto/krb/encrypt.c
72
ret = ktp->encrypt(ktp, key, usage, cipher_state, iov, 4);
crypto/krb5/src/lib/crypto/krb/encrypt.c
85
krb5_key key;
crypto/krb5/src/lib/crypto/krb/encrypt.c
88
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/encrypt.c
91
ret = krb5_k_encrypt(context, key, usage, cipher_state, input, output);
crypto/krb5/src/lib/crypto/krb/encrypt.c
92
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/encrypt_iov.c
30
krb5_k_encrypt_iov(krb5_context context, krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/encrypt_iov.c
36
ktp = find_enctype(key->keyblock.enctype);
crypto/krb5/src/lib/crypto/krb/encrypt_iov.c
40
return ktp->encrypt(ktp, key, usage, cipher_state, data, num_data);
crypto/krb5/src/lib/crypto/krb/encrypt_iov.c
48
krb5_key key;
crypto/krb5/src/lib/crypto/krb/encrypt_iov.c
51
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/encrypt_iov.c
54
ret = krb5_k_encrypt_iov(context, key, usage, cipher_state, data,
crypto/krb5/src/lib/crypto/krb/encrypt_iov.c
56
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/key.c
102
return krb5int_c_copy_keyblock(context, &key->keyblock, key_data);
crypto/krb5/src/lib/crypto/krb/key.c
107
krb5_k_key_enctype(krb5_context context, krb5_key key)
crypto/krb5/src/lib/crypto/krb/key.c
109
return key->keyblock.enctype;
crypto/krb5/src/lib/crypto/krb/key.c
41
krb5_key key = NULL;
crypto/krb5/src/lib/crypto/krb/key.c
46
key = malloc(sizeof(*key));
crypto/krb5/src/lib/crypto/krb/key.c
47
if (key == NULL)
crypto/krb5/src/lib/crypto/krb/key.c
49
code = krb5int_c_copy_keyblock_contents(context, key_data, &key->keyblock);
crypto/krb5/src/lib/crypto/krb/key.c
53
key->refcount = 1;
crypto/krb5/src/lib/crypto/krb/key.c
54
key->derived = NULL;
crypto/krb5/src/lib/crypto/krb/key.c
55
key->cache = NULL;
crypto/krb5/src/lib/crypto/krb/key.c
56
*out = key;
crypto/krb5/src/lib/crypto/krb/key.c
60
free(key);
crypto/krb5/src/lib/crypto/krb/key.c
65
krb5_k_reference_key(krb5_context context, krb5_key key)
crypto/krb5/src/lib/crypto/krb/key.c
67
if (key)
crypto/krb5/src/lib/crypto/krb/key.c
68
key->refcount++;
crypto/krb5/src/lib/crypto/krb/key.c
73
krb5_k_free_key(krb5_context context, krb5_key key)
crypto/krb5/src/lib/crypto/krb/key.c
78
if (key == NULL || --key->refcount > 0)
crypto/krb5/src/lib/crypto/krb/key.c
82
while ((dk = key->derived) != NULL) {
crypto/krb5/src/lib/crypto/krb/key.c
83
key->derived = dk->next;
crypto/krb5/src/lib/crypto/krb/key.c
88
krb5int_c_free_keyblock_contents(context, &key->keyblock);
crypto/krb5/src/lib/crypto/krb/key.c
89
if (key->cache) {
crypto/krb5/src/lib/crypto/krb/key.c
90
ktp = find_enctype(key->keyblock.enctype);
crypto/krb5/src/lib/crypto/krb/key.c
92
ktp->enc->key_cleanup(key);
crypto/krb5/src/lib/crypto/krb/key.c
94
free(key);
crypto/krb5/src/lib/crypto/krb/key.c
99
krb5_k_key_keyblock(krb5_context context, krb5_key key,
crypto/krb5/src/lib/crypto/krb/keyblocks.c
66
krb5int_c_free_keyblock_contents(krb5_context context, krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/keyblocks.c
68
if (key && key->contents) {
crypto/krb5/src/lib/crypto/krb/keyblocks.c
69
zapfree(key->contents, key->length);
crypto/krb5/src/lib/crypto/krb/keyblocks.c
70
key->contents = NULL;
crypto/krb5/src/lib/crypto/krb/keyblocks.c
71
key->length = 0;
crypto/krb5/src/lib/crypto/krb/make_checksum.c
34
krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/krb/make_checksum.c
43
if (cksumtype == 0 && key != NULL) {
crypto/krb5/src/lib/crypto/krb/make_checksum.c
44
ret = krb5int_c_mandatory_cksumtype(context, key->keyblock.enctype,
crypto/krb5/src/lib/crypto/krb/make_checksum.c
53
ret = verify_key(ctp, key);
crypto/krb5/src/lib/crypto/krb/make_checksum.c
63
ret = ctp->checksum(ctp, key, usage, &iov, 1, &cksum_data);
crypto/krb5/src/lib/crypto/krb/make_checksum.c
88
krb5_key key = NULL;
crypto/krb5/src/lib/crypto/krb/make_checksum.c
92
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/make_checksum.c
96
ret = krb5_k_make_checksum(context, cksumtype, key, usage, input, cksum);
crypto/krb5/src/lib/crypto/krb/make_checksum.c
97
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
32
krb5_key key,
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
42
if (cksumtype == 0 && key != NULL) {
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
43
ret = krb5int_c_mandatory_cksumtype(context, key->keyblock.enctype,
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
52
ret = verify_key(ctp, key);
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
64
ret = ctp->checksum(ctp, key, usage, data, num_data, &cksum_data);
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
84
krb5_key key = NULL;
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
88
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
92
ret = krb5_k_make_checksum_iov(context, cksumtype, key, usage,
crypto/krb5/src/lib/crypto/krb/make_checksum_iov.c
94
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
102
inputd.enctype = eblock->key->enctype;
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
110
return krb5_c_decrypt(context, eblock->key, 0, ivec ? &ivecd : 0,
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
116
const krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
118
eblock->key = (krb5_keyblock *) key;
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
158
krb5_keyblock *key;
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
163
key = malloc(sizeof(krb5_keyblock));
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
164
if (key == NULL)
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
167
ret = krb5_c_make_random_key(context, eblock->crypto_entry, key);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
169
free(key);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
173
*keyblock = key;
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
307
krb5_error_code krb5_encrypt_data(krb5_context context, krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
315
ret = krb5_c_encrypt_length(context, key->enctype, data->length, &enclen);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
320
ret = krb5_c_block_size(context, key->enctype, &blocksize);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
329
enc_data->enctype = key->enctype;
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
334
ret = krb5_c_encrypt(context, key, 0, ivec ? &ivecd : 0, data, enc_data);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
341
krb5_error_code krb5_decrypt_data(krb5_context context, krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
350
ret = krb5_c_block_size(context, key->enctype, &blocksize);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
361
ret = krb5_c_decrypt(context, key, 0, ivec ? &ivecd : 0, enc_data, data);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
41
krb5_error_code krb5_encrypt_data(krb5_context context, krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
44
krb5_error_code krb5_decrypt_data(krb5_context context, krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
59
ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
73
ret = krb5_c_encrypt_length(context, eblock->key->enctype, size, &outlen);
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
79
return krb5_c_encrypt(context, eblock->key, 0, ivec ? &ivecd : 0,
crypto/krb5/src/lib/crypto/krb/old_api_glue.c
94
ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize);
crypto/krb5/src/lib/crypto/krb/prf.c
49
krb5_k_prf(krb5_context context, krb5_key key,
crypto/krb5/src/lib/crypto/krb/prf.c
58
ktp = find_enctype(key->keyblock.enctype);
crypto/krb5/src/lib/crypto/krb/prf.c
67
ret = ktp->prf(ktp, key, input, output);
crypto/krb5/src/lib/crypto/krb/prf.c
75
krb5_key key;
crypto/krb5/src/lib/crypto/krb/prf.c
78
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/prf.c
81
ret = krb5_k_prf(context, key, input, output);
crypto/krb5/src/lib/crypto/krb/prf.c
82
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/prf_aes2.c
36
krb5int_aes2_prf(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/prf_aes2.c
41
return k5_sp800_108_counter_hmac(ktp->hash, key, &label, in, out);
crypto/krb5/src/lib/crypto/krb/prf_cmac.c
30
krb5int_dk_cmac_prf(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/prf_cmac.c
45
ret = krb5int_derive_key(ktp->enc, NULL, key, &kp, &prfconst,
crypto/krb5/src/lib/crypto/krb/prf_des.c
30
krb5int_des_prf(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/prf_des.c
46
return ktp->enc->encrypt(key, NULL, &iov, 1);
crypto/krb5/src/lib/crypto/krb/prf_dk.c
30
krb5int_dk_prf(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/prf_dk.c
51
ret = krb5int_derive_key(ktp->enc, NULL, key, &kp, &prfconst,
crypto/krb5/src/lib/crypto/krb/prf_rc4.c
30
krb5int_arcfour_prf(const struct krb5_keytypes *ktp, krb5_key key,
crypto/krb5/src/lib/crypto/krb/prf_rc4.c
38
return krb5int_hmac(&krb5int_hash_sha1, key, &iov, 1, out);
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
111
const krb5_data *params, krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
143
out.data = (char *) key->contents;
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
144
out.length = key->length;
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
167
err = krb5_k_create_key (NULL, key, &tempkey);
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
171
err = krb5int_derive_keyblock(ktp->enc, ktp->hash, tempkey, key, &usage,
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
188
krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
190
return pbkdf2_string_to_key(ktp, string, salt, NULL, params, key,
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
199
krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
203
return pbkdf2_string_to_key(ktp, string, salt, &pepper, params, key,
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
210
const krb5_data *params, krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/s2k_pbkdf2.c
214
return pbkdf2_string_to_key(ktp, string, salt, &pepper, params, key,
crypto/krb5/src/lib/crypto/krb/s2k_rc4.c
20
if (key->length != 16)
crypto/krb5/src/lib/crypto/krb/s2k_rc4.c
35
hash_out = make_data(key->contents, key->length);
crypto/krb5/src/lib/crypto/krb/s2k_rc4.c
8
const krb5_data *params, krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/state.c
38
krb5_c_init_state (krb5_context context, const krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/state.c
43
ktp = find_enctype(key->enctype);
crypto/krb5/src/lib/crypto/krb/state.c
46
return ktp->enc->init_state(key, keyusage, new_state);
crypto/krb5/src/lib/crypto/krb/state.c
50
krb5_c_free_state(krb5_context context, const krb5_keyblock *key,
crypto/krb5/src/lib/crypto/krb/state.c
55
ktp = find_enctype(key->enctype);
crypto/krb5/src/lib/crypto/krb/string_to_key.c
33
krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/string_to_key.c
36
NULL, key);
crypto/krb5/src/lib/crypto/krb/string_to_key.c
43
const krb5_data *params, krb5_keyblock *key)
crypto/krb5/src/lib/crypto/krb/string_to_key.c
63
key->contents = malloc(keylength);
crypto/krb5/src/lib/crypto/krb/string_to_key.c
64
if (key->contents == NULL)
crypto/krb5/src/lib/crypto/krb/string_to_key.c
67
key->magic = KV5M_KEYBLOCK;
crypto/krb5/src/lib/crypto/krb/string_to_key.c
68
key->enctype = enctype;
crypto/krb5/src/lib/crypto/krb/string_to_key.c
69
key->length = keylength;
crypto/krb5/src/lib/crypto/krb/string_to_key.c
71
ret = (*ktp->str2key)(ktp, string, salt, params, key);
crypto/krb5/src/lib/crypto/krb/string_to_key.c
73
zapfree(key->contents, keylength);
crypto/krb5/src/lib/crypto/krb/string_to_key.c
74
key->length = 0;
crypto/krb5/src/lib/crypto/krb/string_to_key.c
75
key->contents = NULL;
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
31
krb5_k_verify_checksum(krb5_context context, krb5_key key,
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
47
if (cksumtype == 0 && key != NULL) {
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
48
ret = krb5int_c_mandatory_cksumtype(context, key->keyblock.enctype,
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
57
ret = verify_key(ctp, key);
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
64
return ctp->verify(ctp, key, usage, &iov, 1, &cksum_data, valid);
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
70
ret = krb5_k_make_checksum(context, cksum->checksum_type, key, usage,
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
87
krb5_key key = NULL;
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
91
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
95
ret = krb5_k_verify_checksum(context, key, usage, data, cksum, valid);
crypto/krb5/src/lib/crypto/krb/verify_checksum.c
96
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
101
krb5_k_free_key(context, key);
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
32
krb5_key key,
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
43
if (checksum_type == 0 && key != NULL) {
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
44
ret = krb5int_c_mandatory_cksumtype(context, key->keyblock.enctype,
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
53
ret = verify_key(ctp, key);
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
64
return ctp->verify(ctp, key, usage, data, num_data, &checksum->data,
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
72
ret = ctp->checksum(ctp, key, usage, data, num_data, &computed);
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
91
krb5_key key = NULL;
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
95
ret = krb5_k_create_key(context, keyblock, &key);
crypto/krb5/src/lib/crypto/krb/verify_checksum_iov.c
99
ret = krb5_k_verify_checksum_iov(context, checksum_type, key, usage, data,
crypto/krb5/src/lib/crypto/openssl/cmac.c
42
krb5int_cmac_checksum(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/openssl/cmac.c
73
ok = EVP_MAC_init(ctx, key->keyblock.contents, key->keyblock.length,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
104
cbc_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
116
ret = EVP_DecryptInit_ex(ctx, map_mode(key->keyblock.length),
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
117
NULL, key->keyblock.contents, (ivec) ? (unsigned char*)ivec->data : NULL);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
139
do_cts(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
158
if (key->keyblock.length == 16)
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
160
else if (key->keyblock.length == 32)
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
179
if (!EVP_CipherInit_ex2(ctx, cipher, key->keyblock.contents, iv_cts,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
205
cts_encr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
208
return do_cts(key, ivec, data, num_data, dlen, 1);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
212
cts_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
215
return do_cts(key, ivec, data, num_data, dlen, 0);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
221
cts_encr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
251
AES_set_encrypt_key(key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
252
NUM_BITS * key->keyblock.length, &enck);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
273
cts_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
300
AES_set_decrypt_key(key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
301
NUM_BITS * key->keyblock.length, &deck);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
328
krb5int_aes_encrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
339
ret = cbc_enc(key, ivec, data, num_data);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
341
ret = cts_encr(key, ivec, data, num_data, input_length);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
348
krb5int_aes_decrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
359
ret = cbc_decr(key, ivec, data, num_data);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
361
ret = cts_decr(key, ivec, data, num_data, input_length);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
368
krb5int_aes_init_state (const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
41
cbc_enc(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
44
cbc_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
47
cts_encr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
50
cts_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
70
cbc_enc(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
82
ret = EVP_EncryptInit_ex(ctx, map_mode(key->keyblock.length),
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
83
NULL, key->keyblock.contents, (ivec) ? (unsigned char*)ivec->data : NULL);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
103
cbc_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
115
ret = EVP_DecryptInit_ex(ctx, map_mode(key->keyblock.length),
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
116
NULL, key->keyblock.contents, (ivec) ? (unsigned char*)ivec->data : NULL);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
138
do_cts(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
157
if (key->keyblock.length == 16)
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
159
else if (key->keyblock.length == 32)
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
178
if (!EVP_CipherInit_ex2(ctx, cipher, key->keyblock.contents, iv_cts,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
204
cts_encr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
207
return do_cts(key, ivec, data, num_data, dlen, 1);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
211
cts_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
214
return do_cts(key, ivec, data, num_data, dlen, 0);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
220
cts_encr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
250
Camellia_set_key(key->keyblock.contents, NUM_BITS * key->keyblock.length,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
272
cts_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
299
Camellia_set_key(key->keyblock.contents, NUM_BITS * key->keyblock.length,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
327
krb5int_camellia_encrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
338
ret = cbc_enc(key, ivec, data, num_data);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
340
ret = cts_encr(key, ivec, data, num_data, input_length);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
347
krb5int_camellia_decrypt(krb5_key key, const krb5_data *ivec,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
358
ret = cbc_decr(key, ivec, data, num_data);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
360
ret = cts_decr(key, ivec, data, num_data, input_length);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
382
krb5int_camellia_cbc_mac(krb5_key key, const krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
393
Camellia_set_key(key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
394
NUM_BITS * key->keyblock.length, &enck);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
40
cbc_enc(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
418
krb5int_camellia_init_state (const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
43
cbc_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
46
cts_encr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
49
cts_decr(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
69
cbc_enc(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
81
ret = EVP_EncryptInit_ex(ctx, map_mode(key->keyblock.length),
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
82
NULL, key->keyblock.contents, (ivec) ? (unsigned char*)ivec->data : NULL);
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
129
k5_des3_decrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
138
ret = validate(key, ivec, data, num_data, &empty);
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
147
key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
63
validate(krb5_key key, const krb5_data *ivec, const krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
68
if (key->keyblock.length != DES3_KEY_SIZE)
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
80
k5_des3_encrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
89
ret = validate(key, ivec, data, num_data, &empty);
crypto/krb5/src/lib/crypto/openssl/enc_provider/des3.c
98
key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/enc_provider/rc4.c
126
k5_arcfour_init_state(const krb5_keyblock *key,
crypto/krb5/src/lib/crypto/openssl/enc_provider/rc4.c
63
k5_arcfour_docrypt(krb5_key key, const krb5_data *state, krb5_crypto_iov *data,
crypto/krb5/src/lib/crypto/openssl/enc_provider/rc4.c
84
ret = EVP_EncryptInit_ex(ctx, EVP_rc4(), NULL, key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/hmac.c
224
krb5int_hmac(const struct krb5_hash_provider *hash, krb5_key key,
crypto/krb5/src/lib/crypto/openssl/hmac.c
228
return krb5int_hmac_keyblock(hash, &key->keyblock, data, num_data, output);
crypto/krb5/src/lib/crypto/openssl/kdf.c
101
key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/kdf.c
102
key->keyblock.length);
crypto/krb5/src/lib/crypto/openssl/kdf.c
124
k5_sp800_108_feedback_cmac(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/openssl/kdf.c
160
key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/kdf.c
161
key->keyblock.length);
crypto/krb5/src/lib/crypto/openssl/kdf.c
183
k5_derive_random_rfc3961(const struct krb5_enc_provider *enc, krb5_key key,
crypto/krb5/src/lib/crypto/openssl/kdf.c
192
if (key->keyblock.length != enc->keylength ||
crypto/krb5/src/lib/crypto/openssl/kdf.c
217
key->keyblock.contents,
crypto/krb5/src/lib/crypto/openssl/kdf.c
218
key->keyblock.length);
crypto/krb5/src/lib/crypto/openssl/kdf.c
70
krb5_key key, const krb5_data *label,
crypto/krb5/src/lib/gssapi/generic/gssapi_ext.h
538
const char *key;
crypto/krb5/src/lib/gssapi/krb5/accept_sec_context.c
385
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/accept_sec_context.c
387
code = krb5_auth_con_getrecvsubkey_k(context, auth_context, &key);
crypto/krb5/src/lib/gssapi/krb5/accept_sec_context.c
391
code = iakerb_verify_finished(context, key, exts->iakerb.conv,
crypto/krb5/src/lib/gssapi/krb5/accept_sec_context.c
396
krb5_k_free_key(context, key);
crypto/krb5/src/lib/gssapi/krb5/cred_store.c
42
if (strcmp(cred_store->elements[i].key, type) == 0) {
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
1258
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
1264
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
265
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
269
krb5_error_code kg_get_seq_num (krb5_context context, krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
274
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
289
krb5_key key, int usage,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
297
krb5_error_code kg_encrypt_inplace(krb5_context context, krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
304
krb5_key key, int usage,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
322
krb5_error_code kg_decrypt (krb5_context context, krb5_key key, int usage,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
327
kg_verify_checksum_v1(krb5_context context, uint16_t signalg, krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
333
kg_verify_checksum_v3(krb5_context context, krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
342
krb5_key key, int usage,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
440
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/gssapiP_krb5.h
449
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/iakerb.c
127
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/iakerb.c
138
if (key == NULL)
crypto/krb5/src/lib/gssapi/krb5/iakerb.c
141
code = krb5_k_make_checksum(context, 0, key, KRB5_KEYUSAGE_FINISHED, conv,
crypto/krb5/src/lib/gssapi/krb5/iakerb.c
158
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/iakerb.c
166
if (key == NULL)
crypto/krb5/src/lib/gssapi/krb5/iakerb.c
173
code = krb5_k_verify_checksum(context, key, KRB5_KEYUSAGE_FINISHED, conv,
crypto/krb5/src/lib/gssapi/krb5/init_sec_context.c
314
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/init_sec_context.c
316
code = krb5_auth_con_getsendsubkey_k(context, auth_context, &key);
crypto/krb5/src/lib/gssapi/krb5/init_sec_context.c
320
code = iakerb_make_finished(context, key, data->exts->iakerb.conv,
crypto/krb5/src/lib/gssapi/krb5/init_sec_context.c
323
krb5_k_free_key(context, key);
crypto/krb5/src/lib/gssapi/krb5/init_sec_context.c
327
krb5_k_free_key(context, key);
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
184
inq_session_key_result(OM_uint32 *minor_status, krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
192
keyvalue.value = key->keyblock.contents;
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
193
keyvalue.length = key->keyblock.length;
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
204
key->keyblock.enctype, &oid);
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
236
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
242
key = ctx->have_acceptor_subkey ? ctx->acceptor_subkey : ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
243
return inq_session_key_result(minor_status, key, data_set);
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
255
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
262
ret = krb5_auth_con_getkey_k(ctx->k5_context, ctx->auth_context, &key);
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
268
major = inq_session_key_result(minor_status, key, data_set);
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
269
krb5_k_free_key(ctx->k5_context, key);
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
348
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
355
key = ctx->have_acceptor_subkey ? ctx->acceptor_subkey : ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/inq_context.c
357
code = k5_enctype_to_ssf(key->keyblock.enctype, &ssf);
crypto/krb5/src/lib/gssapi/krb5/k5sealiov.c
377
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/k5sealiov.c
381
key = (ctx->have_acceptor_subkey) ? ctx->acceptor_subkey : ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/k5sealiov.c
382
enctype = key->keyblock.enctype;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
101
assert(key != NULL);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
137
encrypt_size = krb5_encrypt_size(plain.length, key->keyblock.enctype);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
170
cipher.enctype = key->keyblock.enctype;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
171
err = krb5_k_encrypt(context, key, key_usage, 0, &plain, &cipher);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
241
err = krb5_k_make_checksum(context, cksumtype, key,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
79
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
95
key = ctx->acceptor_subkey;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
98
key = ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
103
code = krb5_c_block_size(context, key->keyblock.enctype, &ec);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
109
code = krb5_c_crypto_length(context, key->keyblock.enctype,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
168
ec, rrc, key, key_usage, 0, iov, iov_count);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
183
code = krb5_c_crypto_length(context, key->keyblock.enctype,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
238
rrc, key, key_usage,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
292
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
334
key = ctx->acceptor_subkey;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
337
key = ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
340
assert(key != NULL);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
355
code = krb5_c_crypto_length(context, key->keyblock.enctype,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
390
key, key_usage, 0, iov, iov_count);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
420
key, key_usage,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
442
key, key_usage,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
50
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
65
key = ctx->acceptor_subkey;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
68
key = ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
71
assert(key != NULL);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
91
code = krb5_c_crypto_length(context, key->keyblock.enctype,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3iov.c
96
code = krb5_c_padding_length(context, key->keyblock.enctype,
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
265
gss_krb5_lucid_key_t *key)
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
267
if (key) {
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
268
if (key->data && key->length) {
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
269
zap(key->data, key->length);
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
270
xfree(key->data);
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
271
zap(key, sizeof(gss_krb5_lucid_key_t));
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
41
gss_krb5_lucid_key_t *key);
crypto/krb5/src/lib/gssapi/krb5/prf.c
120
code = krb5_k_prf(ctx->k5_context, key, &ns, &t);
crypto/krb5/src/lib/gssapi/krb5/prf.c
43
krb5_key key = NULL;
crypto/krb5/src/lib/gssapi/krb5/prf.c
69
key = ctx->acceptor_subkey;
crypto/krb5/src/lib/gssapi/krb5/prf.c
74
key = ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/prf.c
81
if (key == NULL) {
crypto/krb5/src/lib/gssapi/krb5/prf.c
97
krb5_k_key_enctype(ctx->k5_context, key),
crypto/krb5/src/lib/gssapi/krb5/ser_sctx.c
468
intern_key(krb5_key *key, krb5_octet **bp, size_t *sp)
crypto/krb5/src/lib/gssapi/krb5/ser_sctx.c
476
ret = krb5_k_create_key(NULL, keyblock, key);
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
210
krb5_key key, krb5_keyusage usage, const uint8_t *ctext, size_t len,
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
225
cipher.enctype = key->keyblock.enctype;
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
228
ret = krb5_k_decrypt(context, key, usage, NULL, &cipher, &plain);
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
280
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
308
key = ctx->acceptor_subkey;
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
311
key = ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
314
assert(key != NULL);
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
324
major = decrypt_v3(context, minor_status, key, usage, payload, plen,
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
342
if (!kg_verify_checksum_v3(context, key, usage, cksumtype,
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
44
decrypt_v1(krb5_context context, uint16_t sealalg, krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
59
ret = kg_decrypt(context, key, KG_USAGE_SEAL, NULL, in, plain, len);
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
64
ret = krb5_k_key_keyblock(context, key, &enc_key);
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
162
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
181
code = krb5_c_crypto_length(context, key->keyblock.enctype, KRB5_CRYPTO_TYPE_CHECKSUM, &k5_checksumlen);
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
232
code = krb5_k_verify_checksum_iov(context, type, key, sign_usage, kiov, kiov_count, valid);
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
234
code = krb5_k_make_checksum_iov(context, type, key, sign_usage, kiov, kiov_count);
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
245
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
251
return checksum_iov_v3(context, type, rrc, key,
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
259
krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/util_cksum.c
266
return checksum_iov_v3(context, type, rrc, key,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
166
iv_to_state(krb5_context context, krb5_key key, const uint8_t *iv,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
177
code = krb5_c_block_size(context, key->keyblock.enctype, &blocksize);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
195
kg_encrypt(krb5_context context, krb5_key key, int usage, krb5_pointer iv,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
202
code = iv_to_state(context, key, iv, &state);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
212
code = krb5_k_encrypt(context, key, usage, state, &inputd, &outputd);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
218
kg_encrypt_inplace(krb5_context context, krb5_key key, int usage,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
225
code = iv_to_state(context, key, iv, &state);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
231
code = krb5_k_encrypt_iov(context, key, usage, state, &iov, 1);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
239
kg_decrypt(krb5_context context, krb5_key key, int usage, const uint8_t *iv,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
246
code = iv_to_state(context, key, iv, &state);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
257
code = krb5_k_decrypt(context, key, usage, state, &inputd, &outputd);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
280
kg_verify_checksum_v1(krb5_context context, uint16_t signalg, krb5_key key,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
305
ret = krb5_k_make_checksum_iov(context, type, key, usage, iov, 3);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
315
kg_verify_checksum_v3(krb5_context context, krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
343
return krb5_k_verify_checksum_iov(context, cksumtype, key, usage, iov, 3,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
541
size_t rrc, krb5_key key, int usage, krb5_pointer iv,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
549
code = iv_to_state(context, key, iv, &state);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
554
key->keyblock.enctype, iov, iov_count,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
557
code = krb5_k_encrypt_iov(context, key, usage, state, kiov, kiov_len);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
569
size_t rrc, krb5_key key, int usage, krb5_pointer iv,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
577
code = iv_to_state(context, key, iv, &state);
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
582
key->keyblock.enctype, iov, iov_count,
crypto/krb5/src/lib/gssapi/krb5/util_crypt.c
585
code = krb5_k_decrypt_iov(context, key, usage, state, kiov, kiov_len);
crypto/krb5/src/lib/gssapi/krb5/util_seed.c
32
kg_make_seed(krb5_context context, krb5_key key, unsigned char *seed)
crypto/krb5/src/lib/gssapi/krb5/util_seed.c
39
code = krb5_k_key_keyblock(context, key, &tmpkey);
crypto/krb5/src/lib/gssapi/krb5/util_seed.c
44
kb = &key->keyblock;
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
33
kg_make_seq_num(krb5_context context, krb5_key key, int direction,
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
42
if (key->keyblock.enctype == ENCTYPE_ARCFOUR_HMAC ||
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
43
key->keyblock.enctype == ENCTYPE_ARCFOUR_HMAC_EXP) {
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
46
return kg_arcfour_docrypt (&key->keyblock, 0,
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
54
return(kg_encrypt(context, key, KG_USAGE_SEQ, cksum, plain, buf, 8));
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
58
kg_get_seq_num(krb5_context context, krb5_key key, const uint8_t *cksum,
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
64
if (key->keyblock.enctype == ENCTYPE_ARCFOUR_HMAC ||
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
65
key->keyblock.enctype == ENCTYPE_ARCFOUR_HMAC_EXP) {
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
66
code = kg_arcfour_docrypt (&key->keyblock, 0,
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
71
code = kg_decrypt(context, key, KG_USAGE_SEQ, cksum, buf, plain, 8);
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
82
if (key->keyblock.enctype == ENCTYPE_ARCFOUR_HMAC ||
crypto/krb5/src/lib/gssapi/krb5/util_seqnum.c
83
key->keyblock.enctype == ENCTYPE_ARCFOUR_HMAC_EXP) {
crypto/krb5/src/lib/gssapi/krb5/verify_mic.c
118
key = ctx->acceptor_subkey;
crypto/krb5/src/lib/gssapi/krb5/verify_mic.c
121
key = ctx->subkey;
crypto/krb5/src/lib/gssapi/krb5/verify_mic.c
124
assert(key != NULL);
crypto/krb5/src/lib/gssapi/krb5/verify_mic.c
126
if (!kg_verify_checksum_v3(context, key, usage, cksumtype, KG2_TOK_MIC_MSG,
crypto/krb5/src/lib/gssapi/krb5/verify_mic.c
94
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/wrap_size_limit.c
105
krb5_key key;
crypto/krb5/src/lib/gssapi/krb5/wrap_size_limit.c
108
key = ctx->have_acceptor_subkey ? ctx->acceptor_subkey
crypto/krb5/src/lib/gssapi/krb5/wrap_size_limit.c
110
enctype = key->keyblock.enctype;
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
78
static void getRegKeyValue(HKEY key, const char *keyPath, const char *valueName, void **data, DWORD *dataLen);
crypto/krb5/src/lib/gssapi/spnego/gssapiP_negoex.h
121
krb5_keyblock key;
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
107
major = buffer_set_to_key(minor, buffers, &mech->key);
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
268
krb5_free_keyblock_contents(NULL, &mech->key);
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
493
if (mech->key.enctype == ENCTYPE_NULL) {
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
503
ret = krb5_c_make_checksum(ctx->kctx, 0, &mech->key, usage, &d, &cksum);
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
531
krb5_free_keyblock_contents(NULL, &mech->key);
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
73
krb5_keyblock *key)
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
84
krb5_free_keyblock_contents(NULL, key);
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
86
key->contents = k5memdup(buffers->elements[0].value,
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
88
if (key->contents == NULL) {
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
92
key->length = buffers->elements[0].length;
crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c
93
key->enctype = load_32_le(buffers->elements[1].value);
crypto/krb5/src/lib/gssapi/spnego/negoex_util.c
703
krb5_free_keyblock_contents(NULL, &mech->key);
crypto/krb5/src/lib/kadm5/admin.h
286
krb5_keyblock key;
crypto/krb5/src/lib/kadm5/admin.h
488
const char *key,
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
360
krb5_keyblock **key, int *n_keys)
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
382
if (key) {
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
383
*key = r.keys;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
395
krb5_keyblock **key, int *n_keys)
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
414
if (key) {
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
415
*key = r.keys;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
484
const char *key, const char *value)
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
491
if (principal == NULL || key == NULL)
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
495
arg.key = (char *)key;
crypto/krb5/src/lib/kadm5/kadm_rpc.h
131
krb5_keyblock key;
crypto/krb5/src/lib/kadm5/kadm_rpc.h
229
char *key;
crypto/krb5/src/lib/kadm5/kadm_rpc_xdr.c
1054
if (!xdr_nullstring(xdrs, &objp->key)) {
crypto/krb5/src/lib/kadm5/kadm_rpc_xdr.c
1153
if (!xdr_nullstring(xdrs, &objp->key))
crypto/krb5/src/lib/kadm5/kadm_rpc_xdr.c
1158
(objp->key == NULL || objp->value == NULL))
crypto/krb5/src/lib/kadm5/kadm_rpc_xdr.c
1168
if (!xdr_krb5_keyblock(xdrs, &objp->key))
crypto/krb5/src/lib/kadm5/misc_free.c
115
free(strings[i].key);
crypto/krb5/src/lib/kadm5/misc_free.c
132
krb5_free_keyblock_contents(context, &key_data[i].key);
crypto/krb5/src/lib/kadm5/misc_free.c
45
krb5_free_key_data_contents(krb5_context context, krb5_key_data *key)
crypto/krb5/src/lib/kadm5/misc_free.c
49
idx = (key->key_data_ver == 1 ? 1 : 2);
crypto/krb5/src/lib/kadm5/misc_free.c
51
zapfree(key->key_data_contents[i], key->key_data_length[i]);
crypto/krb5/src/lib/kadm5/server_internal.h
111
krb5_key_data *key);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1010
krb5_keyblock key;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1021
memset(&key, 0, sizeof(key));
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1039
&key_data[i], &key,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1044
ret = krb5_dbe_encrypt_key_data(context, hist_key, &key, &salt,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1050
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1059
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1547
key_data[i].key = keyblocks[i];
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1573
ks[i].ks_enctype = key_data[i].key.enctype;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1656
key_data[i].key.enctype,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1657
key_data[j].key.enctype,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1686
&key_data[i].key, &key_data[i].salt,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1791
&key_data[nkeys].key,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2023
const char *key, const char *value)
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2031
if (principal == NULL || key == NULL)
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2038
ret = krb5_dbe_set_string(handle->context, kdb, key, value);
crypto/krb5/src/lib/kdb/kdb5.c
1174
krb5_keyblock * key, char *master_pwd)
crypto/krb5/src/lib/kdb/kdb5.c
118
krb5_dbe_free_key_data_contents(krb5_context context, krb5_key_data *key)
crypto/krb5/src/lib/kdb/kdb5.c
1188
list.keyblock = *key;
crypto/krb5/src/lib/kdb/kdb5.c
122
if (key) {
crypto/krb5/src/lib/kdb/kdb5.c
1224
krb5_data *salt, krb5_keyblock *key)
crypto/krb5/src/lib/kdb/kdb5.c
123
idx = (key->key_data_ver == 1 ? 1 : 2);
crypto/krb5/src/lib/kdb/kdb5.c
125
if (key->key_data_contents[i]) {
crypto/krb5/src/lib/kdb/kdb5.c
1252
key);
crypto/krb5/src/lib/kdb/kdb5.c
126
zap(key->key_data_contents[i], key->key_data_length[i]);
crypto/krb5/src/lib/kdb/kdb5.c
127
free(key->key_data_contents[i]);
crypto/krb5/src/lib/kdb/kdb5.c
1295
key->contents = k5memdup(tmp_key.contents, tmp_key.length, &retval);
crypto/krb5/src/lib/kdb/kdb5.c
1296
if (key->contents == NULL)
crypto/krb5/src/lib/kdb/kdb5.c
1299
key->magic = tmp_key.magic;
crypto/krb5/src/lib/kdb/kdb5.c
1300
key->enctype = tmp_key.enctype;
crypto/krb5/src/lib/kdb/kdb5.c
1301
key->length = tmp_key.length;
crypto/krb5/src/lib/kdb/kdb5.c
191
free(strings[i].key);
crypto/krb5/src/lib/kdb/kdb5.c
2113
const char *key, *key_end, *val, *val_end;
crypto/krb5/src/lib/kdb/kdb5.c
2118
key = *pos;
crypto/krb5/src/lib/kdb/kdb5.c
2119
key_end = memchr(key, '\0', end - key);
crypto/krb5/src/lib/kdb/kdb5.c
2127
*key_out = key;
crypto/krb5/src/lib/kdb/kdb5.c
2139
char *key = NULL, *val = NULL;
crypto/krb5/src/lib/kdb/kdb5.c
2155
key = strdup(mapkey);
crypto/krb5/src/lib/kdb/kdb5.c
2157
if (key == NULL || val == NULL)
crypto/krb5/src/lib/kdb/kdb5.c
2159
strings[count].key = key;
crypto/krb5/src/lib/kdb/kdb5.c
2169
free(key);
crypto/krb5/src/lib/kdb/kdb5.c
2177
const char *key, char **value_out)
crypto/krb5/src/lib/kdb/kdb5.c
2187
if (strcmp(mapkey, key) == 0) {
crypto/krb5/src/lib/kdb/kdb5.c
2198
const char *key, const char *value)
crypto/krb5/src/lib/kdb/kdb5.c
2212
if (strcmp(mapkey, key) == 0) {
crypto/krb5/src/lib/kdb/kdb5.c
2226
k5_buf_add_len(&buf, key, strlen(key) + 1);
crypto/krb5/src/lib/kdb/kdb5.c
2345
krb5_dbe_compute_salt(krb5_context context, const krb5_key_data *key,
crypto/krb5/src/lib/kdb/kdb5.c
2353
stype = (key->key_data_ver < 2) ? KRB5_KDB_SALTTYPE_NORMAL :
crypto/krb5/src/lib/kdb/kdb5.c
2354
key->key_data_type[1];
crypto/krb5/src/lib/kdb/kdb5.c
2373
sdata = make_data(key->key_data_contents[1], key->key_data_length[1]);
crypto/krb5/src/lib/kdb/kdb_cpw.c
156
krb5_keyblock key;
crypto/krb5/src/lib/kdb/kdb_cpw.c
195
&key)))
crypto/krb5/src/lib/kdb/kdb_cpw.c
198
retval = krb5_dbe_encrypt_key_data(context, master_key, &key, NULL,
crypto/krb5/src/lib/kdb/kdb_cpw.c
201
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/lib/kdb/kdb_cpw.c
251
krb5_keyblock key;
crypto/krb5/src/lib/kdb/kdb_cpw.c
320
NULL, &key);
crypto/krb5/src/lib/kdb/kdb_cpw.c
326
retval = krb5_dbe_encrypt_key_data(context, master_key, &key,
crypto/krb5/src/lib/kdb/kdb_cpw.c
331
free(key.contents);
crypto/krb5/src/lib/kdb/kdb_default.c
187
new_entry.key = keylist->keyblock;
crypto/krb5/src/lib/kdb/kdb_default.c
218
krb5_keyblock *key,
crypto/krb5/src/lib/kdb/kdb_default.c
239
if (key->enctype == ENCTYPE_UNKNOWN)
crypto/krb5/src/lib/kdb/kdb_default.c
240
key->enctype = enctype;
crypto/krb5/src/lib/kdb/kdb_default.c
241
else if (enctype != key->enctype) {
crypto/krb5/src/lib/kdb/kdb_default.c
253
key->length = ntohl((uint32_t) keylength);
crypto/krb5/src/lib/kdb/kdb_default.c
255
key->length = keylength;
crypto/krb5/src/lib/kdb/kdb_default.c
258
if (!key->length || key->length > 1024) {
crypto/krb5/src/lib/kdb/kdb_default.c
263
if (!(key->contents = (krb5_octet *)malloc(key->length))) {
crypto/krb5/src/lib/kdb/kdb_default.c
268
if (fread((krb5_pointer) key->contents, sizeof(key->contents[0]),
crypto/krb5/src/lib/kdb/kdb_default.c
269
key->length, kf) != key->length) {
crypto/krb5/src/lib/kdb/kdb_default.c
271
zap(key->contents, key->length);
crypto/krb5/src/lib/kdb/kdb_default.c
272
free(key->contents);
crypto/krb5/src/lib/kdb/kdb_default.c
273
key->contents = 0;
crypto/krb5/src/lib/kdb/kdb_default.c
295
krb5_keyblock *key,
crypto/krb5/src/lib/kdb/kdb_default.c
307
if (key->enctype != ENCTYPE_UNKNOWN)
crypto/krb5/src/lib/kdb/kdb_default.c
308
enctype = key->enctype;
crypto/krb5/src/lib/kdb/kdb_default.c
315
if (key->enctype == ENCTYPE_UNKNOWN)
crypto/krb5/src/lib/kdb/kdb_default.c
316
key->enctype = kt_ent.key.enctype;
crypto/krb5/src/lib/kdb/kdb_default.c
318
if (((int) kt_ent.key.length) < 0) {
crypto/krb5/src/lib/kdb/kdb_default.c
324
key->length = kt_ent.key.length;
crypto/krb5/src/lib/kdb/kdb_default.c
339
key->contents = k5memdup(kt_ent.key.contents, kt_ent.key.length,
crypto/krb5/src/lib/kdb/kdb_default.c
341
if (key->contents == NULL) {
crypto/krb5/src/lib/kdb/kdb_default.c
358
krb5_keyblock *key,
crypto/krb5/src/lib/kdb/kdb_default.c
366
key->magic = KV5M_KEYBLOCK;
crypto/krb5/src/lib/kdb/kdb_default.c
378
retval = krb5_db_def_fetch_mkey_keytab(context, keyfile, mname, key, kvno);
crypto/krb5/src/lib/kdb/kdb_default.c
380
retval = krb5_db_def_fetch_mkey_stash(context, keyfile, key, kvno);
crypto/krb5/src/lib/kdb/keytab.c
167
&entry->key, NULL);
crypto/krb5/src/lib/kdb/keytab.c
173
entry->key.enctype, &similar);
crypto/krb5/src/lib/kdb/keytab.c
186
entry->key.enctype = enctype;
crypto/krb5/src/lib/kdb/t_stringattr.c
86
assert(strcmp(strings[0].key, "price") == 0);
crypto/krb5/src/lib/kdb/t_stringattr.c
88
assert(strcmp(strings[1].key, "time") == 0);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1259
key_serial_t key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1274
key = krcursor->keys[krcursor->currkey - 1];
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1275
if (keyctl_unlink(key, data->cache_id) == -1) {
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1453
key_serial_t key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1464
key = keyctl_search(data->cache_id, KRCC_KEY_TYPE_USER, KRCC_TIME_OFFSETS,
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1466
if (key == -1) {
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1471
psize = keyctl_read_alloc(key, &payload);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1474
key, strerror(errno)));
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1571
key_serial_t key, cache_id = 0;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1613
key = ptd->keys[ptd->next_key];
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1614
if (keyctl_describe_alloc(key, &description) < 0)
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
1631
ret = make_cache(context, ptd->collection_id, key, ptd->anchor_name,
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
296
key_serial_t key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
298
key = keyctl_get_persistent(uid, KEY_SPEC_PROCESS_KEYRING);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
299
return (key == -1 && errno == ENOTSUP) ? get_persistent_fallback(uid) :
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
300
key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
336
key_serial_t key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
339
key = keyctl_search(parent, KRCC_KEY_TYPE_KEYRING, name, possess);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
340
if (key == -1) {
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
342
key = add_key(KRCC_KEY_TYPE_KEYRING, name, NULL, 0, possess);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
343
if (key == -1)
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
345
if (keyctl_link(key, parent) == -1)
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
348
key = add_key(KRCC_KEY_TYPE_KEYRING, name, NULL, 0, parent);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
349
if (key == -1)
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
353
*key_out = key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
538
key_serial_t key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
548
key = add_key(KRCC_KEY_TYPE_USER, KRCC_COLLECTION_PRIMARY,
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
551
return (key == -1) ? errno : 0;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
651
key_serial_t key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
672
key = keyctl_search(collection_id, KRCC_KEY_TYPE_KEYRING, uniquename,
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
674
if (key < 0) {
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
676
key = add_key(KRCC_KEY_TYPE_KEYRING, uniquename, NULL, 0,
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
678
if (key < 0) {
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
696
*cache_id_out = key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
708
key_serial_t key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
713
key = add_key(KRCC_CRED_KEY_TYPE, name, payload, plen, cache_id);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
714
if (key != -1) {
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
715
*key_out = key;
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
722
key = add_key(KRCC_KEY_TYPE_USER, name, payload, plen, cache_id);
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
723
if (key == -1)
crypto/krb5/src/lib/krb5/ccache/cc_keyring.c
725
*key_out = key;
crypto/krb5/src/lib/krb5/ccache/cc_mslsa.c
514
get_STRING_from_registry(HKEY hBaseKey, char * key, char * value, char * outbuf, DWORD outlen)
crypto/krb5/src/lib/krb5/ccache/cc_mslsa.c
523
rc = RegOpenKeyExA(hBaseKey, key, 0, KEY_QUERY_VALUE, &hKey);
crypto/krb5/src/lib/krb5/ccache/ccfns.c
238
const char *key, krb5_data *data)
crypto/krb5/src/lib/krb5/ccache/ccfns.c
244
TRACE_CC_SET_CONFIG(context, id, principal, key, data);
crypto/krb5/src/lib/krb5/ccache/ccfns.c
246
ret = k5_build_conf_principals(context, id, principal, key, &cred);
crypto/krb5/src/lib/krb5/ccache/ccfns.c
266
const char *key, krb5_data *data)
crypto/krb5/src/lib/krb5/ccache/ccfns.c
274
ret = k5_build_conf_principals(context, id, principal, key, &mcred);
crypto/krb5/src/lib/krb5/ccache/ccfns.c
286
TRACE_CC_GET_CONFIG(context, id, principal, key, data);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1054
ret_entry->key.enctype = (krb5_enctype)enctype;
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1057
ret_entry->key.magic = KV5M_KEYBLOCK;
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1071
ret_entry->key.length = u_count;
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1073
ret_entry->key.contents = (krb5_octet *)malloc(u_count);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1074
if (!ret_entry->key.contents) {
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1078
if (!fread(ret_entry->key.contents, sizeof(krb5_octet), count,
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1221
enctype = entry->key.enctype;
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1223
enctype = htons(entry->key.enctype);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1229
size = entry->key.length;
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1231
size = htons(entry->key.length);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1235
if (!fwrite(entry->key.contents, sizeof(krb5_octet),
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1236
entry->key.length, KTFILEP(id))) {
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1294
total_size += sizeof(krb5_int16) + entry->key.length;
crypto/krb5/src/lib/krb5/keytab/kt_file.c
320
cur_entry.key.contents = 0;
crypto/krb5/src/lib/krb5/keytab/kt_file.c
340
if (enctype != IGNORE_ENCTYPE && enctype != new_entry.key.enctype) {
crypto/krb5/src/lib/krb5/keytab/kt_file.c
591
(entry->key.enctype == cur_entry.key.enctype) &&
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
396
entry->key.enctype,
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
426
out_entry->key = match->key;
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
427
err = krb5_copy_keyblock_contents(context, &(match->key),
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
428
&(out_entry->key));
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
434
out_entry->key.enctype = enctype;
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
499
entry->key = mkt_cursor->entry->key;
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
500
err = krb5_copy_keyblock_contents(context, &(mkt_cursor->entry->key),
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
501
&(entry->key));
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
549
err = krb5_copy_keyblock_contents(context, &(entry->key),
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
550
&(cursor->entry->key));
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
559
krb5_free_keyblock_contents(context, &(cursor->entry->key));
crypto/krb5/src/lib/krb5/keytab/kt_memory.c
597
(*pcursor)->entry->key.enctype == entry->key.enctype &&
crypto/krb5/src/lib/krb5/keytab/ktfr_entry.c
38
if (entry->key.contents) {
crypto/krb5/src/lib/krb5/keytab/ktfr_entry.c
39
zap((char *)entry->key.contents, entry->key.length);
crypto/krb5/src/lib/krb5/keytab/ktfr_entry.c
40
free(entry->key.contents);
crypto/krb5/src/lib/krb5/keytab/read_servi.c
49
krb5_kt_read_service_key(krb5_context context, krb5_pointer keyprocarg, krb5_principal principal, krb5_kvno vno, krb5_enctype enctype, krb5_keyblock **key)
crypto/krb5/src/lib/krb5/keytab/read_servi.c
78
krb5_copy_keyblock(context, &entry.key, key);
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
153
kent.key.magic = KV5M_KEYBLOCK;
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
154
kent.key.enctype = e1;
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
155
kent.key.length = 1;
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
156
kent.key.contents = (krb5_octet *) "1";
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
162
kent.key.enctype = e2;
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
166
kent.key.enctype = e1;
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
168
kent.key.contents = (krb5_octet *) "2";
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
188
((kent.key.enctype != e1) && (kent.key.enctype != e2)) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
189
(kent.key.length != 1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
190
(kent.key.contents[0] != kent.vno +'0')) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
196
(kent.key.magic != KV5M_KEYBLOCK)) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
236
((kent.key.enctype != e1) && (kent.key.enctype != e2)) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
237
(kent.key.length != 1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
238
(kent.key.contents[0] != kent.vno +'0')) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
253
(kent.vno != 2) || (kent.key.enctype != e1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
254
(kent.key.length != 1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
255
(kent.key.contents[0] != kent.vno +'0')) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
271
(kent.vno != 2) || (kent.key.enctype != e1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
272
(kent.key.length != 1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
273
(kent.key.contents[0] != kent.vno +'0')) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
290
(kent.vno != 1) || (kent.key.enctype != e1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
291
(kent.key.length != 1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
292
(kent.key.contents[0] != kent.vno +'0')) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
357
(kent.vno != 2) || (kent.key.enctype != e1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
358
(kent.key.length != 1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
359
(kent.key.contents[0] != kent.vno +'0')) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
378
(kent.vno != 1) || (kent.key.enctype != e1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
379
(kent.key.length != 1) ||
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
380
(kent.key.contents[0] != kent.vno +'0')) {
crypto/krb5/src/lib/krb5/krb/auth_con.c
171
if (auth_context->key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
172
krb5_k_free_key(context, auth_context->key);
crypto/krb5/src/lib/krb5/krb/auth_con.c
173
return(krb5_k_create_key(context, keyblock, &(auth_context->key)));
crypto/krb5/src/lib/krb5/krb/auth_con.c
179
if (auth_context->key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
180
return krb5_k_key_keyblock(context, auth_context->key, keyblock);
crypto/krb5/src/lib/krb5/krb/auth_con.c
187
krb5_key *key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
189
krb5_k_reference_key(context, auth_context->key);
crypto/krb5/src/lib/krb5/krb/auth_con.c
190
*key = auth_context->key;
crypto/krb5/src/lib/krb5/krb/auth_con.c
220
krb5_key key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
223
ac->send_subkey = key;
crypto/krb5/src/lib/krb5/krb/auth_con.c
224
krb5_k_reference_key(ctx, key);
crypto/krb5/src/lib/krb5/krb/auth_con.c
242
krb5_key key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
245
ac->recv_subkey = key;
crypto/krb5/src/lib/krb5/krb/auth_con.c
246
krb5_k_reference_key(ctx, key);
crypto/krb5/src/lib/krb5/krb/auth_con.c
261
krb5_key *key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
264
*key = ac->send_subkey;
crypto/krb5/src/lib/krb5/krb/auth_con.c
279
krb5_key *key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
282
*key = ac->recv_subkey;
crypto/krb5/src/lib/krb5/krb/auth_con.c
317
if (auth_context->key == NULL)
crypto/krb5/src/lib/krb5/krb/auth_con.c
319
return krb5_c_init_state(context, &auth_context->key->keyblock,
crypto/krb5/src/lib/krb5/krb/auth_con.c
65
if (auth_context->key)
crypto/krb5/src/lib/krb5/krb/auth_con.c
66
krb5_k_free_key(context, auth_context->key);
crypto/krb5/src/lib/krb5/krb/auth_con.h
14
krb5_key key;
crypto/krb5/src/lib/krb5/krb/authdata.c
546
const krb5_keyblock *key, krb5_authdata ***ad_out)
crypto/krb5/src/lib/krb5/krb/authdata.c
555
ret = k5_unwrap_cammac_svc(kcontext, cammacs[i], key, &elements);
crypto/krb5/src/lib/krb5/krb/authdata.c
589
const krb5_keyblock *key, krb5_authdata ***elems_out)
crypto/krb5/src/lib/krb5/krb/authdata.c
602
ret = extract_cammacs(kcontext, cammacs, key, &elements);
crypto/krb5/src/lib/krb5/krb/authdata.c
615
const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/authdata.c
634
code = get_cammac_authdata(kcontext, ap_req, key, &cammac_authdata);
crypto/krb5/src/lib/krb5/krb/authdata.c
709
key,
crypto/krb5/src/lib/krb5/krb/authdata.h
41
const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/authdata_dec.c
185
const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/authdata_dec.c
222
code = krb5_c_verify_checksum(context, key,
crypto/krb5/src/lib/krb5/krb/authdata_enc.c
107
code = krb5int_c_mandatory_cksumtype(context, key->enctype,
crypto/krb5/src/lib/krb5/krb/authdata_enc.c
120
key, KRB5_KEYUSAGE_AD_KDCISSUED_CKSUM,
crypto/krb5/src/lib/krb5/krb/authdata_enc.c
89
const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/cammac_util.c
65
const krb5_keyblock *key, krb5_authdata ***adata_out)
crypto/krb5/src/lib/krb5/krb/cammac_util.c
78
ret = check_svcver(context, cammac, key);
crypto/krb5/src/lib/krb5/krb/decode_kdc.c
47
krb5_data *enc_rep, const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/decode_kdc.c
70
retval = krb5int_fast_reply_key(context, strengthen_key, key, &tgs_key);
crypto/krb5/src/lib/krb5/krb/enc_helper.c
33
const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/lib/krb5/krb/enc_helper.c
39
if ((ret = krb5_c_encrypt_length(context, key->enctype, plain->length,
crypto/krb5/src/lib/krb5/krb/enc_helper.c
46
ret = krb5_c_encrypt(context, key, usage, 0, plain, cipher);
crypto/krb5/src/lib/krb5/krb/enc_keyhelper.c
33
k5_encrypt_keyhelper(krb5_context context, krb5_key key, krb5_keyusage usage,
crypto/krb5/src/lib/krb5/krb/enc_keyhelper.c
40
enctype = krb5_k_key_enctype(context, key);
crypto/krb5/src/lib/krb5/krb/enc_keyhelper.c
49
ret = krb5_k_encrypt(context, key, usage, 0, plain, cipher);
crypto/krb5/src/lib/krb5/krb/fast.c
575
krb5_keyblock *key = NULL;
crypto/krb5/src/lib/krb5/krb/fast.c
582
"replykey", &key);
crypto/krb5/src/lib/krb5/krb/fast.c
584
TRACE_FAST_REPLY_KEY(context, key);
crypto/krb5/src/lib/krb5/krb/fast.c
585
*out_key = *key;
crypto/krb5/src/lib/krb5/krb/fast.c
586
free(key);
crypto/krb5/src/lib/krb5/krb/gen_seqnum.c
40
krb5_generate_seq_number(krb5_context context, const krb5_keyblock *key, krb5_ui_4 *seqno)
crypto/krb5/src/lib/krb5/krb/gen_subkey.c
31
const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/gen_subkey.c
55
krb5_generate_subkey(krb5_context context, const krb5_keyblock *key, krb5_keyblock **subkey)
crypto/krb5/src/lib/krb5/krb/gen_subkey.c
57
return krb5_generate_subkey_extended(context, key, key->enctype, subkey);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
126
ret = krb5int_fast_reply_key(context, strengthen_key, &ctx->as_key, &key);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
129
ret = krb5_kdc_rep_decrypt_proc(context, &key, NULL, ctx->reply);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
131
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
135
*key_out = key;
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
52
krb5_keyblock key;
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
57
memset(&key, 0, sizeof(key));
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
64
&key);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
67
ret = krb5_kdc_rep_decrypt_proc(context, &key, NULL, ctx->reply);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
69
*key_out = key;
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
72
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/lib/krb5/krb/gic_keytab.c
106
etype = entry.key.enctype;
crypto/krb5/src/lib/krb5/krb/gic_keytab.c
74
*as_key = kt_ent.key;
crypto/krb5/src/lib/krb5/krb/gic_keytab.c
75
memset(&kt_ent.key, 0, sizeof(kt_ent.key));
crypto/krb5/src/lib/krb5/krb/in_tkt_sky.c
107
get_as_key_skey, (void *)key, ret_as_reply);
crypto/krb5/src/lib/krb5/krb/in_tkt_sky.c
38
const krb5_keyblock *key = gak_data;
crypto/krb5/src/lib/krb5/krb/in_tkt_sky.c
44
return krb5int_c_copy_keyblock_contents(context, key, as_key);
crypto/krb5/src/lib/krb5/krb/in_tkt_sky.c
72
const krb5_keyblock *key, krb5_ccache ccache,
crypto/krb5/src/lib/krb5/krb/in_tkt_sky.c
90
if (key == NULL) {
crypto/krb5/src/lib/krb5/krb/int-proto.h
286
k5_encrypt_keyhelper(krb5_context context, krb5_key key,
crypto/krb5/src/lib/krb5/krb/kdc_rep_dc.c
37
krb5_kdc_rep_decrypt_proc(krb5_context context, const krb5_keyblock *key, krb5_const_pointer decryptarg, krb5_kdc_rep *dec_rep)
crypto/krb5/src/lib/krb5/krb/kdc_rep_dc.c
59
if ((retval = krb5_c_decrypt(context, key, usage, 0, &dec_rep->enc_part,
crypto/krb5/src/lib/krb5/krb/kfree.c
345
krb5_free_keyblock_contents(krb5_context context, krb5_keyblock *key)
crypto/krb5/src/lib/krb5/krb/kfree.c
347
krb5int_c_free_keyblock_contents (context, key);
crypto/krb5/src/lib/krb5/krb/mk_cred.c
130
ret = encrypt_credencpart(context, &credenc, key, &enc);
crypto/krb5/src/lib/krb5/krb/mk_cred.c
159
krb5_key key;
crypto/krb5/src/lib/krb5/krb/mk_cred.c
188
key = (authcon->send_subkey != NULL) ? authcon->send_subkey : authcon->key;
crypto/krb5/src/lib/krb5/krb/mk_cred.c
189
ret = create_krbcred(context, creds, key, &rdata, local_addr, remote_addr,
crypto/krb5/src/lib/krb5/krb/mk_cred.c
194
if (key != NULL) {
crypto/krb5/src/lib/krb5/krb/mk_cred.c
41
krb5_key key, krb5_enc_data *encdata_out)
crypto/krb5/src/lib/krb5/krb/mk_cred.c
51
if (key == NULL) {
crypto/krb5/src/lib/krb5/krb/mk_cred.c
59
ret = k5_encrypt_keyhelper(context, key, KRB5_KEYUSAGE_KRB_CRED_ENCPART,
crypto/krb5/src/lib/krb5/krb/mk_cred.c
74
create_krbcred(krb5_context context, krb5_creds **creds, krb5_key key,
crypto/krb5/src/lib/krb5/krb/mk_priv.c
111
krb5_key key;
crypto/krb5/src/lib/krb5/krb/mk_priv.c
133
key = (authcon->send_subkey != NULL) ? authcon->send_subkey : authcon->key;
crypto/krb5/src/lib/krb5/krb/mk_priv.c
134
ret = create_krbpriv(context, userdata, key, &rdata, local_addr,
crypto/krb5/src/lib/krb5/krb/mk_priv.c
45
krb5_key key, const krb5_replay_data *rdata,
crypto/krb5/src/lib/krb5/krb/mk_priv.c
49
krb5_enctype enctype = krb5_k_key_enctype(context, key);
crypto/krb5/src/lib/krb5/krb/mk_priv.c
81
ret = krb5_k_encrypt(context, key, KRB5_KEYUSAGE_KRB_PRIV_ENCPART,
crypto/krb5/src/lib/krb5/krb/mk_rep.c
100
&auth_context->key->keyblock,
crypto/krb5/src/lib/krb5/krb/mk_rep.c
120
if ((retval = k5_encrypt_keyhelper(context, auth_context->key,
crypto/krb5/src/lib/krb5/krb/mk_rep.c
82
&auth_context->key->keyblock,
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
126
if ((*auth_context)->key != NULL) {
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
127
krb5_k_free_key(context, (*auth_context)->key);
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
128
(*auth_context)->key = NULL;
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
133
&((*auth_context)->key))))
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
171
retval = krb5_k_make_checksum(context, 0, (*auth_context)->key,
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
259
krb5_key key, krb5_ui_4 seq_number,
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
271
if (key) {
crypto/krb5/src/lib/krb5/krb/mk_req_ext.c
272
retval = krb5_k_key_keyblock(context, key, &authent->subkey);
crypto/krb5/src/lib/krb5/krb/mk_safe.c
128
krb5_key key;
crypto/krb5/src/lib/krb5/krb/mk_safe.c
151
key = (authcon->send_subkey != NULL) ? authcon->send_subkey : authcon->key;
crypto/krb5/src/lib/krb5/krb/mk_safe.c
152
sumtype = safe_cksumtype(context, authcon, key->keyblock.enctype);
crypto/krb5/src/lib/krb5/krb/mk_safe.c
153
ret = create_krbsafe(context, userdata, key, &rdata, local_addr,
crypto/krb5/src/lib/krb5/krb/mk_safe.c
45
create_krbsafe(krb5_context context, const krb5_data *userdata, krb5_key key,
crypto/krb5/src/lib/krb5/krb/mk_safe.c
78
ret = krb5_k_make_checksum(context, sumtype, key,
crypto/krb5/src/lib/krb5/krb/pac.c
480
const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/lib/krb5/krb/pac.c
513
ret = krb5_c_verify_checksum(context, key, usage, data, &checksum, &valid);
crypto/krb5/src/lib/krb5/krb/pac.c
843
const krb5_auth_context *auth_context, const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/pac.c
854
req->ticket->enc_part2->client, key, NULL);
crypto/krb5/src/lib/krb5/krb/pac_sign.c
100
const krb5_keyblock *key, krb5_cksumtype *cksumtype)
crypto/krb5/src/lib/krb5/krb/pac_sign.c
106
ret = krb5int_c_mandatory_cksumtype(context, key->enctype, cksumtype);
crypto/krb5/src/lib/krb5/krb/pac_sign.c
188
const krb5_keyblock *key, krb5_cksumtype cksumtype,
crypto/krb5/src/lib/krb5/krb/pac_sign.c
206
return krb5_c_make_checksum_iov(context, cksumtype, key,
crypto/krb5/src/lib/krb5/krb/preauth2.c
514
get_cc_config(krb5_context context, krb5_clpreauth_rock rock, const char *key)
crypto/krb5/src/lib/krb5/krb/preauth2.c
522
value = k5_json_object_get(ctx->cc_config_in, key);
crypto/krb5/src/lib/krb5/krb/preauth2.c
534
const char *key, const char *data)
crypto/krb5/src/lib/krb5/krb/preauth2.c
547
ret = k5_json_object_set(ctx->cc_config_out, key, str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
107
retval = k5_json_object_set(obj, key, str);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
114
codec_value_to_int32(k5_json_object obj, const char *key, krb5_int32 *int32)
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
118
val = k5_json_object_get(obj, key);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
131
codec_int32_to_value(krb5_int32 int32, k5_json_object obj, const char *key)
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
143
retval = k5_json_object_set(obj, key, num);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
426
encrypt_nonce(krb5_context ctx, krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
439
retval = krb5_encrypt_helper(ctx, key, KRB5_KEYUSAGE_PA_OTP_REQUEST,
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
58
codec_value_to_string(k5_json_object obj, const char *key, char **string)
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
63
val = k5_json_object_get(obj, key);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
80
codec_value_to_data(k5_json_object obj, const char *key, krb5_data *data)
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
85
retval = codec_value_to_string(obj, key, &tmp);
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
95
codec_data_to_value(krb5_data *data, k5_json_object obj, const char *key)
crypto/krb5/src/lib/krb5/krb/preauth_pkinit.c
47
get_one_challenge(void *arg, const char *key, k5_json_value val)
crypto/krb5/src/lib/krb5/krb/preauth_pkinit.c
69
data->identities[i]->identity = strdup(key);
crypto/krb5/src/lib/krb5/krb/rd_cred.c
173
if (authcon->recv_subkey != NULL || authcon->key != NULL) {
crypto/krb5/src/lib/krb5/krb/rd_cred.c
52
if (authcon->recv_subkey == NULL && authcon->key == NULL)
crypto/krb5/src/lib/krb5/krb/rd_cred.c
63
if (!decrypted && authcon->key != NULL) {
crypto/krb5/src/lib/krb5/krb/rd_cred.c
64
ret = krb5_k_decrypt(context, authcon->key,
crypto/krb5/src/lib/krb5/krb/rd_priv.c
105
krb5_key key;
crypto/krb5/src/lib/krb5/krb/rd_priv.c
118
key = (authcon->recv_subkey != NULL) ? authcon->recv_subkey : authcon->key;
crypto/krb5/src/lib/krb5/krb/rd_priv.c
120
ret = read_krbpriv(context, authcon, inbuf, key, &rdata, &userdata, &enc);
crypto/krb5/src/lib/krb5/krb/rd_priv.c
45
const krb5_data *der_krbpriv, const krb5_key key,
crypto/krb5/src/lib/krb5/krb/rd_priv.c
68
ret = krb5_k_decrypt(context, key, KRB5_KEYUSAGE_KRB_PRIV_ENCPART, cstate,
crypto/krb5/src/lib/krb5/krb/rd_rep.c
172
if ((retval = krb5_k_decrypt(context, auth_context->key,
crypto/krb5/src/lib/krb5/krb/rd_rep.c
95
retval = krb5_k_decrypt(context, auth_context->key,
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
297
ret = krb5_decrypt_tkt_part(context, &ent->key, req->ticket);
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
308
ret = krb5_copy_keyblock_contents(context, &ent->key, keyblock_out);
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
342
TRACE_RD_REQ_DECRYPT_SPECIFIC(context, ent.principal, &ent.key);
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
405
if (krb5_c_enctype_compare(context, ent.key.enctype, tkt_etype,
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
423
ent.key.enctype = tkt_etype;
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
425
TRACE_RD_REQ_DECRYPT_ANY(context, ent.principal, &ent.key);
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
494
if ((*auth_context)->key) { /* User to User authentication */
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
496
&(*auth_context)->key->keyblock,
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
500
decrypt_key = (*auth_context)->key->keyblock;
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
501
(*auth_context)->key->keyblock.contents = NULL;
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
503
krb5_k_free_key(context, (*auth_context)->key);
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
504
(*auth_context)->key = NULL;
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
749
&((*auth_context)->key))))
crypto/krb5/src/lib/krb5/krb/rd_req_dec.c
771
krb5_k_key_enctype(context, (*auth_context)->key))
crypto/krb5/src/lib/krb5/krb/rd_safe.c
100
ret = krb5_k_verify_checksum(context, key,
crypto/krb5/src/lib/krb5/krb/rd_safe.c
133
krb5_key key;
crypto/krb5/src/lib/krb5/krb/rd_safe.c
145
key = (authcon->recv_subkey != NULL) ? authcon->recv_subkey : authcon->key;
crypto/krb5/src/lib/krb5/krb/rd_safe.c
147
ret = read_krbsafe(context, authcon, inbuf, key, &rdata, &userdata,
crypto/krb5/src/lib/krb5/krb/rd_safe.c
45
const krb5_data *der_krbsafe, krb5_key key,
crypto/krb5/src/lib/krb5/krb/rd_safe.c
96
ret = krb5_k_verify_checksum(context, key, KRB5_KEYUSAGE_KRB_SAFE_CKSUM,
crypto/krb5/src/lib/krb5/krb/s4u_creds.c
131
code = krb5_c_make_checksum(context, CKSUMTYPE_HMAC_MD5_ARCFOUR, key,
crypto/krb5/src/lib/krb5/krb/s4u_creds.c
92
krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/ser_actx.c
193
if (!kret && auth_context->key) {
crypto/krb5/src/lib/krb5/krb/ser_actx.c
195
kret = k5_externalize_keyblock(&auth_context->key->keyblock,
crypto/krb5/src/lib/krb5/krb/ser_actx.c
237
intern_key(krb5_key *key, krb5_octet **bp, size_t *sp)
crypto/krb5/src/lib/krb5/krb/ser_actx.c
245
ret = krb5_k_create_key(NULL, keyblock, key);
crypto/krb5/src/lib/krb5/krb/ser_actx.c
345
if (!(kret = intern_key(&auth_context->key, &bp, &remain)))
crypto/krb5/src/lib/krb5/krb/ser_actx.c
92
if (!kret && auth_context->key) {
crypto/krb5/src/lib/krb5/krb/ser_actx.c
93
kret = k5_size_keyblock(&auth_context->key->keyblock, &required);
crypto/krb5/src/lib/krb5/krb/srv_dec_tkt.c
102
if (ktent.key.enctype != ticket->enc_part.enctype) {
crypto/krb5/src/lib/krb5/krb/srv_dec_tkt.c
107
retval = decrypt_ticket_keyblock(context, &ktent.key, ticket);
crypto/krb5/src/lib/krb5/krb/srv_dec_tkt.c
44
decrypt_ticket_keyblock(krb5_context context, const krb5_keyblock *key,
crypto/krb5/src/lib/krb5/krb/srv_dec_tkt.c
51
retval = krb5_decrypt_tkt_part(context, key, ticket);
crypto/krb5/src/lib/krb5/krb/srv_dec_tkt.c
87
retval = decrypt_ticket_keyblock(context, &ktent.key, ticket);
crypto/krb5/src/lib/krb5/krb/t_authdata.c
103
assert(krb5_make_authdata_kdc_issued(context, &key, NULL, results, &kdci) == 0);
crypto/krb5/src/lib/krb5/krb/t_authdata.c
104
assert(krb5_verify_authdata_kdc_issued(context, &key, kdci[0], NULL, &container_out) == 0);
crypto/krb5/src/lib/krb5/krb/t_authdata.c
63
krb5_keyblock key = {
crypto/krb5/src/lib/krb5/krb/t_cc_config.c
64
krb5_principal server, const char *key)
crypto/krb5/src/lib/krb5/krb/t_cc_config.c
73
k5_build_conf_principals(context, ccache, server, key,
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
307
const char *key[4];
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
319
key[0] = "capaths";
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
320
key[1] = clientz;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
321
key[2] = serverz;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
322
key[3] = NULL;
crypto/krb5/src/lib/krb5/krb/walk_rtree.c
323
retval = profile_get_values(context->profile, key, vals);
crypto/krb5/src/lib/krb5/os/t_trace.c
142
key.keyblock.magic = 0;
crypto/krb5/src/lib/krb5/os/t_trace.c
143
key.keyblock.enctype = ENCTYPE_UNKNOWN;
crypto/krb5/src/lib/krb5/os/t_trace.c
144
key.keyblock.length = strlen(str);
crypto/krb5/src/lib/krb5/os/t_trace.c
145
key.keyblock.contents = (krb5_octet *)str;
crypto/krb5/src/lib/krb5/os/t_trace.c
146
key.refcount = 0;
crypto/krb5/src/lib/krb5/os/t_trace.c
147
key.derived = NULL;
crypto/krb5/src/lib/krb5/os/t_trace.c
148
key.cache = NULL;
crypto/krb5/src/lib/krb5/os/t_trace.c
150
"{keyblock}", &key.keyblock);
crypto/krb5/src/lib/krb5/os/t_trace.c
153
TRACE(ctx, "krb5_key, display enctype and hash of key: {key}", &key);
crypto/krb5/src/lib/krb5/os/t_trace.c
225
memcpy(&creds.keyblock, &key.keyblock, sizeof(creds.keyblock));
crypto/krb5/src/lib/krb5/os/t_trace.c
62
struct krb5_key_st key;
crypto/krb5/src/lib/krb5/os/trace.c
187
krb5_key key;
crypto/krb5/src/lib/krb5/os/trace.c
294
key = va_arg(ap, krb5_key);
crypto/krb5/src/lib/krb5/os/trace.c
295
if (key == NULL)
crypto/krb5/src/lib/krb5/os/trace.c
298
subfmt(context, &buf, "{keyblock}", &key->keyblock);
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1267
(unsigned long) tab[i].key, (unsigned long) tab[i].other1,
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
157
krb5_ui_4 key;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
545
for (i = 0; i < title_used && code > title[i].key; i++) ;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
556
title[i].key = cases[2]; /* Title */
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
592
for (i = 0; i < upper_used && code > upper[i].key; i++) ;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
603
upper[i].key = cases[0]; /* Upper */
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
639
for (i = 0; i < lower_used && code > lower[i].key; i++) ;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
650
lower[i].key = cases[1]; /* Lower */
crypto/krb5/src/lib/rpc/getrpcent.c
156
char *key = NULL, *val = NULL;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
278
call_res.client_handle.length = sizeof(client_data->key);
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
279
call_res.client_handle.value = (char *) &client_data->key;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
718
client_data->key = client_key++;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
734
PRINTF(("svcauth_gssapi: new handle %d\n", client_data->key));
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
794
if (c->client->key == handle)
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
871
L_PRINTF(2, ("destroy_client: client %d destroyed\n", client_data->key));
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
88
uint32_t key;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
910
client_data->key));
crypto/krb5/src/plugins/audit/kdc_j_encode.c
41
string_to_value(const char *in, k5_json_object obj, const char *key);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
43
princ_to_value(krb5_principal princ, k5_json_object obj, const char *key);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
443
string_to_value(const char *in, k5_json_object obj, const char *key)
crypto/krb5/src/plugins/audit/kdc_j_encode.c
45
data_to_value(krb5_data *data, k5_json_object obj, const char *key);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
454
ret = k5_json_object_set(obj, key, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
466
data_to_value(krb5_data *data, k5_json_object obj, const char *key)
crypto/krb5/src/plugins/audit/kdc_j_encode.c
47
int32_to_value(krb5_int32 int32, k5_json_object obj, const char *key);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
477
ret = k5_json_object_set(obj, key, str);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
488
int32_to_value(krb5_int32 int32, k5_json_object obj, const char *key)
crypto/krb5/src/plugins/audit/kdc_j_encode.c
49
bool_to_value(krb5_boolean b, k5_json_object obj, const char *key);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
496
ret = k5_json_object_set(obj, key, num);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
507
bool_to_value(krb5_boolean in, k5_json_object obj, const char *key)
crypto/krb5/src/plugins/audit/kdc_j_encode.c
516
ret = k5_json_object_set(obj, key, b);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
546
princ_to_value(krb5_principal princ, k5_json_object obj, const char *key)
crypto/krb5/src/plugins/audit/kdc_j_encode.c
57
const char *key);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
587
ret = k5_json_object_set(obj, key, tmp);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
65
tkt_to_value(krb5_ticket *tkt, k5_json_object obj, const char *key);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
656
addr_to_value(const krb5_address *address, k5_json_object obj, const char *key)
crypto/krb5/src/plugins/audit/kdc_j_encode.c
669
ret = k5_json_object_set(obj, key, addr_obj);
crypto/krb5/src/plugins/audit/kdc_j_encode.c
831
const char *key)
crypto/krb5/src/plugins/audit/kdc_j_encode.c
893
ret = k5_json_object_set(obj, key, tmp);
crypto/krb5/src/plugins/gssapi/negoextest/main.c
311
gss_buffer_desc key, type;
crypto/krb5/src/plugins/gssapi/negoextest/main.c
347
key.value = keybytes;
crypto/krb5/src/plugins/gssapi/negoextest/main.c
348
key.length = sizeof(keybytes);
crypto/krb5/src/plugins/gssapi/negoextest/main.c
351
major = gss_add_buffer_set_member(minor_status, &key, data_set);
crypto/krb5/src/plugins/kadm5_auth/test/main.c
110
const char *key, const char *value)
crypto/krb5/src/plugins/kadm5_auth/test/main.c
112
return (strcmp(key, "note") == 0) ? 0 : KRB5_PLUGIN_NO_HANDLE;
crypto/krb5/src/plugins/kadm5_auth/test/main.c
119
const char *key, const char *value)
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
1017
return db->seq(db, &curs->key, &curs->data, curs->startflag);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
1027
curs->keycopy.data = malloc(curs->key.size);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
1031
curs->keycopy.size = curs->key.size;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
1032
memcpy(curs->keycopy.data, curs->key.data, curs->key.size);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
1055
curs->key = curs->keycopy;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
1056
dbret = dbc->db->seq(dbc->db, &curs->key, &curs->data, R_CURSOR);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
1061
return dbc->db->seq(dbc->db, &curs->key, &curs->data, curs->stepflag);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
761
DBT key, contents;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
779
key.data = keydata.data;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
780
key.size = keydata.length;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
783
dbret = (*db->get)(db, &key, &contents, 0);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
811
DBT key, contents;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
844
key.data = keydata.data;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
845
key.size = keydata.length;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
846
dbret = (*db->put)(db, &key, &contents, 0);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
864
DBT key, contents;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
877
key.data = keydata.data;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
878
key.size = keydata.length;
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
881
dbret = (*db->get) (db, &key, &contents, 0);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
914
dbret = (*db->put) (db, &key, &contents, 0);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
919
dbret = (*db->del) (db, &key, 0);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
934
DBT key;
crypto/krb5/src/plugins/kdb/db2/kdb_xdr.c
34
krb5_encode_princ_dbkey(krb5_context context, krb5_data *key,
crypto/krb5/src/plugins/kdb/db2/kdb_xdr.c
42
key->length = strlen(princ_name)+1;
crypto/krb5/src/plugins/kdb/db2/kdb_xdr.c
43
key->data = princ_name;
crypto/krb5/src/plugins/kdb/db2/kdb_xdr.h
8
krb5_encode_princ_dbkey(krb5_context context, krb5_data *key,
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_close.c
86
if (t->bt_cursor.key.data != NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_close.c
87
free(t->bt_cursor.key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_close.c
88
t->bt_cursor.key.size = 0;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_close.c
89
t->bt_cursor.key.data = NULL;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
158
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
217
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
285
__bt_bdelete(BTREE *t, const DBT *key)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
294
loop: if ((e = __bt_search(t, key, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
309
if (__bt_dleaf(t, key, h, e->index)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
322
} while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
330
if (__bt_cmp(t, key, e) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
332
if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
464
__bt_dleaf(BTREE *t, const DBT *key, PAGE *h, u_int idx)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
476
__bt_curdel(t, key, h, idx))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
525
__bt_curdel(BTREE *t, const DBT *key, PAGE *h, u_int idx)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
546
if (key == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
550
&c->key, &c->key, NULL, NULL, 1)) != RET_SUCCESS)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
553
key = &c->key;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
559
if (__bt_cmp(t, key, &e) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
568
if (__bt_cmp(t, key, &e) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
579
if (__bt_cmp(t, key, &e) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
591
if (__bt_cmp(t, key, &e) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
604
__bt_ret(t, &e, &c->key, &c->key, NULL, NULL, 1)) == RET_SUCCESS) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
62
__bt_delete(const DB *dbp, const DBT *key, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
85
status = __bt_bdelete(t, key);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_get.c
63
__bt_get(const DB *dbp, const DBT *key, DBT *data, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_get.c
83
if ((e = __bt_search(t, key, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
121
if (key->size + data->size > t->bt_ovflsize) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
122
if (key->size > t->bt_ovflsize) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
124
storekey: if (__ovfl_put(t, key, &pg) == RET_ERROR)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
129
yuck_this_is_gross_code = key->size;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
130
if (yuck_this_is_gross_code != key->size)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
135
key = &tkey;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
137
if (key->size + data->size > t->bt_ovflsize) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
151
if (key->size + data->size > t->bt_ovflsize)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
167
if (t->bt_order == NOT || (e = bt_fast(t, key, data, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
168
if ((e = __bt_search(t, key, &exact)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
193
delete: if (__bt_dleaf(t, key, h, idx) == RET_ERROR) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
206
nbytes = NBLEAFDBT(key->size, data->size);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
209
if ((status = __bt_split(t, h, key,
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
222
WR_BLEAF(dest, key, data, dflags);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
271
bt_fast(BTREE *t, const DBT *key, const DBT *data, int *exactp)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
288
nbytes = NBLEAFDBT(key->size, data->size);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
297
if ((cmp = __bt_cmp(t, key, &t->bt_cur)) < 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
305
if ((cmp = __bt_cmp(t, key, &t->bt_cur)) > 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
67
__bt_put(const DB *dbp, DBT *key, const DBT *data, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
107
__bt_sprev(t, h, key, exactp))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
111
__bt_snext(t, h, key, exactp))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
148
__bt_snext(BTREE *t, PAGE *h, const DBT *key, int *exactp)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
164
if (__bt_cmp(t, key, &e) != 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
224
__bt_sprev(BTREE *t, PAGE *h, const DBT *key, int *exactp)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
240
if (__bt_cmp(t, key, &e) != 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
66
__bt_search(BTREE *t, const DBT *key, int *exactp)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
82
if ((cmp = __bt_cmp(t, key, &t->bt_cur)) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
105
__bt_seq(const DB *dbp, DBT *key, DBT *data, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
137
status = __bt_seqset(t, &e, key, flags);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
148
__bt_ret(t, &e, key, &t->bt_rkey, data, &t->bt_rdata, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
179
__bt_seqset(BTREE *t, EPG *ep, DBT *key, int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
196
if (key->data == NULL || key->size == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
200
return (__bt_first(t, key, ep, &exact));
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
311
if ((rval = __bt_first(t, &c->key, ep, &exact)) == RET_ERROR)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
488
__bt_first(BTREE *t, const DBT *key, EPG *erval, int *exactp)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
502
if ((ep = __bt_search(t, key, exactp)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
545
} while (__bt_cmp(t, key, ep) == 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
588
if (t->bt_cursor.key.data != NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
589
free(t->bt_cursor.key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
590
t->bt_cursor.key.size = 0;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
591
t->bt_cursor.key.data = NULL;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
118
WR_BLEAF(dest, key, data, flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
82
__bt_split(BTREE *t, PAGE *sp, const DBT *key, const DBT *data, int flags,
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
101
key->size = bl->ksize;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
102
key->data = bl->bytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
67
__bt_ret(BTREE *t, EPG *e, DBT *key, DBT *rkey, DBT *data, DBT *rdata,
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
80
if (key == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
85
&key->size, &rkey->data, &rkey->size))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
87
key->data = rkey->data;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
98
key->size = bl->ksize;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
99
key->data = rkey->data;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/btree.h
192
#define WR_BLEAF(p, key, data, flags) { \
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/btree.h
193
*(u_int32_t *)(void *)p = key->size; \
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/btree.h
199
memmove(p, key->data, key->size); \
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/btree.h
200
p += key->size; \
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/btree.h
277
DBT key; /* B: Saved key, or key.data == NULL. */
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
112
kdb2_nextkey(datum key)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
126
kdb2_delete(datum key)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
132
return (kdb2_dbm_delete(__cur_db, key));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
136
kdb2_store(datum key, datum dat)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
142
return (kdb2_dbm_store(__cur_db, key, dat, DBM_REPLACE));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
190
kdb2_dbm_fetch(DBM *db, datum key)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
198
k.data = key.dptr;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
199
k.size = key.dsize;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
204
status = (db->get)(db, (DBT *)&key, (DBT *)&retval, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
273
kdb2_dbm_delete(DBM *db, datum key)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
280
k.data = key.dptr;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
281
k.size = key.dsize;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
284
status = (db->del)(db, (DBT *)&key, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
299
kdb2_dbm_store(DBM *db, datum key, datum content, int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
304
k.data = key.dptr;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
305
k.size = key.dsize;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
311
return ((db->put)(db, (DBT *)&key, (DBT *)&content,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
84
kdb2_fetch(datum key)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
94
return (kdb2_dbm_fetch(__cur_db, key));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
594
hash_get(const DB *dbp, const DBT *key, DBT *data, u_int32_t flag)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
603
return (hash_access(hashp, HASH_GET, key, data));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
607
hash_put(const DB *dbp, DBT *key, const DBT *data, u_int32_t flag)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
621
HASH_PUTNEW : HASH_PUT, key, (DBT *)data));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
625
hash_delete(const DB *dbp, const DBT *key, u_int32_t flag)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
639
return (hash_access(hashp, HASH_DELETE, key, NULL));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
646
hash_access(HTAB *hashp, ACTION action, const DBT *key, DBT *val)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
665
if (ISBIG(key->size + val->size, hashp))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
668
item_info.seek_size = key->size + val->size;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
673
bucket = __call_hash(hashp, (int8_t *)key->data, key->size);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
691
if (__find_bigpair(hashp, &cursor, (int8_t *)key->data,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
692
key->size) > 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
694
} else if (key->size == page_key.size &&
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
695
!memcmp(key->data, page_key.data, key->size))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
714
if (__addel(hashp, &item_info, key, val, num_items, 0))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
745
__addel(hashp, &item_info, key, val, UNKNOWN, 0))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
794
cursor_get(const DB *dbp, CURSOR *cursorp, DBT *key, DBT *val, u_int32_t flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
812
__get_item_first(hashp, cursorp, key, val, &item_info);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
814
__get_item_next(hashp, cursorp, key, val, &item_info);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
840
__big_keydata(hashp, cursorp->pagep, key, val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
855
__get_item_next(hashp, cursorp, key, val, &item_info);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
876
hash_seq(const DB *dbp, DBT *key, DBT *val, u_int32_t flag)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
889
return (hashp->seq_cursor->get(dbp, hashp->seq_cursor, key, val, flag));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
185
__find_bigpair(HTAB *hashp, CURSOR *cursorp, int8_t *key, int32_t size)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
193
kkey = key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
253
__big_keydata(HTAB *hashp, PAGE16 *pagep, DBT *key, DBT *val, int32_t ndx)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
263
key->size = collect_key(hashp, key_pagep, 0, &last_page);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
264
key->data = hashp->bigkey_buf;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
267
if (key->size == (size_t)-1)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
280
__get_bigkey(HTAB *hashp, PAGE16 *pagep, indx_t ndx, DBT *key)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
282
__get_bigkey(hashp, pagep, ndx, key)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
286
DBT *key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
295
key->size = collect_key(hashp, key_pagep, 0, NULL);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
296
key->data = hashp->bigkey_buf;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
86
__big_insert(HTAB *hashp, PAGE16 *pagep, const DBT *key, const DBT *val)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
92
key_data = (int8_t *)key->data;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
93
key_size = key->size;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_debug.c
67
DBT key, val;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_debug.c
80
__get_item_next(hashp, &cursor, &key, &val, &item_info);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_debug.c
88
if (__big_keydata(hashp, cursor.pagep, &key, &val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_debug.c
95
if (key.size == sizeof(int)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_debug.c
96
memcpy(&var, key.data, sizeof(int));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_debug.c
99
for (cp = (char *)key.data; key.size--; cp++)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
115
hash3(const void *key, size_t len)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
123
k = (u_int8_t *)key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
156
hash4(const void *key, size_t len)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
166
k = (const u_int8_t *)key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
69
hash1(const void *key, size_t len)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
75
k = (u_int8_t *)key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
89
hash2(const void *key, size_t len)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
94
k = (u_int8_t *)key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
132
key->size = hashp->hdr.bsize -
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
135
key->size = DATA_OFF(cursorp->pagep, i) -
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
145
key->data = KEY(cursorp->pagep, cursorp->pgndx);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
186
__get_item_first(HTAB *hashp, CURSOR *cursorp, DBT *key, DBT *val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
191
return (__get_item_next(hashp, cursorp, key, val, item_info));
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
199
__get_item_next(HTAB *hashp, CURSOR *cursorp, DBT *key, DBT *val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
204
status = __get_item(hashp, cursorp, key, val, item_info);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
214
putpair(PAGE8 *p, const DBT *key, const DBT *val)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
222
off = OFFSET(pagep) - key->size + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
223
memmove(p + off, key->data, key->size);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
399
DBT key, val;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
428
__get_bigkey(hashp, temp_pagep, n, &key);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
430
key.data, key.size) == obucket)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
437
key.size = off - KEY_OFF(temp_pagep, n);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
438
key.data = KEY(temp_pagep, n);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
443
key.data, key.size) == obucket)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
444
__addel(hashp, &old_ii, &key, &val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
447
__addel(hashp, &new_ii, &key, &val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
477
__addel(HTAB *hashp, ITEM_INFO *item_info, const DBT *key, const DBT *val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
480
__addel(hashp, item_info, key, val, num_items, expanding)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
483
const DBT *key, *val;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
506
if (ISBIG(PAIRSIZE(key, val), hashp) && BIGPAIRFITS(pagep))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
508
if (PAIRFITS(pagep, key, val))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
517
if ((ISBIG(PAIRSIZE(key, val), hashp) &&
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
519
(!ISBIG(PAIRSIZE(key, val), hashp) &&
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
520
!PAIRFITS(pagep, key, val))) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
526
if ((ISBIG(PAIRSIZE(key, val), hashp) &&
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
528
(!ISBIG(PAIRSIZE(key, val), hashp) &&
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
529
!PAIRFITS(pagep, key, val))) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
537
if (ISBIG(PAIRSIZE(key, val), hashp)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
538
if (__big_insert(hashp, pagep, key, val))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
541
putpair((PAGE8 *)pagep, key, val);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
557
if (!ISBIG(PAIRSIZE(key, val), hashp))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
87
__get_item(HTAB *hashp, CURSOR *cursorp, DBT *key, DBT *val,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hsearch.c
70
DBT key, val;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hsearch.c
75
key.data = (u_char *)item.key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hsearch.c
76
key.size = strlen(item.key) + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hsearch.c
81
status = (dbp->put)(dbp, &key, &val, R_NOOVERWRITE);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hsearch.c
86
status = (dbp->get)(dbp, &key, &val, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hsearch.c
92
retval.key = item.key;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/search.h
41
char *key;
crypto/krb5/src/plugins/kdb/db2/libdb2/mpool/mpool.c
59
mpool_open(void *key, int fd, db_pgno_t pagesize, db_pgno_t maxcache)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
114
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
144
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
145
key.data = &trec;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
153
status = (dbp->seq)(dbp, &key, &data, R_FIRST);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
158
status = (dbp->seq)(dbp, &key, &data, R_NEXT);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
164
status = (dbp->seq)(dbp, &key, &data, R_FIRST);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
170
status = (dbp->seq)(dbp, &key, &data, R_NEXT);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
64
__rec_delete(const DB *dbp, const DBT *key, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
80
if ((nrec = *(recno_t *)key->data) == 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_get.c
63
__rec_get(const DB *dbp, const DBT *key, DBT *data, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_get.c
79
if (flags || (nrec = *(recno_t *)key->data) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
111
if ((nrec = *(recno_t *)key->data) == 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
115
if ((nrec = *(recno_t *)key->data) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
122
if ((nrec = *(recno_t *)key->data) == 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
126
if ((nrec = *(recno_t *)key->data) == 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
171
return (__rec_ret(t, NULL, nrec, key, NULL));
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
62
__rec_put(const DB *dbp, DBT *key, const DBT *data, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_seq.c
122
status = __rec_ret(t, e, nrec, key, data);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_seq.c
61
__rec_seq(const DB *dbp, DBT *key, DBT *data, u_int flags)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_seq.c
78
if ((nrec = *(recno_t *)key->data) == 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_utils.c
62
__rec_ret(BTREE *t, EPG *e, recno_t nrec, DBT *key, DBT *data)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_utils.c
67
if (key == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_utils.c
81
key->size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_utils.c
82
key->data = t->bt_rkey.data;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
17
DBT key, data, keyo, datao;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
32
key.size = 11;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
34
key.data = id1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
36
printf("%10s %10s\n",key.data,data.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
37
if (dbp->put(dbp, &key, &data,R_NOOVERWRITE) != 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
51
while (dbp->seq(dbp, &key, &data,R_NEXT) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
52
strcpy(id1,key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
59
printf("%10s %10s\n",key.data,data.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
76
dbp->seq(dbp, &key, &data,R_FIRST);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
77
printf("%10s %10s\n",key.data,data.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
79
while (dbp->seq(dbp, &key, &data,R_NEXT) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
81
printf("%10s %10s\n",key.data,data.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
351
DBT key, data;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
359
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
360
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
363
status = (db->put)(db, &key, &data, R_APPEND);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
382
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
385
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
387
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
389
key.size = strlen(argv[1]) + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
390
status = (*db->seq)(db, &key, &data, R_CURSOR);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
399
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
422
DBT key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
425
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
427
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
429
key.size = strlen(argv[1]) + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
431
status = (*db->del)(db, &key, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
459
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
462
status = (*db->seq)(db, &key, &data, R_FIRST);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
472
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
482
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
485
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
487
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
489
key.size = strlen(argv[1]) + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
491
status = (*db->get)(db, &key, &data, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
501
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
524
DBT key, data;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
532
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
533
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
536
status = (db->put)(db, &key, &data, R_IAFTER);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
554
DBT key, data;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
562
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
563
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
566
status = (db->put)(db, &key, &data, R_IBEFORE);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
585
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
587
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
589
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
591
key.size = strlen(argv[1]) + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
595
status = (*db->put)(db, &key, &data, R_CURSOR);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
614
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
616
key.data = argv[1];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
618
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
620
key.size = strlen(argv[1]) + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
624
status = (*db->put)(db, &key, &data, R_NOOVERWRITE);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
642
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
645
status = (*db->seq)(db, &key, &data, R_LAST);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
655
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
665
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
673
status = (*db->seq)(db, &key, &data, R_FIRST);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
675
(void)fprintf(fp, "%.*s\n", (int)key.size, key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
676
status = (*db->seq)(db, &key, &data, R_NEXT);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
688
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
696
status = (*db->seq)(db, &key, &data, R_FIRST);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
698
(void)fprintf(fp, "%.*s\n", (int)key.size, key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
699
status = (*db->seq)(db, &key, &data, R_RNEXT);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
715
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
730
key.data = &cnt;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
731
key.size = sizeof(recno_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
735
key.data = lp;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
736
key.size = len + 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
743
status = (*db->put)(db, &key, &data, R_NOOVERWRITE);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
754
"duplicate: %ld {%s}\n", cnt, key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
769
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
772
status = (*db->seq)(db, &key, &data, R_NEXT);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
782
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
792
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
795
status = (*db->seq)(db, &key, &data, R_PREV);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
805
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
815
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
818
status = (*db->seq)(db, &key, &data, R_RNEXT);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
828
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
838
DBT data, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
841
status = (*db->seq)(db, &key, &data, R_RPREV);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
851
keydata(&key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
900
keydata(key, data)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
901
DBT *key, *data;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
903
if (!recno && key->size > 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
904
(void)printf("%.*s/", (int)key->size, key->data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
130
DBT data, key, keydata;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
248
rem(dbp, &key);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
268
seq(dbp, &key);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
288
put(dbp, &key, &data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
295
free(key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
305
key.data = rfile(p + 1, &key.size);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
313
key.data = &recno;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
314
key.size = sizeof(recno);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
316
key.data = xmalloc(p + 1, len - 1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
317
key.size = len - 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
321
getdata(dbp, &key, &keydata);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
325
get(dbp, &key);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
327
free(key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
334
rem(dbp, &key);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
336
free(key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
340
seq(dbp, &key);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
342
free(key.data);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
542
DBT key, data;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
553
switch (dbp->seq(dbp, &key, &data, lflags)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
101
if ((db->put)(db, &key, &content, R_NOOVERWRITE)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
55
int my_hash(key, len)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
56
char *key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
66
DBT key, content;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
90
key.data = keybuf;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/driver2.c
95
key.size = 128 + (rand()&1023);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tcreat3.c
60
DBT item, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tcreat3.c
82
key.data = wp1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tcreat3.c
90
key.size = strlen(wp1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tcreat3.c
96
if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
111
key.size = strlen(wp1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
112
stat = (dbp->del)(dbp, &key, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
114
fprintf ( stderr, "Error retrieving %s\n", key.data );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
61
DBT item, key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
84
key.data = wp1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
92
key.size = strlen(wp1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
98
if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
100
if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
115
key.size = strlen(wp1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
116
stat = (dbp->get)(dbp, &key, &res, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
118
fprintf ( stderr, "Error retrieving %s\n", key.data );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
122
fprintf ( stderr, "%s not found\n", key.data );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
62
DBT item, key, res;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
86
key.data = wp1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
94
key.size = strlen(wp1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tread2.c
64
DBT item, key, res;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tread2.c
83
key.data = wp1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tread2.c
91
key.size = strlen(wp1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tread2.c
94
stat = (dbp->get)(dbp, &key, &res,0);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tread2.c
96
fprintf ( stderr, "Error retrieving %s\n", key.data );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tread2.c
99
fprintf ( stderr, "%s not found\n", key.data );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tseq.c
61
DBT item, key, res;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tverify.c
102
fprintf ( stderr, "data for %s is incorrect. Data was %s. Should have been %s\n", key.data, res.data, wp2 );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tverify.c
64
DBT key, res;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tverify.c
84
key.data = wp1;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tverify.c
91
key.size = strlen(wp1);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tverify.c
93
stat = (dbp->get)(dbp, &key, &res,0);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tverify.c
95
fprintf ( stderr, "Error retrieving %s\n", key.data );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tverify.c
98
fprintf ( stderr, "%s not found\n", key.data );
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/bigtest.c
12
DBT key, value, returned;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/bigtest.c
27
key.size = sizeof(int);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/bigtest.c
28
key.data = &n;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/bigtest.c
38
if (db->put(db, &key, &value, 0) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/bigtest.c
40
if (db->get(db, &key, &returned, 0) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/bigtest.c
52
if ((db->seq(db, &key, &returned, 0)) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/bigtest.c
65
if (db->get(db, &key, &returned, 0) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
109
if (db->seq(db, &key, &val, 0) != 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
13
DBT key, val;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
135
key.data = (void *)key2;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
136
key.size = strlen(key2);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
137
if (db->del(db, &key, 0) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
163
key.data = (void *)get_key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
164
key.size = strlen(get_key);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
165
if (db->get(db, &key, &val, 0) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
45
key.size = strlen(key_line);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
46
key.data = (void *)key_line;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
49
if (db->put(db, &key, &val, 0) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
51
if (db->get(db, &key, &val, 0) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
77
key.size = strlen(get_key);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
78
key.data = (void *)get_key;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
79
if (db->get(db, &key, &val, 0) != 0)
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1182
krb5_keyblock key;
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1214
&key))) {
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1215
kret = krb5_dbe_encrypt_key_data(context, iargs->rblock->key, &key,
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1217
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1239
krb5_keyblock key;
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1324
retval = krb5_c_make_random_key(context, global_params.enctype, &key);
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1330
&key, NULL, kvno,
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1332
krb5_free_keyblock_contents(context, &key);
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
1365
retval = krb5_dbe_encrypt_key_data(context, pblock->key,
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
314
rblock.key = mkey;
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.h
44
krb5_keyblock *key;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c
88
k5_free_key_data_contents(krb5_key_data *key)
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c
92
for (i = 0; i < key->key_data_ver; i++) {
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c
93
zapfree(key->key_data_contents[i], key->key_data_length[i]);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c
94
key->key_data_contents[i] = NULL;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
1064
MDB_val key, val;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
1078
key.mv_data = name;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
1079
key.mv_size = strlen(name);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
1085
err = mdb_get(txn, dbc->lockout_db, &key, &val);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
1106
err = mdb_put(txn, dbc->lockout_db, &key, &val, 0);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
303
fetch(krb5_context context, MDB_dbi db, MDB_val *key, MDB_val *val_out)
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
315
err = mdb_get(dbc->read_txn, db, key, val_out);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
329
fetch_lockout(krb5_context context, MDB_val *key, krb5_db_entry *entry)
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
340
err = mdb_get(txn, dbc->lockout_db, key, &val);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
360
MDB_val key = { strlen(keystr), keystr }, val = { len, bytes }, dummy;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
372
if (must_overwrite && mdb_get(txn, db, &key, &dummy) == MDB_NOTFOUND) {
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
377
err = mdb_put(txn, db, &key, &val, putflags);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
405
MDB_val key = { strlen(keystr), keystr };
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
410
err = mdb_del(txn, db, &key, NULL);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
718
MDB_val key, val;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
729
key.mv_data = name;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
730
key.mv_size = strlen(name);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
731
ret = fetch(context, dbc->princ_db, &key, &val);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
740
fetch_lockout(context, &key, *entry_out);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
752
MDB_val key, val, dummy;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
789
key.mv_data = name;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
790
key.mv_size = strlen(name);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
797
if (mdb_get(txn, dbc->lockout_db, &key, &dummy) == 0)
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
801
err = mdb_put(txn, dbc->lockout_db, &key, &val, 0);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
850
MDB_val key, val;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
864
err = mdb_cursor_get(cursor, &key, &val, op);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
869
ret = klmdb_decode_princ(context, key.mv_data, key.mv_size,
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
873
fetch_lockout(context, &key, entry);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
895
MDB_val key, val;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
901
key.mv_data = name;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
902
key.mv_size = strlen(name);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
903
ret = fetch(context, dbc->policy_db, &key, &val);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
957
MDB_val key, val;
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
970
err = mdb_cursor_get(cursor, &key, &val, MDB_NEXT);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
975
ret = klmdb_decode_policy(context, key.mv_data, key.mv_size,
crypto/krb5/src/plugins/kdb/lmdb/klmdb-int.h
50
const void *key, size_t key_len,
crypto/krb5/src/plugins/kdb/lmdb/klmdb-int.h
56
const void *key, size_t key_len,
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
166
klmdb_decode_princ(krb5_context context, const void *key, size_t key_len,
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
184
princname = k5memdup0(key, key_len, &ret);
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
263
klmdb_decode_policy(krb5_context context, const void *key, size_t key_len,
crypto/krb5/src/plugins/kdb/lmdb/marshal.c
277
pol->name = k5memdup0(key, key_len, &ret);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
570
const krb5_keyblock *key,
crypto/krb5/src/plugins/kdb/test/kdb_test.c
599
const krb5_keyblock *key, const krb5_keysalt *salt,
crypto/krb5/src/plugins/kdb/test/kdb_test.c
605
kd_out->key_data_type[0] = key->enctype;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
606
kd_out->key_data_length[0] = key->length;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
607
kd_out->key_data_contents[0] = ealloc(key->length);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
608
memcpy(kd_out->key_data_contents[0], key->contents, key->length);
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
821
ck_object_handle_t key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
840
ck_object_handle_t key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
868
(ck_session_handle_t session, ck_object_handle_t key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
877
ck_object_handle_t key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
893
ck_object_handle_t key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
903
ck_object_handle_t key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
919
ck_object_handle_t key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
955
ck_object_handle_t *key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
969
ck_object_handle_t key,
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
980
ck_object_handle_t *key));
crypto/krb5/src/plugins/preauth/pkinit/pkcs11.h
987
ck_object_handle_t *key));
crypto/krb5/src/plugins/preauth/pkinit/pkinit_clnt.c
850
save_one_password(void *arg, const char *key, k5_json_value val)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_clnt.c
858
pkiDebug("%s: \"%s\": %p\n", data->caller, key, password);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_clnt.c
859
crypto_set_deferred_id(data->context, reqctx->idctx, key, password);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4176
id_cryptoctx->creds[0]->key = y;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4254
id_cryptoctx->creds[cindex]->key = y;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4477
cred->key = NULL;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4614
if (cred->key != NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4615
EVP_PKEY_free(cred->key);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4957
idctx->my_key = ci->key;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4958
ci->key = NULL; /* Don't free it twice */
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5545
print_pubkey(BIGNUM * key, char *msg)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5554
if (key)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5555
BN_print(bio_err, key);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
65
EVP_PKEY *key;
crypto/krb5/src/util/support/hashtab.c
185
j = siphash24(ent->key, ent->klen, ht->k0, ht->k1) % newsize;
crypto/krb5/src/util/support/hashtab.c
198
k5_hashtab_add(struct k5_hashtab *ht, const void *key, size_t klen, void *val)
crypto/krb5/src/util/support/hashtab.c
211
ent->key = key;
crypto/krb5/src/util/support/hashtab.c
215
i = siphash24(key, klen, ht->k0, ht->k1) % ht->nbuckets;
crypto/krb5/src/util/support/hashtab.c
223
k5_hashtab_remove(struct k5_hashtab *ht, const void *key, size_t klen)
crypto/krb5/src/util/support/hashtab.c
228
i = siphash24(key, klen, ht->k0, ht->k1) % ht->nbuckets;
crypto/krb5/src/util/support/hashtab.c
230
if (ent->klen == klen && memcmp(ent->key, key, klen) == 0) {
crypto/krb5/src/util/support/hashtab.c
241
k5_hashtab_get(struct k5_hashtab *ht, const void *key, size_t klen)
crypto/krb5/src/util/support/hashtab.c
246
i = siphash24(key, klen, ht->k0, ht->k1) % ht->nbuckets;
crypto/krb5/src/util/support/hashtab.c
248
if (ent->klen == klen && memcmp(ent->key, key, klen) == 0)
crypto/krb5/src/util/support/hashtab.c
38
const void *key;
crypto/krb5/src/util/support/json.c
362
char *key;
crypto/krb5/src/util/support/json.c
379
free(obj->entries[i].key);
crypto/krb5/src/util/support/json.c
404
object_search(k5_json_object obj, const char *key)
crypto/krb5/src/util/support/json.c
409
if (strcmp(key, obj->entries[i].key) == 0)
crypto/krb5/src/util/support/json.c
416
k5_json_object_get(k5_json_object obj, const char *key)
crypto/krb5/src/util/support/json.c
420
ent = object_search(obj, key);
crypto/krb5/src/util/support/json.c
427
k5_json_object_set(k5_json_object obj, const char *key, k5_json_value val)
crypto/krb5/src/util/support/json.c
432
ent = object_search(obj, key);
crypto/krb5/src/util/support/json.c
437
free(ent->key);
crypto/krb5/src/util/support/json.c
463
obj->entries[obj->len].key = strdup(key);
crypto/krb5/src/util/support/json.c
464
if (obj->entries[obj->len].key == NULL)
crypto/krb5/src/util/support/json.c
478
func(arg, obj->entries[i].key, obj->entries[i].value);
crypto/krb5/src/util/support/json.c
615
encode_obj_entry(void *ctx, const char *key, k5_json_value value)
crypto/krb5/src/util/support/json.c
625
encode_string(j->buf, key);
crypto/krb5/src/util/support/json.c
857
char *key = NULL;
crypto/krb5/src/util/support/json.c
862
ret = parse_string(ctx, &key);
crypto/krb5/src/util/support/json.c
874
free(key);
crypto/krb5/src/util/support/json.c
879
ret = k5_json_object_set(obj, key, val);
crypto/krb5/src/util/support/json.c
880
free(key);
crypto/krb5/src/util/support/json.c
885
free(key);
crypto/krb5/src/util/support/threads.c
188
static pthread_key_t key;
crypto/krb5/src/util/support/threads.c
251
t = pthread_getspecific(key);
crypto/krb5/src/util/support/threads.c
299
t = pthread_getspecific(key);
crypto/krb5/src/util/support/threads.c
309
err = pthread_setspecific(key, t);
crypto/krb5/src/util/support/threads.c
428
err = pthread_key_create(&key, thread_termination);
crypto/krb5/src/util/support/threads.c
470
pthread_key_delete(key);
crypto/krb5/src/windows/include/loadfuncs-krb5.h
206
(krb5_context context, const krb5_keyblock *key,
crypto/krb5/src/windows/include/loadfuncs-krb5.h
215
(krb5_context context, const krb5_keyblock *key,
crypto/krb5/src/windows/include/loadfuncs-krb5.h
264
krb5_keyblock *key)
crypto/krb5/src/windows/include/loadfuncs-krb5.h
280
const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/windows/include/loadfuncs-krb5.h
289
const krb5_keyblock *key, krb5_keyusage usage,
crypto/krb5/src/windows/leash/LeashUICommandHandler.cpp
113
const PROPERTYKEY *key,
crypto/krb5/src/windows/leash/LeashUICommandHandler.cpp
231
LeashUICommandHandler::UpdateProperty(UINT32 commandId, REFPROPERTYKEY key,
crypto/krb5/src/windows/leash/LeashUICommandHandler.cpp
235
if (key != UI_PKEY_BooleanValue)
crypto/krb5/src/windows/leash/LeashUICommandHandler.h
59
const PROPERTYKEY *key, const PROPVARIANT *currentValue,
crypto/krb5/src/windows/leash/LeashUICommandHandler.h
62
REFPROPERTYKEY key,
crypto/krb5/src/windows/leashdll/lshfunc.c
848
char * key,
crypto/krb5/src/windows/leashdll/lshfunc.c
857
rc = RegOpenKeyEx(hBaseKey, key, 0, KEY_QUERY_VALUE, &hKey);
crypto/libecc/src/examples/sig/rsa/rsa.c
113
ret = nn_init_from_buf(&(priv->key.s.n), n, nlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
114
ret = nn_init_from_buf(&(priv->key.s.d), d, dlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
118
ret = nn_init_from_buf(&(priv->key.s_pq.n), n, nlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
119
ret = nn_init_from_buf(&(priv->key.s_pq.d), d, dlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
120
ret = nn_init_from_buf(&(priv->key.s_pq.p), p, plen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
121
ret = nn_init_from_buf(&(priv->key.s_pq.q), q, qlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
146
ret = nn_init_from_buf(&(priv->key.crt.p), p, plen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
147
ret = nn_init_from_buf(&(priv->key.crt.q), q, qlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
148
ret = nn_init_from_buf(&(priv->key.crt.dP), dP, dPlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
149
ret = nn_init_from_buf(&(priv->key.crt.dQ), dQ, dQlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
150
ret = nn_init_from_buf(&(priv->key.crt.qInv), qInv, qInvlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
152
priv->key.crt.u = 0;
crypto/libecc/src/examples/sig/rsa/rsa.c
161
priv->key.crt.u = u;
crypto/libecc/src/examples/sig/rsa/rsa.c
164
rsa_priv_key_crt_coeffs *cur = &(priv->key.crt.coeffs[(i / 3)]);
crypto/libecc/src/examples/sig/rsa/rsa.c
312
ret = nn_copy(&R, &(priv->key.crt.coeffs[0].r)); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
315
r_i_1 = &(priv->key.crt.coeffs[i-1].r);
crypto/libecc/src/examples/sig/rsa/rsa.c
316
r_i = &(priv->key.crt.coeffs[i].r);
crypto/libecc/src/examples/sig/rsa/rsa.c
317
d_i = &(priv->key.crt.coeffs[i].d);
crypto/libecc/src/examples/sig/rsa/rsa.c
318
t_i = &(priv->key.crt.coeffs[i].t);
crypto/libecc/src/examples/sig/rsa/rsa.c
371
p = &(priv->key.crt.p);
crypto/libecc/src/examples/sig/rsa/rsa.c
372
q = &(priv->key.crt.q);
crypto/libecc/src/examples/sig/rsa/rsa.c
373
dP = &(priv->key.crt.dP);
crypto/libecc/src/examples/sig/rsa/rsa.c
374
dQ = &(priv->key.crt.dQ);
crypto/libecc/src/examples/sig/rsa/rsa.c
375
qInv = &(priv->key.crt.qInv);
crypto/libecc/src/examples/sig/rsa/rsa.c
376
u = priv->key.crt.u;
crypto/libecc/src/examples/sig/rsa/rsa.c
435
n = &(priv->key.s.n);
crypto/libecc/src/examples/sig/rsa/rsa.c
436
d = &(priv->key.s.d);
crypto/libecc/src/examples/sig/rsa/rsa.c
439
n = &(priv->key.s_pq.n);
crypto/libecc/src/examples/sig/rsa/rsa.c
440
d = &(priv->key.s_pq.d);
crypto/libecc/src/examples/sig/rsa/rsa.c
459
p = &(priv->key.s_pq.p);
crypto/libecc/src/examples/sig/rsa/rsa.c
460
q = &(priv->key.s_pq.q);
crypto/libecc/src/examples/sig/rsa/rsa.h
101
} key;
crypto/libecc/src/hash/belt-hash.c
128
u32 key;
crypto/libecc/src/hash/belt-hash.c
129
GET_UINT32_LE(key, ks, 4*KIdx[i][0]);
crypto/libecc/src/hash/belt-hash.c
130
b ^= G(a + key, 5);
crypto/libecc/src/hash/belt-hash.c
131
GET_UINT32_LE(key, ks, 4*KIdx[i][1]);
crypto/libecc/src/hash/belt-hash.c
132
c ^= G(d + key, 21);
crypto/libecc/src/hash/belt-hash.c
133
GET_UINT32_LE(key, ks, 4*KIdx[i][2]);
crypto/libecc/src/hash/belt-hash.c
134
a = (u32)(a - G(b + key, 13));
crypto/libecc/src/hash/belt-hash.c
135
GET_UINT32_LE(key, ks, 4*KIdx[i][3]);
crypto/libecc/src/hash/belt-hash.c
136
e = G(b + c + key, 21) ^ (i + 1);
crypto/libecc/src/hash/belt-hash.c
139
GET_UINT32_LE(key, ks, 4*KIdx[i][4]);
crypto/libecc/src/hash/belt-hash.c
140
d += G(c + key, 13);
crypto/libecc/src/hash/belt-hash.c
141
GET_UINT32_LE(key, ks, 4*KIdx[i][5]);
crypto/libecc/src/hash/belt-hash.c
142
b ^= G(a + key, 21);
crypto/libecc/src/hash/belt-hash.c
143
GET_UINT32_LE(key, ks, 4*KIdx[i][6]);
crypto/libecc/src/hash/belt-hash.c
144
c ^= G(d + key, 5);
crypto/libecc/src/hash/belt-hash.c
169
u32 key;
crypto/libecc/src/hash/belt-hash.c
171
GET_UINT32_LE(key, ks, 4*KIdx[i][6]);
crypto/libecc/src/hash/belt-hash.c
172
b ^= G(a + key, 5);
crypto/libecc/src/hash/belt-hash.c
173
GET_UINT32_LE(key, ks, 4*KIdx[i][5]);
crypto/libecc/src/hash/belt-hash.c
174
c ^= G(d + key, 21);
crypto/libecc/src/hash/belt-hash.c
175
GET_UINT32_LE(key, ks, 4*KIdx[i][4]);
crypto/libecc/src/hash/belt-hash.c
176
a = (u32)(a - G(b + key, 13));
crypto/libecc/src/hash/belt-hash.c
177
GET_UINT32_LE(key, ks, 4*KIdx[i][3]);
crypto/libecc/src/hash/belt-hash.c
178
e = G(b + c + key, 21) ^ (j + 1);
crypto/libecc/src/hash/belt-hash.c
181
GET_UINT32_LE(key, ks, 4*KIdx[i][2]);
crypto/libecc/src/hash/belt-hash.c
182
d += G(c + key, 13);
crypto/libecc/src/hash/belt-hash.c
183
GET_UINT32_LE(key, ks, 4*KIdx[i][1]);
crypto/libecc/src/hash/belt-hash.c
184
b ^= G(a + key, 21);
crypto/libecc/src/hash/belt-hash.c
185
GET_UINT32_LE(key, ks, 4*KIdx[i][0]);
crypto/libecc/src/hash/belt-hash.c
186
c ^= G(d + key, 5);
crypto/libecc/src/sig/bip0340.c
658
ATTRIBUTE_WARN_UNUSED_RET static int _bip0340_chacha20_block(const u8 key[32], const u8 nonce[12], u32 block_counter, u8 *stream, u32 stream_len){
crypto/libecc/src/sig/bip0340.c
674
GET_UINT32_LE(state[i], key, (4 * (i - 4)));
crypto/libecc/src/wycheproof_tests/libecc_wycheproof.c
758
ret = hmac(t->key, t->keylen, t->hash, t->msg, t->msglen, hmac_res, &hlen);
crypto/libecc/src/wycheproof_tests/libecc_wycheproof.h
139
const unsigned char *key;
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692029
.key = hmac_sha224_0_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692053
.key = hmac_sha224_1_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692077
.key = hmac_sha224_2_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692101
.key = hmac_sha224_3_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692125
.key = hmac_sha224_4_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692149
.key = hmac_sha224_5_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692173
.key = hmac_sha224_6_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692197
.key = hmac_sha224_7_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692221
.key = hmac_sha224_8_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692245
.key = hmac_sha224_9_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692269
.key = hmac_sha224_10_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692293
.key = hmac_sha224_11_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692317
.key = hmac_sha224_12_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692341
.key = hmac_sha224_13_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692365
.key = hmac_sha224_14_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692389
.key = hmac_sha224_15_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692413
.key = hmac_sha224_16_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692437
.key = hmac_sha224_17_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692461
.key = hmac_sha224_18_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692485
.key = hmac_sha224_19_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692509
.key = hmac_sha224_20_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692533
.key = hmac_sha224_21_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692557
.key = hmac_sha224_22_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692581
.key = hmac_sha224_23_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692605
.key = hmac_sha224_24_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692629
.key = hmac_sha224_25_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692653
.key = hmac_sha224_26_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692674
.key = hmac_sha224_27_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692698
.key = hmac_sha224_28_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692719
.key = hmac_sha224_29_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692743
.key = hmac_sha224_30_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692764
.key = hmac_sha224_31_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692788
.key = hmac_sha224_32_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692809
.key = hmac_sha224_33_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692833
.key = hmac_sha224_34_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692854
.key = hmac_sha224_35_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692878
.key = hmac_sha224_36_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692899
.key = hmac_sha224_37_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692923
.key = hmac_sha224_38_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692944
.key = hmac_sha224_39_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692968
.key = hmac_sha224_40_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
692989
.key = hmac_sha224_41_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693013
.key = hmac_sha224_42_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693034
.key = hmac_sha224_43_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693058
.key = hmac_sha224_44_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693079
.key = hmac_sha224_45_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693103
.key = hmac_sha224_46_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693124
.key = hmac_sha224_47_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693148
.key = hmac_sha224_48_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693169
.key = hmac_sha224_49_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693193
.key = hmac_sha224_50_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693214
.key = hmac_sha224_51_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693238
.key = hmac_sha224_52_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693259
.key = hmac_sha224_53_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693283
.key = hmac_sha224_54_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693304
.key = hmac_sha224_55_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693328
.key = hmac_sha224_56_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693349
.key = hmac_sha224_57_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693373
.key = hmac_sha224_58_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693394
.key = hmac_sha224_59_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693418
.key = hmac_sha224_60_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693439
.key = hmac_sha224_61_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693463
.key = hmac_sha224_62_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693484
.key = hmac_sha224_63_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693508
.key = hmac_sha224_64_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693529
.key = hmac_sha224_65_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693553
.key = hmac_sha224_66_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693574
.key = hmac_sha224_67_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693598
.key = hmac_sha224_68_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693619
.key = hmac_sha224_69_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693643
.key = hmac_sha224_70_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693664
.key = hmac_sha224_71_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693688
.key = hmac_sha224_72_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693709
.key = hmac_sha224_73_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693733
.key = hmac_sha224_74_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693754
.key = hmac_sha224_75_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693778
.key = hmac_sha224_76_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693799
.key = hmac_sha224_77_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693823
.key = hmac_sha224_78_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693844
.key = hmac_sha224_79_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693868
.key = hmac_sha224_80_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693889
.key = hmac_sha224_81_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693913
.key = hmac_sha224_82_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693937
.key = hmac_sha224_83_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693961
.key = hmac_sha224_84_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
693985
.key = hmac_sha224_85_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694009
.key = hmac_sha224_86_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694033
.key = hmac_sha224_87_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694057
.key = hmac_sha224_88_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694081
.key = hmac_sha224_89_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694105
.key = hmac_sha224_90_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694129
.key = hmac_sha224_91_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694153
.key = hmac_sha224_92_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694177
.key = hmac_sha224_93_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694201
.key = hmac_sha224_94_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694225
.key = hmac_sha224_95_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694249
.key = hmac_sha224_96_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694273
.key = hmac_sha224_97_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694297
.key = hmac_sha224_98_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694321
.key = hmac_sha224_99_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694345
.key = hmac_sha224_100_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694369
.key = hmac_sha224_101_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694393
.key = hmac_sha224_102_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694417
.key = hmac_sha224_103_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694441
.key = hmac_sha224_104_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694465
.key = hmac_sha224_105_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694489
.key = hmac_sha224_106_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694513
.key = hmac_sha224_107_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694534
.key = hmac_sha224_108_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694558
.key = hmac_sha224_109_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694579
.key = hmac_sha224_110_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694603
.key = hmac_sha224_111_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694624
.key = hmac_sha224_112_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694648
.key = hmac_sha224_113_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694669
.key = hmac_sha224_114_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694693
.key = hmac_sha224_115_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694714
.key = hmac_sha224_116_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694738
.key = hmac_sha224_117_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694759
.key = hmac_sha224_118_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694783
.key = hmac_sha224_119_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694804
.key = hmac_sha224_120_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694828
.key = hmac_sha224_121_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694849
.key = hmac_sha224_122_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694873
.key = hmac_sha224_123_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694894
.key = hmac_sha224_124_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694918
.key = hmac_sha224_125_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694939
.key = hmac_sha224_126_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694963
.key = hmac_sha224_127_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
694984
.key = hmac_sha224_128_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695008
.key = hmac_sha224_129_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695029
.key = hmac_sha224_130_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695053
.key = hmac_sha224_131_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695074
.key = hmac_sha224_132_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695098
.key = hmac_sha224_133_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695119
.key = hmac_sha224_134_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695143
.key = hmac_sha224_135_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695164
.key = hmac_sha224_136_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695188
.key = hmac_sha224_137_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695209
.key = hmac_sha224_138_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695233
.key = hmac_sha224_139_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695254
.key = hmac_sha224_140_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695278
.key = hmac_sha224_141_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695299
.key = hmac_sha224_142_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695323
.key = hmac_sha224_143_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695344
.key = hmac_sha224_144_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695368
.key = hmac_sha224_145_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695389
.key = hmac_sha224_146_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695413
.key = hmac_sha224_147_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695434
.key = hmac_sha224_148_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695458
.key = hmac_sha224_149_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695479
.key = hmac_sha224_150_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695503
.key = hmac_sha224_151_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695524
.key = hmac_sha224_152_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695548
.key = hmac_sha224_153_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695569
.key = hmac_sha224_154_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695593
.key = hmac_sha224_155_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695614
.key = hmac_sha224_156_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695638
.key = hmac_sha224_157_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695659
.key = hmac_sha224_158_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695683
.key = hmac_sha224_159_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695704
.key = hmac_sha224_160_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695728
.key = hmac_sha224_161_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695752
.key = hmac_sha224_162_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695773
.key = hmac_sha224_163_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695797
.key = hmac_sha224_164_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695821
.key = hmac_sha224_165_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695842
.key = hmac_sha224_166_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695866
.key = hmac_sha224_167_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695890
.key = hmac_sha224_168_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695911
.key = hmac_sha224_169_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695935
.key = hmac_sha224_170_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695959
.key = hmac_sha224_171_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
695980
.key = hmac_sha256_172_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696004
.key = hmac_sha256_173_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696028
.key = hmac_sha256_174_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696052
.key = hmac_sha256_175_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696076
.key = hmac_sha256_176_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696100
.key = hmac_sha256_177_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696124
.key = hmac_sha256_178_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696148
.key = hmac_sha256_179_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696172
.key = hmac_sha256_180_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696196
.key = hmac_sha256_181_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696220
.key = hmac_sha256_182_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696244
.key = hmac_sha256_183_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696268
.key = hmac_sha256_184_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696292
.key = hmac_sha256_185_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696316
.key = hmac_sha256_186_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696340
.key = hmac_sha256_187_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696364
.key = hmac_sha256_188_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696388
.key = hmac_sha256_189_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696412
.key = hmac_sha256_190_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696436
.key = hmac_sha256_191_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696460
.key = hmac_sha256_192_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696484
.key = hmac_sha256_193_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696508
.key = hmac_sha256_194_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696532
.key = hmac_sha256_195_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696556
.key = hmac_sha256_196_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696580
.key = hmac_sha256_197_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696604
.key = hmac_sha256_198_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696625
.key = hmac_sha256_199_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696649
.key = hmac_sha256_200_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696670
.key = hmac_sha256_201_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696694
.key = hmac_sha256_202_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696715
.key = hmac_sha256_203_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696739
.key = hmac_sha256_204_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696760
.key = hmac_sha256_205_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696784
.key = hmac_sha256_206_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696805
.key = hmac_sha256_207_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696829
.key = hmac_sha256_208_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696850
.key = hmac_sha256_209_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696874
.key = hmac_sha256_210_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696895
.key = hmac_sha256_211_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696919
.key = hmac_sha256_212_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696940
.key = hmac_sha256_213_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696964
.key = hmac_sha256_214_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
696985
.key = hmac_sha256_215_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697009
.key = hmac_sha256_216_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697030
.key = hmac_sha256_217_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697054
.key = hmac_sha256_218_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697075
.key = hmac_sha256_219_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697099
.key = hmac_sha256_220_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697120
.key = hmac_sha256_221_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697144
.key = hmac_sha256_222_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697165
.key = hmac_sha256_223_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697189
.key = hmac_sha256_224_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697210
.key = hmac_sha256_225_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697234
.key = hmac_sha256_226_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697255
.key = hmac_sha256_227_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697279
.key = hmac_sha256_228_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697300
.key = hmac_sha256_229_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697324
.key = hmac_sha256_230_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697345
.key = hmac_sha256_231_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697369
.key = hmac_sha256_232_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697390
.key = hmac_sha256_233_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697414
.key = hmac_sha256_234_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697435
.key = hmac_sha256_235_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697459
.key = hmac_sha256_236_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697480
.key = hmac_sha256_237_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697504
.key = hmac_sha256_238_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697525
.key = hmac_sha256_239_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697549
.key = hmac_sha256_240_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697570
.key = hmac_sha256_241_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697594
.key = hmac_sha256_242_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697615
.key = hmac_sha256_243_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697639
.key = hmac_sha256_244_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697660
.key = hmac_sha256_245_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697684
.key = hmac_sha256_246_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697705
.key = hmac_sha256_247_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697729
.key = hmac_sha256_248_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697750
.key = hmac_sha256_249_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697774
.key = hmac_sha256_250_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697795
.key = hmac_sha256_251_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697819
.key = hmac_sha256_252_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697840
.key = hmac_sha256_253_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697864
.key = hmac_sha256_254_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697888
.key = hmac_sha256_255_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697912
.key = hmac_sha256_256_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697936
.key = hmac_sha256_257_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697960
.key = hmac_sha256_258_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
697984
.key = hmac_sha256_259_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698008
.key = hmac_sha256_260_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698032
.key = hmac_sha256_261_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698056
.key = hmac_sha256_262_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698080
.key = hmac_sha256_263_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698104
.key = hmac_sha256_264_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698128
.key = hmac_sha256_265_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698152
.key = hmac_sha256_266_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698176
.key = hmac_sha256_267_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698200
.key = hmac_sha256_268_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698224
.key = hmac_sha256_269_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698248
.key = hmac_sha256_270_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698272
.key = hmac_sha256_271_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698296
.key = hmac_sha256_272_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698320
.key = hmac_sha256_273_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698344
.key = hmac_sha256_274_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698368
.key = hmac_sha256_275_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698392
.key = hmac_sha256_276_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698416
.key = hmac_sha256_277_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698440
.key = hmac_sha256_278_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698464
.key = hmac_sha256_279_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698485
.key = hmac_sha256_280_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698509
.key = hmac_sha256_281_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698530
.key = hmac_sha256_282_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698554
.key = hmac_sha256_283_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698575
.key = hmac_sha256_284_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698599
.key = hmac_sha256_285_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698620
.key = hmac_sha256_286_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698644
.key = hmac_sha256_287_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698665
.key = hmac_sha256_288_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698689
.key = hmac_sha256_289_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698710
.key = hmac_sha256_290_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698734
.key = hmac_sha256_291_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698755
.key = hmac_sha256_292_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698779
.key = hmac_sha256_293_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698800
.key = hmac_sha256_294_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698824
.key = hmac_sha256_295_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698845
.key = hmac_sha256_296_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698869
.key = hmac_sha256_297_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698890
.key = hmac_sha256_298_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698914
.key = hmac_sha256_299_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698935
.key = hmac_sha256_300_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698959
.key = hmac_sha256_301_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
698980
.key = hmac_sha256_302_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699004
.key = hmac_sha256_303_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699025
.key = hmac_sha256_304_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699049
.key = hmac_sha256_305_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699070
.key = hmac_sha256_306_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699094
.key = hmac_sha256_307_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699115
.key = hmac_sha256_308_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699139
.key = hmac_sha256_309_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699160
.key = hmac_sha256_310_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699184
.key = hmac_sha256_311_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699205
.key = hmac_sha256_312_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699229
.key = hmac_sha256_313_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699250
.key = hmac_sha256_314_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699274
.key = hmac_sha256_315_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699295
.key = hmac_sha256_316_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699319
.key = hmac_sha256_317_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699340
.key = hmac_sha256_318_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699364
.key = hmac_sha256_319_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699385
.key = hmac_sha256_320_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699409
.key = hmac_sha256_321_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699430
.key = hmac_sha256_322_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699454
.key = hmac_sha256_323_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699475
.key = hmac_sha256_324_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699499
.key = hmac_sha256_325_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699520
.key = hmac_sha256_326_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699544
.key = hmac_sha256_327_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699565
.key = hmac_sha256_328_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699589
.key = hmac_sha256_329_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699610
.key = hmac_sha256_330_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699634
.key = hmac_sha256_331_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699655
.key = hmac_sha256_332_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699679
.key = hmac_sha256_333_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699700
.key = hmac_sha256_334_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699724
.key = hmac_sha256_335_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699748
.key = hmac_sha256_336_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699769
.key = hmac_sha256_337_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699793
.key = hmac_sha256_338_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699817
.key = hmac_sha256_339_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699838
.key = hmac_sha256_340_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699862
.key = hmac_sha256_341_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699886
.key = hmac_sha256_342_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699907
.key = hmac_sha256_343_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699931
.key = hmac_sha256_344_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699955
.key = hmac_sha256_345_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
699976
.key = hmac_sha3_224_346_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700000
.key = hmac_sha3_224_347_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700024
.key = hmac_sha3_224_348_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700048
.key = hmac_sha3_224_349_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700072
.key = hmac_sha3_224_350_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700096
.key = hmac_sha3_224_351_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700120
.key = hmac_sha3_224_352_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700144
.key = hmac_sha3_224_353_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700168
.key = hmac_sha3_224_354_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700192
.key = hmac_sha3_224_355_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700216
.key = hmac_sha3_224_356_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700240
.key = hmac_sha3_224_357_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700264
.key = hmac_sha3_224_358_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700288
.key = hmac_sha3_224_359_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700312
.key = hmac_sha3_224_360_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700336
.key = hmac_sha3_224_361_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700360
.key = hmac_sha3_224_362_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700384
.key = hmac_sha3_224_363_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700408
.key = hmac_sha3_224_364_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700432
.key = hmac_sha3_224_365_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700456
.key = hmac_sha3_224_366_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700480
.key = hmac_sha3_224_367_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700504
.key = hmac_sha3_224_368_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700528
.key = hmac_sha3_224_369_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700552
.key = hmac_sha3_224_370_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700576
.key = hmac_sha3_224_371_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700600
.key = hmac_sha3_224_372_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700621
.key = hmac_sha3_224_373_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700645
.key = hmac_sha3_224_374_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700666
.key = hmac_sha3_224_375_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700690
.key = hmac_sha3_224_376_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700711
.key = hmac_sha3_224_377_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700735
.key = hmac_sha3_224_378_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700756
.key = hmac_sha3_224_379_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700780
.key = hmac_sha3_224_380_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700801
.key = hmac_sha3_224_381_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700825
.key = hmac_sha3_224_382_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700846
.key = hmac_sha3_224_383_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700870
.key = hmac_sha3_224_384_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700891
.key = hmac_sha3_224_385_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700915
.key = hmac_sha3_224_386_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700936
.key = hmac_sha3_224_387_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700960
.key = hmac_sha3_224_388_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
700981
.key = hmac_sha3_224_389_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701005
.key = hmac_sha3_224_390_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701026
.key = hmac_sha3_224_391_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701050
.key = hmac_sha3_224_392_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701071
.key = hmac_sha3_224_393_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701095
.key = hmac_sha3_224_394_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701116
.key = hmac_sha3_224_395_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701140
.key = hmac_sha3_224_396_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701161
.key = hmac_sha3_224_397_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701185
.key = hmac_sha3_224_398_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701206
.key = hmac_sha3_224_399_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701230
.key = hmac_sha3_224_400_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701251
.key = hmac_sha3_224_401_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701275
.key = hmac_sha3_224_402_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701296
.key = hmac_sha3_224_403_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701320
.key = hmac_sha3_224_404_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701341
.key = hmac_sha3_224_405_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701365
.key = hmac_sha3_224_406_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701386
.key = hmac_sha3_224_407_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701410
.key = hmac_sha3_224_408_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701431
.key = hmac_sha3_224_409_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701455
.key = hmac_sha3_224_410_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701476
.key = hmac_sha3_224_411_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701500
.key = hmac_sha3_224_412_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701521
.key = hmac_sha3_224_413_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701545
.key = hmac_sha3_224_414_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701566
.key = hmac_sha3_224_415_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701590
.key = hmac_sha3_224_416_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701611
.key = hmac_sha3_224_417_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701635
.key = hmac_sha3_224_418_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701656
.key = hmac_sha3_224_419_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701680
.key = hmac_sha3_224_420_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701701
.key = hmac_sha3_224_421_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701725
.key = hmac_sha3_224_422_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701746
.key = hmac_sha3_224_423_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701770
.key = hmac_sha3_224_424_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701791
.key = hmac_sha3_224_425_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701815
.key = hmac_sha3_224_426_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701836
.key = hmac_sha3_224_427_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701860
.key = hmac_sha3_224_428_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701884
.key = hmac_sha3_224_429_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701908
.key = hmac_sha3_224_430_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701932
.key = hmac_sha3_224_431_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701956
.key = hmac_sha3_224_432_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
701980
.key = hmac_sha3_224_433_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702004
.key = hmac_sha3_224_434_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702028
.key = hmac_sha3_224_435_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702052
.key = hmac_sha3_224_436_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702076
.key = hmac_sha3_224_437_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702100
.key = hmac_sha3_224_438_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702124
.key = hmac_sha3_224_439_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702148
.key = hmac_sha3_224_440_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702172
.key = hmac_sha3_224_441_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702196
.key = hmac_sha3_224_442_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702220
.key = hmac_sha3_224_443_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702244
.key = hmac_sha3_224_444_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702268
.key = hmac_sha3_224_445_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702292
.key = hmac_sha3_224_446_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702316
.key = hmac_sha3_224_447_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702340
.key = hmac_sha3_224_448_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702364
.key = hmac_sha3_224_449_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702388
.key = hmac_sha3_224_450_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702412
.key = hmac_sha3_224_451_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702436
.key = hmac_sha3_224_452_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702460
.key = hmac_sha3_224_453_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702481
.key = hmac_sha3_224_454_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702505
.key = hmac_sha3_224_455_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702526
.key = hmac_sha3_224_456_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702550
.key = hmac_sha3_224_457_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702571
.key = hmac_sha3_224_458_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702595
.key = hmac_sha3_224_459_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702616
.key = hmac_sha3_224_460_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702640
.key = hmac_sha3_224_461_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702661
.key = hmac_sha3_224_462_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702685
.key = hmac_sha3_224_463_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702706
.key = hmac_sha3_224_464_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702730
.key = hmac_sha3_224_465_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702751
.key = hmac_sha3_224_466_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702775
.key = hmac_sha3_224_467_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702796
.key = hmac_sha3_224_468_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702820
.key = hmac_sha3_224_469_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702841
.key = hmac_sha3_224_470_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702865
.key = hmac_sha3_224_471_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702886
.key = hmac_sha3_224_472_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702910
.key = hmac_sha3_224_473_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702931
.key = hmac_sha3_224_474_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702955
.key = hmac_sha3_224_475_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
702976
.key = hmac_sha3_224_476_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703000
.key = hmac_sha3_224_477_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703021
.key = hmac_sha3_224_478_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703045
.key = hmac_sha3_224_479_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703066
.key = hmac_sha3_224_480_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703090
.key = hmac_sha3_224_481_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703111
.key = hmac_sha3_224_482_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703135
.key = hmac_sha3_224_483_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703156
.key = hmac_sha3_224_484_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703180
.key = hmac_sha3_224_485_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703201
.key = hmac_sha3_224_486_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703225
.key = hmac_sha3_224_487_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703246
.key = hmac_sha3_224_488_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703270
.key = hmac_sha3_224_489_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703291
.key = hmac_sha3_224_490_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703315
.key = hmac_sha3_224_491_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703336
.key = hmac_sha3_224_492_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703360
.key = hmac_sha3_224_493_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703381
.key = hmac_sha3_224_494_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703405
.key = hmac_sha3_224_495_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703426
.key = hmac_sha3_224_496_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703450
.key = hmac_sha3_224_497_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703471
.key = hmac_sha3_224_498_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703495
.key = hmac_sha3_224_499_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703516
.key = hmac_sha3_224_500_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703540
.key = hmac_sha3_224_501_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703561
.key = hmac_sha3_224_502_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703585
.key = hmac_sha3_224_503_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703606
.key = hmac_sha3_224_504_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703630
.key = hmac_sha3_224_505_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703651
.key = hmac_sha3_224_506_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703675
.key = hmac_sha3_224_507_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703699
.key = hmac_sha3_224_508_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703720
.key = hmac_sha3_224_509_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703744
.key = hmac_sha3_224_510_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703768
.key = hmac_sha3_224_511_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703789
.key = hmac_sha3_224_512_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703813
.key = hmac_sha3_224_513_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703837
.key = hmac_sha3_224_514_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703858
.key = hmac_sha3_224_515_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703882
.key = hmac_sha3_224_516_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703906
.key = hmac_sha3_224_517_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703927
.key = hmac_sha3_256_518_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703951
.key = hmac_sha3_256_519_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703975
.key = hmac_sha3_256_520_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
703999
.key = hmac_sha3_256_521_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704023
.key = hmac_sha3_256_522_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704047
.key = hmac_sha3_256_523_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704071
.key = hmac_sha3_256_524_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704095
.key = hmac_sha3_256_525_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704119
.key = hmac_sha3_256_526_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704143
.key = hmac_sha3_256_527_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704167
.key = hmac_sha3_256_528_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704191
.key = hmac_sha3_256_529_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704215
.key = hmac_sha3_256_530_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704239
.key = hmac_sha3_256_531_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704263
.key = hmac_sha3_256_532_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704287
.key = hmac_sha3_256_533_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704311
.key = hmac_sha3_256_534_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704335
.key = hmac_sha3_256_535_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704359
.key = hmac_sha3_256_536_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704383
.key = hmac_sha3_256_537_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704407
.key = hmac_sha3_256_538_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704431
.key = hmac_sha3_256_539_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704455
.key = hmac_sha3_256_540_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704479
.key = hmac_sha3_256_541_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704503
.key = hmac_sha3_256_542_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704527
.key = hmac_sha3_256_543_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704551
.key = hmac_sha3_256_544_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704572
.key = hmac_sha3_256_545_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704596
.key = hmac_sha3_256_546_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704617
.key = hmac_sha3_256_547_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704641
.key = hmac_sha3_256_548_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704662
.key = hmac_sha3_256_549_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704686
.key = hmac_sha3_256_550_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704707
.key = hmac_sha3_256_551_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704731
.key = hmac_sha3_256_552_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704752
.key = hmac_sha3_256_553_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704776
.key = hmac_sha3_256_554_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704797
.key = hmac_sha3_256_555_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704821
.key = hmac_sha3_256_556_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704842
.key = hmac_sha3_256_557_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704866
.key = hmac_sha3_256_558_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704887
.key = hmac_sha3_256_559_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704911
.key = hmac_sha3_256_560_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704932
.key = hmac_sha3_256_561_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704956
.key = hmac_sha3_256_562_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
704977
.key = hmac_sha3_256_563_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705001
.key = hmac_sha3_256_564_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705022
.key = hmac_sha3_256_565_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705046
.key = hmac_sha3_256_566_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705067
.key = hmac_sha3_256_567_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705091
.key = hmac_sha3_256_568_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705112
.key = hmac_sha3_256_569_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705136
.key = hmac_sha3_256_570_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705157
.key = hmac_sha3_256_571_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705181
.key = hmac_sha3_256_572_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705202
.key = hmac_sha3_256_573_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705226
.key = hmac_sha3_256_574_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705247
.key = hmac_sha3_256_575_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705271
.key = hmac_sha3_256_576_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705292
.key = hmac_sha3_256_577_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705316
.key = hmac_sha3_256_578_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705337
.key = hmac_sha3_256_579_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705361
.key = hmac_sha3_256_580_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705382
.key = hmac_sha3_256_581_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705406
.key = hmac_sha3_256_582_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705427
.key = hmac_sha3_256_583_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705451
.key = hmac_sha3_256_584_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705472
.key = hmac_sha3_256_585_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705496
.key = hmac_sha3_256_586_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705517
.key = hmac_sha3_256_587_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705541
.key = hmac_sha3_256_588_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705562
.key = hmac_sha3_256_589_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705586
.key = hmac_sha3_256_590_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705607
.key = hmac_sha3_256_591_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705631
.key = hmac_sha3_256_592_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705652
.key = hmac_sha3_256_593_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705676
.key = hmac_sha3_256_594_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705697
.key = hmac_sha3_256_595_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705721
.key = hmac_sha3_256_596_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705742
.key = hmac_sha3_256_597_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705766
.key = hmac_sha3_256_598_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705787
.key = hmac_sha3_256_599_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705811
.key = hmac_sha3_256_600_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705835
.key = hmac_sha3_256_601_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705859
.key = hmac_sha3_256_602_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705883
.key = hmac_sha3_256_603_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705907
.key = hmac_sha3_256_604_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705931
.key = hmac_sha3_256_605_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705955
.key = hmac_sha3_256_606_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
705979
.key = hmac_sha3_256_607_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706003
.key = hmac_sha3_256_608_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706027
.key = hmac_sha3_256_609_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706051
.key = hmac_sha3_256_610_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706075
.key = hmac_sha3_256_611_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706099
.key = hmac_sha3_256_612_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706123
.key = hmac_sha3_256_613_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706147
.key = hmac_sha3_256_614_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706171
.key = hmac_sha3_256_615_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706195
.key = hmac_sha3_256_616_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706219
.key = hmac_sha3_256_617_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706243
.key = hmac_sha3_256_618_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706267
.key = hmac_sha3_256_619_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706291
.key = hmac_sha3_256_620_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706315
.key = hmac_sha3_256_621_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706339
.key = hmac_sha3_256_622_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706363
.key = hmac_sha3_256_623_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706387
.key = hmac_sha3_256_624_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706411
.key = hmac_sha3_256_625_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706432
.key = hmac_sha3_256_626_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706456
.key = hmac_sha3_256_627_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706477
.key = hmac_sha3_256_628_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706501
.key = hmac_sha3_256_629_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706522
.key = hmac_sha3_256_630_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706546
.key = hmac_sha3_256_631_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706567
.key = hmac_sha3_256_632_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706591
.key = hmac_sha3_256_633_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706612
.key = hmac_sha3_256_634_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706636
.key = hmac_sha3_256_635_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706657
.key = hmac_sha3_256_636_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706681
.key = hmac_sha3_256_637_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706702
.key = hmac_sha3_256_638_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706726
.key = hmac_sha3_256_639_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706747
.key = hmac_sha3_256_640_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706771
.key = hmac_sha3_256_641_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706792
.key = hmac_sha3_256_642_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706816
.key = hmac_sha3_256_643_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706837
.key = hmac_sha3_256_644_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706861
.key = hmac_sha3_256_645_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706882
.key = hmac_sha3_256_646_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706906
.key = hmac_sha3_256_647_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706927
.key = hmac_sha3_256_648_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706951
.key = hmac_sha3_256_649_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706972
.key = hmac_sha3_256_650_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
706996
.key = hmac_sha3_256_651_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707017
.key = hmac_sha3_256_652_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707041
.key = hmac_sha3_256_653_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707062
.key = hmac_sha3_256_654_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707086
.key = hmac_sha3_256_655_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707107
.key = hmac_sha3_256_656_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707131
.key = hmac_sha3_256_657_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707152
.key = hmac_sha3_256_658_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707176
.key = hmac_sha3_256_659_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707197
.key = hmac_sha3_256_660_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707221
.key = hmac_sha3_256_661_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707242
.key = hmac_sha3_256_662_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707266
.key = hmac_sha3_256_663_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707287
.key = hmac_sha3_256_664_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707311
.key = hmac_sha3_256_665_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707332
.key = hmac_sha3_256_666_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707356
.key = hmac_sha3_256_667_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707377
.key = hmac_sha3_256_668_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707401
.key = hmac_sha3_256_669_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707422
.key = hmac_sha3_256_670_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707446
.key = hmac_sha3_256_671_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707467
.key = hmac_sha3_256_672_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707491
.key = hmac_sha3_256_673_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707512
.key = hmac_sha3_256_674_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707536
.key = hmac_sha3_256_675_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707557
.key = hmac_sha3_256_676_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707581
.key = hmac_sha3_256_677_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707602
.key = hmac_sha3_256_678_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707626
.key = hmac_sha3_256_679_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707647
.key = hmac_sha3_256_680_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707671
.key = hmac_sha3_256_681_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707695
.key = hmac_sha3_256_682_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707716
.key = hmac_sha3_256_683_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707740
.key = hmac_sha3_256_684_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707764
.key = hmac_sha3_256_685_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707785
.key = hmac_sha3_256_686_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707809
.key = hmac_sha3_256_687_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707833
.key = hmac_sha3_256_688_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707854
.key = hmac_sha3_256_689_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707878
.key = hmac_sha3_256_690_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707902
.key = hmac_sha3_256_691_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707923
.key = hmac_sha3_384_692_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707947
.key = hmac_sha3_384_693_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707971
.key = hmac_sha3_384_694_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
707995
.key = hmac_sha3_384_695_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708019
.key = hmac_sha3_384_696_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708043
.key = hmac_sha3_384_697_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708067
.key = hmac_sha3_384_698_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708091
.key = hmac_sha3_384_699_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708115
.key = hmac_sha3_384_700_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708139
.key = hmac_sha3_384_701_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708163
.key = hmac_sha3_384_702_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708187
.key = hmac_sha3_384_703_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708211
.key = hmac_sha3_384_704_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708235
.key = hmac_sha3_384_705_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708259
.key = hmac_sha3_384_706_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708283
.key = hmac_sha3_384_707_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708307
.key = hmac_sha3_384_708_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708331
.key = hmac_sha3_384_709_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708355
.key = hmac_sha3_384_710_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708379
.key = hmac_sha3_384_711_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708403
.key = hmac_sha3_384_712_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708427
.key = hmac_sha3_384_713_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708451
.key = hmac_sha3_384_714_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708475
.key = hmac_sha3_384_715_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708499
.key = hmac_sha3_384_716_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708523
.key = hmac_sha3_384_717_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708547
.key = hmac_sha3_384_718_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708568
.key = hmac_sha3_384_719_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708592
.key = hmac_sha3_384_720_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708613
.key = hmac_sha3_384_721_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708637
.key = hmac_sha3_384_722_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708658
.key = hmac_sha3_384_723_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708682
.key = hmac_sha3_384_724_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708703
.key = hmac_sha3_384_725_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708727
.key = hmac_sha3_384_726_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708748
.key = hmac_sha3_384_727_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708772
.key = hmac_sha3_384_728_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708793
.key = hmac_sha3_384_729_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708817
.key = hmac_sha3_384_730_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708838
.key = hmac_sha3_384_731_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708862
.key = hmac_sha3_384_732_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708883
.key = hmac_sha3_384_733_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708907
.key = hmac_sha3_384_734_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708928
.key = hmac_sha3_384_735_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708952
.key = hmac_sha3_384_736_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708973
.key = hmac_sha3_384_737_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
708997
.key = hmac_sha3_384_738_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709018
.key = hmac_sha3_384_739_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709042
.key = hmac_sha3_384_740_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709063
.key = hmac_sha3_384_741_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709087
.key = hmac_sha3_384_742_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709108
.key = hmac_sha3_384_743_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709132
.key = hmac_sha3_384_744_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709153
.key = hmac_sha3_384_745_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709177
.key = hmac_sha3_384_746_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709198
.key = hmac_sha3_384_747_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709222
.key = hmac_sha3_384_748_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709243
.key = hmac_sha3_384_749_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709267
.key = hmac_sha3_384_750_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709288
.key = hmac_sha3_384_751_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709312
.key = hmac_sha3_384_752_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709333
.key = hmac_sha3_384_753_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709357
.key = hmac_sha3_384_754_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709378
.key = hmac_sha3_384_755_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709402
.key = hmac_sha3_384_756_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709423
.key = hmac_sha3_384_757_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709447
.key = hmac_sha3_384_758_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709468
.key = hmac_sha3_384_759_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709492
.key = hmac_sha3_384_760_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709513
.key = hmac_sha3_384_761_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709537
.key = hmac_sha3_384_762_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709558
.key = hmac_sha3_384_763_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709582
.key = hmac_sha3_384_764_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709603
.key = hmac_sha3_384_765_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709627
.key = hmac_sha3_384_766_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709648
.key = hmac_sha3_384_767_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709672
.key = hmac_sha3_384_768_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709693
.key = hmac_sha3_384_769_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709717
.key = hmac_sha3_384_770_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709738
.key = hmac_sha3_384_771_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709762
.key = hmac_sha3_384_772_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709783
.key = hmac_sha3_384_773_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709807
.key = hmac_sha3_384_774_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709831
.key = hmac_sha3_384_775_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709855
.key = hmac_sha3_384_776_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709879
.key = hmac_sha3_384_777_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709903
.key = hmac_sha3_384_778_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709927
.key = hmac_sha3_384_779_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709951
.key = hmac_sha3_384_780_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709975
.key = hmac_sha3_384_781_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
709999
.key = hmac_sha3_384_782_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710023
.key = hmac_sha3_384_783_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710047
.key = hmac_sha3_384_784_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710071
.key = hmac_sha3_384_785_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710095
.key = hmac_sha3_384_786_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710119
.key = hmac_sha3_384_787_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710143
.key = hmac_sha3_384_788_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710167
.key = hmac_sha3_384_789_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710191
.key = hmac_sha3_384_790_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710215
.key = hmac_sha3_384_791_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710239
.key = hmac_sha3_384_792_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710263
.key = hmac_sha3_384_793_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710287
.key = hmac_sha3_384_794_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710311
.key = hmac_sha3_384_795_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710335
.key = hmac_sha3_384_796_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710359
.key = hmac_sha3_384_797_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710383
.key = hmac_sha3_384_798_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710407
.key = hmac_sha3_384_799_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710428
.key = hmac_sha3_384_800_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710452
.key = hmac_sha3_384_801_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710473
.key = hmac_sha3_384_802_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710497
.key = hmac_sha3_384_803_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710518
.key = hmac_sha3_384_804_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710542
.key = hmac_sha3_384_805_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710563
.key = hmac_sha3_384_806_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710587
.key = hmac_sha3_384_807_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710608
.key = hmac_sha3_384_808_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710632
.key = hmac_sha3_384_809_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710653
.key = hmac_sha3_384_810_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710677
.key = hmac_sha3_384_811_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710698
.key = hmac_sha3_384_812_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710722
.key = hmac_sha3_384_813_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710743
.key = hmac_sha3_384_814_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710767
.key = hmac_sha3_384_815_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710788
.key = hmac_sha3_384_816_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710812
.key = hmac_sha3_384_817_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710833
.key = hmac_sha3_384_818_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710857
.key = hmac_sha3_384_819_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710878
.key = hmac_sha3_384_820_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710902
.key = hmac_sha3_384_821_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710923
.key = hmac_sha3_384_822_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710947
.key = hmac_sha3_384_823_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710968
.key = hmac_sha3_384_824_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
710992
.key = hmac_sha3_384_825_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711013
.key = hmac_sha3_384_826_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711037
.key = hmac_sha3_384_827_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711058
.key = hmac_sha3_384_828_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711082
.key = hmac_sha3_384_829_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711103
.key = hmac_sha3_384_830_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711127
.key = hmac_sha3_384_831_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711148
.key = hmac_sha3_384_832_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711172
.key = hmac_sha3_384_833_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711193
.key = hmac_sha3_384_834_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711217
.key = hmac_sha3_384_835_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711238
.key = hmac_sha3_384_836_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711262
.key = hmac_sha3_384_837_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711283
.key = hmac_sha3_384_838_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711307
.key = hmac_sha3_384_839_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711328
.key = hmac_sha3_384_840_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711352
.key = hmac_sha3_384_841_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711373
.key = hmac_sha3_384_842_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711397
.key = hmac_sha3_384_843_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711418
.key = hmac_sha3_384_844_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711442
.key = hmac_sha3_384_845_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711463
.key = hmac_sha3_384_846_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711487
.key = hmac_sha3_384_847_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711508
.key = hmac_sha3_384_848_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711532
.key = hmac_sha3_384_849_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711553
.key = hmac_sha3_384_850_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711577
.key = hmac_sha3_384_851_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711598
.key = hmac_sha3_384_852_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711622
.key = hmac_sha3_384_853_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711643
.key = hmac_sha3_384_854_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711667
.key = hmac_sha3_384_855_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711691
.key = hmac_sha3_384_856_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711712
.key = hmac_sha3_384_857_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711736
.key = hmac_sha3_384_858_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711760
.key = hmac_sha3_384_859_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711781
.key = hmac_sha3_384_860_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711805
.key = hmac_sha3_384_861_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711829
.key = hmac_sha3_384_862_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711850
.key = hmac_sha3_384_863_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711874
.key = hmac_sha3_384_864_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711898
.key = hmac_sha3_384_865_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711919
.key = hmac_sha3_512_866_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711943
.key = hmac_sha3_512_867_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711967
.key = hmac_sha3_512_868_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
711991
.key = hmac_sha3_512_869_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712015
.key = hmac_sha3_512_870_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712039
.key = hmac_sha3_512_871_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712063
.key = hmac_sha3_512_872_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712087
.key = hmac_sha3_512_873_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712111
.key = hmac_sha3_512_874_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712135
.key = hmac_sha3_512_875_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712159
.key = hmac_sha3_512_876_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712183
.key = hmac_sha3_512_877_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712207
.key = hmac_sha3_512_878_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712231
.key = hmac_sha3_512_879_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712255
.key = hmac_sha3_512_880_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712279
.key = hmac_sha3_512_881_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712303
.key = hmac_sha3_512_882_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712327
.key = hmac_sha3_512_883_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712351
.key = hmac_sha3_512_884_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712375
.key = hmac_sha3_512_885_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712399
.key = hmac_sha3_512_886_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712423
.key = hmac_sha3_512_887_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712447
.key = hmac_sha3_512_888_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712471
.key = hmac_sha3_512_889_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712495
.key = hmac_sha3_512_890_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712519
.key = hmac_sha3_512_891_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712543
.key = hmac_sha3_512_892_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712564
.key = hmac_sha3_512_893_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712588
.key = hmac_sha3_512_894_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712609
.key = hmac_sha3_512_895_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712633
.key = hmac_sha3_512_896_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712654
.key = hmac_sha3_512_897_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712678
.key = hmac_sha3_512_898_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712699
.key = hmac_sha3_512_899_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712723
.key = hmac_sha3_512_900_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712744
.key = hmac_sha3_512_901_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712768
.key = hmac_sha3_512_902_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712789
.key = hmac_sha3_512_903_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712813
.key = hmac_sha3_512_904_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712834
.key = hmac_sha3_512_905_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712858
.key = hmac_sha3_512_906_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712879
.key = hmac_sha3_512_907_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712903
.key = hmac_sha3_512_908_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712924
.key = hmac_sha3_512_909_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712948
.key = hmac_sha3_512_910_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712969
.key = hmac_sha3_512_911_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
712993
.key = hmac_sha3_512_912_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713014
.key = hmac_sha3_512_913_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713038
.key = hmac_sha3_512_914_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713059
.key = hmac_sha3_512_915_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713083
.key = hmac_sha3_512_916_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713104
.key = hmac_sha3_512_917_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713128
.key = hmac_sha3_512_918_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713149
.key = hmac_sha3_512_919_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713173
.key = hmac_sha3_512_920_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713194
.key = hmac_sha3_512_921_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713218
.key = hmac_sha3_512_922_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713239
.key = hmac_sha3_512_923_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713263
.key = hmac_sha3_512_924_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713284
.key = hmac_sha3_512_925_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713308
.key = hmac_sha3_512_926_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713329
.key = hmac_sha3_512_927_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713353
.key = hmac_sha3_512_928_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713374
.key = hmac_sha3_512_929_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713398
.key = hmac_sha3_512_930_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713419
.key = hmac_sha3_512_931_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713443
.key = hmac_sha3_512_932_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713464
.key = hmac_sha3_512_933_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713488
.key = hmac_sha3_512_934_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713509
.key = hmac_sha3_512_935_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713533
.key = hmac_sha3_512_936_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713554
.key = hmac_sha3_512_937_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713578
.key = hmac_sha3_512_938_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713599
.key = hmac_sha3_512_939_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713623
.key = hmac_sha3_512_940_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713644
.key = hmac_sha3_512_941_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713668
.key = hmac_sha3_512_942_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713689
.key = hmac_sha3_512_943_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713713
.key = hmac_sha3_512_944_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713734
.key = hmac_sha3_512_945_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713758
.key = hmac_sha3_512_946_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713779
.key = hmac_sha3_512_947_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713803
.key = hmac_sha3_512_948_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713827
.key = hmac_sha3_512_949_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713851
.key = hmac_sha3_512_950_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713875
.key = hmac_sha3_512_951_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713899
.key = hmac_sha3_512_952_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713923
.key = hmac_sha3_512_953_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713947
.key = hmac_sha3_512_954_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713971
.key = hmac_sha3_512_955_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
713995
.key = hmac_sha3_512_956_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714019
.key = hmac_sha3_512_957_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714043
.key = hmac_sha3_512_958_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714067
.key = hmac_sha3_512_959_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714091
.key = hmac_sha3_512_960_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714115
.key = hmac_sha3_512_961_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714139
.key = hmac_sha3_512_962_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714163
.key = hmac_sha3_512_963_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714187
.key = hmac_sha3_512_964_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714211
.key = hmac_sha3_512_965_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714235
.key = hmac_sha3_512_966_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714259
.key = hmac_sha3_512_967_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714283
.key = hmac_sha3_512_968_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714307
.key = hmac_sha3_512_969_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714331
.key = hmac_sha3_512_970_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714355
.key = hmac_sha3_512_971_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714379
.key = hmac_sha3_512_972_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714403
.key = hmac_sha3_512_973_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714424
.key = hmac_sha3_512_974_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714448
.key = hmac_sha3_512_975_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714469
.key = hmac_sha3_512_976_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714493
.key = hmac_sha3_512_977_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714514
.key = hmac_sha3_512_978_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714538
.key = hmac_sha3_512_979_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714559
.key = hmac_sha3_512_980_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714583
.key = hmac_sha3_512_981_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714604
.key = hmac_sha3_512_982_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714628
.key = hmac_sha3_512_983_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714649
.key = hmac_sha3_512_984_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714673
.key = hmac_sha3_512_985_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714694
.key = hmac_sha3_512_986_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714718
.key = hmac_sha3_512_987_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714739
.key = hmac_sha3_512_988_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714763
.key = hmac_sha3_512_989_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714784
.key = hmac_sha3_512_990_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714808
.key = hmac_sha3_512_991_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714829
.key = hmac_sha3_512_992_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714853
.key = hmac_sha3_512_993_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714874
.key = hmac_sha3_512_994_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714898
.key = hmac_sha3_512_995_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714919
.key = hmac_sha3_512_996_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714943
.key = hmac_sha3_512_997_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714964
.key = hmac_sha3_512_998_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
714988
.key = hmac_sha3_512_999_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715009
.key = hmac_sha3_512_1000_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715033
.key = hmac_sha3_512_1001_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715054
.key = hmac_sha3_512_1002_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715078
.key = hmac_sha3_512_1003_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715099
.key = hmac_sha3_512_1004_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715123
.key = hmac_sha3_512_1005_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715144
.key = hmac_sha3_512_1006_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715168
.key = hmac_sha3_512_1007_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715189
.key = hmac_sha3_512_1008_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715213
.key = hmac_sha3_512_1009_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715234
.key = hmac_sha3_512_1010_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715258
.key = hmac_sha3_512_1011_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715279
.key = hmac_sha3_512_1012_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715303
.key = hmac_sha3_512_1013_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715324
.key = hmac_sha3_512_1014_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715348
.key = hmac_sha3_512_1015_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715369
.key = hmac_sha3_512_1016_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715393
.key = hmac_sha3_512_1017_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715414
.key = hmac_sha3_512_1018_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715438
.key = hmac_sha3_512_1019_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715459
.key = hmac_sha3_512_1020_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715483
.key = hmac_sha3_512_1021_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715504
.key = hmac_sha3_512_1022_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715528
.key = hmac_sha3_512_1023_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715549
.key = hmac_sha3_512_1024_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715573
.key = hmac_sha3_512_1025_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715594
.key = hmac_sha3_512_1026_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715618
.key = hmac_sha3_512_1027_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715639
.key = hmac_sha3_512_1028_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715663
.key = hmac_sha3_512_1029_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715687
.key = hmac_sha3_512_1030_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715708
.key = hmac_sha3_512_1031_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715732
.key = hmac_sha3_512_1032_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715756
.key = hmac_sha3_512_1033_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715777
.key = hmac_sha3_512_1034_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715801
.key = hmac_sha3_512_1035_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715825
.key = hmac_sha3_512_1036_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715846
.key = hmac_sha3_512_1037_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715870
.key = hmac_sha3_512_1038_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715894
.key = hmac_sha3_512_1039_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715915
.key = hmac_sha384_1040_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715939
.key = hmac_sha384_1041_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715963
.key = hmac_sha384_1042_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
715987
.key = hmac_sha384_1043_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716011
.key = hmac_sha384_1044_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716035
.key = hmac_sha384_1045_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716059
.key = hmac_sha384_1046_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716083
.key = hmac_sha384_1047_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716107
.key = hmac_sha384_1048_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716131
.key = hmac_sha384_1049_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716155
.key = hmac_sha384_1050_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716179
.key = hmac_sha384_1051_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716203
.key = hmac_sha384_1052_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716227
.key = hmac_sha384_1053_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716251
.key = hmac_sha384_1054_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716275
.key = hmac_sha384_1055_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716299
.key = hmac_sha384_1056_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716323
.key = hmac_sha384_1057_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716347
.key = hmac_sha384_1058_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716371
.key = hmac_sha384_1059_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716395
.key = hmac_sha384_1060_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716419
.key = hmac_sha384_1061_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716443
.key = hmac_sha384_1062_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716467
.key = hmac_sha384_1063_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716491
.key = hmac_sha384_1064_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716515
.key = hmac_sha384_1065_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716539
.key = hmac_sha384_1066_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716560
.key = hmac_sha384_1067_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716584
.key = hmac_sha384_1068_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716605
.key = hmac_sha384_1069_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716629
.key = hmac_sha384_1070_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716650
.key = hmac_sha384_1071_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716674
.key = hmac_sha384_1072_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716695
.key = hmac_sha384_1073_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716719
.key = hmac_sha384_1074_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716740
.key = hmac_sha384_1075_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716764
.key = hmac_sha384_1076_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716785
.key = hmac_sha384_1077_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716809
.key = hmac_sha384_1078_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716830
.key = hmac_sha384_1079_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716854
.key = hmac_sha384_1080_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716875
.key = hmac_sha384_1081_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716899
.key = hmac_sha384_1082_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716920
.key = hmac_sha384_1083_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716944
.key = hmac_sha384_1084_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716965
.key = hmac_sha384_1085_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
716989
.key = hmac_sha384_1086_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717010
.key = hmac_sha384_1087_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717034
.key = hmac_sha384_1088_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717055
.key = hmac_sha384_1089_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717079
.key = hmac_sha384_1090_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717100
.key = hmac_sha384_1091_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717124
.key = hmac_sha384_1092_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717145
.key = hmac_sha384_1093_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717169
.key = hmac_sha384_1094_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717190
.key = hmac_sha384_1095_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717214
.key = hmac_sha384_1096_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717235
.key = hmac_sha384_1097_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717259
.key = hmac_sha384_1098_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717280
.key = hmac_sha384_1099_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717304
.key = hmac_sha384_1100_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717325
.key = hmac_sha384_1101_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717349
.key = hmac_sha384_1102_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717370
.key = hmac_sha384_1103_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717394
.key = hmac_sha384_1104_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717415
.key = hmac_sha384_1105_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717439
.key = hmac_sha384_1106_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717460
.key = hmac_sha384_1107_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717484
.key = hmac_sha384_1108_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717505
.key = hmac_sha384_1109_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717529
.key = hmac_sha384_1110_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717550
.key = hmac_sha384_1111_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717574
.key = hmac_sha384_1112_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717595
.key = hmac_sha384_1113_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717619
.key = hmac_sha384_1114_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717640
.key = hmac_sha384_1115_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717664
.key = hmac_sha384_1116_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717685
.key = hmac_sha384_1117_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717709
.key = hmac_sha384_1118_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717730
.key = hmac_sha384_1119_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717754
.key = hmac_sha384_1120_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717775
.key = hmac_sha384_1121_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717799
.key = hmac_sha384_1122_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717823
.key = hmac_sha384_1123_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717847
.key = hmac_sha384_1124_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717871
.key = hmac_sha384_1125_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717895
.key = hmac_sha384_1126_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717919
.key = hmac_sha384_1127_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717943
.key = hmac_sha384_1128_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717967
.key = hmac_sha384_1129_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
717991
.key = hmac_sha384_1130_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718015
.key = hmac_sha384_1131_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718039
.key = hmac_sha384_1132_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718063
.key = hmac_sha384_1133_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718087
.key = hmac_sha384_1134_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718111
.key = hmac_sha384_1135_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718135
.key = hmac_sha384_1136_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718159
.key = hmac_sha384_1137_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718183
.key = hmac_sha384_1138_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718207
.key = hmac_sha384_1139_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718231
.key = hmac_sha384_1140_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718255
.key = hmac_sha384_1141_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718279
.key = hmac_sha384_1142_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718303
.key = hmac_sha384_1143_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718327
.key = hmac_sha384_1144_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718351
.key = hmac_sha384_1145_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718375
.key = hmac_sha384_1146_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718399
.key = hmac_sha384_1147_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718420
.key = hmac_sha384_1148_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718444
.key = hmac_sha384_1149_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718465
.key = hmac_sha384_1150_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718489
.key = hmac_sha384_1151_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718510
.key = hmac_sha384_1152_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718534
.key = hmac_sha384_1153_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718555
.key = hmac_sha384_1154_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718579
.key = hmac_sha384_1155_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718600
.key = hmac_sha384_1156_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718624
.key = hmac_sha384_1157_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718645
.key = hmac_sha384_1158_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718669
.key = hmac_sha384_1159_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718690
.key = hmac_sha384_1160_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718714
.key = hmac_sha384_1161_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718735
.key = hmac_sha384_1162_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718759
.key = hmac_sha384_1163_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718780
.key = hmac_sha384_1164_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718804
.key = hmac_sha384_1165_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718825
.key = hmac_sha384_1166_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718849
.key = hmac_sha384_1167_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718870
.key = hmac_sha384_1168_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718894
.key = hmac_sha384_1169_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718915
.key = hmac_sha384_1170_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718939
.key = hmac_sha384_1171_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718960
.key = hmac_sha384_1172_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
718984
.key = hmac_sha384_1173_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719005
.key = hmac_sha384_1174_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719029
.key = hmac_sha384_1175_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719050
.key = hmac_sha384_1176_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719074
.key = hmac_sha384_1177_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719095
.key = hmac_sha384_1178_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719119
.key = hmac_sha384_1179_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719140
.key = hmac_sha384_1180_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719164
.key = hmac_sha384_1181_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719185
.key = hmac_sha384_1182_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719209
.key = hmac_sha384_1183_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719230
.key = hmac_sha384_1184_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719254
.key = hmac_sha384_1185_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719275
.key = hmac_sha384_1186_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719299
.key = hmac_sha384_1187_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719320
.key = hmac_sha384_1188_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719344
.key = hmac_sha384_1189_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719365
.key = hmac_sha384_1190_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719389
.key = hmac_sha384_1191_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719410
.key = hmac_sha384_1192_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719434
.key = hmac_sha384_1193_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719455
.key = hmac_sha384_1194_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719479
.key = hmac_sha384_1195_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719500
.key = hmac_sha384_1196_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719524
.key = hmac_sha384_1197_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719545
.key = hmac_sha384_1198_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719569
.key = hmac_sha384_1199_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719590
.key = hmac_sha384_1200_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719614
.key = hmac_sha384_1201_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719635
.key = hmac_sha384_1202_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719659
.key = hmac_sha384_1203_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719683
.key = hmac_sha384_1204_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719704
.key = hmac_sha384_1205_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719728
.key = hmac_sha384_1206_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719752
.key = hmac_sha384_1207_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719773
.key = hmac_sha384_1208_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719797
.key = hmac_sha384_1209_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719821
.key = hmac_sha384_1210_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719842
.key = hmac_sha384_1211_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719866
.key = hmac_sha384_1212_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719890
.key = hmac_sha384_1213_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719911
.key = hmac_sha512_1214_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719935
.key = hmac_sha512_1215_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719959
.key = hmac_sha512_1216_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
719983
.key = hmac_sha512_1217_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720007
.key = hmac_sha512_1218_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720031
.key = hmac_sha512_1219_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720055
.key = hmac_sha512_1220_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720079
.key = hmac_sha512_1221_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720103
.key = hmac_sha512_1222_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720127
.key = hmac_sha512_1223_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720151
.key = hmac_sha512_1224_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720175
.key = hmac_sha512_1225_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720199
.key = hmac_sha512_1226_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720223
.key = hmac_sha512_1227_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720247
.key = hmac_sha512_1228_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720271
.key = hmac_sha512_1229_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720295
.key = hmac_sha512_1230_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720319
.key = hmac_sha512_1231_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720343
.key = hmac_sha512_1232_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720367
.key = hmac_sha512_1233_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720391
.key = hmac_sha512_1234_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720415
.key = hmac_sha512_1235_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720439
.key = hmac_sha512_1236_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720463
.key = hmac_sha512_1237_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720487
.key = hmac_sha512_1238_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720511
.key = hmac_sha512_1239_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720535
.key = hmac_sha512_1240_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720556
.key = hmac_sha512_1241_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720580
.key = hmac_sha512_1242_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720601
.key = hmac_sha512_1243_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720625
.key = hmac_sha512_1244_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720646
.key = hmac_sha512_1245_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720670
.key = hmac_sha512_1246_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720691
.key = hmac_sha512_1247_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720715
.key = hmac_sha512_1248_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720736
.key = hmac_sha512_1249_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720760
.key = hmac_sha512_1250_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720781
.key = hmac_sha512_1251_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720805
.key = hmac_sha512_1252_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720826
.key = hmac_sha512_1253_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720850
.key = hmac_sha512_1254_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720871
.key = hmac_sha512_1255_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720895
.key = hmac_sha512_1256_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720916
.key = hmac_sha512_1257_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720940
.key = hmac_sha512_1258_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720961
.key = hmac_sha512_1259_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
720985
.key = hmac_sha512_1260_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721006
.key = hmac_sha512_1261_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721030
.key = hmac_sha512_1262_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721051
.key = hmac_sha512_1263_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721075
.key = hmac_sha512_1264_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721096
.key = hmac_sha512_1265_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721120
.key = hmac_sha512_1266_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721141
.key = hmac_sha512_1267_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721165
.key = hmac_sha512_1268_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721186
.key = hmac_sha512_1269_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721210
.key = hmac_sha512_1270_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721231
.key = hmac_sha512_1271_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721255
.key = hmac_sha512_1272_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721276
.key = hmac_sha512_1273_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721300
.key = hmac_sha512_1274_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721321
.key = hmac_sha512_1275_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721345
.key = hmac_sha512_1276_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721366
.key = hmac_sha512_1277_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721390
.key = hmac_sha512_1278_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721411
.key = hmac_sha512_1279_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721435
.key = hmac_sha512_1280_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721456
.key = hmac_sha512_1281_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721480
.key = hmac_sha512_1282_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721501
.key = hmac_sha512_1283_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721525
.key = hmac_sha512_1284_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721546
.key = hmac_sha512_1285_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721570
.key = hmac_sha512_1286_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721591
.key = hmac_sha512_1287_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721615
.key = hmac_sha512_1288_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721636
.key = hmac_sha512_1289_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721660
.key = hmac_sha512_1290_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721681
.key = hmac_sha512_1291_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721705
.key = hmac_sha512_1292_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721726
.key = hmac_sha512_1293_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721750
.key = hmac_sha512_1294_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721771
.key = hmac_sha512_1295_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721795
.key = hmac_sha512_1296_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721819
.key = hmac_sha512_1297_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721843
.key = hmac_sha512_1298_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721867
.key = hmac_sha512_1299_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721891
.key = hmac_sha512_1300_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721915
.key = hmac_sha512_1301_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721939
.key = hmac_sha512_1302_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721963
.key = hmac_sha512_1303_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
721987
.key = hmac_sha512_1304_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722011
.key = hmac_sha512_1305_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722035
.key = hmac_sha512_1306_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722059
.key = hmac_sha512_1307_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722083
.key = hmac_sha512_1308_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722107
.key = hmac_sha512_1309_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722131
.key = hmac_sha512_1310_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722155
.key = hmac_sha512_1311_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722179
.key = hmac_sha512_1312_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722203
.key = hmac_sha512_1313_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722227
.key = hmac_sha512_1314_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722251
.key = hmac_sha512_1315_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722275
.key = hmac_sha512_1316_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722299
.key = hmac_sha512_1317_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722323
.key = hmac_sha512_1318_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722347
.key = hmac_sha512_1319_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722371
.key = hmac_sha512_1320_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722395
.key = hmac_sha512_1321_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722416
.key = hmac_sha512_1322_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722440
.key = hmac_sha512_1323_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722461
.key = hmac_sha512_1324_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722485
.key = hmac_sha512_1325_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722506
.key = hmac_sha512_1326_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722530
.key = hmac_sha512_1327_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722551
.key = hmac_sha512_1328_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722575
.key = hmac_sha512_1329_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722596
.key = hmac_sha512_1330_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722620
.key = hmac_sha512_1331_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722641
.key = hmac_sha512_1332_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722665
.key = hmac_sha512_1333_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722686
.key = hmac_sha512_1334_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722710
.key = hmac_sha512_1335_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722731
.key = hmac_sha512_1336_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722755
.key = hmac_sha512_1337_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722776
.key = hmac_sha512_1338_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722800
.key = hmac_sha512_1339_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722821
.key = hmac_sha512_1340_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722845
.key = hmac_sha512_1341_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722866
.key = hmac_sha512_1342_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722890
.key = hmac_sha512_1343_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722911
.key = hmac_sha512_1344_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722935
.key = hmac_sha512_1345_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722956
.key = hmac_sha512_1346_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
722980
.key = hmac_sha512_1347_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723001
.key = hmac_sha512_1348_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723025
.key = hmac_sha512_1349_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723046
.key = hmac_sha512_1350_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723070
.key = hmac_sha512_1351_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723091
.key = hmac_sha512_1352_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723115
.key = hmac_sha512_1353_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723136
.key = hmac_sha512_1354_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723160
.key = hmac_sha512_1355_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723181
.key = hmac_sha512_1356_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723205
.key = hmac_sha512_1357_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723226
.key = hmac_sha512_1358_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723250
.key = hmac_sha512_1359_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723271
.key = hmac_sha512_1360_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723295
.key = hmac_sha512_1361_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723316
.key = hmac_sha512_1362_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723340
.key = hmac_sha512_1363_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723361
.key = hmac_sha512_1364_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723385
.key = hmac_sha512_1365_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723406
.key = hmac_sha512_1366_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723430
.key = hmac_sha512_1367_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723451
.key = hmac_sha512_1368_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723475
.key = hmac_sha512_1369_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723496
.key = hmac_sha512_1370_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723520
.key = hmac_sha512_1371_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723541
.key = hmac_sha512_1372_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723565
.key = hmac_sha512_1373_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723586
.key = hmac_sha512_1374_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723610
.key = hmac_sha512_1375_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723631
.key = hmac_sha512_1376_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723655
.key = hmac_sha512_1377_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723679
.key = hmac_sha512_1378_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723700
.key = hmac_sha512_1379_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723724
.key = hmac_sha512_1380_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723748
.key = hmac_sha512_1381_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723769
.key = hmac_sha512_1382_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723793
.key = hmac_sha512_1383_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723817
.key = hmac_sha512_1384_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723838
.key = hmac_sha512_1385_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723862
.key = hmac_sha512_1386_key,
crypto/libecc/src/wycheproof_tests/libecc_wycheproof_tests.h
723886
.key = hmac_sha512_1387_key,
crypto/openssh/auth.c
232
const struct sshkey *key = authctxt->auth_method_key;
crypto/openssh/auth.c
236
if (key == NULL)
crypto/openssh/auth.c
239
if (sshkey_is_cert(key)) {
crypto/openssh/auth.c
240
fp = sshkey_fingerprint(key,
crypto/openssh/auth.c
242
cafp = sshkey_fingerprint(key->cert->signature_key,
crypto/openssh/auth.c
245
sshkey_type(key), fp == NULL ? "(null)" : fp,
crypto/openssh/auth.c
246
key->cert->key_id,
crypto/openssh/auth.c
247
(unsigned long long)key->cert->serial,
crypto/openssh/auth.c
248
sshkey_type(key->cert->signature_key),
crypto/openssh/auth.c
255
fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/auth.c
257
xasprintf(&ret, "%s %s%s%s", sshkey_type(key),
crypto/openssh/auth.c
423
check_key_in_hostfiles(struct passwd *pw, struct sshkey *key, const char *host,
crypto/openssh/auth.c
452
host_status = check_key_in_hostkeys(hostkeys, key, &found);
crypto/openssh/auth.c
554
auth_key_is_revoked(struct sshkey *key)
crypto/openssh/auth.c
561
if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/auth.c
568
r = sshkey_check_revoked(key, options.revoked_keys_file);
crypto/openssh/auth.c
574
sshkey_type(key), fp, options.revoked_keys_file);
crypto/openssh/auth.c
578
"revoked keys file %s", sshkey_type(key), fp,
crypto/openssh/auth2-hostbased.c
101
"(received %d, expected %d)", key->type, pktype);
crypto/openssh/auth2-hostbased.c
109
if ((r = sshkey_check_cert_sigtype(key,
crypto/openssh/auth2-hostbased.c
112
(key->cert == NULL || key->cert->signature_type == NULL) ?
crypto/openssh/auth2-hostbased.c
113
"(null)" : key->cert->signature_type);
crypto/openssh/auth2-hostbased.c
116
if ((r = sshkey_check_rsa_length(key,
crypto/openssh/auth2-hostbased.c
118
logit_r(r, "refusing %s key", sshkey_type(key));
crypto/openssh/auth2-hostbased.c
150
chost, key) &&
crypto/openssh/auth2-hostbased.c
151
mm_sshkey_verify(key, sig, slen,
crypto/openssh/auth2-hostbased.c
155
auth2_record_key(authctxt, authenticated, key);
crypto/openssh/auth2-hostbased.c
159
sshkey_free(key);
crypto/openssh/auth2-hostbased.c
171
const char *cuser, char *chost, struct sshkey *key)
crypto/openssh/auth2-hostbased.c
178
if (auth_key_is_revoked(key))
crypto/openssh/auth2-hostbased.c
214
if (sshkey_is_cert(key) &&
crypto/openssh/auth2-hostbased.c
215
sshkey_cert_check_authority_now(key, 1, 0, 0, lookup, &reason)) {
crypto/openssh/auth2-hostbased.c
221
host_status = check_key_in_hostfiles(pw, key, lookup,
crypto/openssh/auth2-hostbased.c
227
host_status = check_key_in_hostfiles(pw, key, lookup,
crypto/openssh/auth2-hostbased.c
234
if (sshkey_is_cert(key)) {
crypto/openssh/auth2-hostbased.c
235
if ((fp = sshkey_fingerprint(key->cert->signature_key,
crypto/openssh/auth2-hostbased.c
239
"%s CA %s from %s@%s", key->cert->key_id,
crypto/openssh/auth2-hostbased.c
240
sshkey_type(key->cert->signature_key), fp,
crypto/openssh/auth2-hostbased.c
243
if ((fp = sshkey_fingerprint(key,
crypto/openssh/auth2-hostbased.c
247
sshkey_type(key), fp, cuser, lookup);
crypto/openssh/auth2-hostbased.c
64
struct sshkey *key = NULL;
crypto/openssh/auth2-hostbased.c
91
if ((r = sshkey_from_blob(pkblob, blen, &key)) != 0) {
crypto/openssh/auth2-hostbased.c
95
if (key == NULL) {
crypto/openssh/auth2-hostbased.c
99
if (key->type != pktype) {
crypto/openssh/auth2-pubkey.c
149
if ((r = sshkey_from_blob(pkblob, blen, &key)) != 0) {
crypto/openssh/auth2-pubkey.c
153
if (key == NULL) {
crypto/openssh/auth2-pubkey.c
157
if (key->type != pktype) {
crypto/openssh/auth2-pubkey.c
159
"(received %d, expected %d)", key->type, pktype);
crypto/openssh/auth2-pubkey.c
162
if (auth2_key_already_used(authctxt, key)) {
crypto/openssh/auth2-pubkey.c
163
logit("refusing previously-used %s key", sshkey_type(key));
crypto/openssh/auth2-pubkey.c
171
if ((r = sshkey_check_cert_sigtype(key,
crypto/openssh/auth2-pubkey.c
174
(key->cert == NULL || key->cert->signature_type == NULL) ?
crypto/openssh/auth2-pubkey.c
175
"(null)" : key->cert->signature_type);
crypto/openssh/auth2-pubkey.c
178
if ((r = sshkey_check_rsa_length(key,
crypto/openssh/auth2-pubkey.c
180
logit_r(r, "refusing %s key", sshkey_type(key));
crypto/openssh/auth2-pubkey.c
183
key_s = format_key(key);
crypto/openssh/auth2-pubkey.c
184
if (sshkey_is_cert(key))
crypto/openssh/auth2-pubkey.c
185
ca_s = format_key(key->cert->signature_key);
crypto/openssh/auth2-pubkey.c
228
if (mm_user_key_allowed(ssh, pw, key, 1, &authopts) &&
crypto/openssh/auth2-pubkey.c
229
mm_sshkey_verify(key, sig, slen,
crypto/openssh/auth2-pubkey.c
270
auth2_record_key(authctxt, authenticated, key);
crypto/openssh/auth2-pubkey.c
290
if (mm_user_key_allowed(ssh, pw, key, 0, NULL)) {
crypto/openssh/auth2-pubkey.c
310
sshkey_free(key);
crypto/openssh/auth2-pubkey.c
380
match_principals_command(struct passwd *user_pw, const struct sshkey *key,
crypto/openssh/auth2-pubkey.c
384
const struct sshkey_cert *cert = key->cert;
crypto/openssh/auth2-pubkey.c
437
if ((key_fp = sshkey_fingerprint(key,
crypto/openssh/auth2-pubkey.c
446
if ((r = sshkey_to_base64(key, &keytext)) != 0) {
crypto/openssh/auth2-pubkey.c
461
"t", sshkey_ssh_name(key),
crypto/openssh/auth2-pubkey.c
517
user_cert_trusted_ca(struct passwd *pw, struct sshkey *key,
crypto/openssh/auth2-pubkey.c
530
if (!sshkey_is_cert(key) || options.trusted_user_ca_keys == NULL)
crypto/openssh/auth2-pubkey.c
533
if ((ca_fp = sshkey_fingerprint(key->cert->signature_key,
crypto/openssh/auth2-pubkey.c
537
if ((r = sshkey_in_file(key->cert->signature_key,
crypto/openssh/auth2-pubkey.c
540
sshkey_type(key->cert->signature_key), ca_fp,
crypto/openssh/auth2-pubkey.c
551
key->cert, &principals_opts))
crypto/openssh/auth2-pubkey.c
555
if (!found_principal && match_principals_command(pw, key,
crypto/openssh/auth2-pubkey.c
567
if (sshkey_cert_check_authority_now(key, 0, 1, 0,
crypto/openssh/auth2-pubkey.c
572
if ((cert_opts = sshauthopt_from_cert(key)) == NULL) {
crypto/openssh/auth2-pubkey.c
601
"%s CA %s via %s", key->cert->key_id,
crypto/openssh/auth2-pubkey.c
602
(unsigned long long)key->cert->serial,
crypto/openssh/auth2-pubkey.c
603
sshkey_type(key->cert->signature_key), ca_fp,
crypto/openssh/auth2-pubkey.c
624
user_key_allowed2(struct passwd *pw, struct sshkey *key,
crypto/openssh/auth2-pubkey.c
640
key, remote_ip, remote_host, authoptsp);
crypto/openssh/auth2-pubkey.c
653
user_key_command_allowed2(struct passwd *user_pw, struct sshkey *key,
crypto/openssh/auth2-pubkey.c
692
if ((key_fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/auth2-pubkey.c
697
if ((r = sshkey_to_base64(key, &keytext)) != 0) {
crypto/openssh/auth2-pubkey.c
722
"t", sshkey_ssh_name(key),
crypto/openssh/auth2-pubkey.c
758
options.authorized_keys_command, key, remote_ip,
crypto/openssh/auth2-pubkey.c
789
user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key,
crypto/openssh/auth2-pubkey.c
800
if (auth_key_is_revoked(key))
crypto/openssh/auth2-pubkey.c
802
if (sshkey_is_cert(key) &&
crypto/openssh/auth2-pubkey.c
803
auth_key_is_revoked(key->cert->signature_key))
crypto/openssh/auth2-pubkey.c
83
format_key(const struct sshkey *key)
crypto/openssh/auth2-pubkey.c
839
success = user_key_allowed2(pw, key, gl.gl_pathv[j],
crypto/openssh/auth2-pubkey.c
85
char *ret, *fp = sshkey_fingerprint(key,
crypto/openssh/auth2-pubkey.c
853
if ((success = user_cert_trusted_ca(pw, key, remote_ip, remote_host,
crypto/openssh/auth2-pubkey.c
859
if ((success = user_key_command_allowed2(pw, key, remote_ip,
crypto/openssh/auth2-pubkey.c
88
xasprintf(&ret, "%s %s", sshkey_type(key), fp);
crypto/openssh/auth2-pubkey.c
99
struct sshkey *key = NULL, *hostkey = NULL;
crypto/openssh/auth2-pubkeyfile.c
264
auth_check_authkey_line(struct passwd *pw, struct sshkey *key,
crypto/openssh/auth2-pubkeyfile.c
268
int want_keytype = sshkey_is_cert(key) ? KEY_UNSPEC : key->type;
crypto/openssh/auth2-pubkeyfile.c
307
if (sshkey_is_cert(key)) {
crypto/openssh/auth2-pubkeyfile.c
309
if (!sshkey_equal(found, key->cert->signature_key) ||
crypto/openssh/auth2-pubkeyfile.c
314
if (!sshkey_equal(found, key) || keyopts->cert_authority)
crypto/openssh/auth2-pubkeyfile.c
324
sshkey_is_cert(key) ? "CA" : "key", sshkey_type(found), fp);
crypto/openssh/auth2-pubkeyfile.c
327
sshkey_is_cert(key), remote_ip, remote_host, loc) != 0) {
crypto/openssh/auth2-pubkeyfile.c
332
if (!sshkey_is_cert(key)) {
crypto/openssh/auth2-pubkeyfile.c
345
if ((certopts = sshauthopt_from_cert(key)) == NULL) {
crypto/openssh/auth2-pubkeyfile.c
363
!match_principals_option(keyopts->cert_principals, key->cert)) {
crypto/openssh/auth2-pubkeyfile.c
367
if (sshkey_cert_check_authority_now(key, 0, 0, 0,
crypto/openssh/auth2-pubkeyfile.c
374
key->cert->key_id,
crypto/openssh/auth2-pubkeyfile.c
375
(unsigned long long)key->cert->serial,
crypto/openssh/auth2-pubkeyfile.c
407
struct sshkey *key, const char *remote_ip,
crypto/openssh/auth2-pubkeyfile.c
432
if (auth_check_authkey_line(pw, key, cp,
crypto/openssh/auth2.c
719
const struct sshkey *key)
crypto/openssh/auth2.c
724
if ((r = sshkey_from_private(key, &dup)) != 0)
crypto/openssh/auth2.c
733
if ((r = sshkey_from_private(key, &dup)) != 0)
crypto/openssh/auth2.c
747
auth2_key_already_used(Authctxt *authctxt, const struct sshkey *key)
crypto/openssh/auth2.c
753
if (sshkey_equal_public(key, authctxt->prev_keys[i])) {
crypto/openssh/authfd.c
358
ssh_agent_has_key(int sock, const struct sshkey *key)
crypto/openssh/authfd.c
369
if (sshkey_equal_public(idlist->keys[i], key)) {
crypto/openssh/authfd.c
389
agent_encode_alg(const struct sshkey *key, const char *alg)
crypto/openssh/authfd.c
391
if (alg != NULL && sshkey_type_plain(key->type) == KEY_RSA) {
crypto/openssh/authfd.c
404
ssh_agent_sign(int sock, const struct sshkey *key,
crypto/openssh/authfd.c
421
flags |= agent_encode_alg(key, alg);
crypto/openssh/authfd.c
423
(r = sshkey_puts(key, msg)) != 0 ||
crypto/openssh/authfd.c
587
ssh_add_identity_constrained(int sock, struct sshkey *key,
crypto/openssh/authfd.c
600
switch (key->type) {
crypto/openssh/authfd.c
621
(r = sshkey_private_serialize_maxsign(key, msg, maxsign,
crypto/openssh/authfd.c
648
ssh_remove_identity(int sock, const struct sshkey *key)
crypto/openssh/authfd.c
658
if (key->type != KEY_UNSPEC) {
crypto/openssh/authfd.c
659
if ((r = sshkey_to_blob(key, &blob, &blen)) != 0)
crypto/openssh/authfd.c
753
ssh_agent_bind_hostkey(int sock, const struct sshkey *key,
crypto/openssh/authfd.c
760
if (key == NULL || session_id == NULL || signature == NULL)
crypto/openssh/authfd.c
766
(r = sshkey_puts(key, msg)) != 0 ||
crypto/openssh/authfd.h
50
int ssh_add_identity_constrained(int sock, struct sshkey *key,
crypto/openssh/authfd.h
54
int ssh_agent_has_key(int sock, const struct sshkey *key);
crypto/openssh/authfd.h
55
int ssh_remove_identity(int sock, const struct sshkey *key);
crypto/openssh/authfd.h
63
int ssh_agent_sign(int sock, const struct sshkey *key,
crypto/openssh/authfd.h
67
int ssh_agent_bind_hostkey(int sock, const struct sshkey *key,
crypto/openssh/authfile.c
322
struct sshkey *key = NULL, *cert = NULL;
crypto/openssh/authfile.c
343
passphrase, &key, NULL)) != 0 ||
crypto/openssh/authfile.c
348
if (sshkey_equal_public(key, cert) == 0) {
crypto/openssh/authfile.c
353
if ((r = sshkey_to_certified(key)) != 0 ||
crypto/openssh/authfile.c
354
(r = sshkey_cert_copy(cert, key)) != 0)
crypto/openssh/authfile.c
358
*keyp = key;
crypto/openssh/authfile.c
359
key = NULL;
crypto/openssh/authfile.c
362
sshkey_free(key);
crypto/openssh/authfile.c
376
sshkey_in_file(struct sshkey *key, const char *filename, int strict_type,
crypto/openssh/authfile.c
420
if (sshkey_compare(key, pub) ||
crypto/openssh/authfile.c
421
(check_ca && sshkey_is_cert(key) &&
crypto/openssh/authfile.c
422
sshkey_compare(key->cert->signature_key, pub))) {
crypto/openssh/authfile.c
443
sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file)
crypto/openssh/authfile.c
447
r = ssh_krl_file_contains_key(revoked_keys_file, key);
crypto/openssh/authfile.c
456
switch ((r = sshkey_in_file(key, revoked_keys_file, 0, 1))) {
crypto/openssh/authfile.c
493
sshkey_save_public(const struct sshkey *key, const char *path,
crypto/openssh/authfile.c
507
if ((r = sshkey_write(key, f)) != 0)
crypto/openssh/authfile.c
66
sshkey_save_private(struct sshkey *key, const char *filename,
crypto/openssh/authfile.c
75
if ((r = sshkey_private_to_fileblob(key, keyblob, passphrase, comment,
crypto/openssh/authfile.h
49
int sshkey_check_revoked(struct sshkey *key, const char *revoked_keys_file);
crypto/openssh/authfile.h
51
int sshkey_save_public(const struct sshkey *key, const char *path,
crypto/openssh/cipher-aes.c
50
ssh_rijndael_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv,
crypto/openssh/cipher-aes.c
59
if (key != NULL) {
crypto/openssh/cipher-aes.c
62
rijndael_set_key(&c->r_ctx, (u_char *)key,
crypto/openssh/cipher-chachapoly-libcrypto.c
42
chachapoly_new(const u_char *key, u_int keylen)
crypto/openssh/cipher-chachapoly-libcrypto.c
53
if (!EVP_CipherInit(ctx->main_evp, EVP_chacha20(), key, NULL, 1))
crypto/openssh/cipher-chachapoly-libcrypto.c
55
if (!EVP_CipherInit(ctx->header_evp, EVP_chacha20(), key + 32, NULL, 1))
crypto/openssh/cipher-chachapoly.c
40
chachapoly_new(const u_char *key, u_int keylen)
crypto/openssh/cipher-chachapoly.c
48
chacha_keysetup(&ctx->main_ctx, key, 256);
crypto/openssh/cipher-chachapoly.c
49
chacha_keysetup(&ctx->header_ctx, key + 32, 256);
crypto/openssh/cipher-chachapoly.h
29
struct chachapoly_ctx *chachapoly_new(const u_char *key, u_int keylen)
crypto/openssh/cipher.c
247
const u_char *key, u_int keylen, const u_char *iv, u_int ivlen,
crypto/openssh/cipher.c
272
cc->cp_ctx = chachapoly_new(key, keylen);
crypto/openssh/cipher.c
282
aesctr_keysetup(&cc->ac_ctx, key, 8 * keylen, 8 * ivlen);
crypto/openssh/cipher.c
313
if (EVP_CipherInit(cc->evp, NULL, (u_char *)key, NULL, -1) == 0) {
crypto/openssh/clientloop.c
2095
if (l->key == NULL)
crypto/openssh/clientloop.c
2100
if (sshkey_equal(l->key, ctx->keys[i])) {
crypto/openssh/clientloop.c
2149
if (!sshkey_equal(l->key, ctx->keys[i]))
crypto/openssh/clientloop.c
2157
debug3_f("deprecated %s key at %s:%ld", sshkey_ssh_name(l->key),
crypto/openssh/clientloop.c
2163
ctx->old_keys[ctx->nold++] = l->key;
crypto/openssh/clientloop.c
2164
l->key = NULL;
crypto/openssh/clientloop.c
2178
if (l->status == HKF_STATUS_MATCHED || l->key == NULL)
crypto/openssh/clientloop.c
2183
if (!sshkey_equal(l->key, ctx->old_keys[i]))
crypto/openssh/clientloop.c
2439
struct sshkey *key = NULL, **tmp;
crypto/openssh/clientloop.c
2455
sshkey_free(key);
crypto/openssh/clientloop.c
2456
key = NULL;
crypto/openssh/clientloop.c
2461
if ((r = sshkey_from_blob(blob, len, &key)) != 0) {
crypto/openssh/clientloop.c
2467
fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/clientloop.c
2469
debug3_f("received %s key %s", sshkey_type(key), fp);
crypto/openssh/clientloop.c
2472
if (!hostkey_accepted_by_hostkeyalgs(key)) {
crypto/openssh/clientloop.c
2474
"HostkeyAlgorithms", sshkey_ssh_name(key));
crypto/openssh/clientloop.c
2478
if (sshkey_is_cert(key)) {
crypto/openssh/clientloop.c
2480
sshkey_ssh_name(key));
crypto/openssh/clientloop.c
2485
if (sshkey_equal(key, ctx->keys[i])) {
crypto/openssh/clientloop.c
2487
sshkey_ssh_name(key));
crypto/openssh/clientloop.c
2497
ctx->keys[ctx->nkeys++] = key;
crypto/openssh/clientloop.c
2498
key = NULL;
crypto/openssh/clientloop.c
2625
sshkey_free(key);
crypto/openssh/dns.c
119
if ((r = sshkey_fingerprint_raw(key, fp_alg, digest,
crypto/openssh/dns.c
305
export_dns_rr(const char *hostname, struct sshkey *key, FILE *f, int generic,
crypto/openssh/dns.c
320
&rdata_digest, &rdata_digest_len, key)) {
crypto/openssh/dns.c
82
u_char **digest, size_t *digest_len, struct sshkey *key)
crypto/openssh/dns.c
87
switch (key->type) {
crypto/openssh/hmac.c
142
hmac_test(void *key, size_t klen, void *m, size_t mlen, u_char *e, size_t elen)
crypto/openssh/hmac.c
150
if (ssh_hmac_init(ctx, key, klen) < 0 ||
crypto/openssh/hmac.c
66
ssh_hmac_init(struct ssh_hmac_ctx *ctx, const void *key, size_t klen)
crypto/openssh/hmac.c
71
if (key != NULL) {
crypto/openssh/hmac.c
74
memcpy(ctx->buf, key, klen);
crypto/openssh/hmac.c
75
else if (ssh_digest_memory(ctx->alg, key, klen, ctx->buf,
crypto/openssh/hmac.h
29
int ssh_hmac_init(struct ssh_hmac_ctx *ctx, const void *key, size_t klen)
crypto/openssh/hostfile.c
247
sshkey_type(l->key), l->path, l->linenum);
crypto/openssh/hostfile.c
255
hostkeys->entries[hostkeys->num_entries].key = l->key;
crypto/openssh/hostfile.c
256
l->key = NULL; /* steal it */
crypto/openssh/hostfile.c
308
sshkey_free(hostkeys->entries[i].key);
crypto/openssh/hostfile.c
324
if (sshkey_equal_public(k, hostkeys->entries[i].key))
crypto/openssh/hostfile.c
328
hostkeys->entries[i].key))
crypto/openssh/hostfile.c
365
if (hostkeys->entries[i].key->type != keytype)
crypto/openssh/hostfile.c
369
hostkeys->entries[i].key->ecdsa_nid != nid)
crypto/openssh/hostfile.c
374
k = hostkeys->entries[i].key;
crypto/openssh/hostfile.c
379
hostkeys->entries[i].key)) {
crypto/openssh/hostfile.c
387
if (sshkey_equal(k, hostkeys->entries[i].key)) {
crypto/openssh/hostfile.c
408
check_key_in_hostkeys(struct hostkeys *hostkeys, struct sshkey *key,
crypto/openssh/hostfile.c
411
if (key == NULL)
crypto/openssh/hostfile.c
413
return check_hostkeys_by_key_or_type(hostkeys, key, 0, -1, found);
crypto/openssh/hostfile.c
438
const struct sshkey *key, int store_hash)
crypto/openssh/hostfile.c
460
if ((r = sshkey_write(key, f)) == 0)
crypto/openssh/hostfile.c
467
success = write_host_entry(f, ip, NULL, key, 1);
crypto/openssh/hostfile.c
515
const struct sshkey *key, int store_hash)
crypto/openssh/hostfile.c
520
if (key == NULL)
crypto/openssh/hostfile.c
535
success = write_host_entry(f, host, NULL, key, store_hash);
crypto/openssh/hostfile.c
565
if (!sshkey_equal(ctx->keys[i], l->key))
crypto/openssh/hostfile.c
570
sshkey_type(l->key), l->path, l->linenum);
crypto/openssh/hostfile.c
580
l->path, l->linenum, sshkey_type(l->key), ctx->host);
crypto/openssh/hostfile.c
781
sshkey_free(lineinfo.key);
crypto/openssh/hostfile.c
869
if ((lineinfo.key = sshkey_new(KEY_UNSPEC)) == NULL) {
crypto/openssh/hostfile.c
874
if (!hostfile_read_key(&cp, &kbits, lineinfo.key)) {
crypto/openssh/hostfile.c
877
lineinfo.keytype = lineinfo.key->type;
crypto/openssh/hostfile.c
912
sshkey_free(lineinfo.key);
crypto/openssh/hostfile.c
913
lineinfo.key = NULL;
crypto/openssh/hostfile.c
923
sshkey_free(lineinfo.key);
crypto/openssh/hostfile.h
101
struct sshkey *key; /* Key, if parsed ok and HKF_WANT_MATCH_HOST set */
crypto/openssh/hostfile.h
29
struct sshkey *key;
crypto/openssh/kex.c
1156
kex->newkeys[mode]->enc.key = keys[ctos ? 2 : 3];
crypto/openssh/kex.c
1157
kex->newkeys[mode]->mac.key = keys[ctos ? 4 : 5];
crypto/openssh/kex.c
691
if (newkeys->enc.key) {
crypto/openssh/kex.c
692
explicit_bzero(newkeys->enc.key, newkeys->enc.key_len);
crypto/openssh/kex.c
693
free(newkeys->enc.key);
crypto/openssh/kex.c
694
newkeys->enc.key = NULL;
crypto/openssh/kex.c
706
if (newkeys->mac.key) {
crypto/openssh/kex.c
707
explicit_bzero(newkeys->mac.key, newkeys->mac.key_len);
crypto/openssh/kex.c
708
free(newkeys->mac.key);
crypto/openssh/kex.c
709
newkeys->mac.key = NULL;
crypto/openssh/kex.c
811
enc->key = NULL;
crypto/openssh/kex.c
830
mac->key = NULL;
crypto/openssh/kex.h
125
u_char *key;
crypto/openssh/kex.h
267
void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE])
crypto/openssh/kex.h
270
int kexc25519_shared_key(const u_char key[CURVE25519_SIZE],
crypto/openssh/kex.h
274
int kexc25519_shared_key_ext(const u_char key[CURVE25519_SIZE],
crypto/openssh/kexc25519.c
50
kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE])
crypto/openssh/kexc25519.c
54
arc4random_buf(key, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
55
crypto_scalarmult_curve25519(pub, key, basepoint);
crypto/openssh/kexc25519.c
59
kexc25519_shared_key_ext(const u_char key[CURVE25519_SIZE],
crypto/openssh/kexc25519.c
66
crypto_scalarmult_curve25519(shared_key, key, pub);
crypto/openssh/kexc25519.c
85
kexc25519_shared_key(const u_char key[CURVE25519_SIZE],
crypto/openssh/kexc25519.c
88
return kexc25519_shared_key_ext(key, pub, out, 0);
crypto/openssh/kexecdh.c
139
EC_KEY *key, const EC_GROUP *group, struct sshbuf **shared_secretp)
crypto/openssh/kexecdh.c
179
if (ECDH_compute_key(kbuf, klen, dh_pub, key, NULL) != (int)klen ||
crypto/openssh/kexecdh.c
46
kex_ecdh_dec_key_group(struct kex *, const struct sshbuf *, EC_KEY *key,
crypto/openssh/krl.c
1158
is_cert_revoked(const struct sshkey *key, struct revoked_certs *rc)
crypto/openssh/krl.c
1165
rki.key_id = key->cert->key_id;
crypto/openssh/krl.c
1176
if (key->cert->serial == 0)
crypto/openssh/krl.c
1180
rs.lo = rs.hi = key->cert->serial;
crypto/openssh/krl.c
1184
key->cert->serial, ers->lo, ers->hi));
crypto/openssh/krl.c
1192
is_key_revoked(struct ssh_krl *krl, const struct sshkey *key)
crypto/openssh/krl.c
1200
if ((r = sshkey_fingerprint_raw(key, SSH_DIGEST_SHA1,
crypto/openssh/krl.c
1210
if ((r = sshkey_fingerprint_raw(key, SSH_DIGEST_SHA256,
crypto/openssh/krl.c
1222
if ((r = plain_key_blob(key, &rb.blob, &rb.len)) != 0)
crypto/openssh/krl.c
1231
if (!sshkey_is_cert(key))
crypto/openssh/krl.c
1235
if ((r = revoked_certs_for_ca_key(krl, key->cert->signature_key,
crypto/openssh/krl.c
1239
if ((r = is_cert_revoked(key, rc)) != 0)
crypto/openssh/krl.c
1246
if ((r = is_cert_revoked(key, rc)) != 0)
crypto/openssh/krl.c
1250
KRL_DBG(("%llu no match", key->cert->serial));
crypto/openssh/krl.c
1255
ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key)
crypto/openssh/krl.c
1260
if ((r = is_key_revoked(krl, key)) != 0)
crypto/openssh/krl.c
1262
if (sshkey_is_cert(key)) {
crypto/openssh/krl.c
1264
if ((r = is_key_revoked(krl, key->cert->signature_key)) != 0)
crypto/openssh/krl.c
1272
ssh_krl_file_contains_key(const char *path, const struct sshkey *key)
crypto/openssh/krl.c
1287
r = ssh_krl_check_key(krl, key);
crypto/openssh/krl.c
1299
struct sshkey *key = NULL;
crypto/openssh/krl.c
1321
if ((r = sshkey_from_blob(rb->blob, rb->len, &key)) != 0) {
crypto/openssh/krl.c
1326
if ((fp = sshkey_fingerprint(key, SSH_FP_HASH_DEFAULT,
crypto/openssh/krl.c
1332
fprintf(f, "hash: %s # %s\n", fp, sshkey_ssh_name(key));
crypto/openssh/krl.c
1334
free(key);
crypto/openssh/krl.c
367
plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen)
crypto/openssh/krl.c
372
if ((r = sshkey_from_private(key, &kcopy)) != 0)
crypto/openssh/krl.c
404
ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key)
crypto/openssh/krl.c
410
debug3_f("revoke type %s", sshkey_type(key));
crypto/openssh/krl.c
411
if ((r = plain_key_blob(key, &blob, &len)) != 0)
crypto/openssh/krl.c
452
ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key)
crypto/openssh/krl.c
455
if (!sshkey_is_cert(key))
crypto/openssh/krl.c
456
return ssh_krl_revoke_key_explicit(krl, key);
crypto/openssh/krl.c
458
if (key->cert->serial == 0) {
crypto/openssh/krl.c
460
key->cert->signature_key,
crypto/openssh/krl.c
461
key->cert->key_id);
crypto/openssh/krl.c
464
key->cert->signature_key,
crypto/openssh/krl.c
465
key->cert->serial);
crypto/openssh/krl.h
56
int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key);
crypto/openssh/krl.h
59
int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key);
crypto/openssh/krl.h
62
int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key);
crypto/openssh/krl.h
63
int ssh_krl_file_contains_key(const char *path, const struct sshkey *key);
crypto/openssh/libcrux_mlkem768_sha3.h
11357
libcrux_ml_kem_polynomial_PolynomialRingElement_f0 *key,
crypto/openssh/libcrux_mlkem768_sha3.h
11363
(size_t)3U, key,
crypto/openssh/libcrux_mlkem768_sha3.h
11368
libcrux_ml_kem_polynomial_PolynomialRingElement_f0 re = key[i0];
crypto/openssh/mac.c
142
if (mac->key == NULL)
crypto/openssh/mac.c
147
ssh_hmac_init(mac->hmac_ctx, mac->key, mac->key_len) < 0)
crypto/openssh/mac.c
151
if ((mac->umac_ctx = umac_new(mac->key)) == NULL)
crypto/openssh/mac.c
155
if ((mac->umac_ctx = umac128_new(mac->key)) == NULL)
crypto/openssh/mac.h
35
u_char *key;
crypto/openssh/misc.c
1290
const char *key;
crypto/openssh/misc.c
1307
keys[num_keys].key = va_arg(ap, char *);
crypto/openssh/misc.c
1308
if (keys[num_keys].key == NULL)
crypto/openssh/misc.c
1313
keys[num_keys].key);
crypto/openssh/misc.c
1372
if (strchr(keys[i].key, *string) != NULL) {
crypto/openssh/monitor.c
1276
struct sshkey *key = NULL;
crypto/openssh/monitor.c
1287
(r = sshkey_froms(m, &key)) != 0 ||
crypto/openssh/monitor.c
1291
if (key != NULL && authctxt->valid) {
crypto/openssh/monitor.c
1297
if (auth2_key_already_used(authctxt, key))
crypto/openssh/monitor.c
1299
if (!key_base_type_match(auth_method, key,
crypto/openssh/monitor.c
1302
allowed = user_key_allowed(ssh, authctxt->pw, key,
crypto/openssh/monitor.c
1309
if (auth2_key_already_used(authctxt, key))
crypto/openssh/monitor.c
1311
if (!key_base_type_match(auth_method, key,
crypto/openssh/monitor.c
1315
cuser, chost, key);
crypto/openssh/monitor.c
1328
(key == NULL || !authctxt->valid) ? "invalid" : sshkey_type(key),
crypto/openssh/monitor.c
1331
auth2_record_key(authctxt, 0, key);
crypto/openssh/monitor.c
1338
if ((r = sshkey_to_blob(key, &key_blob, &key_bloblen)) != 0)
crypto/openssh/monitor.c
1350
sshkey_free(key);
crypto/openssh/monitor.c
1518
struct sshkey *key;
crypto/openssh/monitor.c
1543
if ((r = sshkey_from_blob(blob, bloblen, &key)) != 0)
crypto/openssh/monitor.c
1565
if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/monitor.c
1569
ret = sshkey_verify(key, signature, signaturelen, data, datalen,
crypto/openssh/monitor.c
1572
sshkey_type(key), sigalg == NULL ? "default" : sigalg,
crypto/openssh/monitor.c
1585
sshkey_type(key), fp,
crypto/openssh/monitor.c
1597
"not met ", sshkey_type(key), fp,
crypto/openssh/monitor.c
1604
auth2_record_key(authctxt, ret == 0, key);
crypto/openssh/monitor.c
1627
sshkey_free(key);
crypto/openssh/monitor.c
710
struct sshkey *pubkey, *key;
crypto/openssh/monitor.c
750
if ((key = get_hostkey_public_by_index(keyid, ssh)) == NULL)
crypto/openssh/monitor.c
757
(r = sshkey_puts(key, sigbuf)) != 0)
crypto/openssh/monitor.c
774
if ((key = get_hostkey_by_index(keyid)) != NULL) {
crypto/openssh/monitor.c
775
if ((r = sshkey_sign(key, &signature, &siglen, p, datlen, alg,
crypto/openssh/monitor.c
778
} else if ((key = get_hostkey_public_by_index(keyid, ssh)) != NULL &&
crypto/openssh/monitor.c
780
if ((r = ssh_agent_sign(auth_sock, key, &signature, &siglen,
crypto/openssh/monitor.c
977
key_base_type_match(const char *method, const struct sshkey *key,
crypto/openssh/monitor.c
985
if (sshkey_type_from_name(s) == key->type) {
crypto/openssh/monitor.c
992
sshkey_ssh_name(key), list);
crypto/openssh/monitor_wrap.c
253
mm_sshkey_sign(struct ssh *ssh, struct sshkey *key, u_char **sigp, size_t *lenp,
crypto/openssh/monitor_wrap.c
263
if ((r = sshkey_puts(key, m)) != 0 ||
crypto/openssh/monitor_wrap.c
484
mm_user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key,
crypto/openssh/monitor_wrap.c
487
return (mm_key_allowed(MM_USERKEY, NULL, NULL, key,
crypto/openssh/monitor_wrap.c
493
const char *user, const char *host, struct sshkey *key)
crypto/openssh/monitor_wrap.c
495
return (mm_key_allowed(MM_HOSTKEY, user, host, key, 0, NULL));
crypto/openssh/monitor_wrap.c
500
struct sshkey *key, int pubkey_auth_attempt, struct sshauthopt **authoptp)
crypto/openssh/monitor_wrap.c
516
(r = sshkey_puts(key, m)) != 0 ||
crypto/openssh/monitor_wrap.c
549
mm_sshkey_verify(const struct sshkey *key, const u_char *sig, size_t siglen,
crypto/openssh/monitor_wrap.c
565
if ((r = sshkey_puts(key, m)) != 0 ||
crypto/openssh/openbsd-compat/bcrypt_pbkdf.c
115
uint8_t *key, size_t keylen, unsigned int rounds)
crypto/openssh/openbsd-compat/bcrypt_pbkdf.c
171
key[dest] = out[i];
crypto/openssh/openbsd-compat/bcrypt_pbkdf.c
185
arc4random_buf(key, keylen);
crypto/openssh/openbsd-compat/blowfish.c
421
Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes)
crypto/openssh/openbsd-compat/blowfish.c
433
temp = Blowfish_stream2word(key, keybytes, &j);
crypto/openssh/openbsd-compat/blowfish.c
460
const u_int8_t *key, u_int16_t keybytes)
crypto/openssh/openbsd-compat/blowfish.c
472
temp = Blowfish_stream2word(key, keybytes, &j);
crypto/openssh/openbsd-compat/blowfish.c
661
char key[] = "AAAAA";
crypto/openssh/openbsd-compat/blowfish.c
674
blf_key(&c, (u_int8_t *) key, 5);
crypto/openssh/packet.c
1006
if ((r = cipher_init(ccp, enc->cipher, enc->key, enc->key_len,
crypto/openssh/packet.c
2393
(r = sshbuf_put_string(b, enc->key, enc->key_len)) != 0 ||
crypto/openssh/packet.c
2399
(r = sshbuf_put_string(b, mac->key, mac->key_len)) != 0)
crypto/openssh/packet.c
2466
(r = sshbuf_get_string(b, &enc->key, &keylen)) != 0 ||
crypto/openssh/packet.c
2479
(r = sshbuf_get_string(b, &mac->key, &maclen)) != 0)
crypto/openssh/packet.h
51
struct sshkey *key;
crypto/openssh/pkcs11.h
823
ck_object_handle_t key));
crypto/openssh/pkcs11.h
842
ck_object_handle_t key));
crypto/openssh/pkcs11.h
870
(ck_session_handle_t session, ck_object_handle_t key));
crypto/openssh/pkcs11.h
879
ck_object_handle_t key));
crypto/openssh/pkcs11.h
895
ck_object_handle_t key));
crypto/openssh/pkcs11.h
905
ck_object_handle_t key));
crypto/openssh/pkcs11.h
921
ck_object_handle_t key));
crypto/openssh/pkcs11.h
957
ck_object_handle_t *key));
crypto/openssh/pkcs11.h
971
ck_object_handle_t key,
crypto/openssh/pkcs11.h
982
ck_object_handle_t *key));
crypto/openssh/pkcs11.h
989
ck_object_handle_t *key));
crypto/openssh/poly1305.c
150
f0 = ((h0 ) | (h1 << 26)) + (uint64_t)U8TO32_LE(&key[16]);
crypto/openssh/poly1305.c
151
f1 = ((h1 >> 6) | (h2 << 20)) + (uint64_t)U8TO32_LE(&key[20]);
crypto/openssh/poly1305.c
152
f2 = ((h2 >> 12) | (h3 << 14)) + (uint64_t)U8TO32_LE(&key[24]);
crypto/openssh/poly1305.c
153
f3 = ((h3 >> 18) | (h4 << 8)) + (uint64_t)U8TO32_LE(&key[28]);
crypto/openssh/poly1305.c
33
poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN]) {
crypto/openssh/poly1305.c
47
t0 = U8TO32_LE(key+0);
crypto/openssh/poly1305.c
48
t1 = U8TO32_LE(key+4);
crypto/openssh/poly1305.c
49
t2 = U8TO32_LE(key+8);
crypto/openssh/poly1305.c
50
t3 = U8TO32_LE(key+12);
crypto/openssh/poly1305.h
17
const u_char key[POLY1305_KEYLEN])
crypto/openssh/readconf.c
1001
char *key;
crypto/openssh/readconf.c
1113
for (i = 0; multistate_ptr[i].key != NULL; i++) {
crypto/openssh/readconf.c
1114
if (strcasecmp(arg, multistate_ptr[i].key) == 0)
crypto/openssh/readconf.c
1248
for (i = 0; multistate_ptr[i].key != NULL; i++) {
crypto/openssh/readconf.c
1249
if (strcasecmp(arg, multistate_ptr[i].key) == 0) {
crypto/openssh/readconf.c
3467
for (i = 0; m[i].key != NULL; i++) {
crypto/openssh/readconf.c
3469
return m[i].key;
crypto/openssh/regress/misc/fuzz-harness/agent_fuzz_helper.c
68
id->key = privkey_or_die(privkey);
crypto/openssh/regress/misc/fuzz-harness/agent_fuzz_helper.c
70
if (sshkey_is_sk(id->key))
crypto/openssh/regress/misc/fuzz-harness/agent_fuzz_helper.c
77
id->key = privkey_or_die(privkey);
crypto/openssh/regress/misc/fuzz-harness/agent_fuzz_helper.c
79
if ((r = sshkey_to_certified(id->key)) != 0) {
crypto/openssh/regress/misc/fuzz-harness/agent_fuzz_helper.c
83
if ((r = sshkey_cert_copy(cert, id->key)) != 0) {
crypto/openssh/regress/misc/fuzz-harness/agent_fuzz_helper.c
89
if (sshkey_is_sk(id->key))
crypto/openssh/regress/misc/fuzz-harness/authkeys_fuzz.cc
35
static struct sshkey *key, *cert;
crypto/openssh/regress/misc/fuzz-harness/authkeys_fuzz.cc
37
if (key == NULL) {
crypto/openssh/regress/misc/fuzz-harness/authkeys_fuzz.cc
38
if ((key = sshkey_new(KEY_UNSPEC)) == NULL ||
crypto/openssh/regress/misc/fuzz-harness/authkeys_fuzz.cc
42
sshkey_read(key, &tmp) != 0)
crypto/openssh/regress/misc/fuzz-harness/authkeys_fuzz.cc
50
if (cp == NULL || pw == NULL || key == NULL || cert == NULL)
crypto/openssh/regress/misc/fuzz-harness/authkeys_fuzz.cc
64
(void) auth_check_authkey_line(pw, key, tmp, "127.0.0.1", "localhost",
crypto/openssh/regress/misc/fuzz-harness/ssh-sk-null.cc
37
sshsk_sign(const char *provider_path, struct sshkey *key,
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
107
if ((key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)) == NULL) {
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
111
if (EC_KEY_generate_key(key) != 1) {
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
115
EC_KEY_set_asn1_flag(key, OPENSSL_EC_NAMED_CURVE);
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
117
(g = EC_KEY_get0_group(key)) == NULL ||
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
118
(q = EC_KEY_get0_public_key(key)) == NULL) {
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
139
if (!PEM_write_bio_ECPrivateKey(bio, key, NULL, NULL, 0, NULL, NULL)) {
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
171
EC_KEY_free(key);
crypto/openssh/regress/misc/sk-dummy/sk-dummy.c
94
EC_KEY *key = NULL;
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
202
struct sshkey *key = NULL;
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
209
if ((key = sshkey_new(KEY_ECDSA_SK)) == NULL) {
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
214
key->ecdsa_nid = NID_X9_62_prime256v1;
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
215
if ((key->pkey = EVP_PKEY_new()) == NULL ||
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
216
(ec = EC_KEY_new_by_curve_name(key->ecdsa_nid)) == NULL ||
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
242
if (EVP_PKEY_set1_EC_KEY(key->pkey, ec) != 1) {
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
248
key->sk_application = xstrdup(k->sk_application); /* XXX */
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
249
if (!sshkey_equal_public(key, k)) {
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
258
sshkey_free(key);
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
268
struct sshkey *key = NULL;
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
282
if ((key = sshkey_new(KEY_ED25519_SK)) == NULL) {
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
287
if ((key->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL) {
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
292
memcpy(key->ed25519_pk, ptr, ED25519_PK_SZ);
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
293
key->sk_application = xstrdup(k->sk_application); /* XXX */
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
294
if (!sshkey_equal_public(key, k)) {
crypto/openssh/regress/misc/ssh-verify-attestation/ssh-verify-attestation.c
301
sshkey_free(key);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
138
if (expected->l.key == NULL)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
139
ASSERT_PTR_EQ(l->key, NULL);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
140
if (expected->l.key != NULL) {
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
141
ASSERT_PTR_NE(l->key, NULL);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
142
ASSERT_INT_EQ(sshkey_equal(l->key, expected->l.key), 1);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
176
test_data_file(expected[i].key_file), &expected[i].l.key,
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
187
sshkey_free(expected[i].l.key);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
188
expected[i].l.key = NULL;
crypto/openssh/servconf.c
1277
char *key;
crypto/openssh/servconf.c
1501
for (i = 0; multistate_ptr[i].key != NULL; i++) {
crypto/openssh/servconf.c
1502
if (strcasecmp(arg, multistate_ptr[i].key) == 0) {
crypto/openssh/servconf.c
3080
for (i = 0; m[i].key != NULL; i++) {
crypto/openssh/servconf.c
3082
return m[i].key;
crypto/openssh/serverloop.c
649
struct sshkey *key = NULL, *key_pub = NULL, *key_prv = NULL;
crypto/openssh/serverloop.c
662
sshkey_free(key);
crypto/openssh/serverloop.c
663
key = NULL;
crypto/openssh/serverloop.c
665
(r = sshkey_from_blob(blob, blen, &key)) != 0) {
crypto/openssh/serverloop.c
673
if ((ndx = ssh->kex->host_key_index(key, 1, ssh)) == -1) {
crypto/openssh/serverloop.c
674
error_f("unknown host %s key", sshkey_type(key));
crypto/openssh/serverloop.c
693
sigalg = sshkey_ssh_name(key);
crypto/openssh/serverloop.c
694
if (sshkey_type_plain(key->type) == KEY_RSA) {
crypto/openssh/serverloop.c
704
sshkey_type(key), ndx, sigalg == NULL ? "default" : sigalg);
crypto/openssh/serverloop.c
709
(r = sshkey_puts(key, sigbuf)) != 0 ||
crypto/openssh/serverloop.c
725
sshkey_free(key);
crypto/openssh/sk-api.h
70
struct sk_enroll_response key;
crypto/openssh/sk-usbhid.c
1364
(srk->key.key_handle = calloc(1,
crypto/openssh/sk-usbhid.c
1373
srk->key.key_handle_len = fido_cred_id_len(cred);
crypto/openssh/sk-usbhid.c
1374
memcpy(srk->key.key_handle, fido_cred_id_ptr(cred),
crypto/openssh/sk-usbhid.c
1375
srk->key.key_handle_len);
crypto/openssh/sk-usbhid.c
1398
&srk->key)) != 0) {
crypto/openssh/sk-usbhid.c
1418
freezero(srk->key.public_key, srk->key.public_key_len);
crypto/openssh/sk-usbhid.c
1419
freezero(srk->key.key_handle, srk->key.key_handle_len);
crypto/openssh/sk-usbhid.c
1472
freezero(rks[i]->key.public_key, rks[i]->key.public_key_len);
crypto/openssh/sk-usbhid.c
1473
freezero(rks[i]->key.key_handle, rks[i]->key.key_handle_len);
crypto/openssh/ssh-add.c
118
delete_one(int agent_fd, const struct sshkey *key, const char *comment,
crypto/openssh/ssh-add.c
123
if ((r = ssh_remove_identity(agent_fd, key)) != 0) {
crypto/openssh/ssh-add.c
130
sshkey_type(key), comment ? comment : "no comment");
crypto/openssh/ssh-add.c
140
struct sshkey *key = NULL;
crypto/openssh/ssh-add.c
145
sshkey_free(key);
crypto/openssh/ssh-add.c
146
key = NULL;
crypto/openssh/ssh-add.c
151
if ((key = sshkey_new(KEY_UNSPEC)) == NULL)
crypto/openssh/ssh-add.c
153
if ((r = sshkey_read(key, &cp)) != 0) {
crypto/openssh/ssh-add.c
158
(key_only && !sshkey_is_cert(key)) ||
crypto/openssh/ssh-add.c
159
(cert_only && sshkey_is_cert(key))) {
crypto/openssh/ssh-add.c
160
if (delete_one(agent_fd, key, cp,
crypto/openssh/ssh-add.c
165
sshkey_free(key);
crypto/openssh/ssh-add.c
499
struct sshkey *key = NULL;
crypto/openssh/ssh-add.c
506
if ((r = sshkey_load_public(filename, &key, NULL)) != 0) {
crypto/openssh/ssh-add.c
510
if (sshkey_type_plain(key->type) == KEY_RSA)
crypto/openssh/ssh-add.c
513
if ((r = ssh_agent_sign(agent_fd, key, &sig, &slen, data, sizeof(data),
crypto/openssh/ssh-add.c
518
if ((r = sshkey_verify(key, sig, slen, data, sizeof(data),
crypto/openssh/ssh-add.c
527
sshkey_free(key);
crypto/openssh/ssh-add.c
610
struct sshkey *key;
crypto/openssh/ssh-add.c
621
key = srks[i]->key;
crypto/openssh/ssh-add.c
622
if ((fp = sshkey_fingerprint(key,
crypto/openssh/ssh-add.c
625
if ((r = ssh_add_identity_constrained(agent_fd, key, "",
crypto/openssh/ssh-add.c
629
sshkey_type(key), fp);
crypto/openssh/ssh-add.c
638
sshkey_type(key), fp);
crypto/openssh/ssh-add.c
738
host, sshkey_type(hke->key), want_ca ? "CA " : "",
crypto/openssh/ssh-add.c
744
if ((r = sshkey_from_private(hke->key,
crypto/openssh/ssh-agent.c
1004
sshkey_free(key);
crypto/openssh/ssh-agent.c
1020
struct sshkey *key = NULL;
crypto/openssh/ssh-agent.c
1024
if ((r = sshkey_froms(e->request, &key)) != 0) {
crypto/openssh/ssh-agent.c
1028
if ((id = lookup_identity(key)) == NULL) {
crypto/openssh/ssh-agent.c
1043
sshkey_free(key);
crypto/openssh/ssh-agent.c
123
struct sshkey *key;
crypto/openssh/ssh-agent.c
144
struct sshkey *key;
crypto/openssh/ssh-agent.c
1457
sshkey_free(id->key);
crypto/openssh/ssh-agent.c
1464
id->key = k;
crypto/openssh/ssh-agent.c
1566
add_p11_identity(struct sshkey *key, char *comment, const char *provider,
crypto/openssh/ssh-agent.c
1572
if (lookup_identity(key) != NULL) {
crypto/openssh/ssh-agent.c
1573
sshkey_free(key);
crypto/openssh/ssh-agent.c
1578
id->key = key;
crypto/openssh/ssh-agent.c
1725
struct sshkey *key = NULL;
crypto/openssh/ssh-agent.c
1733
if ((r = sshkey_froms(e->request, &key)) != 0 ||
crypto/openssh/ssh-agent.c
1744
if ((fp = sshkey_fingerprint(key, SSH_FP_HASH_DEFAULT,
crypto/openssh/ssh-agent.c
1748
if ((r = sshkey_verify(key, sshbuf_ptr(sig), sshbuf_len(sig),
crypto/openssh/ssh-agent.c
1750
error_fr(r, "sshkey_verify for %s %s", sshkey_type(key), fp);
crypto/openssh/ssh-agent.c
1762
key_match = sshkey_equal(key, e->session_ids[i].key);
crypto/openssh/ssh-agent.c
1765
sshkey_type(key), fp);
crypto/openssh/ssh-agent.c
1770
"for %s %s", sshkey_type(key), fp);
crypto/openssh/ssh-agent.c
1788
debug_f("recorded %s %s (slot %zu of %d)", sshkey_type(key), fp, i,
crypto/openssh/ssh-agent.c
1790
e->session_ids[i].key = key;
crypto/openssh/ssh-agent.c
1792
key = NULL; /* transferred */
crypto/openssh/ssh-agent.c
1802
sshkey_free(key);
crypto/openssh/ssh-agent.c
232
sshkey_free(e->session_ids[i].key);
crypto/openssh/ssh-agent.c
368
sshkey_free(id->key);
crypto/openssh/ssh-agent.c
381
match_key_hop(const char *tag, const struct sshkey *key,
crypto/openssh/ssh-agent.c
389
if (key == NULL)
crypto/openssh/ssh-agent.c
392
if ((fp = sshkey_fingerprint(key, SSH_FP_HASH_DEFAULT,
crypto/openssh/ssh-agent.c
396
tag, hostname, sshkey_type(key), fp, dch->nkeys);
crypto/openssh/ssh-agent.c
409
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-agent.c
412
!sshkey_equal(key, dch->keys[i]))
crypto/openssh/ssh-agent.c
419
if (key->cert == NULL || key->cert->signature_key == NULL)
crypto/openssh/ssh-agent.c
421
if (!sshkey_equal(key->cert->signature_key, dch->keys[i]))
crypto/openssh/ssh-agent.c
423
if (sshkey_cert_check_host(key, hostname, 1,
crypto/openssh/ssh-agent.c
426
key->cert->key_id, hostname, reason);
crypto/openssh/ssh-agent.c
482
sshkey_type(id->key), id->comment);
crypto/openssh/ssh-agent.c
504
"%zu constraints", sshkey_type(id->key), id->comment,
crypto/openssh/ssh-agent.c
520
if (hks->key == NULL)
crypto/openssh/ssh-agent.c
528
if ((fp2 = sshkey_fingerprint(hks->key, SSH_FP_HASH_DEFAULT,
crypto/openssh/ssh-agent.c
536
sshkey_type(hks->key), fp2);
crypto/openssh/ssh-agent.c
566
if (permitted_by_dest_constraints(fromkey, hks->key, id,
crypto/openssh/ssh-agent.c
569
fromkey = hks->key;
crypto/openssh/ssh-agent.c
581
permitted_by_dest_constraints(hks->key, NULL, id,
crypto/openssh/ssh-agent.c
599
lookup_identity(struct sshkey *key)
crypto/openssh/ssh-agent.c
604
if (sshkey_equal(key, id->key))
crypto/openssh/ssh-agent.c
617
p = sshkey_fingerprint(id->key, fingerprint_hash, SSH_FP_DEFAULT);
crypto/openssh/ssh-agent.c
654
if ((fp = sshkey_fingerprint(id->key, SSH_FP_HASH_DEFAULT,
crypto/openssh/ssh-agent.c
658
sshkey_ssh_name(id->key), fp);
crypto/openssh/ssh-agent.c
665
if ((r = sshkey_puts_opts(id->key, keys,
crypto/openssh/ssh-agent.c
687
agent_decode_alg(struct sshkey *key, u_int flags)
crypto/openssh/ssh-agent.c
689
if (key->type == KEY_RSA) {
crypto/openssh/ssh-agent.c
694
} else if (key->type == KEY_RSA_CERT) {
crypto/openssh/ssh-agent.c
829
check_websafe_message_contents(struct sshkey *key, struct sshbuf *data)
crypto/openssh/ssh-agent.c
831
if (parse_userauth_request(data, key, NULL, NULL, NULL) == 0) {
crypto/openssh/ssh-agent.c
870
struct sshkey *key = NULL, *hostkey = NULL;
crypto/openssh/ssh-agent.c
878
if ((r = sshkey_froms(e->request, &key)) != 0 ||
crypto/openssh/ssh-agent.c
885
if ((id = lookup_identity(key)) == NULL) {
crypto/openssh/ssh-agent.c
886
verbose_f("%s key not found", sshkey_type(key));
crypto/openssh/ssh-agent.c
889
if ((fp = sshkey_fingerprint(key, SSH_FP_HASH_DEFAULT,
crypto/openssh/ssh-agent.c
899
if (parse_userauth_request(data, key, &user, &sid,
crypto/openssh/ssh-agent.c
920
sshkey_type(id->key), fp);
crypto/openssh/ssh-agent.c
935
e->session_ids[e->nsession_ids - 1].key)) {
crypto/openssh/ssh-agent.c
948
if (sshkey_is_sk(id->key)) {
crypto/openssh/ssh-agent.c
950
match_pattern_list(id->key->sk_application,
crypto/openssh/ssh-agent.c
952
!check_websafe_message_contents(key, data)) {
crypto/openssh/ssh-agent.c
956
if (id->key->sk_flags & SSH_SK_USER_PRESENCE_REQD) {
crypto/openssh/ssh-agent.c
959
sshkey_type(id->key), fp,
crypto/openssh/ssh-agent.c
965
if ((r = sshkey_sign(id->key, &signature, &slen,
crypto/openssh/ssh-agent.c
966
sshbuf_ptr(data), sshbuf_len(data), agent_decode_alg(key, flags),
crypto/openssh/ssh-agent.c
969
if (pin == NULL && !retried && sshkey_is_sk(id->key) &&
crypto/openssh/ssh-agent.c
975
(id->key->sk_flags & SSH_SK_USER_PRESENCE_REQD) ?
crypto/openssh/ssh-agent.c
977
sshkey_type(id->key), fp);
crypto/openssh/ssh-dss.c
105
ssh_dss_serialize_public(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-dss.c
111
if (key->dsa == NULL)
crypto/openssh/ssh-dss.c
113
DSA_get0_pqg(key->dsa, &dsa_p, &dsa_q, &dsa_g);
crypto/openssh/ssh-dss.c
114
DSA_get0_key(key->dsa, &dsa_pub_key, NULL);
crypto/openssh/ssh-dss.c
128
ssh_dss_serialize_private(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-dss.c
134
DSA_get0_key(key->dsa, NULL, &dsa_priv_key);
crypto/openssh/ssh-dss.c
135
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-dss.c
136
if ((r = ssh_dss_serialize_public(key, b, opts)) != 0)
crypto/openssh/ssh-dss.c
202
struct sshkey *key)
crypto/openssh/ssh-dss.c
214
if (!DSA_set0_pqg(key->dsa, dsa_p, dsa_q, dsa_g)) {
crypto/openssh/ssh-dss.c
219
if (!DSA_set0_key(key->dsa, dsa_pub_key, NULL)) {
crypto/openssh/ssh-dss.c
225
DSA_print_fp(stderr, key->dsa, 8);
crypto/openssh/ssh-dss.c
239
struct sshkey *key)
crypto/openssh/ssh-dss.c
244
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-dss.c
245
if ((r = ssh_dss_deserialize_public(ktype, b, key)) != 0)
crypto/openssh/ssh-dss.c
251
if (!DSA_set0_key(key->dsa, NULL, dsa_priv_key)) {
crypto/openssh/ssh-dss.c
259
ssh_dss_sign(struct sshkey *key,
crypto/openssh/ssh-dss.c
276
if (key == NULL || key->dsa == NULL ||
crypto/openssh/ssh-dss.c
277
sshkey_type_plain(key->type) != KEY_DSA)
crypto/openssh/ssh-dss.c
286
if ((sig = DSA_do_sign(digest, dlen, key->dsa)) == NULL) {
crypto/openssh/ssh-dss.c
329
ssh_dss_verify(const struct sshkey *key,
crypto/openssh/ssh-dss.c
342
if (key == NULL || key->dsa == NULL ||
crypto/openssh/ssh-dss.c
343
sshkey_type_plain(key->type) != KEY_DSA ||
crypto/openssh/ssh-dss.c
394
switch (DSA_do_verify(digest, hlen, dsig, key->dsa)) {
crypto/openssh/ssh-dss.c
51
ssh_dss_size(const struct sshkey *key)
crypto/openssh/ssh-dss.c
55
if (key->dsa == NULL)
crypto/openssh/ssh-dss.c
57
DSA_get0_pqg(key->dsa, &dsa_p, NULL, NULL);
crypto/openssh/ssh-ecdsa-sk.c
104
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-ecdsa-sk.c
105
if ((r = sshkey_ecdsa_funcs.serialize_public(key,
crypto/openssh/ssh-ecdsa-sk.c
109
if ((r = sshkey_serialize_private_sk(key, b)) != 0)
crypto/openssh/ssh-ecdsa-sk.c
129
struct sshkey *key)
crypto/openssh/ssh-ecdsa-sk.c
133
if ((r = sshkey_ecdsa_funcs.deserialize_public(ktype, b, key)) != 0)
crypto/openssh/ssh-ecdsa-sk.c
135
if ((r = sshkey_deserialize_sk(b, key)) != 0)
crypto/openssh/ssh-ecdsa-sk.c
142
struct sshkey *key)
crypto/openssh/ssh-ecdsa-sk.c
146
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-ecdsa-sk.c
148
b, key)) != 0)
crypto/openssh/ssh-ecdsa-sk.c
151
if ((r = sshkey_private_deserialize_sk(b, key)) != 0)
crypto/openssh/ssh-ecdsa-sk.c
234
ssh_ecdsa_sk_verify(const struct sshkey *key,
crypto/openssh/ssh-ecdsa-sk.c
257
if (key == NULL || key->pkey == NULL ||
crypto/openssh/ssh-ecdsa-sk.c
258
sshkey_type_plain(key->type) != KEY_ECDSA_SK ||
crypto/openssh/ssh-ecdsa-sk.c
262
if (key->ecdsa_nid != NID_X9_62_prime256v1)
crypto/openssh/ssh-ecdsa-sk.c
352
if ((ret = ssh_digest_memory(SSH_DIGEST_SHA256, key->sk_application,
crypto/openssh/ssh-ecdsa-sk.c
353
strlen(key->sk_application), apphash, sizeof(apphash))) != 0)
crypto/openssh/ssh-ecdsa-sk.c
399
key->pkey) != 1) {
crypto/openssh/ssh-ecdsa-sk.c
55
ssh_ecdsa_sk_verify(const struct sshkey *key,
crypto/openssh/ssh-ecdsa-sk.c
85
ssh_ecdsa_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ecdsa-sk.c
90
if ((r = sshkey_ecdsa_funcs.serialize_public(key, b, opts)) != 0)
crypto/openssh/ssh-ecdsa-sk.c
92
if ((r = sshkey_serialize_sk(key, b)) != 0)
crypto/openssh/ssh-ecdsa-sk.c
99
ssh_ecdsa_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ecdsa.c
104
ssh_ecdsa_size(const struct sshkey *key)
crypto/openssh/ssh-ecdsa.c
106
switch (key->ecdsa_nid) {
crypto/openssh/ssh-ecdsa.c
136
ssh_ecdsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ecdsa.c
141
if (key->pkey == NULL)
crypto/openssh/ssh-ecdsa.c
144
sshkey_curve_nid_to_name(key->ecdsa_nid))) != 0 ||
crypto/openssh/ssh-ecdsa.c
145
(r = sshbuf_put_ec_pkey(b, key->pkey)) != 0)
crypto/openssh/ssh-ecdsa.c
152
ssh_ecdsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ecdsa.c
157
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-ecdsa.c
158
if ((r = ssh_ecdsa_serialize_public(key, b, opts)) != 0)
crypto/openssh/ssh-ecdsa.c
162
EC_KEY_get0_private_key(EVP_PKEY_get0_EC_KEY(key->pkey)))) != 0)
crypto/openssh/ssh-ecdsa.c
232
struct sshkey *key)
crypto/openssh/ssh-ecdsa.c
239
if ((key->ecdsa_nid = sshkey_ecdsa_nid_from_name(ktype)) == -1)
crypto/openssh/ssh-ecdsa.c
243
if (key->ecdsa_nid != sshkey_curve_name_to_nid(curve)) {
crypto/openssh/ssh-ecdsa.c
247
if ((ec = EC_KEY_new_by_curve_name(key->ecdsa_nid)) == NULL) {
crypto/openssh/ssh-ecdsa.c
266
EVP_PKEY_free(key->pkey);
crypto/openssh/ssh-ecdsa.c
267
key->pkey = pkey;
crypto/openssh/ssh-ecdsa.c
273
EC_KEY_get0_group(EVP_PKEY_get0_EC_KEY(key->pkey)),
crypto/openssh/ssh-ecdsa.c
274
EC_KEY_get0_public_key(EVP_PKEY_get0_EC_KEY(key->pkey)));
crypto/openssh/ssh-ecdsa.c
285
struct sshkey *key)
crypto/openssh/ssh-ecdsa.c
291
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-ecdsa.c
292
if ((r = ssh_ecdsa_deserialize_public(ktype, b, key)) != 0)
crypto/openssh/ssh-ecdsa.c
297
if ((ec = EVP_PKEY_get1_EC_KEY(key->pkey)) == NULL) {
crypto/openssh/ssh-ecdsa.c
307
if (EVP_PKEY_set1_EC_KEY(key->pkey, ec) != 1) {
crypto/openssh/ssh-ecdsa.c
320
ssh_ecdsa_sign(struct sshkey *key,
crypto/openssh/ssh-ecdsa.c
339
if (key == NULL || key->pkey == NULL ||
crypto/openssh/ssh-ecdsa.c
340
sshkey_type_plain(key->type) != KEY_ECDSA)
crypto/openssh/ssh-ecdsa.c
343
if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1)
crypto/openssh/ssh-ecdsa.c
346
if ((ret = sshkey_pkey_digest_sign(key->pkey, hash_alg, &sigb, &slen,
crypto/openssh/ssh-ecdsa.c
363
if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 ||
crypto/openssh/ssh-ecdsa.c
386
ssh_ecdsa_verify(const struct sshkey *key,
crypto/openssh/ssh-ecdsa.c
399
if (key == NULL || key->pkey == NULL ||
crypto/openssh/ssh-ecdsa.c
400
sshkey_type_plain(key->type) != KEY_ECDSA ||
crypto/openssh/ssh-ecdsa.c
404
if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1)
crypto/openssh/ssh-ecdsa.c
415
if (strcmp(sshkey_ssh_name_plain(key), ktype) != 0) {
crypto/openssh/ssh-ecdsa.c
459
if ((ret = sshkey_pkey_digest_verify(key->pkey, hash_alg,
crypto/openssh/ssh-ed25519-sk.c
100
struct sshkey *key)
crypto/openssh/ssh-ed25519-sk.c
104
if ((r = sshkey_ed25519_funcs.deserialize_public(ktype, b, key)) != 0)
crypto/openssh/ssh-ed25519-sk.c
106
if ((r = sshkey_deserialize_sk(b, key)) != 0)
crypto/openssh/ssh-ed25519-sk.c
113
struct sshkey *key)
crypto/openssh/ssh-ed25519-sk.c
117
if ((r = sshkey_ed25519_funcs.deserialize_public(ktype, b, key)) != 0)
crypto/openssh/ssh-ed25519-sk.c
119
if ((r = sshkey_private_deserialize_sk(b, key)) != 0)
crypto/openssh/ssh-ed25519-sk.c
125
ssh_ed25519_sk_verify(const struct sshkey *key,
crypto/openssh/ssh-ed25519-sk.c
149
if (key == NULL ||
crypto/openssh/ssh-ed25519-sk.c
150
sshkey_type_plain(key->type) != KEY_ED25519_SK ||
crypto/openssh/ssh-ed25519-sk.c
151
key->ed25519_pk == NULL ||
crypto/openssh/ssh-ed25519-sk.c
172
if (strcmp(sshkey_ssh_name_plain(key), ktype) != 0) {
crypto/openssh/ssh-ed25519-sk.c
184
if (ssh_digest_memory(SSH_DIGEST_SHA256, key->sk_application,
crypto/openssh/ssh-ed25519-sk.c
185
strlen(key->sk_application), apphash, sizeof(apphash)) != 0 ||
crypto/openssh/ssh-ed25519-sk.c
227
key->ed25519_pk)) != 0) {
crypto/openssh/ssh-ed25519-sk.c
59
ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ed25519-sk.c
64
if ((r = sshkey_ed25519_funcs.serialize_public(key, b, opts)) != 0)
crypto/openssh/ssh-ed25519-sk.c
66
if ((r = sshkey_serialize_sk(key, b)) != 0)
crypto/openssh/ssh-ed25519-sk.c
73
ssh_ed25519_sk_serialize_private(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ed25519-sk.c
78
if ((r = sshkey_ed25519_funcs.serialize_public(key, b, opts)) != 0)
crypto/openssh/ssh-ed25519-sk.c
80
if ((r = sshkey_serialize_private_sk(key, b)) != 0)
crypto/openssh/ssh-ed25519.c
104
struct sshkey *key)
crypto/openssh/ssh-ed25519.c
116
key->ed25519_pk = pk;
crypto/openssh/ssh-ed25519.c
122
struct sshkey *key)
crypto/openssh/ssh-ed25519.c
128
if ((r = ssh_ed25519_deserialize_public(NULL, b, key)) != 0)
crypto/openssh/ssh-ed25519.c
136
key->ed25519_sk = ed25519_sk;
crypto/openssh/ssh-ed25519.c
146
ssh_ed25519_sign(struct sshkey *key,
crypto/openssh/ssh-ed25519.c
162
if (key == NULL ||
crypto/openssh/ssh-ed25519.c
163
sshkey_type_plain(key->type) != KEY_ED25519 ||
crypto/openssh/ssh-ed25519.c
164
key->ed25519_sk == NULL ||
crypto/openssh/ssh-ed25519.c
172
key->ed25519_sk)) != 0 || smlen <= datalen) {
crypto/openssh/ssh-ed25519.c
205
ssh_ed25519_verify(const struct sshkey *key,
crypto/openssh/ssh-ed25519.c
218
if (key == NULL ||
crypto/openssh/ssh-ed25519.c
219
sshkey_type_plain(key->type) != KEY_ED25519 ||
crypto/openssh/ssh-ed25519.c
220
key->ed25519_pk == NULL ||
crypto/openssh/ssh-ed25519.c
255
key->ed25519_pk)) != 0) {
crypto/openssh/ssh-ed25519.c
55
ssh_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ed25519.c
60
if (key->ed25519_pk == NULL)
crypto/openssh/ssh-ed25519.c
62
if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0)
crypto/openssh/ssh-ed25519.c
69
ssh_ed25519_serialize_private(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-ed25519.c
74
if ((r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0 ||
crypto/openssh/ssh-ed25519.c
75
(r = sshbuf_put_string(b, key->ed25519_sk, ED25519_SK_SZ)) != 0)
crypto/openssh/ssh-keygen.c
1309
fp = sshkey_fingerprint(l->key, fptype, rep);
crypto/openssh/ssh-keygen.c
1310
ra = sshkey_fingerprint(l->key,
crypto/openssh/ssh-keygen.c
1315
sshkey_type(l->key), fp,
crypto/openssh/ssh-keygen.c
135
char *key;
crypto/openssh/ssh-keygen.c
1658
cert_ext_add(const char *key, const char *value, int iscrit)
crypto/openssh/ssh-keygen.c
1661
cert_ext[ncert_ext].key = xstrdup(key);
crypto/openssh/ssh-keygen.c
1677
if ((r = strcmp(a->key, b->key)) != 0)
crypto/openssh/ssh-keygen.c
1706
debug3_f("%s", ext->key);
crypto/openssh/ssh-keygen.c
1707
if ((r = sshbuf_put_cstring(c, ext->key)) != 0 ||
crypto/openssh/ssh-keygen.c
1712
debug3_f("%s=%s", ext->key, ext->val);
crypto/openssh/ssh-keygen.c
1714
if ((r = sshbuf_put_cstring(c, ext->key)) != 0 ||
crypto/openssh/ssh-keygen.c
1783
agent_signer(struct sshkey *key, u_char **sigp, size_t *lenp,
crypto/openssh/ssh-keygen.c
1790
return ssh_agent_sign(*agent_fdp, key, sigp, lenp,
crypto/openssh/ssh-keygen.c
2155
print_cert(struct sshkey *key)
crypto/openssh/ssh-keygen.c
2160
key_fp = sshkey_fingerprint(key, fingerprint_hash, SSH_FP_DEFAULT);
crypto/openssh/ssh-keygen.c
2161
ca_fp = sshkey_fingerprint(key->cert->signature_key,
crypto/openssh/ssh-keygen.c
2165
sshkey_format_cert_validity(key->cert, valid, sizeof(valid));
crypto/openssh/ssh-keygen.c
2167
printf(" Type: %s %s certificate\n", sshkey_ssh_name(key),
crypto/openssh/ssh-keygen.c
2168
sshkey_cert_type(key));
crypto/openssh/ssh-keygen.c
2169
printf(" Public key: %s %s\n", sshkey_type(key), key_fp);
crypto/openssh/ssh-keygen.c
2171
sshkey_type(key->cert->signature_key), ca_fp,
crypto/openssh/ssh-keygen.c
2172
key->cert->signature_type);
crypto/openssh/ssh-keygen.c
2173
printf(" Key ID: \"%s\"\n", key->cert->key_id);
crypto/openssh/ssh-keygen.c
2174
printf(" Serial: %llu\n", (unsigned long long)key->cert->serial);
crypto/openssh/ssh-keygen.c
2177
if (key->cert->nprincipals == 0)
crypto/openssh/ssh-keygen.c
2180
for (i = 0; i < key->cert->nprincipals; i++)
crypto/openssh/ssh-keygen.c
2182
key->cert->principals[i]);
crypto/openssh/ssh-keygen.c
2186
if (sshbuf_len(key->cert->critical) == 0)
crypto/openssh/ssh-keygen.c
2190
show_options(key->cert->critical, 1);
crypto/openssh/ssh-keygen.c
2193
if (sshbuf_len(key->cert->extensions) == 0)
crypto/openssh/ssh-keygen.c
2197
show_options(key->cert->extensions, 0);
crypto/openssh/ssh-keygen.c
2204
struct sshkey *key = NULL;
crypto/openssh/ssh-keygen.c
2228
sshkey_free(key);
crypto/openssh/ssh-keygen.c
2229
key = NULL;
crypto/openssh/ssh-keygen.c
2234
if ((key = sshkey_new(KEY_UNSPEC)) == NULL)
crypto/openssh/ssh-keygen.c
2236
if ((r = sshkey_read(key, &cp)) != 0) {
crypto/openssh/ssh-keygen.c
2240
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-keygen.c
2249
print_cert(key);
crypto/openssh/ssh-keygen.c
2252
sshkey_free(key);
crypto/openssh/ssh-keygen.c
2312
struct sshkey *key = NULL;
crypto/openssh/ssh-keygen.c
2426
if ((key = sshkey_new(KEY_UNSPEC)) == NULL)
crypto/openssh/ssh-keygen.c
2428
if ((r = sshkey_read(key, &cp)) != 0)
crypto/openssh/ssh-keygen.c
2431
r = ssh_krl_revoke_key_explicit(krl, key);
crypto/openssh/ssh-keygen.c
2433
if (sshkey_fingerprint_raw(key,
crypto/openssh/ssh-keygen.c
2440
if (sshkey_fingerprint_raw(key,
crypto/openssh/ssh-keygen.c
2447
r = ssh_krl_revoke_key(krl, key);
crypto/openssh/ssh-keygen.c
2453
sshkey_free(key);
crypto/openssh/ssh-keygen.c
3206
struct sshkey *key;
crypto/openssh/ssh-keygen.c
3229
key = srks[i]->key;
crypto/openssh/ssh-keygen.c
3230
if (key->type != KEY_ECDSA_SK && key->type != KEY_ED25519_SK) {
crypto/openssh/ssh-keygen.c
3232
sshkey_type(key), key->type);
crypto/openssh/ssh-keygen.c
3235
if ((fp = sshkey_fingerprint(key, fingerprint_hash,
crypto/openssh/ssh-keygen.c
3239
sshkey_type(key), fp, key->sk_application, key->sk_flags);
crypto/openssh/ssh-keygen.c
3240
ext = sk_suffix(key->sk_application,
crypto/openssh/ssh-keygen.c
3243
key->type == KEY_ECDSA_SK ? "ecdsa_sk" : "ed25519_sk",
crypto/openssh/ssh-keygen.c
3255
if ((r = sshkey_save_private(key, path, pass,
crypto/openssh/ssh-keygen.c
3256
key->sk_application, private_key_format,
crypto/openssh/ssh-keygen.c
3263
printf("Saved %s key%s%s to %s\n", sshkey_type(key),
crypto/openssh/ssh-keygen.c
3265
*ext != '\0' ? key->sk_application : "",
crypto/openssh/ssh-keygen.c
3272
if ((r = sshkey_save_public(key, pubpath,
crypto/openssh/ssh-keygen.c
3273
key->sk_application)) != 0) {
crypto/openssh/ssh-keygen.c
486
struct sshkey *key = NULL;
crypto/openssh/ssh-keygen.c
537
if ((key = sshkey_new(ktype)) == NULL)
crypto/openssh/ssh-keygen.c
541
switch (key->type) {
crypto/openssh/ssh-keygen.c
555
if (!DSA_set0_pqg(key->dsa, dsa_p, dsa_q, dsa_g))
crypto/openssh/ssh-keygen.c
558
if (!DSA_set0_key(key->dsa, dsa_pub_key, dsa_priv_key))
crypto/openssh/ssh-keygen.c
582
sshkey_free(key);
crypto/openssh/ssh-keygen.c
599
if ((key->pkey = EVP_PKEY_new()) == NULL)
crypto/openssh/ssh-keygen.c
612
if (EVP_PKEY_set1_RSA(key->pkey, rsa) != 1)
crypto/openssh/ssh-keygen.c
623
if ((r = sshkey_sign(key, &sig, &slen, data, sizeof(data),
crypto/openssh/ssh-keygen.c
626
else if ((r = sshkey_verify(key, sig, slen, data, sizeof(data),
crypto/openssh/ssh-keygen.c
630
sshkey_free(key);
crypto/openssh/ssh-keygen.c
635
return key;
crypto/openssh/ssh-keyscan.c
124
static void keyprint(con *c, struct sshkey *key);
crypto/openssh/ssh-keyscan.c
316
keyprint_one(const char *host, struct sshkey *key)
crypto/openssh/ssh-keyscan.c
325
export_dns_rr(host, key, stdout, 0, hashalg);
crypto/openssh/ssh-keyscan.c
336
if (r >= 0 && sshkey_write(key, stdout) == 0)
crypto/openssh/ssh-keyscan.c
343
keyprint(con *c, struct sshkey *key)
crypto/openssh/ssh-keyscan.c
348
if (key == NULL)
crypto/openssh/ssh-keyscan.c
351
keyprint_one(hosts, key);
crypto/openssh/ssh-keyscan.c
356
keyprint_one(host, key);
crypto/openssh/ssh-keysign.c
125
else if ((r = sshkey_from_blob(pkblob, blen, &key)) != 0) {
crypto/openssh/ssh-keysign.c
128
} else if (key->type != pktype)
crypto/openssh/ssh-keysign.c
160
*ret = key;
crypto/openssh/ssh-keysign.c
161
key = NULL;
crypto/openssh/ssh-keysign.c
168
sshkey_free(key);
crypto/openssh/ssh-keysign.c
181
struct sshkey *keys[NUM_KEYTYPES], *key = NULL;
crypto/openssh/ssh-keysign.c
248
NULL, &key, NULL);
crypto/openssh/ssh-keysign.c
252
else if (key != NULL) {
crypto/openssh/ssh-keysign.c
253
keys[i] = key;
crypto/openssh/ssh-keysign.c
278
if (valid_request(pw, host, &key, &pkalg, data, dlen) < 0)
crypto/openssh/ssh-keysign.c
285
sshkey_equal_public(key, keys[i])) {
crypto/openssh/ssh-keysign.c
291
if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/ssh-keysign.c
295
sshkey_type(key), fp ? fp : "");
crypto/openssh/ssh-keysign.c
69
struct sshkey *key = NULL;
crypto/openssh/ssh-pkcs11-client.c
255
struct sshkey *key = NULL;
crypto/openssh/ssh-pkcs11-client.c
267
if ((key = sshkey_new(KEY_UNSPEC)) == NULL) {
crypto/openssh/ssh-pkcs11-client.c
271
if ((key->pkey = EVP_PKEY_new()) == NULL ||
crypto/openssh/ssh-pkcs11-client.c
272
EVP_PKEY_set1_RSA(key->pkey, rsa) != 1) {
crypto/openssh/ssh-pkcs11-client.c
277
key->type = KEY_RSA;
crypto/openssh/ssh-pkcs11-client.c
278
if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) {
crypto/openssh/ssh-pkcs11-client.c
303
sshkey_free(key);
crypto/openssh/ssh-pkcs11-client.c
333
struct sshkey *key = NULL;
crypto/openssh/ssh-pkcs11-client.c
346
if ((key = sshkey_new(KEY_UNSPEC)) == NULL) {
crypto/openssh/ssh-pkcs11-client.c
350
if ((key->pkey = EVP_PKEY_new()) == NULL ||
crypto/openssh/ssh-pkcs11-client.c
351
EVP_PKEY_set1_EC_KEY(key->pkey, ec) != 1) {
crypto/openssh/ssh-pkcs11-client.c
355
if ((nid = sshkey_ecdsa_pkey_to_nid(key->pkey)) < 0) {
crypto/openssh/ssh-pkcs11-client.c
359
key->ecdsa_nid = nid;
crypto/openssh/ssh-pkcs11-client.c
360
key->type = KEY_ECDSA;
crypto/openssh/ssh-pkcs11-client.c
362
if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) {
crypto/openssh/ssh-pkcs11-client.c
386
sshkey_free(key);
crypto/openssh/ssh-pkcs11-client.c
532
int (*ec_init)(EC_KEY *key);
crypto/openssh/ssh-pkcs11-client.c
534
int (*ec_set_group)(EC_KEY *key, const EC_GROUP *grp);
crypto/openssh/ssh-pkcs11-client.c
535
int (*ec_set_private)(EC_KEY *key, const BIGNUM *priv_key);
crypto/openssh/ssh-pkcs11-client.c
536
int (*ec_set_public)(EC_KEY *key, const EC_POINT *pub_key);
crypto/openssh/ssh-pkcs11-client.c
69
void (*ec_finish)(EC_KEY *key);
crypto/openssh/ssh-pkcs11-helper.c
104
debug("check %s %s %s", sshkey_type(ki->key),
crypto/openssh/ssh-pkcs11-helper.c
106
if (sshkey_equal(k, ki->key))
crypto/openssh/ssh-pkcs11-helper.c
107
return (ki->key);
crypto/openssh/ssh-pkcs11-helper.c
194
struct sshkey *key = NULL, *found;
crypto/openssh/ssh-pkcs11-helper.c
209
if ((r = sshkey_from_blob(blob, blen, &key)) != 0)
crypto/openssh/ssh-pkcs11-helper.c
211
if ((found = lookup_key(key)) == NULL)
crypto/openssh/ssh-pkcs11-helper.c
215
switch (key->type) {
crypto/openssh/ssh-pkcs11-helper.c
247
fatal_f("unsupported key type %d", key->type);
crypto/openssh/ssh-pkcs11-helper.c
262
sshkey_free(key);
crypto/openssh/ssh-pkcs11-helper.c
55
struct sshkey *key;
crypto/openssh/ssh-pkcs11-helper.c
75
ki->key = k;
crypto/openssh/ssh-pkcs11-helper.c
91
sshkey_free(ki->key);
crypto/openssh/ssh-pkcs11.c
1021
key = sshkey_new(KEY_UNSPEC);
crypto/openssh/ssh-pkcs11.c
1022
if (key == NULL) {
crypto/openssh/ssh-pkcs11.c
1027
EVP_PKEY_free(key->pkey);
crypto/openssh/ssh-pkcs11.c
1028
if ((key->pkey = EVP_PKEY_new()) == NULL)
crypto/openssh/ssh-pkcs11.c
1030
if (EVP_PKEY_set1_RSA(key->pkey, rsa) != 1)
crypto/openssh/ssh-pkcs11.c
1032
key->type = KEY_RSA;
crypto/openssh/ssh-pkcs11.c
1033
key->flags |= SSHKEY_FLAG_EXT;
crypto/openssh/ssh-pkcs11.c
1054
key = sshkey_new(KEY_UNSPEC);
crypto/openssh/ssh-pkcs11.c
1055
if (key == NULL) {
crypto/openssh/ssh-pkcs11.c
1060
EVP_PKEY_free(key->pkey);
crypto/openssh/ssh-pkcs11.c
1061
if ((key->pkey = EVP_PKEY_new()) == NULL)
crypto/openssh/ssh-pkcs11.c
1063
if (EVP_PKEY_set1_EC_KEY(key->pkey, ec) != 1)
crypto/openssh/ssh-pkcs11.c
1065
key->ecdsa_nid = nid;
crypto/openssh/ssh-pkcs11.c
1066
key->type = KEY_ECDSA;
crypto/openssh/ssh-pkcs11.c
1067
key->flags |= SSHKEY_FLAG_EXT;
crypto/openssh/ssh-pkcs11.c
1081
if (key == NULL) {
crypto/openssh/ssh-pkcs11.c
1086
*keyp = key;
crypto/openssh/ssh-pkcs11.c
1104
struct sshkey *key)
crypto/openssh/ssh-pkcs11.c
1108
if ((fp = sshkey_fingerprint(key, SSH_FP_HASH_DEFAULT,
crypto/openssh/ssh-pkcs11.c
1114
(u_long)slotidx, sshkey_type(key), fp);
crypto/openssh/ssh-pkcs11.c
1127
struct sshkey *key = NULL;
crypto/openssh/ssh-pkcs11.c
1178
key = NULL;
crypto/openssh/ssh-pkcs11.c
1183
&key, &label) != 0) {
crypto/openssh/ssh-pkcs11.c
1193
note_key(p, slotidx, __func__, key);
crypto/openssh/ssh-pkcs11.c
1194
if (pkcs11_key_included(keysp, nkeys, key)) {
crypto/openssh/ssh-pkcs11.c
1196
sshkey_free(key);
crypto/openssh/ssh-pkcs11.c
1201
(*keysp)[*nkeys] = key;
crypto/openssh/ssh-pkcs11.c
1232
struct sshkey *key = NULL;
crypto/openssh/ssh-pkcs11.c
1290
key = pkcs11_fetch_rsa_pubkey(p, slotidx, &obj);
crypto/openssh/ssh-pkcs11.c
1294
key = pkcs11_fetch_ecdsa_pubkey(p, slotidx, &obj);
crypto/openssh/ssh-pkcs11.c
1299
key = NULL;
crypto/openssh/ssh-pkcs11.c
1303
if (key == NULL) {
crypto/openssh/ssh-pkcs11.c
1307
note_key(p, slotidx, __func__, key);
crypto/openssh/ssh-pkcs11.c
1308
if (pkcs11_key_included(keysp, nkeys, key)) {
crypto/openssh/ssh-pkcs11.c
1310
sshkey_free(key);
crypto/openssh/ssh-pkcs11.c
1315
(*keysp)[*nkeys] = key;
crypto/openssh/ssh-pkcs11.c
695
pkcs11_key_included(struct sshkey ***keysp, int *nkeys, struct sshkey *key)
crypto/openssh/ssh-pkcs11.c
700
if (sshkey_equal(key, (*keysp)[i]))
crypto/openssh/ssh-pkcs11.c
717
struct sshkey *key = NULL;
crypto/openssh/ssh-pkcs11.c
804
key = sshkey_new(KEY_UNSPEC);
crypto/openssh/ssh-pkcs11.c
805
if (key == NULL) {
crypto/openssh/ssh-pkcs11.c
810
EVP_PKEY_free(key->pkey);
crypto/openssh/ssh-pkcs11.c
811
if ((key->pkey = EVP_PKEY_new()) == NULL)
crypto/openssh/ssh-pkcs11.c
813
if (EVP_PKEY_set1_EC_KEY(key->pkey, ec) != 1)
crypto/openssh/ssh-pkcs11.c
815
key->ecdsa_nid = nid;
crypto/openssh/ssh-pkcs11.c
816
key->type = KEY_ECDSA;
crypto/openssh/ssh-pkcs11.c
817
key->flags |= SSHKEY_FLAG_EXT;
crypto/openssh/ssh-pkcs11.c
829
return (key);
crypto/openssh/ssh-pkcs11.c
843
struct sshkey *key = NULL;
crypto/openssh/ssh-pkcs11.c
903
key = sshkey_new(KEY_UNSPEC);
crypto/openssh/ssh-pkcs11.c
904
if (key == NULL) {
crypto/openssh/ssh-pkcs11.c
909
EVP_PKEY_free(key->pkey);
crypto/openssh/ssh-pkcs11.c
910
if ((key->pkey = EVP_PKEY_new()) == NULL)
crypto/openssh/ssh-pkcs11.c
912
if (EVP_PKEY_set1_RSA(key->pkey, rsa) != 1)
crypto/openssh/ssh-pkcs11.c
914
key->type = KEY_RSA;
crypto/openssh/ssh-pkcs11.c
915
key->flags |= SSHKEY_FLAG_EXT;
crypto/openssh/ssh-pkcs11.c
922
return (key);
crypto/openssh/ssh-pkcs11.c
940
struct sshkey *key = NULL;
crypto/openssh/ssh-rsa.c
105
if (!sshkey_is_cert(key)) {
crypto/openssh/ssh-rsa.c
196
struct sshkey *key)
crypto/openssh/ssh-rsa.c
215
if (EVP_PKEY_set1_RSA(key->pkey, rsa) != 1) {
crypto/openssh/ssh-rsa.c
219
if ((ret = sshkey_check_rsa_length(key, 0)) != 0)
crypto/openssh/ssh-rsa.c
235
struct sshkey *key)
crypto/openssh/ssh-rsa.c
243
if (sshkey_is_cert(key)) {
crypto/openssh/ssh-rsa.c
245
if ((rsa = EVP_PKEY_get1_RSA(key->pkey)) == NULL) {
crypto/openssh/ssh-rsa.c
291
if (EVP_PKEY_set1_RSA(key->pkey, rsa) != 1) {
crypto/openssh/ssh-rsa.c
295
if ((r = sshkey_check_rsa_length(key, 0)) != 0)
crypto/openssh/ssh-rsa.c
404
ssh_rsa_sign(struct sshkey *key,
crypto/openssh/ssh-rsa.c
425
if (key == NULL || key->pkey == NULL || hash_alg == -1 ||
crypto/openssh/ssh-rsa.c
426
sshkey_type_plain(key->type) != KEY_RSA)
crypto/openssh/ssh-rsa.c
428
slen = EVP_PKEY_size(key->pkey);
crypto/openssh/ssh-rsa.c
431
if (EVP_PKEY_bits(key->pkey) < SSH_RSA_MINIMUM_MODULUS_SIZE)
crypto/openssh/ssh-rsa.c
434
if ((ret = sshkey_pkey_digest_sign(key->pkey, hash_alg, &sig, &len,
crypto/openssh/ssh-rsa.c
472
ssh_rsa_verify(const struct sshkey *key,
crypto/openssh/ssh-rsa.c
483
if (key == NULL || key->pkey == NULL ||
crypto/openssh/ssh-rsa.c
484
sshkey_type_plain(key->type) != KEY_RSA ||
crypto/openssh/ssh-rsa.c
487
if (EVP_PKEY_bits(key->pkey) < SSH_RSA_MINIMUM_MODULUS_SIZE)
crypto/openssh/ssh-rsa.c
523
modlen = EVP_PKEY_size(key->pkey);
crypto/openssh/ssh-rsa.c
540
rsasize = EVP_PKEY_size(key->pkey);
crypto/openssh/ssh-rsa.c
546
ret = sshkey_pkey_digest_verify(key->pkey, hash_alg, data, dlen,
crypto/openssh/ssh-rsa.c
71
ssh_rsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-rsa.c
78
if (key->pkey == NULL)
crypto/openssh/ssh-rsa.c
80
if ((rsa = EVP_PKEY_get0_RSA(key->pkey)) == NULL)
crypto/openssh/ssh-rsa.c
92
ssh_rsa_serialize_private(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-rsa.c
99
if ((rsa = EVP_PKEY_get0_RSA(key->pkey)) == NULL)
crypto/openssh/ssh-sk-client.c
230
sshsk_sign(const char *provider, struct sshkey *key,
crypto/openssh/ssh-sk-client.c
250
if ((r = sshkey_private_serialize(key, kbuf)) != 0) {
crypto/openssh/ssh-sk-client.c
301
struct sshkey *key = NULL;
crypto/openssh/ssh-sk-client.c
347
if ((r = sshkey_private_deserialize(kbuf, &key)) != 0) {
crypto/openssh/ssh-sk-client.c
358
*keyp = key;
crypto/openssh/ssh-sk-client.c
359
key = NULL;
crypto/openssh/ssh-sk-client.c
362
sshkey_free(key);
crypto/openssh/ssh-sk-client.c
376
sshkey_free(srk->key);
crypto/openssh/ssh-sk-client.c
402
struct sshkey *key = NULL;
crypto/openssh/ssh-sk-client.c
436
if ((r = sshkey_private_deserialize(kbuf, &key)) != 0) {
crypto/openssh/ssh-sk-client.c
445
srk->key = key;
crypto/openssh/ssh-sk-client.c
446
key = NULL;
crypto/openssh/ssh-sk-client.c
458
sshkey_type(srk->key), srk->key->sk_application,
crypto/openssh/ssh-sk-client.c
476
sshkey_free(key);
crypto/openssh/ssh-sk-helper.c
112
if ((r = sshkey_private_deserialize(kbuf, &key)) != 0)
crypto/openssh/ssh-sk-helper.c
114
if (!sshkey_is_sk(key)) {
crypto/openssh/ssh-sk-helper.c
116
__progname, sshkey_ssh_name(key));
crypto/openssh/ssh-sk-helper.c
120
"msg len %zu, compat 0x%lx", sshkey_type(key),
crypto/openssh/ssh-sk-helper.c
125
if ((r = sshsk_sign(provider, key, &sig, &siglen,
crypto/openssh/ssh-sk-helper.c
138
sshkey_free(key);
crypto/openssh/ssh-sk-helper.c
156
struct sshkey *key;
crypto/openssh/ssh-sk-helper.c
185
flags, pin, challenge, &key, attest)) != 0) {
crypto/openssh/ssh-sk-helper.c
192
if ((r = sshkey_private_serialize(key, kbuf)) != 0)
crypto/openssh/ssh-sk-helper.c
200
sshkey_free(key);
crypto/openssh/ssh-sk-helper.c
251
sshkey_type(srks[i]->key), srks[i]->key->sk_application,
crypto/openssh/ssh-sk-helper.c
254
if ((r = sshkey_private_serialize(srks[i]->key, kbuf)) != 0)
crypto/openssh/ssh-sk-helper.c
95
struct sshkey *key = NULL;
crypto/openssh/ssh-sk.c
209
struct sshkey *key = NULL;
crypto/openssh/ssh-sk.c
217
if ((key = sshkey_new(KEY_ECDSA_SK)) == NULL) {
crypto/openssh/ssh-sk.c
222
key->ecdsa_nid = NID_X9_62_prime256v1;
crypto/openssh/ssh-sk.c
223
if ((ecdsa = EC_KEY_new_by_curve_name(key->ecdsa_nid)) == NULL ||
crypto/openssh/ssh-sk.c
252
if ((key->pkey = EVP_PKEY_new()) == NULL) {
crypto/openssh/ssh-sk.c
257
if (EVP_PKEY_set1_EC_KEY(key->pkey, ecdsa) != 1) {
crypto/openssh/ssh-sk.c
263
*keyp = key;
crypto/openssh/ssh-sk.c
264
key = NULL; /* transferred */
crypto/openssh/ssh-sk.c
267
sshkey_free(key);
crypto/openssh/ssh-sk.c
278
struct sshkey *key = NULL;
crypto/openssh/ssh-sk.c
287
if ((key = sshkey_new(KEY_ED25519_SK)) == NULL) {
crypto/openssh/ssh-sk.c
292
if ((key->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL) {
crypto/openssh/ssh-sk.c
297
memcpy(key->ed25519_pk, resp->public_key, ED25519_PK_SZ);
crypto/openssh/ssh-sk.c
299
*keyp = key;
crypto/openssh/ssh-sk.c
300
key = NULL; /* transferred */
crypto/openssh/ssh-sk.c
303
sshkey_free(key);
crypto/openssh/ssh-sk.c
311
struct sshkey *key = NULL;
crypto/openssh/ssh-sk.c
325
if ((r = sshsk_ecdsa_assemble(resp, &key)) != 0)
crypto/openssh/ssh-sk.c
330
if ((r = sshsk_ed25519_assemble(resp, &key)) != 0)
crypto/openssh/ssh-sk.c
338
key->sk_flags = flags;
crypto/openssh/ssh-sk.c
339
if ((key->sk_key_handle = sshbuf_new()) == NULL ||
crypto/openssh/ssh-sk.c
340
(key->sk_reserved = sshbuf_new()) == NULL) {
crypto/openssh/ssh-sk.c
345
if ((key->sk_application = strdup(application)) == NULL) {
crypto/openssh/ssh-sk.c
350
if ((r = sshbuf_put(key->sk_key_handle, resp->key_handle,
crypto/openssh/ssh-sk.c
357
*keyp = key;
crypto/openssh/ssh-sk.c
358
key = NULL;
crypto/openssh/ssh-sk.c
360
sshkey_free(key);
crypto/openssh/ssh-sk.c
484
struct sshkey *key = NULL;
crypto/openssh/ssh-sk.c
558
resp, &key)) != 0)
crypto/openssh/ssh-sk.c
566
*keyp = key;
crypto/openssh/ssh-sk.c
567
key = NULL; /* transferred */
crypto/openssh/ssh-sk.c
572
sshkey_free(key);
crypto/openssh/ssh-sk.c
652
sshsk_sign(const char *provider_path, struct sshkey *key,
crypto/openssh/ssh-sk.c
664
provider_path, sshkey_type(key), key->sk_flags,
crypto/openssh/ssh-sk.c
671
type = sshkey_type_plain(key->type);
crypto/openssh/ssh-sk.c
685
key->sk_key_handle == NULL ||
crypto/openssh/ssh-sk.c
686
key->sk_application == NULL || *key->sk_application == '\0') {
crypto/openssh/ssh-sk.c
696
__func__, key->sk_flags, key->sk_application);
crypto/openssh/ssh-sk.c
698
sshbuf_dump(key->sk_key_handle, stderr);
crypto/openssh/ssh-sk.c
700
if ((r = skp->sk_sign(alg, data, datalen, key->sk_application,
crypto/openssh/ssh-sk.c
701
sshbuf_ptr(key->sk_key_handle), sshbuf_len(key->sk_key_handle),
crypto/openssh/ssh-sk.c
702
key->sk_flags, pin, opts, &resp)) != 0) {
crypto/openssh/ssh-sk.c
712
if ((r = sshbuf_put_cstring(sig, sshkey_ssh_name_plain(key))) != 0) {
crypto/openssh/ssh-sk.c
766
freezero(rks[i]->key.key_handle, rks[i]->key.key_handle_len);
crypto/openssh/ssh-sk.c
767
freezero(rks[i]->key.public_key, rks[i]->key.public_key_len);
crypto/openssh/ssh-sk.c
768
freezero(rks[i]->key.signature, rks[i]->key.signature_len);
crypto/openssh/ssh-sk.c
769
freezero(rks[i]->key.attestation_cert,
crypto/openssh/ssh-sk.c
770
rks[i]->key.attestation_cert_len);
crypto/openssh/ssh-sk.c
781
sshkey_free(srk->key);
crypto/openssh/ssh-sk.c
809
struct sshkey *key = NULL;
crypto/openssh/ssh-sk.c
851
rks[i]->application, sk_flags, &rks[i]->key, &key)) != 0)
crypto/openssh/ssh-sk.c
858
srk->key = key;
crypto/openssh/ssh-sk.c
859
key = NULL; /* transferred */
crypto/openssh/ssh-sk.c
888
sshkey_free(key);
crypto/openssh/ssh-sk.h
35
struct sshkey *key;
crypto/openssh/ssh-sk.h
61
int sshsk_sign(const char *provider_path, struct sshkey *key,
crypto/openssh/ssh-xmss.c
100
(r = sshkey_xmss_serialize_state_opt(key, b, opts)) != 0)
crypto/openssh/ssh-xmss.c
133
struct sshkey *key)
crypto/openssh/ssh-xmss.c
142
if ((ret = sshkey_xmss_init(key, xmss_name)) != 0)
crypto/openssh/ssh-xmss.c
146
if (len == 0 || len != sshkey_xmss_pklen(key)) {
crypto/openssh/ssh-xmss.c
150
key->xmss_pk = pk;
crypto/openssh/ssh-xmss.c
152
if (!sshkey_is_cert(key) &&
crypto/openssh/ssh-xmss.c
153
(ret = sshkey_xmss_deserialize_pk_info(key, b)) != 0)
crypto/openssh/ssh-xmss.c
165
struct sshkey *key)
crypto/openssh/ssh-xmss.c
177
if (!sshkey_is_cert(key) &&
crypto/openssh/ssh-xmss.c
178
(r = sshkey_xmss_init(key, xmss_name)) != 0)
crypto/openssh/ssh-xmss.c
180
if (pklen != sshkey_xmss_pklen(key) ||
crypto/openssh/ssh-xmss.c
181
sklen != sshkey_xmss_sklen(key)) {
crypto/openssh/ssh-xmss.c
185
key->xmss_pk = xmss_pk;
crypto/openssh/ssh-xmss.c
186
key->xmss_sk = xmss_sk;
crypto/openssh/ssh-xmss.c
189
if ((r = sshkey_xmss_deserialize_state_opt(key, b)) != 0)
crypto/openssh/ssh-xmss.c
201
ssh_xmss_sign(struct sshkey *key,
crypto/openssh/ssh-xmss.c
217
if (key == NULL ||
crypto/openssh/ssh-xmss.c
218
sshkey_type_plain(key->type) != KEY_XMSS ||
crypto/openssh/ssh-xmss.c
219
key->xmss_sk == NULL ||
crypto/openssh/ssh-xmss.c
220
sshkey_xmss_params(key) == NULL)
crypto/openssh/ssh-xmss.c
222
if ((r = sshkey_xmss_siglen(key, &required_siglen)) != 0)
crypto/openssh/ssh-xmss.c
229
if ((r = sshkey_xmss_get_state(key, 1)) != 0)
crypto/openssh/ssh-xmss.c
231
if ((ret = xmss_sign(key->xmss_sk, sshkey_xmss_bds_state(key), sig, &smlen,
crypto/openssh/ssh-xmss.c
232
data, datalen, sshkey_xmss_params(key))) != 0 || smlen <= datalen) {
crypto/openssh/ssh-xmss.c
257
if ((ret = sshkey_xmss_update_state(key, 1)) != 0) {
crypto/openssh/ssh-xmss.c
277
ssh_xmss_verify(const struct sshkey *key,
crypto/openssh/ssh-xmss.c
290
if (key == NULL ||
crypto/openssh/ssh-xmss.c
291
sshkey_type_plain(key->type) != KEY_XMSS ||
crypto/openssh/ssh-xmss.c
292
key->xmss_pk == NULL ||
crypto/openssh/ssh-xmss.c
293
sshkey_xmss_params(key) == NULL ||
crypto/openssh/ssh-xmss.c
296
if ((r = sshkey_xmss_siglen(key, &required_siglen)) != 0)
crypto/openssh/ssh-xmss.c
331
key->xmss_pk, sshkey_xmss_params(key))) != 0) {
crypto/openssh/ssh-xmss.c
69
ssh_xmss_serialize_public(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-xmss.c
74
if (key->xmss_name == NULL || key->xmss_pk == NULL ||
crypto/openssh/ssh-xmss.c
75
sshkey_xmss_pklen(key) == 0)
crypto/openssh/ssh-xmss.c
77
if ((r = sshbuf_put_cstring(b, key->xmss_name)) != 0 ||
crypto/openssh/ssh-xmss.c
78
(r = sshbuf_put_string(b, key->xmss_pk,
crypto/openssh/ssh-xmss.c
79
sshkey_xmss_pklen(key))) != 0 ||
crypto/openssh/ssh-xmss.c
80
(r = sshkey_xmss_serialize_pk_info(key, b, opts)) != 0)
crypto/openssh/ssh-xmss.c
87
ssh_xmss_serialize_private(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/ssh-xmss.c
92
if (key->xmss_name == NULL)
crypto/openssh/ssh-xmss.c
95
if ((r = sshbuf_put_cstring(b, key->xmss_name)) != 0 ||
crypto/openssh/ssh-xmss.c
96
(r = sshbuf_put_string(b, key->xmss_pk,
crypto/openssh/ssh-xmss.c
97
sshkey_xmss_pklen(key))) != 0 ||
crypto/openssh/ssh-xmss.c
98
(r = sshbuf_put_string(b, key->xmss_sk,
crypto/openssh/ssh-xmss.c
99
sshkey_xmss_sklen(key))) != 0 ||
crypto/openssh/ssh_api.c
178
sshkey_free(k->key);
crypto/openssh/ssh_api.c
203
ssh_add_hostkey(struct ssh *ssh, struct sshkey *key)
crypto/openssh/ssh_api.c
210
if ((r = sshkey_from_private(key, &pubkey)) != 0)
crypto/openssh/ssh_api.c
218
k_prv->key = key;
crypto/openssh/ssh_api.c
222
k->key = pubkey;
crypto/openssh/ssh_api.c
228
k->key = key;
crypto/openssh/ssh_api.c
490
debug3_f("check %s", sshkey_type(k->key));
crypto/openssh/ssh_api.c
491
if (k->key->type == type &&
crypto/openssh/ssh_api.c
492
(type != KEY_ECDSA || k->key->ecdsa_nid == nid))
crypto/openssh/ssh_api.c
493
return (k->key);
crypto/openssh/ssh_api.c
505
debug3_f("check %s", sshkey_type(k->key));
crypto/openssh/ssh_api.c
506
if (k->key->type == type &&
crypto/openssh/ssh_api.c
507
(type != KEY_ECDSA || k->key->ecdsa_nid == nid))
crypto/openssh/ssh_api.c
508
return (k->key);
crypto/openssh/ssh_api.c
520
debug3_f("check %s", sshkey_type(k->key));
crypto/openssh/ssh_api.c
521
if (sshkey_equal_public(hostkey, k->key))
crypto/openssh/ssh_api.c
556
if (k->key->type != ktype &&
crypto/openssh/ssh_api.c
557
(!sshkey_is_cert(k->key) ||
crypto/openssh/ssh_api.c
558
k->key->type != sshkey_type_plain(ktype)))
crypto/openssh/ssh_api.c
560
if (sshkey_type_plain(k->key->type) == KEY_ECDSA &&
crypto/openssh/ssh_api.c
561
k->key->ecdsa_nid != nid)
crypto/openssh/ssh_api.c
63
mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp,
crypto/openssh/ssh_api.c
70
ret = sshkey_sign(key, sigp, &slen, data, datalen, alg,
crypto/openssh/ssh_api.h
64
int ssh_add_hostkey(struct ssh *ssh, struct sshkey *key);
crypto/openssh/sshconnect.c
1089
!sshkey_equal(ip_found->key, host_found->key))))
crypto/openssh/sshconnect.c
1331
sshkey_type(host_found->key),
crypto/openssh/sshconnect.c
1634
show_other_keys(struct hostkeys *hostkeys, struct sshkey *key)
crypto/openssh/sshconnect.c
1651
if (type[i] == key->type)
crypto/openssh/sshconnect.c
1656
fp = sshkey_fingerprint(found->key,
crypto/openssh/sshconnect.c
1658
ra = sshkey_fingerprint(found->key,
crypto/openssh/sshconnect.c
1665
sshkey_type(found->key),
crypto/openssh/sshconnect.c
1667
sshkey_type(found->key), fp);
crypto/openssh/sshconnect.c
699
const struct sshkey *key;
crypto/openssh/sshconnect.c
735
hostkey_accepted_by_hostkeyalgs(const struct sshkey *key)
crypto/openssh/sshconnect.c
737
const char *ktype = sshkey_ssh_name(key);
crypto/openssh/sshconnect.c
740
if (key->type == KEY_UNSPEC)
crypto/openssh/sshconnect.c
742
if (key->type == KEY_RSA &&
crypto/openssh/sshconnect.c
746
if (key->type == KEY_RSA_CERT &&
crypto/openssh/sshconnect.c
766
if (l->key == NULL || !sshkey_equal(ctx->key, l->key))
crypto/openssh/sshconnect.c
804
hostkeys_find_by_key(const char *host, const char *ip, const struct sshkey *key,
crypto/openssh/sshconnect.c
815
if (key == NULL || sshkey_is_cert(key))
crypto/openssh/sshconnect.c
820
ctx.key = key;
crypto/openssh/sshconnect.c
847
const struct sshkey *key,
crypto/openssh/sshconnect.c
854
hostkeys_find_by_key(host, ip, key,
crypto/openssh/sshconnect2.c
1156
key_sig_algorithm(struct ssh *ssh, const struct sshkey *key)
crypto/openssh/sshconnect2.c
1167
(key->type != KEY_RSA && key->type != KEY_RSA_CERT) ||
crypto/openssh/sshconnect2.c
1168
(key->type == KEY_RSA_CERT && (ssh->compat & SSH_BUG_SIGTYPE))) {
crypto/openssh/sshconnect2.c
1170
return match_list(sshkey_ssh_name(key),
crypto/openssh/sshconnect2.c
1179
if (key->type == KEY_RSA && (ssh->compat & SSH_BUG_SIGTYPE74))
crypto/openssh/sshconnect2.c
1190
if (sshkey_type_from_name(cp) != key->type)
crypto/openssh/sshconnect2.c
1217
if (id->key != NULL && id->agent_fd != -1) {
crypto/openssh/sshconnect2.c
1218
return ssh_agent_sign(id->agent_fd, id->key, sigp, lenp,
crypto/openssh/sshconnect2.c
1226
if (id->key != NULL &&
crypto/openssh/sshconnect2.c
1227
(id->isprivate || (id->key->flags & SSHKEY_FLAG_EXT))) {
crypto/openssh/sshconnect2.c
1228
sign_key = id->key;
crypto/openssh/sshconnect2.c
1234
if (id->key != NULL && !sshkey_equal_public(prv, id->key)) {
crypto/openssh/sshconnect2.c
1330
if ((fp = sshkey_fingerprint(id->key, options.fingerprint_hash,
crypto/openssh/sshconnect2.c
1334
debug3_f("using %s with %s %s", method, sshkey_type(id->key), fp);
crypto/openssh/sshconnect2.c
1344
if (sshkey_is_cert(id->key)) {
crypto/openssh/sshconnect2.c
1346
if (sshkey_equal_public(id->key, private_id->key) &&
crypto/openssh/sshconnect2.c
1347
id->key->type != private_id->key->type) {
crypto/openssh/sshconnect2.c
1361
(id->key->flags & SSHKEY_FLAG_EXT) == 0) {
crypto/openssh/sshconnect2.c
1363
if (private_id->key == NULL &&
crypto/openssh/sshconnect2.c
1393
id->key)) == NULL) {
crypto/openssh/sshconnect2.c
1417
(r = sshkey_puts(id->key, b)) != 0) {
crypto/openssh/sshconnect2.c
1439
else if ((sign_id->key->flags & SSHKEY_FLAG_EXT) != 0)
crypto/openssh/sshconnect2.c
1442
loc, sshkey_type(id->key), fp);
crypto/openssh/sshconnect2.c
1446
sshkey_type(sign_id->key), sign_id->filename,
crypto/openssh/sshconnect2.c
1491
if ((alg = key_sig_algorithm(ssh, id->key)) == NULL) {
crypto/openssh/sshconnect2.c
1496
if ((r = sshkey_to_blob(id->key, &blob, &bloblen)) != 0) {
crypto/openssh/sshconnect2.c
1588
!(id->key && id->isprivate))
crypto/openssh/sshconnect2.c
1601
key_type_allowed_by_config(struct sshkey *key)
crypto/openssh/sshconnect2.c
1603
if (match_pattern_list(sshkey_ssh_name(key),
crypto/openssh/sshconnect2.c
1608
switch (key->type) {
crypto/openssh/sshconnect2.c
1673
struct sshkey *key;
crypto/openssh/sshconnect2.c
1686
key = options.identity_keys[i];
crypto/openssh/sshconnect2.c
1687
if (key && key->cert &&
crypto/openssh/sshconnect2.c
1688
key->cert->type != SSH2_CERT_TYPE_USER) {
crypto/openssh/sshconnect2.c
1693
if (key && sshkey_is_sk(key) && options.sk_provider == NULL) {
crypto/openssh/sshconnect2.c
1702
id->key = key;
crypto/openssh/sshconnect2.c
1709
key = options.certificates[i];
crypto/openssh/sshconnect2.c
1710
if (!sshkey_is_cert(key) || key->cert == NULL ||
crypto/openssh/sshconnect2.c
1711
key->cert->type != SSH2_CERT_TYPE_USER) {
crypto/openssh/sshconnect2.c
1716
if (key && sshkey_is_sk(key) && options.sk_provider == NULL) {
crypto/openssh/sshconnect2.c
1725
id->key = key;
crypto/openssh/sshconnect2.c
1745
if (sshkey_equal(idlist->keys[j], id->key)) {
crypto/openssh/sshconnect2.c
1756
id->key = idlist->keys[j];
crypto/openssh/sshconnect2.c
1771
if (id->key == NULL || (id->key->flags & SSHKEY_FLAG_EXT) == 0)
crypto/openssh/sshconnect2.c
1775
if (id2->key == NULL ||
crypto/openssh/sshconnect2.c
1776
(id2->key->flags & SSHKEY_FLAG_EXT) != 0)
crypto/openssh/sshconnect2.c
1778
if (sshkey_equal(id->key, id2->key)) {
crypto/openssh/sshconnect2.c
1797
if (id->key == NULL)
crypto/openssh/sshconnect2.c
1799
if (!key_type_allowed_by_config(id->key)) {
crypto/openssh/sshconnect2.c
1802
sshkey_ssh_name(id->key), id->filename);
crypto/openssh/sshconnect2.c
1805
(cp = key_sig_algorithm(ssh, id->key)) == NULL) {
crypto/openssh/sshconnect2.c
1808
sshkey_ssh_name(id->key), id->filename);
crypto/openssh/sshconnect2.c
1816
sshkey_free(id->key);
crypto/openssh/sshconnect2.c
1842
sshkey_free(id->key);
crypto/openssh/sshconnect2.c
1882
if (id->key != NULL) {
crypto/openssh/sshconnect2.c
1889
id->key = load_identity_file(id);
crypto/openssh/sshconnect2.c
1890
if (id->key != NULL) {
crypto/openssh/sshconnect2.c
1893
sshkey_free(id->key);
crypto/openssh/sshconnect2.c
1894
id->key = NULL;
crypto/openssh/sshconnect2.c
2012
ssh_keysign(struct ssh *ssh, struct sshkey *key, u_char **sigp, size_t *lenp,
crypto/openssh/sshconnect2.c
305
struct sshkey *key; /* public/private key */
crypto/openssh/sshconnect2.c
660
if (id->key != NULL) {
crypto/openssh/sshconnect2.c
661
fp = sshkey_fingerprint(id->key, options.fingerprint_hash,
crypto/openssh/sshconnect2.c
664
if (id->key) {
crypto/openssh/sshconnect2.c
665
if ((id->key->flags & SSHKEY_FLAG_EXT) != 0)
crypto/openssh/sshconnect2.c
667
else if (sshkey_is_sk(id->key))
crypto/openssh/sshconnect2.c
672
id->key ? sshkey_type(id->key) : "", id->key ? " " : "",
crypto/openssh/sshconnect2.c
684
struct sshkey *key = NULL;
crypto/openssh/sshconnect2.c
705
if ((r = sshkey_from_blob(pkblob, blen, &key)) != 0) {
crypto/openssh/sshconnect2.c
709
if (key->type != pktype) {
crypto/openssh/sshconnect2.c
712
key->type, pktype);
crypto/openssh/sshconnect2.c
723
if (sshkey_equal(key, id->key)) {
crypto/openssh/sshconnect2.c
729
fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/sshconnect2.c
732
sshkey_type(key), fp == NULL ? "<ERROR>" : fp);
crypto/openssh/sshconnect2.c
741
sshkey_free(key);
crypto/openssh/sshd-auth.c
237
struct sshkey *key;
crypto/openssh/sshd-auth.c
244
key = host_pubkeys[i];
crypto/openssh/sshd-auth.c
245
if (key == NULL)
crypto/openssh/sshd-auth.c
247
switch (key->type) {
crypto/openssh/sshd-auth.c
259
append_hostkey_type(b, sshkey_ssh_name(key));
crypto/openssh/sshd-auth.c
263
key = host_certificates[i];
crypto/openssh/sshd-auth.c
264
if (key == NULL)
crypto/openssh/sshd-auth.c
266
switch (key->type) {
crypto/openssh/sshd-auth.c
280
append_hostkey_type(b, sshkey_ssh_name(key));
crypto/openssh/sshd-auth.c
295
struct sshkey *key;
crypto/openssh/sshd-auth.c
306
key = host_certificates[i];
crypto/openssh/sshd-auth.c
309
key = host_pubkeys[i];
crypto/openssh/sshd-auth.c
312
if (key == NULL || key->type != type)
crypto/openssh/sshd-auth.c
319
if (key->ecdsa_nid != nid)
crypto/openssh/sshd-auth.c
323
return key;
crypto/openssh/sshd-auth.c
352
get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh)
crypto/openssh/sshd-auth.c
357
if (sshkey_is_cert(key)) {
crypto/openssh/sshd-auth.c
358
if (key == host_certificates[i] ||
crypto/openssh/sshd-auth.c
360
sshkey_equal(key, host_certificates[i])))
crypto/openssh/sshd-auth.c
363
if (key == host_pubkeys[i] ||
crypto/openssh/sshd-auth.c
365
sshkey_equal(key, host_pubkeys[i])))
crypto/openssh/sshd-session.c
484
struct sshkey *key;
crypto/openssh/sshd-session.c
495
key = sensitive_data.host_certificates[i];
crypto/openssh/sshd-session.c
498
key = sensitive_data.host_keys[i];
crypto/openssh/sshd-session.c
499
if (key == NULL && !need_private)
crypto/openssh/sshd-session.c
500
key = sensitive_data.host_pubkeys[i];
crypto/openssh/sshd-session.c
503
if (key == NULL || key->type != type)
crypto/openssh/sshd-session.c
510
if (key->ecdsa_nid != nid)
crypto/openssh/sshd-session.c
515
sensitive_data.host_keys[i] : key;
crypto/openssh/sshd-session.c
550
get_hostkey_index(struct sshkey *key, int compare, struct ssh *ssh)
crypto/openssh/sshd-session.c
555
if (sshkey_is_cert(key)) {
crypto/openssh/sshd-session.c
556
if (key == sensitive_data.host_certificates[i] ||
crypto/openssh/sshd-session.c
558
sshkey_equal(key,
crypto/openssh/sshd-session.c
562
if (key == sensitive_data.host_keys[i] ||
crypto/openssh/sshd-session.c
564
sshkey_equal(key, sensitive_data.host_keys[i])))
crypto/openssh/sshd-session.c
566
if (key == sensitive_data.host_pubkeys[i] ||
crypto/openssh/sshd-session.c
568
sshkey_equal(key, sensitive_data.host_pubkeys[i])))
crypto/openssh/sshd-session.c
580
struct sshkey *key;
crypto/openssh/sshd-session.c
592
key = get_hostkey_public_by_index(i, ssh);
crypto/openssh/sshd-session.c
593
if (key == NULL || key->type == KEY_UNSPEC ||
crypto/openssh/sshd-session.c
594
sshkey_is_cert(key))
crypto/openssh/sshd-session.c
596
fp = sshkey_fingerprint(key, options.fingerprint_hash,
crypto/openssh/sshd-session.c
598
debug3_f("key %d: %s %s", i, sshkey_ssh_name(key), fp);
crypto/openssh/sshd-session.c
612
if ((r = sshkey_putb(key, buf)) != 0)
crypto/openssh/sshd.c
1298
struct sshkey *key)
crypto/openssh/sshd.c
1308
if (key == NULL) { /* finalize */
crypto/openssh/sshd.c
1325
if ((r = sshkey_private_serialize(key, buf)) != 0)
crypto/openssh/sshd.c
1326
fatal_fr(r, "encode %s key", sshkey_ssh_name(key));
crypto/openssh/sshd.c
1371
struct sshkey *key;
crypto/openssh/sshd.c
1664
&key, NULL)) != 0 && r != SSH_ERR_SYSTEM_ERROR)
crypto/openssh/sshd.c
1667
if (sshkey_is_sk(key) &&
crypto/openssh/sshd.c
1668
key->sk_flags & SSH_SK_USER_PRESENCE_REQD) {
crypto/openssh/sshd.c
1671
key->sk_flags &= ~SSH_SK_USER_PRESENCE_REQD;
crypto/openssh/sshd.c
1673
if (r == 0 && key != NULL &&
crypto/openssh/sshd.c
1674
(r = sshkey_shield_private(key)) != 0) {
crypto/openssh/sshd.c
1677
sshkey_free(key);
crypto/openssh/sshd.c
1678
key = NULL;
crypto/openssh/sshd.c
1684
if (pubkey != NULL && key != NULL) {
crypto/openssh/sshd.c
1685
if (!sshkey_equal(pubkey, key)) {
crypto/openssh/sshd.c
1692
if (pubkey == NULL && key != NULL) {
crypto/openssh/sshd.c
1693
if ((r = sshkey_from_private(key, &pubkey)) != 0)
crypto/openssh/sshd.c
1701
sshkey_free(key);
crypto/openssh/sshd.c
1704
sensitive_data.host_keys[i] = key;
crypto/openssh/sshd.c
1707
if (key == NULL && pubkey != NULL && have_agent) {
crypto/openssh/sshd.c
1711
} else if (key != NULL) {
crypto/openssh/sshd.c
1712
keytype = key->type;
crypto/openssh/sshd.c
1713
accumulate_host_timing_secret(cfg, key);
crypto/openssh/sshd.c
1730
if (have_agent || key != NULL)
crypto/openssh/sshd.c
1738
key ? "private" : "agent", i, sshkey_ssh_name(pubkey), fp);
crypto/openssh/sshd.c
1760
&key, NULL)) != 0) {
crypto/openssh/sshd.c
1765
if (!sshkey_is_cert(key)) {
crypto/openssh/sshd.c
1768
sshkey_free(key);
crypto/openssh/sshd.c
1773
if (sshkey_equal_public(key,
crypto/openssh/sshd.c
1775
sensitive_data.host_certificates[j] = key;
crypto/openssh/sshd.c
1782
sshkey_free(key);
crypto/openssh/sshd.c
1785
sensitive_data.host_certificates[j] = key;
crypto/openssh/sshd.c
1786
debug("host certificate: #%u type %d %s", j, key->type,
crypto/openssh/sshd.c
1787
sshkey_type(key));
crypto/openssh/sshkey-xmss.c
1010
key = state->enc_keyiv;
crypto/openssh/sshkey-xmss.c
1046
memcpy(iv, key + keylen, ivlen);
crypto/openssh/sshkey-xmss.c
1051
(r = cipher_init(&ciphercontext, cipher, key, keylen,
crypto/openssh/sshkey-xmss.c
122
if ((key->xmss_name = strdup(name)) == NULL) {
crypto/openssh/sshkey-xmss.c
133
key->xmss_state = state;
crypto/openssh/sshkey-xmss.c
138
sshkey_xmss_free_state(struct sshkey *key)
crypto/openssh/sshkey-xmss.c
140
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
142
sshkey_xmss_free_bds(key);
crypto/openssh/sshkey-xmss.c
151
key->xmss_state = NULL;
crypto/openssh/sshkey-xmss.c
164
sshkey_xmss_init_bds_state(struct sshkey *key)
crypto/openssh/sshkey-xmss.c
166
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
178
sshkey_xmss_free_bds(key);
crypto/openssh/sshkey-xmss.c
190
sshkey_xmss_free_bds(struct sshkey *key)
crypto/openssh/sshkey-xmss.c
192
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
213
sshkey_xmss_params(const struct sshkey *key)
crypto/openssh/sshkey-xmss.c
215
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
223
sshkey_xmss_bds_state(const struct sshkey *key)
crypto/openssh/sshkey-xmss.c
225
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
233
sshkey_xmss_siglen(const struct sshkey *key, size_t *lenp)
crypto/openssh/sshkey-xmss.c
235
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
248
sshkey_xmss_pklen(const struct sshkey *key)
crypto/openssh/sshkey-xmss.c
250
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
258
sshkey_xmss_sklen(const struct sshkey *key)
crypto/openssh/sshkey-xmss.c
260
struct ssh_xmss_state *state = key->xmss_state;
crypto/openssh/sshkey-xmss.c
896
u_char *cp, *key, *iv = NULL;
crypto/openssh/sshkey-xmss.c
918
key = state->enc_keyiv;
crypto/openssh/sshkey-xmss.c
928
memcpy(iv, key + keylen, ivlen);
crypto/openssh/sshkey-xmss.c
95
sshkey_xmss_init(struct sshkey *key, const char *name)
crypto/openssh/sshkey-xmss.c
958
(r = cipher_init(&ciphercontext, cipher, key, keylen,
crypto/openssh/sshkey-xmss.c
987
u_char *key, *iv = NULL, *dp;
crypto/openssh/sshkey-xmss.c
99
if (key->xmss_state != NULL)
crypto/openssh/sshkey.c
1385
sshkey_to_base64(const struct sshkey *key, char **b64p)
crypto/openssh/sshkey.c
1395
if ((r = sshkey_putb(key, b)) != 0)
crypto/openssh/sshkey.c
1414
sshkey_format_text(const struct sshkey *key, struct sshbuf *b)
crypto/openssh/sshkey.c
1419
if ((r = sshkey_to_base64(key, &uu)) != 0)
crypto/openssh/sshkey.c
1422
sshkey_ssh_name(key), uu)) != 0)
crypto/openssh/sshkey.c
1431
sshkey_write(const struct sshkey *key, FILE *f)
crypto/openssh/sshkey.c
1438
if ((r = sshkey_format_text(key, b)) != 0)
crypto/openssh/sshkey.c
1867
cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf)
crypto/openssh/sshkey.c
1876
if ((ret = sshbuf_putb(key->cert->certblob, certbuf)) != 0)
crypto/openssh/sshkey.c
1880
if ((ret = sshbuf_get_u64(b, &key->cert->serial)) != 0 ||
crypto/openssh/sshkey.c
1881
(ret = sshbuf_get_u32(b, &key->cert->type)) != 0 ||
crypto/openssh/sshkey.c
1882
(ret = sshbuf_get_cstring(b, &key->cert->key_id, &kidlen)) != 0 ||
crypto/openssh/sshkey.c
1884
(ret = sshbuf_get_u64(b, &key->cert->valid_after)) != 0 ||
crypto/openssh/sshkey.c
1885
(ret = sshbuf_get_u64(b, &key->cert->valid_before)) != 0 ||
crypto/openssh/sshkey.c
1896
signed_len = sshbuf_len(key->cert->certblob) - sshbuf_len(b);
crypto/openssh/sshkey.c
1903
if (key->cert->type != SSH2_CERT_TYPE_USER &&
crypto/openssh/sshkey.c
1904
key->cert->type != SSH2_CERT_TYPE_HOST) {
crypto/openssh/sshkey.c
1914
if (key->cert->nprincipals >= SSHKEY_CERT_MAX_PRINCIPALS) {
crypto/openssh/sshkey.c
1923
oprincipals = key->cert->principals;
crypto/openssh/sshkey.c
1924
key->cert->principals = recallocarray(key->cert->principals,
crypto/openssh/sshkey.c
1925
key->cert->nprincipals, key->cert->nprincipals + 1,
crypto/openssh/sshkey.c
1926
sizeof(*key->cert->principals));
crypto/openssh/sshkey.c
1927
if (key->cert->principals == NULL) {
crypto/openssh/sshkey.c
1929
key->cert->principals = oprincipals;
crypto/openssh/sshkey.c
1933
key->cert->principals[key->cert->nprincipals++] = principal;
crypto/openssh/sshkey.c
1940
if ((ret = sshbuf_putb(key->cert->critical, crit)) != 0 ||
crypto/openssh/sshkey.c
1942
(ret = sshbuf_putb(key->cert->extensions, exts)) != 0))
crypto/openssh/sshkey.c
1951
sshbuf_reset(key->cert->critical);
crypto/openssh/sshkey.c
1959
sshbuf_reset(key->cert->extensions);
crypto/openssh/sshkey.c
1966
if (sshkey_from_blob_internal(ca, &key->cert->signature_key, 0) != 0) {
crypto/openssh/sshkey.c
1970
if (!sshkey_type_is_valid_ca(key->cert->signature_key->type)) {
crypto/openssh/sshkey.c
1974
if ((ret = sshkey_verify(key->cert->signature_key, sig, slen,
crypto/openssh/sshkey.c
1975
sshbuf_ptr(key->cert->certblob), signed_len, NULL, 0, NULL)) != 0)
crypto/openssh/sshkey.c
1978
&key->cert->signature_type)) != 0)
crypto/openssh/sshkey.c
1993
sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key)
crypto/openssh/sshkey.c
1996
if (sshbuf_get_cstring(b, &key->sk_application, NULL) != 0)
crypto/openssh/sshkey.c
2007
struct sshkey *key = NULL;
crypto/openssh/sshkey.c
2034
if ((key = sshkey_new(type)) == NULL) {
crypto/openssh/sshkey.c
2045
if ((ret = impl->funcs->deserialize_public(ktype, b, key)) != 0)
crypto/openssh/sshkey.c
2049
if (sshkey_is_cert(key) && (ret = cert_parse(b, key, copy)) != 0)
crypto/openssh/sshkey.c
2052
if (key != NULL && sshbuf_len(b) != 0) {
crypto/openssh/sshkey.c
2058
*keyp = key;
crypto/openssh/sshkey.c
2059
key = NULL;
crypto/openssh/sshkey.c
2063
sshkey_free(key);
crypto/openssh/sshkey.c
2133
sshkey_check_cert_sigtype(const struct sshkey *key, const char *allowed)
crypto/openssh/sshkey.c
2135
if (key == NULL || allowed == NULL)
crypto/openssh/sshkey.c
2137
if (!sshkey_type_is_cert(key->type))
crypto/openssh/sshkey.c
2139
if (key->cert == NULL || key->cert->signature_type == NULL)
crypto/openssh/sshkey.c
2141
if (match_pattern_list(key->cert->signature_type, allowed, 0) != 1)
crypto/openssh/sshkey.c
2193
sshkey_sign(struct sshkey *key,
crypto/openssh/sshkey.c
2198
int was_shielded = sshkey_is_shielded(key);
crypto/openssh/sshkey.c
2208
if ((impl = sshkey_impl_from_key(key)) == NULL)
crypto/openssh/sshkey.c
2210
if ((r = sshkey_unshield_private(key)) != 0)
crypto/openssh/sshkey.c
2212
if (sshkey_is_sk(key)) {
crypto/openssh/sshkey.c
2213
r = sshsk_sign(sk_provider, key, sigp, lenp, data,
crypto/openssh/sshkey.c
2219
r = impl->funcs->sign(key, sigp, lenp, data, datalen,
crypto/openssh/sshkey.c
2223
if (was_shielded && (r2 = sshkey_shield_private(key)) != 0)
crypto/openssh/sshkey.c
2233
sshkey_verify(const struct sshkey *key,
crypto/openssh/sshkey.c
2244
if ((impl = sshkey_impl_from_key(key)) == NULL)
crypto/openssh/sshkey.c
2246
return impl->funcs->verify(key, sig, siglen, data, dlen,
crypto/openssh/sshkey.c
2389
default_key_sign(struct sshkey *key, u_char **sigp, size_t *lenp,
crypto/openssh/sshkey.c
2396
return sshkey_sign(key, sigp, lenp, data, datalen, alg,
crypto/openssh/sshkey.c
2485
sshkey_cert_check_host(const struct sshkey *key, const char *host,
crypto/openssh/sshkey.c
2491
if ((r = sshkey_cert_check_authority_now(key, 1, 0, wildcard_principals,
crypto/openssh/sshkey.c
2494
if (sshbuf_len(key->cert->critical) != 0) {
crypto/openssh/sshkey.c
2499
(r = sshkey_check_cert_sigtype(key, ca_sign_algorithms)) != 0) {
crypto/openssh/sshkey.c
2533
sshkey_serialize_private_sk(const struct sshkey *key, struct sshbuf *b)
crypto/openssh/sshkey.c
2537
if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0 ||
crypto/openssh/sshkey.c
2538
(r = sshbuf_put_u8(b, key->sk_flags)) != 0 ||
crypto/openssh/sshkey.c
2539
(r = sshbuf_put_stringb(b, key->sk_key_handle)) != 0 ||
crypto/openssh/sshkey.c
2540
(r = sshbuf_put_stringb(b, key->sk_reserved)) != 0)
crypto/openssh/sshkey.c
2547
sshkey_private_serialize_opt(struct sshkey *key, struct sshbuf *buf,
crypto/openssh/sshkey.c
2551
int was_shielded = sshkey_is_shielded(key);
crypto/openssh/sshkey.c
2555
if ((impl = sshkey_impl_from_key(key)) == NULL)
crypto/openssh/sshkey.c
2557
if ((r = sshkey_unshield_private(key)) != 0)
crypto/openssh/sshkey.c
2561
if ((r = sshbuf_put_cstring(b, sshkey_ssh_name(key))) != 0)
crypto/openssh/sshkey.c
2563
if (sshkey_is_cert(key)) {
crypto/openssh/sshkey.c
2564
if (key->cert == NULL ||
crypto/openssh/sshkey.c
2565
sshbuf_len(key->cert->certblob) == 0) {
crypto/openssh/sshkey.c
2569
if ((r = sshbuf_put_stringb(b, key->cert->certblob)) != 0)
crypto/openssh/sshkey.c
2572
if ((r = impl->funcs->serialize_private(key, b, opts)) != 0)
crypto/openssh/sshkey.c
2582
r = sshkey_shield_private(key);
crypto/openssh/sshkey.c
2591
sshkey_private_serialize(struct sshkey *key, struct sshbuf *b)
crypto/openssh/sshkey.c
2593
return sshkey_private_serialize_opt(key, b,
crypto/openssh/sshkey.c
2761
sshkey_ec_validate_private(const EC_KEY *key)
crypto/openssh/sshkey.c
2772
if (EC_GROUP_get_order(EC_KEY_get0_group(key), order, NULL) != 1) {
crypto/openssh/sshkey.c
2776
if (BN_num_bits(EC_KEY_get0_private_key(key)) <=
crypto/openssh/sshkey.c
2785
if (BN_cmp(EC_KEY_get0_private_key(key), tmp) >= 0)
crypto/openssh/sshkey.c
2824
sshkey_dump_ec_key(const EC_KEY *key)
crypto/openssh/sshkey.c
2828
sshkey_dump_ec_point(EC_KEY_get0_group(key),
crypto/openssh/sshkey.c
2829
EC_KEY_get0_public_key(key));
crypto/openssh/sshkey.c
2831
if ((exponent = EC_KEY_get0_private_key(key)) == NULL)
crypto/openssh/sshkey.c
2834
BN_print_fp(stderr, EC_KEY_get0_private_key(key));
crypto/openssh/sshkey.c
2844
u_char *cp, *key = NULL, *pubkeyblob = NULL;
crypto/openssh/sshkey.c
2876
if ((key = calloc(1, keylen + ivlen)) == NULL) {
crypto/openssh/sshkey.c
2883
salt, SALT_LEN, key, keylen + ivlen, rounds) < 0) {
crypto/openssh/sshkey.c
2895
if ((r = cipher_init(&ciphercontext, cipher, key, keylen,
crypto/openssh/sshkey.c
2896
key + keylen, ivlen, 1)) != 0)
crypto/openssh/sshkey.c
2958
if (key != NULL)
crypto/openssh/sshkey.c
2959
freezero(key, keylen + ivlen);
crypto/openssh/sshkey.c
3051
u_char *key = NULL, *salt = NULL, *dp;
crypto/openssh/sshkey.c
3113
if ((key = calloc(1, keylen + ivlen)) == NULL) {
crypto/openssh/sshkey.c
3122
key, keylen + ivlen, rounds) < 0) {
crypto/openssh/sshkey.c
3137
(r = cipher_init(&ciphercontext, cipher, key, keylen,
crypto/openssh/sshkey.c
3138
key + keylen, ivlen, 0)) != 0)
crypto/openssh/sshkey.c
3178
if (key != NULL) {
crypto/openssh/sshkey.c
3179
explicit_bzero(key, keylen + ivlen);
crypto/openssh/sshkey.c
3180
free(key);
crypto/openssh/sshkey.c
3300
sshkey_private_to_blob_pem_pkcs8(struct sshkey *key, struct sshbuf *buf,
crypto/openssh/sshkey.c
3303
int was_shielded = sshkey_is_shielded(key);
crypto/openssh/sshkey.c
3321
if ((r = sshkey_unshield_private(key)) != 0)
crypto/openssh/sshkey.c
3324
switch (key->type) {
crypto/openssh/sshkey.c
3328
success = PEM_write_bio_DSAPrivateKey(bio, key->dsa,
crypto/openssh/sshkey.c
3335
success = EVP_PKEY_set1_DSA(pkey, key->dsa);
crypto/openssh/sshkey.c
3343
EVP_PKEY_get0_EC_KEY(key->pkey),
crypto/openssh/sshkey.c
3346
pkey = key->pkey;
crypto/openssh/sshkey.c
3347
EVP_PKEY_up_ref(key->pkey);
crypto/openssh/sshkey.c
3355
EVP_PKEY_get0_RSA(key->pkey),
crypto/openssh/sshkey.c
3358
pkey = key->pkey;
crypto/openssh/sshkey.c
3359
EVP_PKEY_up_ref(key->pkey);
crypto/openssh/sshkey.c
3387
r = sshkey_shield_private(key);
crypto/openssh/sshkey.c
3400
sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
crypto/openssh/sshkey.c
3404
switch (key->type) {
crypto/openssh/sshkey.c
3419
return sshkey_private_to_blob2(key, blob, passphrase,
crypto/openssh/sshkey.c
3428
return sshkey_private_to_blob2(key, blob, passphrase,
crypto/openssh/sshkey.c
3432
return sshkey_private_to_blob_pem_pkcs8(key, blob,
crypto/openssh/sshkey.c
867
sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b)
crypto/openssh/sshkey.c
871
if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0)
crypto/openssh/sshkey.c
878
to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain,
crypto/openssh/sshkey.c
885
if (key == NULL)
crypto/openssh/sshkey.c
888
type = force_plain ? sshkey_type_plain(key->type) : key->type;
crypto/openssh/sshkey.c
891
if (key->cert == NULL)
crypto/openssh/sshkey.c
893
if (sshbuf_len(key->cert->certblob) == 0)
crypto/openssh/sshkey.c
896
if ((ret = sshbuf_putb(b, key->cert->certblob)) != 0)
crypto/openssh/sshkey.c
90
int sshkey_private_serialize_opt(struct sshkey *key,
crypto/openssh/sshkey.c
903
typename = sshkey_ssh_name_from_type_nid(type, key->ecdsa_nid);
crypto/openssh/sshkey.c
906
return impl->funcs->serialize_public(key, b, opts);
crypto/openssh/sshkey.c
910
sshkey_putb(const struct sshkey *key, struct sshbuf *b)
crypto/openssh/sshkey.c
912
return to_blob_buf(key, b, 0, SSHKEY_SERIALIZE_DEFAULT);
crypto/openssh/sshkey.c
916
sshkey_puts_opts(const struct sshkey *key, struct sshbuf *b,
crypto/openssh/sshkey.c
924
r = to_blob_buf(key, tmp, 0, opts);
crypto/openssh/sshkey.c
932
sshkey_puts(const struct sshkey *key, struct sshbuf *b)
crypto/openssh/sshkey.c
934
return sshkey_puts_opts(key, b, SSHKEY_SERIALIZE_DEFAULT);
crypto/openssh/sshkey.c
938
sshkey_putb_plain(const struct sshkey *key, struct sshbuf *b)
crypto/openssh/sshkey.c
940
return to_blob_buf(key, b, 1, SSHKEY_SERIALIZE_DEFAULT);
crypto/openssh/sshkey.c
944
to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp, int force_plain,
crypto/openssh/sshkey.c
957
if ((ret = to_blob_buf(key, b, force_plain, opts)) != 0)
crypto/openssh/sshkey.c
976
sshkey_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
crypto/openssh/sshkey.c
978
return to_blob(key, blobp, lenp, 0, SSHKEY_SERIALIZE_DEFAULT);
crypto/openssh/sshkey.c
982
sshkey_plain_to_blob(const struct sshkey *key, u_char **blobp, size_t *lenp)
crypto/openssh/sshkey.c
984
return to_blob(key, blobp, lenp, 1, SSHKEY_SERIALIZE_DEFAULT);
crypto/openssh/sshkey.h
306
int sshkey_private_serialize(struct sshkey *key, struct sshbuf *buf);
crypto/openssh/sshkey.h
307
int sshkey_private_serialize_opt(struct sshkey *key, struct sshbuf *buf,
crypto/openssh/sshkey.h
312
int sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
crypto/openssh/sshkey.h
331
int sshkey_private_serialize_maxsign(struct sshkey *key,
crypto/openssh/sshkey.h
343
int sshkey_serialize_sk(const struct sshkey *key, struct sshbuf *b);
crypto/openssh/sshkey.h
345
int sshkey_deserialize_sk(struct sshbuf *b, struct sshkey *key);
crypto/openssh/sshkey.h
346
int sshkey_serialize_private_sk(const struct sshkey *key,
crypto/openssh/sshsig.c
164
sshsig_wrap_sign(struct sshkey *key, const char *hashalg,
crypto/openssh/sshsig.c
193
if (sshkey_type_plain(key->type) == KEY_RSA) {
crypto/openssh/sshsig.c
202
if ((r = signer(key, &sig, &slen,
crypto/openssh/sshsig.c
209
if ((r = sshkey_sign(key, &sig, &slen,
crypto/openssh/sshsig.c
219
(r = sshkey_puts(key, blob)) != 0 ||
crypto/openssh/sshsig.c
311
struct sshkey *key = NULL;
crypto/openssh/sshsig.c
340
if ((r = sshkey_froms(signature, &key)) != 0 ||
crypto/openssh/sshsig.c
370
if (sshkey_type_plain(key->type) == KEY_RSA) {
crypto/openssh/sshsig.c
383
if ((r = sshkey_verify(key, sig, siglen, sshbuf_ptr(toverify),
crypto/openssh/sshsig.c
392
*sign_keyp = key;
crypto/openssh/sshsig.c
393
key = NULL; /* transferred */
crypto/openssh/sshsig.c
401
sshkey_free(key);
crypto/openssh/sshsig.c
448
sshsig_signb(struct sshkey *key, const char *hashalg,
crypto/openssh/sshsig.c
464
if ((r = sshsig_wrap_sign(key, hashalg, sk_provider, sk_pin, b,
crypto/openssh/sshsig.c
576
sshsig_sign_fd(struct sshkey *key, const char *hashalg,
crypto/openssh/sshsig.c
592
if ((r = sshsig_wrap_sign(key, hashalg, sk_provider, sk_pin, b,
crypto/openssh/sshsig.c
743
struct sshkey *key = NULL;
crypto/openssh/sshsig.c
784
if ((key = sshkey_new(KEY_UNSPEC)) == NULL) {
crypto/openssh/sshsig.c
789
if (sshkey_read(key, &cp) != 0) {
crypto/openssh/sshsig.c
804
if (sshkey_read(key, &cp) != 0) {
crypto/openssh/sshsig.c
826
*keyp = key;
crypto/openssh/sshsig.c
827
key = NULL; /* transferred */
crypto/openssh/sshsig.c
833
sshkey_free(key);
crypto/openssh/sshsig.h
37
int sshsig_signb(struct sshkey *key, const char *hashalg,
crypto/openssh/sshsig.h
58
int sshsig_sign_fd(struct sshkey *key, const char *hashalg,
crypto/openssh/umac.c
1005
static uhash_ctx_t uhash_alloc(u_char key[])
crypto/openssh/umac.c
1020
aes_key_setup(key,prf_key);
crypto/openssh/umac.c
1216
struct umac_ctx *umac_new(const u_char key[])
crypto/openssh/umac.c
1233
aes_key_setup(key, prf_key);
crypto/openssh/umac.c
166
#define aes_key_setup(key,int_key) \
crypto/openssh/umac.c
167
AES_set_encrypt_key((const u_char *)(key),UMAC_KEY_LEN*8,int_key)
crypto/openssh/umac.c
174
#define aes_key_setup(key,int_key) \
crypto/openssh/umac.c
175
rijndaelKeySetupEnc((u32 *)(int_key), (const unsigned char *)(key), \
crypto/openssh/umac.c
185
static void kdf(void *bufp, aes_int_key key, UINT8 ndx, int nbytes)
crypto/openssh/umac.c
197
aes_encryption(in_buf, out_buf, key);
crypto/openssh/umac.c
204
aes_encryption(in_buf, out_buf, key);
crypto/openssh/umac.c
545
UINT8 *key;
crypto/openssh/umac.c
547
key = hc->nh_key + hc->bytes_hashed;
crypto/openssh/umac.c
548
nh_aux(key, buf, hc->state, nbytes);
crypto/openssh/umac.c
798
static UINT64 poly64(UINT64 cur, UINT64 key, UINT64 data)
crypto/openssh/umac.c
800
UINT32 key_hi = (UINT32)(key >> 32),
crypto/openssh/umac.c
801
key_lo = (UINT32)key,
crypto/openssh/umac.h
120
struct umac_ctx *umac128_new(const u_char key[]);
crypto/openssh/umac.h
55
struct umac_ctx *umac_new(const u_char key[]);
crypto/openssh/umac.h
91
uhash_ctx_t uhash_alloc(u_char key[16]);
crypto/openssh/xmss_hash.c
102
prf(key, byte_addr, pub_seed, n);
crypto/openssh/xmss_hash.c
113
return core_hash_SHA2(out, 1, key, n, buf, 2*n, n);
crypto/openssh/xmss_hash.c
119
unsigned char key[n];
crypto/openssh/xmss_hash.c
126
prf(key, byte_addr, pub_seed, n);
crypto/openssh/xmss_hash.c
135
return core_hash_SHA2(out, 0, key, n, buf, n, n);
crypto/openssh/xmss_hash.c
38
int core_hash_SHA2(unsigned char *out, const unsigned int type, const unsigned char *key, unsigned int keylen, const unsigned char *in, unsigned long long inlen, unsigned int n){
crypto/openssh/xmss_hash.c
48
buf[i+n] = key[i];
crypto/openssh/xmss_hash.c
71
int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen)
crypto/openssh/xmss_hash.c
73
return core_hash_SHA2(out, 3, key, keylen, in, 32, keylen);
crypto/openssh/xmss_hash.c
79
int h_msg(unsigned char *out, const unsigned char *in, unsigned long long inlen, const unsigned char *key, const unsigned int keylen, const unsigned int n)
crypto/openssh/xmss_hash.c
85
return core_hash_SHA2(out, 2, key, keylen, in, inlen, n);
crypto/openssh/xmss_hash.c
95
unsigned char key[n];
crypto/openssh/xmss_hash.h
16
int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen);
crypto/openssh/xmss_hash.h
17
int h_msg(unsigned char *out,const unsigned char *in,unsigned long long inlen, const unsigned char *key, const unsigned int keylen, const unsigned int n);
crypto/openssl/apps/cms.c
1073
ri = CMS_add1_recipient(cms, x, key, originator, tflags);
crypto/openssl/apps/cms.c
1142
srcms = CMS_sign_receipt(si, signer, key, other, flags);
crypto/openssl/apps/cms.c
1187
key = load_key(keyfile, keyform, 0, passin, e, "signing key");
crypto/openssl/apps/cms.c
1188
if (key == NULL) {
crypto/openssl/apps/cms.c
1199
si = CMS_add1_signer(cms, signer, key, sign_md, tflags);
crypto/openssl/apps/cms.c
1212
EVP_PKEY_free(key);
crypto/openssl/apps/cms.c
1213
key = NULL;
crypto/openssl/apps/cms.c
1246
if (key != NULL) {
crypto/openssl/apps/cms.c
1247
if (!CMS_decrypt_set1_pkey_and_peer(cms, key, recip, originator)) {
crypto/openssl/apps/cms.c
1381
EVP_PKEY_free(key);
crypto/openssl/apps/cms.c
350
EVP_PKEY *key = NULL;
crypto/openssl/apps/cms.c
962
key = load_key(keyfile, keyform, 0, passin, e, "signing key");
crypto/openssl/apps/cms.c
963
if (key == NULL)
crypto/openssl/apps/dgst.c
28
EVP_PKEY *key, unsigned char *sigin, int siglen,
crypto/openssl/apps/dgst.c
31
EVP_PKEY *key, unsigned char *sigin, int siglen,
crypto/openssl/apps/dgst.c
639
EVP_PKEY *key, unsigned char *sigin, int siglen,
crypto/openssl/apps/dgst.c
665
if (key != NULL) {
crypto/openssl/apps/dgst.c
719
EVP_PKEY *key, unsigned char *sigin, int siglen,
crypto/openssl/apps/dgst.c
739
if (key != NULL) {
crypto/openssl/apps/ecparam.c
108
EVP_PKEY *params_key = NULL, *key = NULL;
crypto/openssl/apps/ecparam.c
342
|| EVP_PKEY_keygen(gctx_key, &key) <= 0) {
crypto/openssl/apps/ecparam.c
348
key, OSSL_KEYMGMT_SELECT_ALL,
crypto/openssl/apps/ecparam.c
363
EVP_PKEY_free(key);
crypto/openssl/apps/enc.c
164
unsigned char key[EVP_MAX_KEY_LENGTH], iv[EVP_MAX_IV_LENGTH];
crypto/openssl/apps/enc.c
619
memcpy(key, tmpkeyiv, iklen);
crypto/openssl/apps/enc.c
628
1, key, iv)) {
crypto/openssl/apps/enc.c
664
if (!set_hex(hkey, key, EVP_CIPHER_get_key_length(cipher))) {
crypto/openssl/apps/enc.c
696
if (!EVP_CipherInit_ex(ctx, cipher, e, key,
crypto/openssl/apps/enc.c
755
printf("%02X", key[i]);
crypto/openssl/apps/genpkey.c
114
for (i = 0; params[i].key != NULL; ++i) {
crypto/openssl/apps/genpkey.c
118
BIO_printf(bio_err, " %s%s:%s\n", ishex ? "hex" : "", params[i].key, name);
crypto/openssl/apps/include/s_apps.h
31
int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key,
crypto/openssl/apps/lib/app_params.c
102
printf("%*s%s: ", indent, "", p->key);
crypto/openssl/apps/lib/app_params.c
45
printed_len = BIO_snprintf(buf, bufsz, "%s: ", param->key);
crypto/openssl/apps/lib/app_params.c
79
} else if (pdefs->key == NULL) {
crypto/openssl/apps/lib/app_params.c
87
for (; pdefs->key != NULL; pdefs++) {
crypto/openssl/apps/lib/app_provider.c
111
if ((p.key = strchr(copy, ':')) != NULL) {
crypto/openssl/apps/lib/app_provider.c
112
*p.key++ = '\0';
crypto/openssl/apps/lib/app_provider.c
116
p.key = copy;
crypto/openssl/apps/lib/app_provider.c
120
if (*p.key == '\0') {
crypto/openssl/apps/lib/app_provider.c
130
opt_getprog(), p.name, p.key);
crypto/openssl/apps/lib/app_provider.c
72
char *key;
crypto/openssl/apps/lib/app_provider.c
84
return OSSL_PROVIDER_add_conf_parameter(prov, p->key, p->val);
crypto/openssl/apps/lib/apps.c
3449
for (i = 0; params[i].key != NULL; ++i)
crypto/openssl/apps/lib/http_server.c
416
char *key, *value;
crypto/openssl/apps/lib/http_server.c
439
key = inbuf;
crypto/openssl/apps/lib/http_server.c
440
value = strchr(key, ':');
crypto/openssl/apps/lib/http_server.c
452
&& OPENSSL_strcasecmp(key, "Connection") == 0) {
crypto/openssl/apps/lib/s_cb.c
1023
rv = SSL_check_chain(ssl, exc->cert, exc->key, exc->chain);
crypto/openssl/apps/lib/s_cb.c
1031
|| !SSL_use_PrivateKey(ssl, exc->key)) {
crypto/openssl/apps/lib/s_cb.c
1085
EVP_PKEY_free(exc->key);
crypto/openssl/apps/lib/s_cb.c
1115
exc->key = load_key(exc->keyfile, exc->keyform,
crypto/openssl/apps/lib/s_cb.c
1118
exc->key = load_key(exc->certfile, exc->certform,
crypto/openssl/apps/lib/s_cb.c
1121
if (exc->key == NULL)
crypto/openssl/apps/lib/s_cb.c
155
int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key,
crypto/openssl/apps/lib/s_cb.c
168
if (SSL_CTX_use_PrivateKey(ctx, key) <= 0) {
crypto/openssl/apps/lib/s_cb.c
423
EVP_PKEY *key;
crypto/openssl/apps/lib/s_cb.c
425
if (!SSL_get_peer_tmp_key(s, &key)) {
crypto/openssl/apps/lib/s_cb.c
433
switch (EVP_PKEY_get_id(key)) {
crypto/openssl/apps/lib/s_cb.c
435
BIO_printf(out, "RSA, %d bits\n", EVP_PKEY_get_bits(key));
crypto/openssl/apps/lib/s_cb.c
439
if ((keyname = EVP_PKEY_get0_type_name(key)) == NULL)
crypto/openssl/apps/lib/s_cb.c
445
BIO_printf(out, "DH, %d bits\n", EVP_PKEY_get_bits(key));
crypto/openssl/apps/lib/s_cb.c
452
if (!EVP_PKEY_get_utf8_string_param(key, OSSL_PKEY_PARAM_GROUP_NAME,
crypto/openssl/apps/lib/s_cb.c
455
BIO_printf(out, "ECDH, %s, %d bits\n", name, EVP_PKEY_get_bits(key));
crypto/openssl/apps/lib/s_cb.c
459
BIO_printf(out, "%s, %d bits\n", OBJ_nid2sn(EVP_PKEY_get_id(key)),
crypto/openssl/apps/lib/s_cb.c
460
EVP_PKEY_get_bits(key));
crypto/openssl/apps/lib/s_cb.c
462
EVP_PKEY_free(key);
crypto/openssl/apps/lib/s_cb.c
954
EVP_PKEY *key;
crypto/openssl/apps/list.c
474
for (; gettables->key != NULL; gettables++) {
crypto/openssl/apps/list.c
476
if (OPENSSL_strcasecmp(gettables->key, OSSL_RAND_PARAM_STATE) == 0)
crypto/openssl/apps/list.c
483
params->key = gettables->key;
crypto/openssl/apps/ocsp.c
261
EVP_PKEY *key = NULL, *rkey = NULL;
crypto/openssl/apps/ocsp.c
740
key = load_key(keyfile, FORMAT_UNDEF, 0, NULL, NULL,
crypto/openssl/apps/ocsp.c
742
if (key == NULL)
crypto/openssl/apps/ocsp.c
745
if (!OCSP_request_sign(req, signer, key, NULL,
crypto/openssl/apps/ocsp.c
901
EVP_PKEY_free(key);
crypto/openssl/apps/pkcs12.c
579
EVP_PKEY *key = NULL;
crypto/openssl/apps/pkcs12.c
599
key = load_key(keyname ? keyname : infile,
crypto/openssl/apps/pkcs12.c
602
if (key == NULL)
crypto/openssl/apps/pkcs12.c
616
if (key != NULL) {
crypto/openssl/apps/pkcs12.c
620
if (cert_matches_key(x, key)) {
crypto/openssl/apps/pkcs12.c
701
if (csp_name != NULL && key != NULL)
crypto/openssl/apps/pkcs12.c
702
EVP_PKEY_add1_attr_by_NID(key, NID_ms_csp_name,
crypto/openssl/apps/pkcs12.c
706
if (add_lmk && key != NULL)
crypto/openssl/apps/pkcs12.c
707
EVP_PKEY_add1_attr_by_NID(key, NID_LocalKeySet, 0, NULL, -1);
crypto/openssl/apps/pkcs12.c
732
p12 = PKCS12_create_ex2(cpass, name, key, ee_cert, certs,
crypto/openssl/apps/pkcs12.c
777
EVP_PKEY_free(key);
crypto/openssl/apps/s_client.c
148
unsigned char *key;
crypto/openssl/apps/s_client.c
172
key = OPENSSL_hexstr2buf(psk_key, &key_len);
crypto/openssl/apps/s_client.c
173
if (key == NULL) {
crypto/openssl/apps/s_client.c
182
OPENSSL_free(key);
crypto/openssl/apps/s_client.c
1833
key = load_key(key_file, key_format, 0, pass, e,
crypto/openssl/apps/s_client.c
1835
if (key == NULL)
crypto/openssl/apps/s_client.c
186
memcpy(psk, key, key_len);
crypto/openssl/apps/s_client.c
187
OPENSSL_free(key);
crypto/openssl/apps/s_client.c
2118
if (!set_cert_key_stuff(ctx, cert, key, chain, build_chain))
crypto/openssl/apps/s_client.c
216
unsigned char *key = OPENSSL_hexstr2buf(psk_key, &key_len);
crypto/openssl/apps/s_client.c
218
if (key == NULL) {
crypto/openssl/apps/s_client.c
228
OPENSSL_free(key);
crypto/openssl/apps/s_client.c
234
|| !SSL_SESSION_set1_master_key(usesess, key, key_len)
crypto/openssl/apps/s_client.c
237
OPENSSL_free(key);
crypto/openssl/apps/s_client.c
240
OPENSSL_free(key);
crypto/openssl/apps/s_client.c
3391
EVP_PKEY_free(key);
crypto/openssl/apps/s_client.c
932
EVP_PKEY *key = NULL;
crypto/openssl/apps/s_server.c
135
unsigned char *key;
crypto/openssl/apps/s_server.c
169
key = OPENSSL_hexstr2buf(psk_key, &key_len);
crypto/openssl/apps/s_server.c
170
if (key == NULL) {
crypto/openssl/apps/s_server.c
179
OPENSSL_free(key);
crypto/openssl/apps/s_server.c
183
memcpy(psk, key, key_len);
crypto/openssl/apps/s_server.c
184
OPENSSL_free(key);
crypto/openssl/apps/s_server.c
202
unsigned char *key;
crypto/openssl/apps/s_server.c
220
key = OPENSSL_hexstr2buf(psk_key, &key_len);
crypto/openssl/apps/s_server.c
221
if (key == NULL) {
crypto/openssl/apps/s_server.c
231
OPENSSL_free(key);
crypto/openssl/apps/s_server.c
237
|| !SSL_SESSION_set1_master_key(tmpsess, key, key_len)
crypto/openssl/apps/s_server.c
240
OPENSSL_free(key);
crypto/openssl/apps/s_server.c
244
OPENSSL_free(key);
crypto/openssl/apps/smime.c
199
EVP_PKEY *key = NULL;
crypto/openssl/apps/smime.c
557
key = load_key(keyfile, keyform, 0, passin, e, "signing key");
crypto/openssl/apps/smime.c
558
if (key == NULL)
crypto/openssl/apps/smime.c
650
key = load_key(keyfile, keyform, 0, passin, e, "signing key");
crypto/openssl/apps/smime.c
651
if (key == NULL)
crypto/openssl/apps/smime.c
654
if (!PKCS7_sign_add_signer(p7, signer, key, sign_md, flags))
crypto/openssl/apps/smime.c
658
EVP_PKEY_free(key);
crypto/openssl/apps/smime.c
659
key = NULL;
crypto/openssl/apps/smime.c
675
if (!PKCS7_decrypt(p7, key, recip, out, flags)) {
crypto/openssl/apps/smime.c
735
EVP_PKEY_free(key);
crypto/openssl/apps/speed.c
1003
unsigned char *key = tempargs->key;
crypto/openssl/apps/speed.c
1028
if (!EVP_CipherInit_ex(ctx, NULL, NULL, key, aead_iv, -1)) {
crypto/openssl/apps/speed.c
1074
unsigned char *key = tempargs->key;
crypto/openssl/apps/speed.c
1101
if (!EVP_CipherInit_ex(ctx, NULL, NULL, key, aead_iv, -1)) {
crypto/openssl/apps/speed.c
1785
EVP_PKEY *key = NULL;
crypto/openssl/apps/speed.c
1847
|| EVP_PKEY_keygen(kctx, &key) <= 0) {
crypto/openssl/apps/speed.c
1850
key = NULL;
crypto/openssl/apps/speed.c
1853
return key;
crypto/openssl/apps/speed.c
3059
loopargs[k].key = app_malloc(keylen, "evp_cipher key");
crypto/openssl/apps/speed.c
3060
EVP_CIPHER_CTX_rand_key(loopargs[k].ctx, loopargs[k].key);
crypto/openssl/apps/speed.c
3064
loopargs[k].key, iv, -1)) {
crypto/openssl/apps/speed.c
3099
loopargs[k].key, aead_iv, -1)) {
crypto/openssl/apps/speed.c
3177
OPENSSL_clear_free(loopargs[k].key, keylen);
crypto/openssl/apps/speed.c
5157
unsigned char *inp = NULL, *out = NULL, *key, no_key[32], no_iv[16];
crypto/openssl/apps/speed.c
5177
key = app_malloc(keylen, "evp_cipher key");
crypto/openssl/apps/speed.c
5178
if (EVP_CIPHER_CTX_rand_key(ctx, key) <= 0)
crypto/openssl/apps/speed.c
5180
if (!EVP_EncryptInit_ex(ctx, NULL, NULL, key, NULL))
crypto/openssl/apps/speed.c
5182
OPENSSL_clear_free(key, keylen);
crypto/openssl/apps/speed.c
609
unsigned char *key;
crypto/openssl/apps/speed.c
910
const unsigned char *key,
crypto/openssl/apps/speed.c
934
if (!EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, 1)) {
crypto/openssl/crypto/aes/aes_cbc.c
21
size_t len, const AES_KEY *key,
crypto/openssl/crypto/aes/aes_cbc.c
26
CRYPTO_cbc128_encrypt(in, out, len, key, ivec,
crypto/openssl/crypto/aes/aes_cbc.c
29
CRYPTO_cbc128_decrypt(in, out, len, key, ivec,
crypto/openssl/crypto/aes/aes_cfb.c
26
size_t length, const AES_KEY *key,
crypto/openssl/crypto/aes/aes_cfb.c
30
CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/aes/aes_cfb.c
36
size_t length, const AES_KEY *key,
crypto/openssl/crypto/aes/aes_cfb.c
39
CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/aes/aes_cfb.c
44
size_t length, const AES_KEY *key,
crypto/openssl/crypto/aes/aes_cfb.c
47
CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/aes/aes_core.c
3046
AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
3053
if (!userKey || !key)
crypto/openssl/crypto/aes/aes_core.c
3058
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
3061
key->rounds = 10;
crypto/openssl/crypto/aes/aes_core.c
3063
key->rounds = 12;
crypto/openssl/crypto/aes/aes_core.c
3065
key->rounds = 14;
crypto/openssl/crypto/aes/aes_core.c
3129
AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
3137
status = AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aes/aes_core.c
3141
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
3144
for (i = 0, j = 4 * (key->rounds); i < j; i += 4, j -= 4) {
crypto/openssl/crypto/aes/aes_core.c
3159
for (i = 1; i < (key->rounds); i++) {
crypto/openssl/crypto/aes/aes_core.c
3174
const AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
3183
assert(in && out && key);
crypto/openssl/crypto/aes/aes_core.c
3184
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
3240
if (key->rounds > 10) {
crypto/openssl/crypto/aes/aes_core.c
3251
if (key->rounds > 12) {
crypto/openssl/crypto/aes/aes_core.c
3264
rk += key->rounds << 2;
crypto/openssl/crypto/aes/aes_core.c
3269
r = key->rounds >> 1;
crypto/openssl/crypto/aes/aes_core.c
3306
const AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
3315
assert(in && out && key);
crypto/openssl/crypto/aes/aes_core.c
3316
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
3372
if (key->rounds > 10) {
crypto/openssl/crypto/aes/aes_core.c
3383
if (key->rounds > 12) {
crypto/openssl/crypto/aes/aes_core.c
3396
rk += key->rounds << 2;
crypto/openssl/crypto/aes/aes_core.c
3401
r = key->rounds >> 1;
crypto/openssl/crypto/aes/aes_core.c
3486
AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
3492
if (!userKey || !key)
crypto/openssl/crypto/aes/aes_core.c
3497
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
3500
key->rounds = 10;
crypto/openssl/crypto/aes/aes_core.c
3502
key->rounds = 12;
crypto/openssl/crypto/aes/aes_core.c
3504
key->rounds = 14;
crypto/openssl/crypto/aes/aes_core.c
3568
AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
3576
status = AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aes/aes_core.c
3580
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
3583
for (i = 0, j = 4 * (key->rounds); i < j; i += 4, j -= 4) {
crypto/openssl/crypto/aes/aes_core.c
3598
for (i = 1; i < (key->rounds); i++) {
crypto/openssl/crypto/aes/aes_core.c
599
static void KeyExpansion(const unsigned char *key, u64 *w,
crypto/openssl/crypto/aes/aes_core.c
607
memcpy(w, key, nk * 4);
crypto/openssl/crypto/aes/aes_core.c
632
AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
636
if (!userKey || !key)
crypto/openssl/crypto/aes/aes_core.c
641
rk = (u64 *)key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
644
key->rounds = 10;
crypto/openssl/crypto/aes/aes_core.c
646
key->rounds = 12;
crypto/openssl/crypto/aes/aes_core.c
648
key->rounds = 14;
crypto/openssl/crypto/aes/aes_core.c
650
KeyExpansion(userKey, rk, key->rounds, bits / 32);
crypto/openssl/crypto/aes/aes_core.c
658
AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
660
return AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aes/aes_core.c
668
const AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
672
assert(in && out && key);
crypto/openssl/crypto/aes/aes_core.c
673
rk = (u64 *)key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
675
Cipher(in, out, rk, key->rounds);
crypto/openssl/crypto/aes/aes_core.c
683
const AES_KEY *key)
crypto/openssl/crypto/aes/aes_core.c
687
assert(in && out && key);
crypto/openssl/crypto/aes/aes_core.c
688
rk = (u64 *)key->rd_key;
crypto/openssl/crypto/aes/aes_core.c
690
InvCipher(in, out, rk, key->rounds);
crypto/openssl/crypto/aes/aes_ecb.c
22
const AES_KEY *key, const int enc)
crypto/openssl/crypto/aes/aes_ecb.c
25
assert(in && out && key);
crypto/openssl/crypto/aes/aes_ecb.c
29
AES_encrypt(in, out, key);
crypto/openssl/crypto/aes/aes_ecb.c
31
AES_decrypt(in, out, key);
crypto/openssl/crypto/aes/aes_ige.c
124
(unsigned char *)outp->data, key);
crypto/openssl/crypto/aes/aes_ige.c
149
(unsigned char *)tmp.data, key);
crypto/openssl/crypto/aes/aes_ige.c
181
size_t length, const AES_KEY *key,
crypto/openssl/crypto/aes/aes_ige.c
194
OPENSSL_assert(in && out && key && ivec);
crypto/openssl/crypto/aes/aes_ige.c
210
AES_encrypt(out, out, key);
crypto/openssl/crypto/aes/aes_ige.c
236
AES_encrypt(out, out, key);
crypto/openssl/crypto/aes/aes_ige.c
266
AES_decrypt(tmp, out, key);
crypto/openssl/crypto/aes/aes_ige.c
284
AES_decrypt(tmp, out, key);
crypto/openssl/crypto/aes/aes_ige.c
49
size_t length, const AES_KEY *key,
crypto/openssl/crypto/aes/aes_ige.c
58
OPENSSL_assert(in && out && key && ivec);
crypto/openssl/crypto/aes/aes_ige.c
74
(unsigned char *)outp->data, key);
crypto/openssl/crypto/aes/aes_ige.c
98
(unsigned char *)tmp2.data, key);
crypto/openssl/crypto/aes/aes_ofb.c
20
size_t length, const AES_KEY *key,
crypto/openssl/crypto/aes/aes_ofb.c
23
CRYPTO_ofb128_encrypt(in, out, length, key, ivec, num,
crypto/openssl/crypto/aes/aes_wrap.c
20
int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
crypto/openssl/crypto/aes/aes_wrap.c
24
return CRYPTO_128_wrap(key, iv, out, in, inlen, (block128_f)AES_encrypt);
crypto/openssl/crypto/aes/aes_wrap.c
27
int AES_unwrap_key(AES_KEY *key, const unsigned char *iv,
crypto/openssl/crypto/aes/aes_wrap.c
31
return CRYPTO_128_unwrap(key, iv, out, in, inlen,
crypto/openssl/crypto/aes/aes_x86core.c
480
AES_KEY *key)
crypto/openssl/crypto/aes/aes_x86core.c
487
if (!userKey || !key)
crypto/openssl/crypto/aes/aes_x86core.c
492
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_x86core.c
495
key->rounds = 10;
crypto/openssl/crypto/aes/aes_x86core.c
497
key->rounds = 12;
crypto/openssl/crypto/aes/aes_x86core.c
499
key->rounds = 14;
crypto/openssl/crypto/aes/aes_x86core.c
563
AES_KEY *key)
crypto/openssl/crypto/aes/aes_x86core.c
571
status = AES_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aes/aes_x86core.c
575
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_x86core.c
578
for (i = 0, j = 4 * (key->rounds); i < j; i += 4, j -= 4) {
crypto/openssl/crypto/aes/aes_x86core.c
593
for (i = 1; i < (key->rounds); i++) {
crypto/openssl/crypto/aes/aes_x86core.c
631
const AES_KEY *key)
crypto/openssl/crypto/aes/aes_x86core.c
638
assert(in && out && key);
crypto/openssl/crypto/aes/aes_x86core.c
639
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_x86core.c
689
for (rk += 8, r = key->rounds - 2; r > 0; rk += 4, r--) {
crypto/openssl/crypto/aes/aes_x86core.c
748
const AES_KEY *key)
crypto/openssl/crypto/aes/aes_x86core.c
755
assert(in && out && key);
crypto/openssl/crypto/aes/aes_x86core.c
756
rk = key->rd_key;
crypto/openssl/crypto/aes/aes_x86core.c
814
for (rk += 8, r = key->rounds - 2; r > 0; rk += 4, r--) {
crypto/openssl/crypto/aria/aria.c
1017
const ARIA_KEY *key)
crypto/openssl/crypto/aria/aria.c
1019
assert(in != NULL && out != NULL && key != NULL);
crypto/openssl/crypto/aria/aria.c
1020
do_encrypt(out, in, key->rounds, key->rd_key);
crypto/openssl/crypto/aria/aria.c
1029
ARIA_KEY *key)
crypto/openssl/crypto/aria/aria.c
1034
if (!userKey || !key)
crypto/openssl/crypto/aria/aria.c
1041
key->rounds = 12;
crypto/openssl/crypto/aria/aria.c
1049
key->rounds = 14;
crypto/openssl/crypto/aria/aria.c
1058
key->rounds = 16;
crypto/openssl/crypto/aria/aria.c
1073
rot19r(&key->rd_key[0], &w0, &w1);
crypto/openssl/crypto/aria/aria.c
1074
rot19r(&key->rd_key[1], &w1, &w2);
crypto/openssl/crypto/aria/aria.c
1075
rot19r(&key->rd_key[2], &w2, &w3);
crypto/openssl/crypto/aria/aria.c
1076
rot19r(&key->rd_key[3], &w3, &w0);
crypto/openssl/crypto/aria/aria.c
1078
rot31r(&key->rd_key[4], &w0, &w1);
crypto/openssl/crypto/aria/aria.c
1079
rot31r(&key->rd_key[5], &w1, &w2);
crypto/openssl/crypto/aria/aria.c
1080
rot31r(&key->rd_key[6], &w2, &w3);
crypto/openssl/crypto/aria/aria.c
1081
rot31r(&key->rd_key[7], &w3, &w0);
crypto/openssl/crypto/aria/aria.c
1083
rot61l(&key->rd_key[8], &w0, &w1);
crypto/openssl/crypto/aria/aria.c
1084
rot61l(&key->rd_key[9], &w1, &w2);
crypto/openssl/crypto/aria/aria.c
1085
rot61l(&key->rd_key[10], &w2, &w3);
crypto/openssl/crypto/aria/aria.c
1086
rot61l(&key->rd_key[11], &w3, &w0);
crypto/openssl/crypto/aria/aria.c
1088
rot31l(&key->rd_key[12], &w0, &w1);
crypto/openssl/crypto/aria/aria.c
1089
if (key->rounds > 12) {
crypto/openssl/crypto/aria/aria.c
1090
rot31l(&key->rd_key[13], &w1, &w2);
crypto/openssl/crypto/aria/aria.c
1091
rot31l(&key->rd_key[14], &w2, &w3);
crypto/openssl/crypto/aria/aria.c
1093
if (key->rounds > 14) {
crypto/openssl/crypto/aria/aria.c
1094
rot31l(&key->rd_key[15], &w3, &w0);
crypto/openssl/crypto/aria/aria.c
1095
rot19l(&key->rd_key[16], &w0, &w1);
crypto/openssl/crypto/aria/aria.c
1105
ARIA_KEY *key)
crypto/openssl/crypto/aria/aria.c
1112
key->rounds = rounds;
crypto/openssl/crypto/aria/aria.c
1113
memcpy(&key->rd_key[0], &ek.rd_key[rounds], sizeof(key->rd_key[0]));
crypto/openssl/crypto/aria/aria.c
1115
a(&key->rd_key[i], &ek.rd_key[rounds - i]);
crypto/openssl/crypto/aria/aria.c
1116
memcpy(&key->rd_key[rounds], &ek.rd_key[0], sizeof(key->rd_key[rounds]));
crypto/openssl/crypto/aria/aria.c
421
const ARIA_KEY *key)
crypto/openssl/crypto/aria/aria.c
427
if (in == NULL || out == NULL || key == NULL) {
crypto/openssl/crypto/aria/aria.c
431
rk = key->rd_key;
crypto/openssl/crypto/aria/aria.c
432
Nr = key->rounds;
crypto/openssl/crypto/aria/aria.c
472
ARIA_KEY *key)
crypto/openssl/crypto/aria/aria.c
481
if (userKey == NULL || key == NULL) {
crypto/openssl/crypto/aria/aria.c
488
rk = key->rd_key;
crypto/openssl/crypto/aria/aria.c
489
key->rounds = Nr;
crypto/openssl/crypto/aria/aria.c
602
ARIA_KEY *key)
crypto/openssl/crypto/aria/aria.c
610
const int r = ossl_aria_set_encrypt_key(userKey, bits, key);
crypto/openssl/crypto/aria/aria.c
616
rk_head = key->rd_key;
crypto/openssl/crypto/aria/aria.c
617
rk_tail = rk_head + key->rounds;
crypto/openssl/crypto/armcap.c
87
static unsigned long getauxval(unsigned long key)
crypto/openssl/crypto/armcap.c
91
if (elf_aux_info((int)key, &val, sizeof(val)) != 0)
crypto/openssl/crypto/asn1/p5_scrypt.c
244
unsigned char *salt, key[EVP_MAX_KEY_LENGTH];
crypto/openssl/crypto/asn1/p5_scrypt.c
297
if (EVP_PBE_scrypt_ex(pass, passlen, salt, saltlen, N, r, p, 0, key,
crypto/openssl/crypto/asn1/p5_scrypt.c
301
rv = EVP_CipherInit_ex(ctx, NULL, NULL, key, NULL, en_de);
crypto/openssl/crypto/asn1/p5_scrypt.c
304
OPENSSL_cleanse(key, keylen);
crypto/openssl/crypto/asn1/p8_pkey.c
20
PKCS8_PRIV_KEY_INFO *key;
crypto/openssl/crypto/asn1/p8_pkey.c
26
key = (PKCS8_PRIV_KEY_INFO *)*pval;
crypto/openssl/crypto/asn1/p8_pkey.c
27
if (key->pkey)
crypto/openssl/crypto/asn1/p8_pkey.c
28
OPENSSL_cleanse(key->pkey->data, key->pkey->length);
crypto/openssl/crypto/asn1/p8_pkey.c
32
key = (PKCS8_PRIV_KEY_INFO *)*pval;
crypto/openssl/crypto/asn1/p8_pkey.c
33
version = ASN1_INTEGER_get(key->version);
crypto/openssl/crypto/asn1/p8_pkey.c
36
if (version == 0 && key->kpub != NULL)
crypto/openssl/crypto/async/async_local.h
50
const void *key;
crypto/openssl/crypto/async/async_wait.c
139
int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key)
crypto/openssl/crypto/async/async_wait.c
152
if (curr->key == key) {
crypto/openssl/crypto/async/async_wait.c
33
curr->cleanup(ctx, curr->key, curr->fd, curr->custom_data);
crypto/openssl/crypto/async/async_wait.c
44
int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,
crypto/openssl/crypto/async/async_wait.c
54
fdlookup->key = key;
crypto/openssl/crypto/async/async_wait.c
65
int ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key,
crypto/openssl/crypto/async/async_wait.c
77
if (curr->key == key) {
crypto/openssl/crypto/bf/bf_ecb.c
32
const BF_KEY *key, int encrypt)
crypto/openssl/crypto/bf/bf_ecb.c
41
BF_encrypt(d, key);
crypto/openssl/crypto/bf/bf_ecb.c
43
BF_decrypt(d, key);
crypto/openssl/crypto/bf/bf_enc.c
30
void BF_encrypt(BF_LONG *data, const BF_KEY *key)
crypto/openssl/crypto/bf/bf_enc.c
35
p = key->P;
crypto/openssl/crypto/bf/bf_enc.c
36
s = &(key->S[0]);
crypto/openssl/crypto/bf/bf_enc.c
69
void BF_decrypt(BF_LONG *data, const BF_KEY *key)
crypto/openssl/crypto/bf/bf_enc.c
74
p = key->P;
crypto/openssl/crypto/bf/bf_enc.c
75
s = &(key->S[0]);
crypto/openssl/crypto/bf/bf_skey.c
22
void BF_set_key(BF_KEY *key, int len, const unsigned char *data)
crypto/openssl/crypto/bf/bf_skey.c
28
memcpy(key, &bf_init, sizeof(BF_KEY));
crypto/openssl/crypto/bf/bf_skey.c
29
p = key->P;
crypto/openssl/crypto/bf/bf_skey.c
62
BF_encrypt(in, key);
crypto/openssl/crypto/bf/bf_skey.c
67
p = key->S;
crypto/openssl/crypto/bf/bf_skey.c
69
BF_encrypt(in, key);
crypto/openssl/crypto/bsearch.c
13
const void *ossl_bsearch(const void *key, const void *base, int num,
crypto/openssl/crypto/bsearch.c
28
c = (*cmp)(key, p);
crypto/openssl/crypto/bsearch.c
39
while (i > 0 && (*cmp)(key, &(base_[(i - 1) * size])) == 0)
crypto/openssl/crypto/camellia/cmll_cbc.c
20
size_t len, const CAMELLIA_KEY *key,
crypto/openssl/crypto/camellia/cmll_cbc.c
25
CRYPTO_cbc128_encrypt(in, out, len, key, ivec,
crypto/openssl/crypto/camellia/cmll_cbc.c
28
CRYPTO_cbc128_decrypt(in, out, len, key, ivec,
crypto/openssl/crypto/camellia/cmll_cfb.c
26
size_t length, const CAMELLIA_KEY *key,
crypto/openssl/crypto/camellia/cmll_cfb.c
30
CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/camellia/cmll_cfb.c
36
size_t length, const CAMELLIA_KEY *key,
crypto/openssl/crypto/camellia/cmll_cfb.c
39
CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/camellia/cmll_cfb.c
44
size_t length, const CAMELLIA_KEY *key,
crypto/openssl/crypto/camellia/cmll_cfb.c
47
CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/camellia/cmll_ctr.c
20
size_t length, const CAMELLIA_KEY *key,
crypto/openssl/crypto/camellia/cmll_ctr.c
26
CRYPTO_ctr128_encrypt(in, out, length, key, ivec, ecount_buf, num,
crypto/openssl/crypto/camellia/cmll_ecb.c
20
const CAMELLIA_KEY *key, const int enc)
crypto/openssl/crypto/camellia/cmll_ecb.c
23
Camellia_encrypt(in, out, key);
crypto/openssl/crypto/camellia/cmll_ecb.c
25
Camellia_decrypt(in, out, key);
crypto/openssl/crypto/camellia/cmll_misc.c
21
CAMELLIA_KEY *key)
crypto/openssl/crypto/camellia/cmll_misc.c
23
if (!userKey || !key)
crypto/openssl/crypto/camellia/cmll_misc.c
27
key->grand_rounds = Camellia_Ekeygen(bits, userKey, key->u.rd_key);
crypto/openssl/crypto/camellia/cmll_misc.c
32
const CAMELLIA_KEY *key)
crypto/openssl/crypto/camellia/cmll_misc.c
34
Camellia_EncryptBlock_Rounds(key->grand_rounds, in, key->u.rd_key, out);
crypto/openssl/crypto/camellia/cmll_misc.c
38
const CAMELLIA_KEY *key)
crypto/openssl/crypto/camellia/cmll_misc.c
40
Camellia_DecryptBlock_Rounds(key->grand_rounds, in, key->u.rd_key, out);
crypto/openssl/crypto/camellia/cmll_ofb.c
25
size_t length, const CAMELLIA_KEY *key,
crypto/openssl/crypto/camellia/cmll_ofb.c
28
CRYPTO_ofb128_encrypt(in, out, length, key, ivec, num,
crypto/openssl/crypto/cast/c_enc.c
19
void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key)
crypto/openssl/crypto/cast/c_enc.c
24
k = &(key->data[0]);
crypto/openssl/crypto/cast/c_enc.c
40
if (!key->short_key) {
crypto/openssl/crypto/cast/c_enc.c
51
void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key)
crypto/openssl/crypto/cast/c_enc.c
56
k = &(key->data[0]);
crypto/openssl/crypto/cast/c_enc.c
60
if (!key->short_key) {
crypto/openssl/crypto/cast/c_skey.c
120
key->data[i * 2] = k[i];
crypto/openssl/crypto/cast/c_skey.c
121
key->data[i * 2 + 1] = ((k[i + 16]) + 16) & 0x1f;
crypto/openssl/crypto/cast/c_skey.c
32
void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data)
crypto/openssl/crypto/cast/c_skey.c
48
key->short_key = 1;
crypto/openssl/crypto/cast/c_skey.c
50
key->short_key = 0;
crypto/openssl/crypto/cast/cast_local.h
103
#define E_CAST(n, key, L, R, OP1, OP2, OP3) \
crypto/openssl/crypto/cast/cast_local.h
106
t = (key[n * 2] OP1 R) & 0xffffffffL; \
crypto/openssl/crypto/cast/cast_local.h
107
i = key[n * 2 + 1]; \
crypto/openssl/crypto/cast/cast_local.h
126
#define E_CAST(n, key, L, R, OP1, OP2, OP3) \
crypto/openssl/crypto/cast/cast_local.h
130
w = (key[n * 2] OP1 R) & 0xffffffffL; \
crypto/openssl/crypto/cast/cast_local.h
131
i = key[n * 2 + 1]; \
crypto/openssl/crypto/cast/cast_local.h
148
#define E_CAST(n, key, L, R, OP1, OP2, OP3) \
crypto/openssl/crypto/cast/cast_local.h
151
t = (key[n * 2] OP1 R) & 0xffffffff; \
crypto/openssl/crypto/cast/cast_local.h
152
t = ROTL(t, (key[n * 2 + 1])); \
crypto/openssl/crypto/chacha/chacha_enc.c
119
input[4] = key[0];
crypto/openssl/crypto/chacha/chacha_enc.c
120
input[5] = key[1];
crypto/openssl/crypto/chacha/chacha_enc.c
121
input[6] = key[2];
crypto/openssl/crypto/chacha/chacha_enc.c
122
input[7] = key[3];
crypto/openssl/crypto/chacha/chacha_enc.c
123
input[8] = key[4];
crypto/openssl/crypto/chacha/chacha_enc.c
124
input[9] = key[5];
crypto/openssl/crypto/chacha/chacha_enc.c
125
input[10] = key[6];
crypto/openssl/crypto/chacha/chacha_enc.c
126
input[11] = key[7];
crypto/openssl/crypto/chacha/chacha_enc.c
95
const unsigned int key[8], const unsigned int counter[4])
crypto/openssl/crypto/chacha/chacha_enc.c
98
const unsigned int key[8], const unsigned int counter[4])
crypto/openssl/crypto/chacha/chacha_ppc.c
18
size_t len, const unsigned int key[8],
crypto/openssl/crypto/chacha/chacha_ppc.c
21
size_t len, const unsigned int key[8],
crypto/openssl/crypto/chacha/chacha_ppc.c
24
size_t len, const unsigned int key[8],
crypto/openssl/crypto/chacha/chacha_ppc.c
27
size_t len, const unsigned int key[8],
crypto/openssl/crypto/chacha/chacha_ppc.c
30
size_t len, const unsigned int key[8],
crypto/openssl/crypto/chacha/chacha_ppc.c
35
? ChaCha20_ctr32_vsx_p10(out, inp, len, key, counter)
crypto/openssl/crypto/chacha/chacha_ppc.c
39
? ChaCha20_ctr32_vsx(out, inp, len, key, counter)
crypto/openssl/crypto/chacha/chacha_ppc.c
41
? ChaCha20_ctr32_vmx(out, inp, len, key, counter)
crypto/openssl/crypto/chacha/chacha_ppc.c
42
: ChaCha20_ctr32_int(out, inp, len, key, counter);
crypto/openssl/crypto/chacha/chacha_riscv.c
44
size_t len, const unsigned int key[8],
crypto/openssl/crypto/chacha/chacha_riscv.c
48
size_t len, const unsigned int key[8],
crypto/openssl/crypto/chacha/chacha_riscv.c
52
const unsigned int key[8], const unsigned int counter[4])
crypto/openssl/crypto/chacha/chacha_riscv.c
58
ChaCha20_ctr32_v_zbb_zvkb(out, inp, len, key, counter);
crypto/openssl/crypto/chacha/chacha_riscv.c
60
ChaCha20_ctr32_v_zbb(out, inp, len, key, counter);
crypto/openssl/crypto/chacha/chacha_riscv.c
63
ChaCha20_ctr32_c(out, inp, len, key, counter);
crypto/openssl/crypto/cmac/cmac.c
111
int ossl_cmac_init(CMAC_CTX *ctx, const void *key, size_t keylen,
crypto/openssl/crypto/cmac/cmac.c
119
if (!key && !cipher && !impl && keylen == 0) {
crypto/openssl/crypto/cmac/cmac.c
145
if (key != NULL) {
crypto/openssl/crypto/cmac/cmac.c
154
if (!EVP_EncryptInit_ex2(ctx->cctx, NULL, key, zero_iv, param))
crypto/openssl/crypto/cmac/cmac.c
173
int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,
crypto/openssl/crypto/cmac/cmac.c
176
return ossl_cmac_init(ctx, key, keylen, cipher, impl, NULL);
crypto/openssl/crypto/cmp/cmp_ctx.c
585
#define EVP_PKEY_invalid(key) 0
crypto/openssl/crypto/cms/cms_asn1.c
203
OPENSSL_clear_free(kekri->key, kekri->keylen);
crypto/openssl/crypto/cms/cms_asn1.c
88
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_enc.c
127
if (!enc || !ec->key) {
crypto/openssl/crypto/cms/cms_enc.c
135
if (!ec->key) {
crypto/openssl/crypto/cms/cms_enc.c
136
ec->key = tkey;
crypto/openssl/crypto/cms/cms_enc.c
157
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_enc.c
158
ec->key = tkey;
crypto/openssl/crypto/cms/cms_enc.c
166
if (EVP_CipherInit_ex(ctx, NULL, NULL, ec->key, piv, enc) <= 0) {
crypto/openssl/crypto/cms/cms_enc.c
199
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_enc.c
200
ec->key = NULL;
crypto/openssl/crypto/cms/cms_enc.c
211
const unsigned char *key, size_t keylen,
crypto/openssl/crypto/cms/cms_enc.c
215
if (key) {
crypto/openssl/crypto/cms/cms_enc.c
216
if ((ec->key = OPENSSL_malloc(keylen)) == NULL)
crypto/openssl/crypto/cms/cms_enc.c
218
memcpy(ec->key, key, keylen);
crypto/openssl/crypto/cms/cms_enc.c
227
const unsigned char *key, size_t keylen)
crypto/openssl/crypto/cms/cms_enc.c
231
if (!key || !keylen) {
crypto/openssl/crypto/cms/cms_enc.c
256
return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen,
crypto/openssl/crypto/cms/cms_enc.c
60
if (ec->key != NULL)
crypto/openssl/crypto/cms/cms_env.c
1129
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_env.c
1130
ec->key = NULL;
crypto/openssl/crypto/cms/cms_env.c
540
if (EVP_PKEY_encrypt(pctx, NULL, &eklen, ec->key, ec->keylen) <= 0)
crypto/openssl/crypto/cms/cms_env.c
547
if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0)
crypto/openssl/crypto/cms/cms_env.c
637
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_env.c
638
ec->key = ek;
crypto/openssl/crypto/cms/cms_env.c
689
unsigned char *key, size_t keylen,
crypto/openssl/crypto/cms/cms_env.c
769
kekri->key = key;
crypto/openssl/crypto/cms/cms_env.c
826
unsigned char *key, size_t keylen)
crypto/openssl/crypto/cms/cms_env.c
835
kekri->key = key;
crypto/openssl/crypto/cms/cms_env.c
882
if (kekri->key == NULL) {
crypto/openssl/crypto/cms/cms_env.c
905
if (!EVP_EncryptInit_ex(ctx, cipher, NULL, kekri->key, NULL)
crypto/openssl/crypto/cms/cms_env.c
906
|| !EVP_EncryptUpdate(ctx, wkey, &wkeylen, ec->key, ec->keylen)
crypto/openssl/crypto/cms/cms_env.c
951
if (!kekri->key) {
crypto/openssl/crypto/cms/cms_env.c
985
if (!EVP_DecryptInit_ex(ctx, cipher, NULL, kekri->key, NULL)
crypto/openssl/crypto/cms/cms_env.c
995
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_env.c
996
ec->key = ukey;
crypto/openssl/crypto/cms/cms_kari.c
272
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_kari.c
273
ec->key = cek;
crypto/openssl/crypto/cms/cms_kari.c
525
if (!cms_kek_cipher(&enckey, &enckeylen, ec->key, ec->keylen,
crypto/openssl/crypto/cms/cms_local.h
133
unsigned char *key;
crypto/openssl/crypto/cms/cms_local.h
223
unsigned char *key;
crypto/openssl/crypto/cms/cms_local.h
441
const unsigned char *key, size_t keylen,
crypto/openssl/crypto/cms/cms_pwri.c
316
unsigned char *key = NULL;
crypto/openssl/crypto/cms/cms_pwri.c
382
if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx))
crypto/openssl/crypto/cms/cms_pwri.c
385
key = OPENSSL_malloc(keylen);
crypto/openssl/crypto/cms/cms_pwri.c
387
if (key == NULL)
crypto/openssl/crypto/cms/cms_pwri.c
390
if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx))
crypto/openssl/crypto/cms/cms_pwri.c
392
pwri->encryptedKey->data = key;
crypto/openssl/crypto/cms/cms_pwri.c
395
key = OPENSSL_malloc(pwri->encryptedKey->length);
crypto/openssl/crypto/cms/cms_pwri.c
396
if (key == NULL)
crypto/openssl/crypto/cms/cms_pwri.c
398
if (!kek_unwrap_key(key, &keylen,
crypto/openssl/crypto/cms/cms_pwri.c
405
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_pwri.c
406
ec->key = key;
crypto/openssl/crypto/cms/cms_pwri.c
417
OPENSSL_free(key);
crypto/openssl/crypto/cms/cms_sd.c
1180
ASN1_INTEGER *key = NULL;
crypto/openssl/crypto/cms/cms_sd.c
1183
key = ASN1_INTEGER_new();
crypto/openssl/crypto/cms/cms_sd.c
1184
if (key == NULL || !ASN1_INTEGER_set(key, keysize)) {
crypto/openssl/crypto/cms/cms_sd.c
1185
ASN1_INTEGER_free(key);
crypto/openssl/crypto/cms/cms_sd.c
1189
alg = ossl_X509_ALGOR_from_nid(algnid, key != NULL ? V_ASN1_INTEGER : V_ASN1_UNDEF, key);
crypto/openssl/crypto/cms/cms_sd.c
1191
ASN1_INTEGER_free(key);
crypto/openssl/crypto/cms/cms_smime.c
199
const unsigned char *key, size_t keylen,
crypto/openssl/crypto/cms/cms_smime.c
213
if (CMS_EncryptedData_set1_key(cms, NULL, key, keylen) <= 0)
crypto/openssl/crypto/cms/cms_smime.c
224
const unsigned char *key,
crypto/openssl/crypto/cms/cms_smime.c
238
if (!CMS_EncryptedData_set1_key(cms, cipher, key, keylen))
crypto/openssl/crypto/cms/cms_smime.c
254
const unsigned char *key,
crypto/openssl/crypto/cms/cms_smime.c
257
return CMS_EncryptedData_encrypt_ex(in, cipher, key, keylen, flags, NULL,
crypto/openssl/crypto/cms/cms_smime.c
721
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_smime.c
722
ec->key = NULL;
crypto/openssl/crypto/cms/cms_smime.c
795
unsigned char *key, size_t keylen,
crypto/openssl/crypto/cms/cms_smime.c
812
CMS_RecipientInfo_set0_key(ri, key, keylen);
crypto/openssl/crypto/cms/cms_smime.c
840
OPENSSL_clear_free(ec->key, ec->keylen);
crypto/openssl/crypto/cms/cms_smime.c
841
ec->key = NULL;
crypto/openssl/crypto/conf/conf_def.c
894
unsigned char key = (unsigned char)c;
crypto/openssl/crypto/conf/conf_def.c
898
if (key > 255) {
crypto/openssl/crypto/conf/conf_def.c
904
key = os_toascii[key];
crypto/openssl/crypto/conf/conf_def.c
907
if (key > 127) {
crypto/openssl/crypto/conf/conf_def.c
912
return (keytypes[key] & type) ? 1 : 0;
crypto/openssl/crypto/core_namemap.c
144
NAMENUM_KEY key;
crypto/openssl/crypto/core_namemap.c
154
HT_INIT_KEY(&key);
crypto/openssl/crypto/core_namemap.c
155
HT_SET_KEY_STRING_CASE(&key, name, name);
crypto/openssl/crypto/core_namemap.c
157
val = ossl_ht_get(namemap->namenum_ht, TO_HT_KEY(&key));
crypto/openssl/crypto/core_namemap.c
171
NAMENUM_KEY key;
crypto/openssl/crypto/core_namemap.c
181
HT_INIT_KEY(&key);
crypto/openssl/crypto/core_namemap.c
182
HT_SET_KEY_STRING_CASE_N(&key, name, name, name_len);
crypto/openssl/crypto/core_namemap.c
184
val = ossl_ht_get(namemap->namenum_ht, TO_HT_KEY(&key));
crypto/openssl/crypto/core_namemap.c
261
NAMENUM_KEY key;
crypto/openssl/crypto/core_namemap.c
273
HT_INIT_KEY(&key);
crypto/openssl/crypto/core_namemap.c
274
HT_SET_KEY_STRING_CASE(&key, name, name);
crypto/openssl/crypto/core_namemap.c
276
ret = ossl_ht_insert(namemap->namenum_ht, TO_HT_KEY(&key), &val, NULL);
crypto/openssl/crypto/des/fcrypt.c
214
DES_cblock key;
crypto/openssl/crypto/des/fcrypt.c
236
key[i] = (c << 1);
crypto/openssl/crypto/des/fcrypt.c
239
key[i] = 0;
crypto/openssl/crypto/des/fcrypt.c
241
DES_set_key_unchecked(&key, &ks);
crypto/openssl/crypto/des/set_key.c
119
int DES_is_weak_key(const_DES_cblock *key)
crypto/openssl/crypto/des/set_key.c
125
j = CRYPTO_memcmp(weak_keys[i], key, sizeof(DES_cblock));
crypto/openssl/crypto/des/set_key.c
59
void DES_set_odd_parity(DES_cblock *key)
crypto/openssl/crypto/des/set_key.c
64
(*key)[i] = odd_parity[(*key)[i]];
crypto/openssl/crypto/des/set_key.c
682
int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule)
crypto/openssl/crypto/des/set_key.c
686
if (!DES_check_key_parity(key))
crypto/openssl/crypto/des/set_key.c
688
if (DES_is_weak_key(key))
crypto/openssl/crypto/des/set_key.c
690
DES_set_key_unchecked(key, schedule);
crypto/openssl/crypto/des/set_key.c
699
int DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule)
crypto/openssl/crypto/des/set_key.c
701
if (!DES_check_key_parity(key))
crypto/openssl/crypto/des/set_key.c
703
if (DES_is_weak_key(key))
crypto/openssl/crypto/des/set_key.c
705
DES_set_key_unchecked(key, schedule);
crypto/openssl/crypto/des/set_key.c
709
void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule)
crypto/openssl/crypto/des/set_key.c
71
int DES_check_key_parity(const_DES_cblock *key)
crypto/openssl/crypto/des/set_key.c
720
memcpy(schedule->key, key, sizeof(schedule->key));
crypto/openssl/crypto/des/set_key.c
724
in = &(*key)[0];
crypto/openssl/crypto/des/set_key.c
768
int DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule)
crypto/openssl/crypto/des/set_key.c
77
b = (*key)[i];
crypto/openssl/crypto/des/set_key.c
770
return DES_set_key(key, schedule);
crypto/openssl/crypto/des/str2key.c
19
void DES_string_to_key(const char *str, DES_cblock *key)
crypto/openssl/crypto/des/str2key.c
24
memset(key, 0, 8);
crypto/openssl/crypto/des/str2key.c
30
(*key)[i % 8] ^= (j << 1);
crypto/openssl/crypto/des/str2key.c
36
(*key)[7 - (i % 8)] ^= j;
crypto/openssl/crypto/des/str2key.c
39
DES_set_odd_parity(key);
crypto/openssl/crypto/des/str2key.c
40
DES_set_key_unchecked(key, &ks);
crypto/openssl/crypto/des/str2key.c
41
DES_cbc_cksum((const unsigned char *)str, key, length, &ks, key);
crypto/openssl/crypto/des/str2key.c
43
DES_set_odd_parity(key);
crypto/openssl/crypto/dh/dh_key.c
102
ret = BN_bn2binpad(z, key, BN_num_bytes(dh->params.p));
crypto/openssl/crypto/dh/dh_key.c
114
int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_key.c
121
ret = ossl_dh_compute_key(key, pub_key, dh);
crypto/openssl/crypto/dh/dh_key.c
123
ret = dh->meth->compute_key(key, pub_key, dh);
crypto/openssl/crypto/dh/dh_key.c
130
mask &= !key[i];
crypto/openssl/crypto/dh/dh_key.c
137
memmove(key, key + npad, ret);
crypto/openssl/crypto/dh/dh_key.c
139
memset(key + ret, 0, npad);
crypto/openssl/crypto/dh/dh_key.c
144
int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_key.c
150
rv = ossl_dh_compute_key(key, pub_key, dh);
crypto/openssl/crypto/dh/dh_key.c
152
rv = dh->meth->compute_key(key, pub_key, dh);
crypto/openssl/crypto/dh/dh_key.c
159
memmove(key + pad, key, rv);
crypto/openssl/crypto/dh/dh_key.c
160
memset(key, 0, pad);
crypto/openssl/crypto/dh/dh_key.c
40
int ossl_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_local.h
47
int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh);
crypto/openssl/crypto/dh/dh_meth.c
113
int (*DH_meth_get_compute_key(const DH_METHOD *dhm))(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_meth.c
119
int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh))
crypto/openssl/crypto/dh/dh_pmeth.c
394
static int pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
crypto/openssl/crypto/dh/dh_pmeth.c
415
if (key == NULL) {
crypto/openssl/crypto/dh/dh_pmeth.c
420
ret = DH_compute_key_padded(key, dhpubbn, dh);
crypto/openssl/crypto/dh/dh_pmeth.c
422
ret = DH_compute_key(key, dhpubbn, dh);
crypto/openssl/crypto/dh/dh_pmeth.c
434
if (key == NULL) {
crypto/openssl/crypto/dh/dh_pmeth.c
447
if (!DH_KDF_X9_42(key, *keylen, Z, Zlen, dctx->kdf_oid,
crypto/openssl/crypto/ec/ec_key.c
492
static int ec_key_public_range_check(BN_CTX *ctx, const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
503
if (!EC_POINT_get_affine_coordinates(key->group, key->pub_key, x, y, ctx))
crypto/openssl/crypto/ec/ec_key.c
506
if (EC_GROUP_get_field_type(key->group) == NID_X9_62_prime_field) {
crypto/openssl/crypto/ec/ec_key.c
508
|| BN_cmp(x, key->group->field) >= 0
crypto/openssl/crypto/ec/ec_key.c
510
|| BN_cmp(y, key->group->field) >= 0) {
crypto/openssl/crypto/ec/ec_key.c
514
int m = EC_GROUP_get_degree(key->group);
crypto/openssl/crypto/ec/ec_key.c
690
int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,
crypto/openssl/crypto/ec/ec_key.c
698
if (key == NULL || key->group == NULL || x == NULL || y == NULL) {
crypto/openssl/crypto/ec/ec_key.c
702
ctx = BN_CTX_new_ex(key->libctx);
crypto/openssl/crypto/ec/ec_key.c
707
point = EC_POINT_new(key->group);
crypto/openssl/crypto/ec/ec_key.c
717
if (!EC_POINT_set_affine_coordinates(key->group, point, x, y, ctx))
crypto/openssl/crypto/ec/ec_key.c
719
if (!EC_POINT_get_affine_coordinates(key->group, point, tx, ty, ctx))
crypto/openssl/crypto/ec/ec_key.c
732
if (!EC_KEY_set_public_key(key, point))
crypto/openssl/crypto/ec/ec_key.c
735
if (EC_KEY_check_key(key) == 0)
crypto/openssl/crypto/ec/ec_key.c
747
OSSL_LIB_CTX *ossl_ec_key_get_libctx(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
749
return key->libctx;
crypto/openssl/crypto/ec/ec_key.c
752
const char *ossl_ec_key_get0_propq(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
754
return key->propq;
crypto/openssl/crypto/ec/ec_key.c
757
void ossl_ec_key_set0_libctx(EC_KEY *key, OSSL_LIB_CTX *libctx)
crypto/openssl/crypto/ec/ec_key.c
759
key->libctx = libctx;
crypto/openssl/crypto/ec/ec_key.c
763
const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
765
return key->group;
crypto/openssl/crypto/ec/ec_key.c
768
int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group)
crypto/openssl/crypto/ec/ec_key.c
770
if (key->meth->set_group != NULL && key->meth->set_group(key, group) == 0)
crypto/openssl/crypto/ec/ec_key.c
772
EC_GROUP_free(key->group);
crypto/openssl/crypto/ec/ec_key.c
773
key->group = EC_GROUP_dup(group);
crypto/openssl/crypto/ec/ec_key.c
774
if (key->group != NULL && EC_GROUP_get_curve_name(key->group) == NID_sm2)
crypto/openssl/crypto/ec/ec_key.c
775
EC_KEY_set_flags(key, EC_FLAG_SM2_RANGE);
crypto/openssl/crypto/ec/ec_key.c
777
key->dirty_cnt++;
crypto/openssl/crypto/ec/ec_key.c
778
return (key->group == NULL) ? 0 : 1;
crypto/openssl/crypto/ec/ec_key.c
781
const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
783
return key->priv_key;
crypto/openssl/crypto/ec/ec_key.c
786
int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key)
crypto/openssl/crypto/ec/ec_key.c
792
if (key->group == NULL || key->group->meth == NULL)
crypto/openssl/crypto/ec/ec_key.c
803
order = EC_GROUP_get0_order(key->group);
crypto/openssl/crypto/ec/ec_key.c
807
if (key->group->meth->set_private != NULL
crypto/openssl/crypto/ec/ec_key.c
808
&& key->group->meth->set_private(key, priv_key) == 0)
crypto/openssl/crypto/ec/ec_key.c
810
if (key->meth->set_private != NULL
crypto/openssl/crypto/ec/ec_key.c
811
&& key->meth->set_private(key, priv_key) == 0)
crypto/openssl/crypto/ec/ec_key.c
819
BN_clear_free(key->priv_key);
crypto/openssl/crypto/ec/ec_key.c
820
key->priv_key = NULL;
crypto/openssl/crypto/ec/ec_key.c
874
BN_clear_free(key->priv_key);
crypto/openssl/crypto/ec/ec_key.c
875
key->priv_key = tmp_key;
crypto/openssl/crypto/ec/ec_key.c
876
key->dirty_cnt++;
crypto/openssl/crypto/ec/ec_key.c
881
const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
883
return key->pub_key;
crypto/openssl/crypto/ec/ec_key.c
886
int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key)
crypto/openssl/crypto/ec/ec_key.c
888
if (key->meth->set_public != NULL
crypto/openssl/crypto/ec/ec_key.c
889
&& key->meth->set_public(key, pub_key) == 0)
crypto/openssl/crypto/ec/ec_key.c
891
EC_POINT_free(key->pub_key);
crypto/openssl/crypto/ec/ec_key.c
892
key->pub_key = EC_POINT_dup(pub_key, key->group);
crypto/openssl/crypto/ec/ec_key.c
893
key->dirty_cnt++;
crypto/openssl/crypto/ec/ec_key.c
894
return (key->pub_key == NULL) ? 0 : 1;
crypto/openssl/crypto/ec/ec_key.c
897
unsigned int EC_KEY_get_enc_flags(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
899
return key->enc_flag;
crypto/openssl/crypto/ec/ec_key.c
902
void EC_KEY_set_enc_flags(EC_KEY *key, unsigned int flags)
crypto/openssl/crypto/ec/ec_key.c
904
key->enc_flag = flags;
crypto/openssl/crypto/ec/ec_key.c
907
point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
909
return key->conv_form;
crypto/openssl/crypto/ec/ec_key.c
912
void EC_KEY_set_conv_form(EC_KEY *key, point_conversion_form_t cform)
crypto/openssl/crypto/ec/ec_key.c
914
key->conv_form = cform;
crypto/openssl/crypto/ec/ec_key.c
915
if (key->group != NULL)
crypto/openssl/crypto/ec/ec_key.c
916
EC_GROUP_set_point_conversion_form(key->group, cform);
crypto/openssl/crypto/ec/ec_key.c
919
void EC_KEY_set_asn1_flag(EC_KEY *key, int flag)
crypto/openssl/crypto/ec/ec_key.c
921
if (key->group != NULL)
crypto/openssl/crypto/ec/ec_key.c
922
EC_GROUP_set_asn1_flag(key->group, flag);
crypto/openssl/crypto/ec/ec_key.c
926
int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx)
crypto/openssl/crypto/ec/ec_key.c
928
if (key->group == NULL)
crypto/openssl/crypto/ec/ec_key.c
930
return EC_GROUP_precompute_mult(key->group, ctx);
crypto/openssl/crypto/ec/ec_key.c
934
int EC_KEY_get_flags(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
936
return key->flags;
crypto/openssl/crypto/ec/ec_key.c
939
void EC_KEY_set_flags(EC_KEY *key, int flags)
crypto/openssl/crypto/ec/ec_key.c
941
key->flags |= flags;
crypto/openssl/crypto/ec/ec_key.c
942
key->dirty_cnt++;
crypto/openssl/crypto/ec/ec_key.c
945
void EC_KEY_clear_flags(EC_KEY *key, int flags)
crypto/openssl/crypto/ec/ec_key.c
947
key->flags &= ~flags;
crypto/openssl/crypto/ec/ec_key.c
948
key->dirty_cnt++;
crypto/openssl/crypto/ec/ec_key.c
951
int EC_KEY_decoded_from_explicit_params(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_key.c
953
if (key == NULL || key->group == NULL)
crypto/openssl/crypto/ec/ec_key.c
955
return key->group->decoded_from_explicit_params;
crypto/openssl/crypto/ec/ec_key.c
958
size_t EC_KEY_key2buf(const EC_KEY *key, point_conversion_form_t form,
crypto/openssl/crypto/ec/ec_key.c
961
if (key == NULL || key->pub_key == NULL || key->group == NULL)
crypto/openssl/crypto/ec/ec_key.c
963
return EC_POINT_point2buf(key->group, key->pub_key, form, pbuf, ctx);
crypto/openssl/crypto/ec/ec_key.c
966
int EC_KEY_oct2key(EC_KEY *key, const unsigned char *buf, size_t len,
crypto/openssl/crypto/ec/ec_key.c
969
if (key == NULL || key->group == NULL)
crypto/openssl/crypto/ec/ec_key.c
971
if (key->pub_key == NULL)
crypto/openssl/crypto/ec/ec_key.c
972
key->pub_key = EC_POINT_new(key->group);
crypto/openssl/crypto/ec/ec_key.c
973
if (key->pub_key == NULL)
crypto/openssl/crypto/ec/ec_key.c
975
if (EC_POINT_oct2point(key->group, key->pub_key, buf, len, ctx) == 0)
crypto/openssl/crypto/ec/ec_key.c
977
key->dirty_cnt++;
crypto/openssl/crypto/ec/ec_key.c
985
if ((key->group->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0)
crypto/openssl/crypto/ec/ec_key.c
986
key->conv_form = (point_conversion_form_t)(buf[0] & ~0x01);
crypto/openssl/crypto/ec/ec_kmeth.c
195
int (*init)(EC_KEY *key),
crypto/openssl/crypto/ec/ec_kmeth.c
196
void (*finish)(EC_KEY *key),
crypto/openssl/crypto/ec/ec_kmeth.c
198
int (*set_group)(EC_KEY *key, const EC_GROUP *grp),
crypto/openssl/crypto/ec/ec_kmeth.c
199
int (*set_private)(EC_KEY *key,
crypto/openssl/crypto/ec/ec_kmeth.c
201
int (*set_public)(EC_KEY *key,
crypto/openssl/crypto/ec/ec_kmeth.c
213
int (*keygen)(EC_KEY *key))
crypto/openssl/crypto/ec/ec_kmeth.c
260
int (**pinit)(EC_KEY *key),
crypto/openssl/crypto/ec/ec_kmeth.c
261
void (**pfinish)(EC_KEY *key),
crypto/openssl/crypto/ec/ec_kmeth.c
263
int (**pset_group)(EC_KEY *key,
crypto/openssl/crypto/ec/ec_kmeth.c
265
int (**pset_private)(EC_KEY *key,
crypto/openssl/crypto/ec/ec_kmeth.c
267
int (**pset_public)(EC_KEY *key,
crypto/openssl/crypto/ec/ec_kmeth.c
285
int (**pkeygen)(EC_KEY *key))
crypto/openssl/crypto/ec/ec_kmeth.c
57
const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key)
crypto/openssl/crypto/ec/ec_kmeth.c
59
return key->meth;
crypto/openssl/crypto/ec/ec_kmeth.c
62
int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth)
crypto/openssl/crypto/ec/ec_kmeth.c
64
void (*finish)(EC_KEY *key) = key->meth->finish;
crypto/openssl/crypto/ec/ec_kmeth.c
67
finish(key);
crypto/openssl/crypto/ec/ec_kmeth.c
70
ENGINE_finish(key->engine);
crypto/openssl/crypto/ec/ec_kmeth.c
71
key->engine = NULL;
crypto/openssl/crypto/ec/ec_kmeth.c
74
key->meth = meth;
crypto/openssl/crypto/ec/ec_kmeth.c
76
return meth->init(key);
crypto/openssl/crypto/ec/ec_lib.c
1218
int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg)
crypto/openssl/crypto/ec/ec_lib.c
1220
return CRYPTO_set_ex_data(&key->ex_data, idx, arg);
crypto/openssl/crypto/ec/ec_lib.c
1223
void *EC_KEY_get_ex_data(const EC_KEY *key, int idx)
crypto/openssl/crypto/ec/ec_lib.c
1225
return CRYPTO_get_ex_data(&key->ex_data, idx);
crypto/openssl/crypto/ec/ec_local.h
667
int (*init)(EC_KEY *key);
crypto/openssl/crypto/ec/ec_local.h
668
void (*finish)(EC_KEY *key);
crypto/openssl/crypto/ec/ec_local.h
670
int (*set_group)(EC_KEY *key, const EC_GROUP *grp);
crypto/openssl/crypto/ec/ec_local.h
671
int (*set_private)(EC_KEY *key, const BIGNUM *priv_key);
crypto/openssl/crypto/ec/ec_local.h
672
int (*set_public)(EC_KEY *key, const EC_POINT *pub_key);
crypto/openssl/crypto/ec/ec_local.h
673
int (*keygen)(EC_KEY *key);
crypto/openssl/crypto/ec/ec_pmeth.c
166
static int pkey_ec_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)
crypto/openssl/crypto/ec/ec_pmeth.c
188
if (!key) {
crypto/openssl/crypto/ec/ec_pmeth.c
206
ret = ECDH_compute_key(key, outlen, pubkey, eckey, 0);
crypto/openssl/crypto/ec/ec_pmeth.c
214
unsigned char *key, size_t *keylen)
crypto/openssl/crypto/ec/ec_pmeth.c
221
return pkey_ec_derive(ctx, key, keylen);
crypto/openssl/crypto/ec/ec_pmeth.c
222
if (!key) {
crypto/openssl/crypto/ec/ec_pmeth.c
235
if (!ossl_ecdh_kdf_X9_63(key, *keylen, ktmp, ktmplen,
crypto/openssl/crypto/ec/ecx_backend.c
107
ECX_KEY *ossl_ecx_key_dup(const ECX_KEY *key, int selection)
crypto/openssl/crypto/ec/ecx_backend.c
114
ret->libctx = key->libctx;
crypto/openssl/crypto/ec/ecx_backend.c
116
ret->keylen = key->keylen;
crypto/openssl/crypto/ec/ecx_backend.c
117
ret->type = key->type;
crypto/openssl/crypto/ec/ecx_backend.c
122
if (key->propq != NULL) {
crypto/openssl/crypto/ec/ecx_backend.c
123
ret->propq = OPENSSL_strdup(key->propq);
crypto/openssl/crypto/ec/ecx_backend.c
129
&& key->haspubkey == 1) {
crypto/openssl/crypto/ec/ecx_backend.c
130
memcpy(ret->pubkey, key->pubkey, sizeof(ret->pubkey));
crypto/openssl/crypto/ec/ecx_backend.c
135
&& key->privkey != NULL) {
crypto/openssl/crypto/ec/ecx_backend.c
140
memcpy(ret->privkey, key->privkey, ret->keylen);
crypto/openssl/crypto/ec/ecx_backend.c
157
ECX_KEY *key = NULL;
crypto/openssl/crypto/ec/ecx_backend.c
184
key = ossl_ecx_key_new(libctx, KEYNID2TYPE(id), 1, propq);
crypto/openssl/crypto/ec/ecx_backend.c
185
if (key == NULL) {
crypto/openssl/crypto/ec/ecx_backend.c
189
pubkey = key->pubkey;
crypto/openssl/crypto/ec/ecx_backend.c
194
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/crypto/ec/ecx_backend.c
215
if (!ossl_ecx_public_from_private(key)) {
crypto/openssl/crypto/ec/ecx_backend.c
221
return key;
crypto/openssl/crypto/ec/ecx_backend.c
223
ossl_ecx_key_free(key);
crypto/openssl/crypto/ec/ecx_backend.c
28
int ossl_ecx_public_from_private(ECX_KEY *key)
crypto/openssl/crypto/ec/ecx_backend.c
30
switch (key->type) {
crypto/openssl/crypto/ec/ecx_backend.c
32
ossl_x25519_public_from_private(key->pubkey, key->privkey);
crypto/openssl/crypto/ec/ecx_backend.c
35
if (!ossl_ed25519_public_from_private(key->libctx, key->pubkey,
crypto/openssl/crypto/ec/ecx_backend.c
36
key->privkey, key->propq)) {
crypto/openssl/crypto/ec/ecx_backend.c
42
ossl_x448_public_from_private(key->pubkey, key->privkey);
crypto/openssl/crypto/ec/ecx_backend.c
45
if (!ossl_ed448_public_from_private(key->libctx, key->pubkey,
crypto/openssl/crypto/ec/ecx_backend.c
46
key->privkey, key->propq)) {
crypto/openssl/crypto/ec/ecx_key.c
103
unsigned char *ossl_ecx_key_allocate_privkey(ECX_KEY *key)
crypto/openssl/crypto/ec/ecx_key.c
105
key->privkey = OPENSSL_secure_zalloc(key->keylen);
crypto/openssl/crypto/ec/ecx_key.c
107
return key->privkey;
crypto/openssl/crypto/ec/ecx_key.c
64
void ossl_ecx_key_free(ECX_KEY *key)
crypto/openssl/crypto/ec/ecx_key.c
68
if (key == NULL)
crypto/openssl/crypto/ec/ecx_key.c
71
CRYPTO_DOWN_REF(&key->references, &i);
crypto/openssl/crypto/ec/ecx_key.c
72
REF_PRINT_COUNT("ECX_KEY", i, key);
crypto/openssl/crypto/ec/ecx_key.c
77
OPENSSL_free(key->propq);
crypto/openssl/crypto/ec/ecx_key.c
79
OPENSSL_cleanse(&key->pubkey, sizeof(key->pubkey));
crypto/openssl/crypto/ec/ecx_key.c
81
OPENSSL_secure_clear_free(key->privkey, key->keylen);
crypto/openssl/crypto/ec/ecx_key.c
82
CRYPTO_FREE_REF(&key->references);
crypto/openssl/crypto/ec/ecx_key.c
83
OPENSSL_free(key);
crypto/openssl/crypto/ec/ecx_key.c
86
void ossl_ecx_key_set0_libctx(ECX_KEY *key, OSSL_LIB_CTX *libctx)
crypto/openssl/crypto/ec/ecx_key.c
88
key->libctx = libctx;
crypto/openssl/crypto/ec/ecx_key.c
91
int ossl_ecx_key_up_ref(ECX_KEY *key)
crypto/openssl/crypto/ec/ecx_key.c
95
if (CRYPTO_UP_REF(&key->references, &i) <= 0)
crypto/openssl/crypto/ec/ecx_key.c
98
REF_PRINT_COUNT("ECX_KEY", i, key);
crypto/openssl/crypto/ec/ecx_meth.c
1000
pubkey = key->pubkey;
crypto/openssl/crypto/ec/ecx_meth.c
1002
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/crypto/ec/ecx_meth.c
1017
EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key);
crypto/openssl/crypto/ec/ecx_meth.c
1020
ossl_ecx_key_free(key);
crypto/openssl/crypto/ec/ecx_meth.c
1066
ECX_KEY *key = ossl_ecx_key_new(ctx->libctx, ECX_KEY_TYPE_ED25519, 1,
crypto/openssl/crypto/ec/ecx_meth.c
1073
if (key == NULL) {
crypto/openssl/crypto/ec/ecx_meth.c
1078
pubkey = key->pubkey;
crypto/openssl/crypto/ec/ecx_meth.c
1080
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/crypto/ec/ecx_meth.c
1109
EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key);
crypto/openssl/crypto/ec/ecx_meth.c
1112
ossl_ecx_key_free(key);
crypto/openssl/crypto/ec/ecx_meth.c
1133
ECX_KEY *key = ossl_ecx_key_new(ctx->libctx, ECX_KEY_TYPE_ED448, 1,
crypto/openssl/crypto/ec/ecx_meth.c
1140
if (key == NULL) {
crypto/openssl/crypto/ec/ecx_meth.c
1145
pubkey = key->pubkey;
crypto/openssl/crypto/ec/ecx_meth.c
1147
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/crypto/ec/ecx_meth.c
1185
EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key);
crypto/openssl/crypto/ec/ecx_meth.c
1189
ossl_ecx_key_free(key);
crypto/openssl/crypto/ec/ecx_meth.c
1194
static int s390x_pkey_ecx_derive25519(EVP_PKEY_CTX *ctx, unsigned char *key,
crypto/openssl/crypto/ec/ecx_meth.c
1199
if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey)
crypto/openssl/crypto/ec/ecx_meth.c
1200
|| (key != NULL
crypto/openssl/crypto/ec/ecx_meth.c
1201
&& s390x_x25519_mul(key, privkey, pubkey) == 0))
crypto/openssl/crypto/ec/ecx_meth.c
1207
static int s390x_pkey_ecx_derive448(EVP_PKEY_CTX *ctx, unsigned char *key,
crypto/openssl/crypto/ec/ecx_meth.c
1212
if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey)
crypto/openssl/crypto/ec/ecx_meth.c
1213
|| (key != NULL
crypto/openssl/crypto/ec/ecx_meth.c
1214
&& s390x_x448_mul(key, pubkey, privkey) == 0))
crypto/openssl/crypto/ec/ecx_meth.c
299
const ECX_KEY *key = pkey->pkey.ecx;
crypto/openssl/crypto/ec/ecx_meth.c
306
if (key == NULL
crypto/openssl/crypto/ec/ecx_meth.c
307
|| key->privkey == NULL
crypto/openssl/crypto/ec/ecx_meth.c
312
memcpy(priv, key->privkey, *len);
crypto/openssl/crypto/ec/ecx_meth.c
320
const ECX_KEY *key = pkey->pkey.ecx;
crypto/openssl/crypto/ec/ecx_meth.c
327
if (key == NULL
crypto/openssl/crypto/ec/ecx_meth.c
332
memcpy(pub, key->pubkey, *len);
crypto/openssl/crypto/ec/ecx_meth.c
350
const ECX_KEY *key = from->pkey.ecx;
crypto/openssl/crypto/ec/ecx_meth.c
361
key->pubkey, key->keylen))
crypto/openssl/crypto/ec/ecx_meth.c
365
if (key->privkey != NULL) {
crypto/openssl/crypto/ec/ecx_meth.c
368
key->privkey, key->keylen))
crypto/openssl/crypto/ec/ecx_meth.c
723
static int validate_ecx_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
crypto/openssl/crypto/ec/ecx_meth.c
750
static int pkey_ecx_derive25519(EVP_PKEY_CTX *ctx, unsigned char *key,
crypto/openssl/crypto/ec/ecx_meth.c
755
if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey)
crypto/openssl/crypto/ec/ecx_meth.c
756
|| (key != NULL
crypto/openssl/crypto/ec/ecx_meth.c
757
&& ossl_x25519(key, privkey, pubkey) == 0))
crypto/openssl/crypto/ec/ecx_meth.c
763
static int pkey_ecx_derive448(EVP_PKEY_CTX *ctx, unsigned char *key,
crypto/openssl/crypto/ec/ecx_meth.c
768
if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey)
crypto/openssl/crypto/ec/ecx_meth.c
769
|| (key != NULL
crypto/openssl/crypto/ec/ecx_meth.c
770
&& ossl_x448(key, privkey, pubkey) == 0))
crypto/openssl/crypto/ec/ecx_meth.c
948
ECX_KEY *key = ossl_ecx_key_new(ctx->libctx, ECX_KEY_TYPE_X25519, 1,
crypto/openssl/crypto/ec/ecx_meth.c
952
if (key == NULL) {
crypto/openssl/crypto/ec/ecx_meth.c
957
pubkey = key->pubkey;
crypto/openssl/crypto/ec/ecx_meth.c
959
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/crypto/ec/ecx_meth.c
975
EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key);
crypto/openssl/crypto/ec/ecx_meth.c
978
ossl_ecx_key_free(key);
crypto/openssl/crypto/ec/ecx_meth.c
991
ECX_KEY *key = ossl_ecx_key_new(ctx->libctx, ECX_KEY_TYPE_X448, 1,
crypto/openssl/crypto/ec/ecx_meth.c
995
if (key == NULL) {
crypto/openssl/crypto/engine/eng_openssl.c
201
unsigned char key[TEST_RC4_KEY_SIZE];
crypto/openssl/crypto/engine/eng_openssl.c
205
static int test_rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/engine/eng_openssl.c
215
memcpy(&test(ctx)->key[0], key, n);
crypto/openssl/crypto/engine/eng_openssl.c
216
RC4_set_key(&test(ctx)->ks, n, test(ctx)->key);
crypto/openssl/crypto/engine/eng_openssl.c
424
EVP_PKEY *key;
crypto/openssl/crypto/engine/eng_openssl.c
434
key = PEM_read_bio_PrivateKey(in, NULL, 0, NULL);
crypto/openssl/crypto/engine/eng_openssl.c
436
return key;
crypto/openssl/crypto/engine/eng_openssl.c
565
ASN1_OCTET_STRING *key;
crypto/openssl/crypto/engine/eng_openssl.c
581
key = EVP_PKEY_get0(pk);
crypto/openssl/crypto/engine/eng_openssl.c
582
if (!HMAC_Init_ex(hctx->ctx, key->data, key->length, hctx->md, NULL))
crypto/openssl/crypto/engine/eng_openssl.c
603
unsigned char *key;
crypto/openssl/crypto/engine/eng_openssl.c
606
key = OPENSSL_hexstr2buf(value, &keylen);
crypto/openssl/crypto/engine/eng_openssl.c
607
if (!key)
crypto/openssl/crypto/engine/eng_openssl.c
609
r = ossl_hmac_ctrl(ctx, EVP_PKEY_CTRL_SET_MAC_KEY, keylen, key);
crypto/openssl/crypto/engine/eng_openssl.c
610
OPENSSL_free(key);
crypto/openssl/crypto/evp/cmeth_lib.c
164
const unsigned char *key,
crypto/openssl/crypto/evp/cmeth_lib.c
96
const unsigned char *key,
crypto/openssl/crypto/evp/ctrl_params_translate.c
1697
if (strncmp(ctx->params->key, OSSL_PKEY_PARAM_EC_PUB_X, 2) == 0)
crypto/openssl/crypto/evp/ctrl_params_translate.c
1699
else if (strncmp(ctx->params->key, OSSL_PKEY_PARAM_EC_PUB_Y, 2) == 0)
crypto/openssl/crypto/evp/ctrl_params_translate.c
2839
for (; params != NULL && params->key != NULL; params++) {
crypto/openssl/crypto/evp/ctrl_params_translate.c
2853
tmpl.param_key = params->key;
crypto/openssl/crypto/evp/ctrl_params_translate.c
2915
for (; params != NULL && params->key != NULL; params++) {
crypto/openssl/crypto/evp/ctrl_params_translate.c
2926
tmpl.param_key = params->key;
crypto/openssl/crypto/evp/e_aes.c
1016
static int s390x_aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
1028
const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
1042
memcpy(cctx->km.param.k, key, keylen);
crypto/openssl/crypto/evp/e_aes.c
1056
const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
1073
memcpy(cctx->kmo.param.k, key, keylen);
crypto/openssl/crypto/evp/e_aes.c
1122
const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
1144
memcpy(cctx->kmf.param.k, key, keylen);
crypto/openssl/crypto/evp/e_aes.c
1207
const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
1229
memcpy(cctx->kmf.param.k, key, keylen);
crypto/openssl/crypto/evp/e_aes.c
143
static int aesni_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
157
ret = aesni_set_decrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
161
ret = aesni_set_encrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
1613
const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
1619
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
1622
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
1629
memcpy(&gctx->kma.param.k, key, keylen);
crypto/openssl/crypto/evp/e_aes.c
1786
const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
1933
CRYPTO_ctr128_encrypt_ctr32(in, out, len + rem, &ctx->aes.key.k,
crypto/openssl/crypto/evp/e_aes.c
1938
CRYPTO_ctr128_encrypt_ctr32(in, out, len + rem, &ctx->aes.key.k,
crypto/openssl/crypto/evp/e_aes.c
2024
const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
2030
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
2033
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
2041
memcpy(cctx->aes.ccm.kmac_param.k, key, keylen);
crypto/openssl/crypto/evp/e_aes.c
222
static int aesni_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
227
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
2273
static int s390x_aes_ocb_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
230
if (key) {
crypto/openssl/crypto/evp/e_aes.c
237
aesni_set_encrypt_key(key, keylen, &gctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2415
static int aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
2432
ret = HWAES_set_decrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2443
ret = AES_set_decrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2450
ret = vpaes_set_decrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2456
ret = AES_set_decrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2463
ret = HWAES_set_encrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2481
ret = AES_set_encrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2488
ret = vpaes_set_encrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2494
ret = AES_set_encrypt_key(key, keylen, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
266
static int aesni_xts_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
271
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
274
if (key) {
crypto/openssl/crypto/evp/e_aes.c
2774
if (gctx->gcm.key) {
crypto/openssl/crypto/evp/e_aes.c
2775
if (gctx->gcm.key != &gctx->ks)
crypto/openssl/crypto/evp/e_aes.c
2777
gctx_out->gcm.key = &gctx_out->ks;
crypto/openssl/crypto/evp/e_aes.c
2794
static int aes_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
2799
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
2802
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
2812
HWAES_set_encrypt_key(key, keylen, &gctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2825
AES_set_encrypt_key(key, keylen, &gctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2834
vpaes_set_encrypt_key(key, keylen, &gctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
2843
AES_set_encrypt_key(key, keylen, &gctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
291
&& CRYPTO_memcmp(key, key + bytes, bytes) == 0) {
crypto/openssl/crypto/evp/e_aes.c
2930
gctx->gcm.key,
crypto/openssl/crypto/evp/e_aes.c
2948
gctx->gcm.key,
crypto/openssl/crypto/evp/e_aes.c
2971
gctx->gcm.key,
crypto/openssl/crypto/evp/e_aes.c
298
aesni_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
2989
gctx->gcm.key,
crypto/openssl/crypto/evp/e_aes.c
302
aesni_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
307
aesni_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
3087
gctx->gcm.key, gctx->gcm.Yi.c,
crypto/openssl/crypto/evp/e_aes.c
3109
gctx->gcm.key, gctx->gcm.Yi.c,
crypto/openssl/crypto/evp/e_aes.c
3131
gctx->gcm.key,
crypto/openssl/crypto/evp/e_aes.c
3153
gctx->gcm.key,
crypto/openssl/crypto/evp/e_aes.c
3224
static int aes_xts_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
3229
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
3232
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
325
static int aesni_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
3260
&& CRYPTO_memcmp(key, key + bytes, bytes) == 0) {
crypto/openssl/crypto/evp/e_aes.c
3274
HWAES_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3280
HWAES_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3287
HWAES_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
330
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
3302
vpaes_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3305
vpaes_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3309
vpaes_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
3319
AES_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3322
AES_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
3326
AES_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
333
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
340
aesni_set_encrypt_key(key, keylen, &cctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
3468
if (cctx->ccm.key) {
crypto/openssl/crypto/evp/e_aes.c
3469
if (cctx->ccm.key != &cctx->ks)
crypto/openssl/crypto/evp/e_aes.c
3471
cctx_out->ccm.key = &cctx_out->ks;
crypto/openssl/crypto/evp/e_aes.c
3481
static int aes_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
3486
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
3489
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
3499
HWAES_set_encrypt_key(key, keylen, &cctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
3510
vpaes_set_encrypt_key(key, keylen, &cctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
3518
AES_set_encrypt_key(key, keylen, &cctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
358
static int aesni_ocb_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
363
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
366
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
3671
static int aes_wrap_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
3677
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
3679
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
3687
AES_set_encrypt_key(key, keylen, &wctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
3689
AES_set_decrypt_key(key, keylen, &wctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
379
aesni_set_encrypt_key(key, keylen, &octx->ksenc.ks);
crypto/openssl/crypto/evp/e_aes.c
380
aesni_set_decrypt_key(key, keylen, &octx->ksdec.ks);
crypto/openssl/crypto/evp/e_aes.c
3912
static int aes_ocb_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
3917
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
3920
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
3935
HWAES_set_encrypt_key(key, keylen, &octx->ksenc.ks);
crypto/openssl/crypto/evp/e_aes.c
3936
HWAES_set_decrypt_key(key, keylen, &octx->ksdec.ks);
crypto/openssl/crypto/evp/e_aes.c
3949
vpaes_set_encrypt_key(key, keylen, &octx->ksenc.ks);
crypto/openssl/crypto/evp/e_aes.c
3950
vpaes_set_decrypt_key(key, keylen, &octx->ksdec.ks);
crypto/openssl/crypto/evp/e_aes.c
3960
AES_set_encrypt_key(key, keylen, &octx->ksenc.ks);
crypto/openssl/crypto/evp/e_aes.c
3961
AES_set_decrypt_key(key, keylen, &octx->ksdec.ks);
crypto/openssl/crypto/evp/e_aes.c
477
static int aes_t4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
492
aes_t4_set_decrypt_key(key, bits, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
509
aes_t4_set_encrypt_key(key, bits, &dat->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
577
static int aes_t4_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
582
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
584
if (key) {
crypto/openssl/crypto/evp/e_aes.c
591
aes_t4_set_encrypt_key(key, bits, &gctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
633
static int aes_t4_xts_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
638
if (!iv && !key)
crypto/openssl/crypto/evp/e_aes.c
641
if (key) {
crypto/openssl/crypto/evp/e_aes.c
658
&& CRYPTO_memcmp(key, key + bytes, bytes) == 0) {
crypto/openssl/crypto/evp/e_aes.c
666
aes_t4_set_encrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
679
aes_t4_set_decrypt_key(key, bits, &xctx->ks1.ks);
crypto/openssl/crypto/evp/e_aes.c
693
aes_t4_set_encrypt_key(key + bytes, bits, &xctx->ks2.ks);
crypto/openssl/crypto/evp/e_aes.c
711
static int aes_t4_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
716
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
719
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
726
aes_t4_set_encrypt_key(key, bits, &cctx->ks.ks);
crypto/openssl/crypto/evp/e_aes.c
744
static int aes_t4_ocb_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aes.c
749
if (iv == NULL && key == NULL)
crypto/openssl/crypto/evp/e_aes.c
752
if (key != NULL) {
crypto/openssl/crypto/evp/e_aes.c
765
aes_t4_set_encrypt_key(key, keylen, &octx->ksenc.ks);
crypto/openssl/crypto/evp/e_aes.c
766
aes_t4_set_decrypt_key(key, keylen, &octx->ksdec.ks);
crypto/openssl/crypto/evp/e_aes.c
975
} key;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
159
static size_t tls1_1_multi_block_encrypt(EVP_AES_HMAC_SHA1 *key,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
213
memcpy(blocks[0].c, key->md.data, 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
222
ctx->A[i] = key->md.h0;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
223
ctx->B[i] = key->md.h1;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
224
ctx->C[i] = key->md.h2;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
225
ctx->D[i] = key->md.h3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
226
ctx->E[i] = key->md.h4;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
233
blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
237
blocks[i].c[8] = ((u8 *)key->md.data)[8];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
238
blocks[i].c[9] = ((u8 *)key->md.data)[9];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
239
blocks[i].c[10] = ((u8 *)key->md.data)[10];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
272
aesni_multi_cbc_encrypt(ciph_d, &key->ks, n4x);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
327
ctx->A[i] = key->tail.h0;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
329
ctx->B[i] = key->tail.h1;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
331
ctx->C[i] = key->tail.h2;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
333
ctx->D[i] = key->tail.h3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
335
ctx->E[i] = key->tail.h4;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
340
ctx->A[i] = key->tail.h0;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
342
ctx->B[i] = key->tail.h1;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
344
ctx->C[i] = key->tail.h2;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
346
ctx->D[i] = key->tail.h3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
348
ctx->E[i] = key->tail.h4;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
387
out0[0] = ((u8 *)key->md.data)[8];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
388
out0[1] = ((u8 *)key->md.data)[9];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
389
out0[2] = ((u8 *)key->md.data)[10];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
397
aesni_multi_cbc_encrypt(ciph_d, &key->ks, n4x);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
409
EVP_AES_HMAC_SHA1 *key = data(ctx);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
411
size_t plen = key->payload_length, iv = 0, /* explicit IV in TLS 1.1 and
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
417
sha_off = SHA_CBLOCK - key->md.num;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
420
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
430
else if (key->aux.tls_ver >= TLS1_1_VERSION)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
436
SHA1_Update(&key->md, in + iv, sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
438
aesni_cbc_sha1_enc(in, out, blocks, &key->ks, ctx->iv,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
439
&key->md, in + iv + sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
443
key->md.Nh += blocks >> 29;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
444
key->md.Nl += blocks <<= 3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
445
if (key->md.Nl < (unsigned int)blocks)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
446
key->md.Nh++;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
452
SHA1_Update(&key->md, in + sha_off, plen - sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
459
SHA1_Final(out + plen, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
460
key->md = key->tail;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
461
SHA1_Update(&key->md, out + plen, SHA_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
462
SHA1_Final(out + plen, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
470
&key->ks, ctx->iv, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
473
&key->ks, ctx->iv, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
48
AES_KEY *key);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
491
} *data = (void *)key->md.data;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
50
AES_KEY *key);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
503
if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3])
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
524
&key->ks, tail_iv, 0);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
529
aesni_cbc_encrypt(in, out, len, &key->ks,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
55
const AES_KEY *key, unsigned char *ivec, int enc);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
550
key->aux.tls_aad[plen - 2] = inp_len >> 8;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
551
key->aux.tls_aad[plen - 1] = inp_len;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
554
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
555
SHA1_Update(&key->md, key->aux.tls_aad, plen);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
563
aesni_cbc_encrypt(in, out, aes_off, &key->ks, ctx->iv, 0);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
565
SHA1_Update(&key->md, out, sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
567
out + aes_off, blocks, &key->ks,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
568
ctx->iv, &key->md, out + sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
575
key->md.Nl += (blocks << 3); /* at most 18 bits */
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
58
const AES_KEY *key, unsigned char iv[16],
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
584
j += SHA_CBLOCK - key->md.num;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
585
SHA1_Update(&key->md, out, j);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
592
bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
609
for (res = key->md.num, j = 0; j < len; j++) {
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
62
const AES_KEY *key, unsigned char iv[16],
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
622
sha1_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
624
pmac->u[0] |= key->md.h0 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
625
pmac->u[1] |= key->md.h1 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
626
pmac->u[2] |= key->md.h2 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
627
pmac->u[3] |= key->md.h3 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
628
pmac->u[4] |= key->md.h4 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
638
sha1_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
640
pmac->u[0] |= key->md.h0 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
641
pmac->u[1] |= key->md.h1 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
642
pmac->u[2] |= key->md.h2 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
643
pmac->u[3] |= key->md.h3 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
644
pmac->u[4] |= key->md.h4 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
650
sha1_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
652
pmac->u[0] |= key->md.h0 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
653
pmac->u[1] |= key->md.h1 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
654
pmac->u[2] |= key->md.h2 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
655
pmac->u[3] |= key->md.h3 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
656
pmac->u[4] |= key->md.h4 & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
675
SHA1_Update(&key->md, out, inp_len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
676
res = key->md.num;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
677
SHA1_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
689
sha1_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
692
key->md = key->tail;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
693
SHA1_Update(&key->md, pmac->c, SHA_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
694
SHA1_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
71
EVP_AES_HMAC_SHA1 *key = data(ctx);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
742
aesni_cbc_encrypt(in, out, aes_off, &key->ks, ctx->iv, 0);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
743
SHA1_Update(&key->md, out, sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
745
out + aes_off, blocks, &key->ks,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
746
ctx->iv, &key->md, out + sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
752
key->md.Nh += blocks >> 29;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
753
key->md.Nl += blocks <<= 3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
754
if (key->md.Nl < (unsigned int)blocks)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
755
key->md.Nh++;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
759
aesni_cbc_encrypt(in, out, len, &key->ks,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
762
SHA1_Update(&key->md, out, len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
772
EVP_AES_HMAC_SHA1 *key = data(ctx);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
782
SHA1_Init(&key->head);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
783
SHA1_Update(&key->head, ptr, arg);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
784
SHA1_Final(hmac_key, &key->head);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
791
SHA1_Init(&key->head);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
792
SHA1_Update(&key->head, hmac_key, sizeof(hmac_key));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
796
SHA1_Init(&key->tail);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
797
SHA1_Update(&key->tail, hmac_key, sizeof(hmac_key));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
80
ret = aesni_set_encrypt_key(inkey, keylen, &key->ks);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
813
key->payload_length = len;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
814
if ((key->aux.tls_ver = p[arg - 4] << 8 | p[arg - 3]) >= TLS1_1_VERSION) {
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
82
ret = aesni_set_decrypt_key(inkey, keylen, &key->ks);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
821
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
822
SHA1_Update(&key->md, p, arg);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
827
memcpy(key->aux.tls_aad, ptr, arg);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
828
key->payload_length = arg;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
84
SHA1_Init(&key->head); /* handy when benchmarking */
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
85
key->tail = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
86
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
861
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
862
SHA1_Update(&key->md, param->inp, 13);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
88
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
887
return (int)tls1_1_multi_block_encrypt(key, param->out,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
153
static size_t tls1_1_multi_block_encrypt(EVP_AES_HMAC_SHA256 *key,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
208
memcpy(blocks[0].c, key->md.data, 8);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
217
ctx->A[i] = key->md.h[0];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
218
ctx->B[i] = key->md.h[1];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
219
ctx->C[i] = key->md.h[2];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
220
ctx->D[i] = key->md.h[3];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
221
ctx->E[i] = key->md.h[4];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
222
ctx->F[i] = key->md.h[5];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
223
ctx->G[i] = key->md.h[6];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
224
ctx->H[i] = key->md.h[7];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
231
blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
235
blocks[i].c[8] = ((u8 *)key->md.data)[8];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
236
blocks[i].c[9] = ((u8 *)key->md.data)[9];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
237
blocks[i].c[10] = ((u8 *)key->md.data)[10];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
270
aesni_multi_cbc_encrypt(ciph_d, &key->ks, n4x);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
325
ctx->A[i] = key->tail.h[0];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
327
ctx->B[i] = key->tail.h[1];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
329
ctx->C[i] = key->tail.h[2];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
331
ctx->D[i] = key->tail.h[3];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
333
ctx->E[i] = key->tail.h[4];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
335
ctx->F[i] = key->tail.h[5];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
337
ctx->G[i] = key->tail.h[6];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
339
ctx->H[i] = key->tail.h[7];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
344
ctx->A[i] = key->tail.h[0];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
346
ctx->B[i] = key->tail.h[1];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
348
ctx->C[i] = key->tail.h[2];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
350
ctx->D[i] = key->tail.h[3];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
352
ctx->E[i] = key->tail.h[4];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
354
ctx->F[i] = key->tail.h[5];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
356
ctx->G[i] = key->tail.h[6];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
358
ctx->H[i] = key->tail.h[7];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
400
out0[0] = ((u8 *)key->md.data)[8];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
401
out0[1] = ((u8 *)key->md.data)[9];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
402
out0[2] = ((u8 *)key->md.data)[10];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
410
aesni_multi_cbc_encrypt(ciph_d, &key->ks, n4x);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
423
EVP_AES_HMAC_SHA256 *key = data(ctx);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
425
size_t plen = key->payload_length, iv = 0, /* explicit IV in TLS 1.1 and
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
431
sha_off = SHA256_CBLOCK - key->md.num;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
434
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
444
else if (key->aux.tls_ver >= TLS1_1_VERSION)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
464
SHA256_Update(&key->md, in + iv, sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
466
(void)aesni_cbc_sha256_enc(in, out, blocks, &key->ks,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
467
ctx->iv, &key->md, in + iv + sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
471
key->md.Nh += blocks >> 29;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
472
key->md.Nl += blocks <<= 3;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
473
if (key->md.Nl < (unsigned int)blocks)
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
474
key->md.Nh++;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
48
AES_KEY *key);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
480
SHA256_Update(&key->md, in + sha_off, plen - sha_off);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
487
SHA256_Final(out + plen, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
488
key->md = key->tail;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
489
SHA256_Update(&key->md, out + plen, SHA256_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
490
SHA256_Final(out + plen, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
498
&key->ks, ctx->iv, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
50
AES_KEY *key);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
501
&key->ks, ctx->iv, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
513
aesni_cbc_encrypt(in, out, len, &key->ks,
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
523
} *data = (void *)key->md.data;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
525
if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3])
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
55
const AES_KEY *key, unsigned char *ivec, int enc);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
554
key->aux.tls_aad[plen - 2] = inp_len >> 8;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
555
key->aux.tls_aad[plen - 1] = inp_len;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
558
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
559
SHA256_Update(&key->md, key->aux.tls_aad, plen);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
565
j += SHA256_CBLOCK - key->md.num;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
566
SHA256_Update(&key->md, out, j);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
573
bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
58
const AES_KEY *key, unsigned char iv[16],
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
593
for (res = key->md.num, j = 0; j < len; j++) {
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
606
sha256_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
608
pmac->u[0] |= key->md.h[0] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
609
pmac->u[1] |= key->md.h[1] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
610
pmac->u[2] |= key->md.h[2] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
611
pmac->u[3] |= key->md.h[3] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
612
pmac->u[4] |= key->md.h[4] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
613
pmac->u[5] |= key->md.h[5] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
614
pmac->u[6] |= key->md.h[6] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
615
pmac->u[7] |= key->md.h[7] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
625
sha256_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
627
pmac->u[0] |= key->md.h[0] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
628
pmac->u[1] |= key->md.h[1] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
629
pmac->u[2] |= key->md.h[2] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
630
pmac->u[3] |= key->md.h[3] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
631
pmac->u[4] |= key->md.h[4] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
632
pmac->u[5] |= key->md.h[5] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
633
pmac->u[6] |= key->md.h[6] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
634
pmac->u[7] |= key->md.h[7] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
640
sha256_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
642
pmac->u[0] |= key->md.h[0] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
643
pmac->u[1] |= key->md.h[1] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
644
pmac->u[2] |= key->md.h[2] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
645
pmac->u[3] |= key->md.h[3] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
646
pmac->u[4] |= key->md.h[4] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
647
pmac->u[5] |= key->md.h[5] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
648
pmac->u[6] |= key->md.h[6] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
649
pmac->u[7] |= key->md.h[7] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
67
EVP_AES_HMAC_SHA256 *key = data(ctx);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
671
SHA256_Update(&key->md, out, inp_len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
672
res = key->md.num;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
673
SHA256_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
685
sha1_block_data_order(&key->md, data, 1);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
688
key->md = key->tail;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
689
SHA256_Update(&key->md, pmac->c, SHA256_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
690
SHA256_Final(pmac->c, &key->md);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
73
&key->ks);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
731
SHA256_Update(&key->md, out, len);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
741
EVP_AES_HMAC_SHA256 *key = data(ctx);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
755
SHA256_Init(&key->head);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
756
SHA256_Update(&key->head, ptr, arg);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
757
SHA256_Final(hmac_key, &key->head);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
764
SHA256_Init(&key->head);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
765
SHA256_Update(&key->head, hmac_key, sizeof(hmac_key));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
769
SHA256_Init(&key->tail);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
77
&key->ks);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
770
SHA256_Update(&key->tail, hmac_key, sizeof(hmac_key));
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
786
key->payload_length = len;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
787
if ((key->aux.tls_ver = p[arg - 4] << 8 | p[arg - 3]) >= TLS1_1_VERSION) {
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
79
SHA256_Init(&key->head); /* handy when benchmarking */
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
794
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
795
SHA256_Update(&key->md, p, arg);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
80
key->tail = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
800
memcpy(key->aux.tls_aad, ptr, arg);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
801
key->payload_length = arg;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
81
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
83
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
837
key->md = key->head;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
838
SHA256_Update(&key->md, param->inp, 13);
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
863
return (int)tls1_1_multi_block_encrypt(key, param->out,
crypto/openssl/crypto/evp/e_aria.c
100
CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/evp/e_aria.c
105
size_t length, const ARIA_KEY *key,
crypto/openssl/crypto/evp/e_aria.c
108
CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/evp/e_aria.c
113
size_t length, const ARIA_KEY *key,
crypto/openssl/crypto/evp/e_aria.c
116
CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc,
crypto/openssl/crypto/evp/e_aria.c
121
const ARIA_KEY *key, const int enc)
crypto/openssl/crypto/evp/e_aria.c
123
ossl_aria_encrypt(in, out, key);
crypto/openssl/crypto/evp/e_aria.c
127
size_t length, const ARIA_KEY *key,
crypto/openssl/crypto/evp/e_aria.c
130
CRYPTO_ofb128_encrypt(in, out, length, key, ivec, num,
crypto/openssl/crypto/evp/e_aria.c
218
static int aria_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aria.c
224
if (!iv && !key)
crypto/openssl/crypto/evp/e_aria.c
226
if (key) {
crypto/openssl/crypto/evp/e_aria.c
227
ret = ossl_aria_set_encrypt_key(key,
crypto/openssl/crypto/evp/e_aria.c
378
if (gctx->gcm.key) {
crypto/openssl/crypto/evp/e_aria.c
379
if (gctx->gcm.key != &gctx->ks)
crypto/openssl/crypto/evp/e_aria.c
381
gctx_out->gcm.key = &gctx_out->ks;
crypto/openssl/crypto/evp/e_aria.c
509
static int aria_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aria.c
515
if (!iv && !key)
crypto/openssl/crypto/evp/e_aria.c
518
if (key) {
crypto/openssl/crypto/evp/e_aria.c
519
ret = ossl_aria_set_encrypt_key(key,
crypto/openssl/crypto/evp/e_aria.c
61
static int aria_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_aria.c
623
if (cctx->ccm.key) {
crypto/openssl/crypto/evp/e_aria.c
624
if (cctx->ccm.key != &cctx->ks)
crypto/openssl/crypto/evp/e_aria.c
626
cctx_out->ccm.key = &cctx_out->ks;
crypto/openssl/crypto/evp/e_aria.c
68
ret = ossl_aria_set_encrypt_key(key,
crypto/openssl/crypto/evp/e_aria.c
72
ret = ossl_aria_set_decrypt_key(key,
crypto/openssl/crypto/evp/e_aria.c
83
size_t len, const ARIA_KEY *key,
crypto/openssl/crypto/evp/e_aria.c
88
CRYPTO_cbc128_encrypt(in, out, len, key, ivec,
crypto/openssl/crypto/evp/e_aria.c
91
CRYPTO_cbc128_decrypt(in, out, len, key, ivec,
crypto/openssl/crypto/evp/e_aria.c
96
size_t length, const ARIA_KEY *key,
crypto/openssl/crypto/evp/e_bf.c
25
static int bf_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_bf.c
38
static int bf_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_bf.c
45
BF_set_key(&data(ctx)->ks, len, key);
crypto/openssl/crypto/evp/e_camellia.c
196
static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_camellia.c
202
ret = Camellia_set_key(key, EVP_CIPHER_CTX_get_key_length(ctx) * 8,
crypto/openssl/crypto/evp/e_camellia.c
28
static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_camellia.c
51
static int cmll_t4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_camellia.c
60
cmll_t4_set_key(key, bits, &dat->ks);
crypto/openssl/crypto/evp/e_cast.c
26
static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_cast.c
40
static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_cast.c
47
CAST_set_key(&data(ctx)->ks, keylen, key);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
107
ChaCha20_ctr32(out, inp, blocks, key->key.d, key->counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
112
key->counter[0] = ctr32;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
114
key->counter[1]++;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
118
memset(key->buf, 0, sizeof(key->buf));
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
119
ChaCha20_ctr32(key->buf, key->buf, CHACHA_BLK_SIZE,
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
120
key->key.d, key->counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
122
out[n] = inp[n] ^ key->buf[n];
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
123
key->partial_len = rem;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
155
EVP_CHACHA_KEY key;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
195
actx->nonce[0] = actx->key.counter[1];
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
196
actx->nonce[1] = actx->key.counter[2];
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
197
actx->nonce[2] = actx->key.counter[3];
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
232
actx->key.counter[0] = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
234
ChaCha20_ctr32(buf, zero, buf_len, actx->key.key.d,
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
235
actx->key.counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
237
actx->key.partial_len = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
258
actx->key.counter[0] = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
26
} key;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
260
actx->key.key.d, actx->key.counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
262
actx->key.partial_len = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
290
actx->key.counter[0] = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
292
actx->key.key.d, actx->key.counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
294
actx->key.counter[0] = 1;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
295
actx->key.partial_len = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
303
ChaCha20_ctr32(out, in, plen, actx->key.key.d, actx->key.counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
307
ChaCha20_ctr32(out, in, plen, actx->key.key.d, actx->key.counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
377
actx->key.counter[0] = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
378
ChaCha20_ctr32(actx->key.buf, zero, CHACHA_BLK_SIZE,
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
379
actx->key.key.d, actx->key.counter);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
380
Poly1305_Init(POLY1305_ctx(actx), actx->key.buf);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
381
actx->key.counter[0] = 1;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
382
actx->key.partial_len = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
40
EVP_CHACHA_KEY *key = data(ctx);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
45
key->key.d[i / 4] = CHACHA_U8TOU32(user_key + i);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
50
key->counter[i / 4] = CHACHA_U8TOU32(iv + i);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
53
key->partial_len = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
546
actx->nonce[0] = actx->key.counter[1]
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
548
actx->nonce[1] = actx->key.counter[2]
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
550
actx->nonce[2] = actx->key.counter[3]
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
591
actx->key.counter[1] = actx->nonce[0];
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
592
actx->key.counter[2] = actx->nonce[1] ^ CHACHA_U8TOU32(aad);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
593
actx->key.counter[3] = actx->nonce[2] ^ CHACHA_U8TOU32(aad + 4);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
61
EVP_CHACHA_KEY *key = data(ctx);
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
64
if ((n = key->partial_len)) {
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
66
*out++ = *inp++ ^ key->buf[n++];
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
69
key->partial_len = n;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
75
key->partial_len = 0;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
76
key->counter[0]++;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
77
if (key->counter[0] == 0)
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
78
key->counter[1]++;
crypto/openssl/crypto/evp/e_chacha20_poly1305.c
84
ctr32 = key->counter[0];
crypto/openssl/crypto/evp/e_des.c
208
static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_des.c
211
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/crypto/evp/e_des.c
220
des_t4_key_expand(key, &dat->ks.ks);
crypto/openssl/crypto/evp/e_des.c
44
void des_t4_key_expand(const void *key, DES_key_schedule *ks);
crypto/openssl/crypto/evp/e_des.c
51
static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_des3.c
225
static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_des3.c
228
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/crypto/evp/e_des3.c
251
static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_des3.c
254
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/crypto/evp/e_des3.c
47
void des_t4_key_expand(const void *key, DES_key_schedule *ks);
crypto/openssl/crypto/evp/e_des3.c
54
static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_des3.c
57
static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_idea.c
33
static int idea_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_idea.c
57
static int idea_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_idea.c
67
IDEA_set_encrypt_key(key, &EVP_C_DATA(EVP_IDEA_KEY, ctx)->ks);
crypto/openssl/crypto/evp/e_idea.c
71
IDEA_set_encrypt_key(key, &tmp);
crypto/openssl/crypto/evp/e_null.c
16
static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_null.c
39
static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_rc2.c
27
static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_rc2.c
92
static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_rc2.c
96
key, data(ctx)->key_bits);
crypto/openssl/crypto/evp/e_rc4.c
33
static int rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_rc4.c
77
static int rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_rc4.c
84
RC4_set_key(&data(ctx)->ks, keylen, key);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
101
rc4_md5_enc(&key->ks, in + rc4_off, out + rc4_off,
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
102
&key->md, in + md5_off, blocks);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
106
key->md.Nh += blocks >> 29;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
107
key->md.Nl += blocks <<= 3;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
108
if (key->md.Nl < (unsigned int)blocks)
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
109
key->md.Nh++;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
115
MD5_Update(&key->md, in + md5_off, plen - md5_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
122
MD5_Final(out + plen, &key->md);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
123
key->md = key->tail;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
124
MD5_Update(&key->md, out + plen, MD5_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
125
MD5_Final(out + plen, &key->md);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
127
RC4(&key->ks, len - rc4_off, out + rc4_off, out + rc4_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
129
RC4(&key->ks, len - rc4_off, in + rc4_off, out + rc4_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
141
RC4(&key->ks, rc4_off, in, out);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
142
MD5_Update(&key->md, out, md5_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
144
rc4_md5_enc(&key->ks, in + rc4_off, out + rc4_off,
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
145
&key->md, out + md5_off, blocks);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
149
l = (key->md.Nl + (blocks << 3)) & 0xffffffffU;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
150
if (l < key->md.Nl)
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
151
key->md.Nh++;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
152
key->md.Nl = l;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
153
key->md.Nh += blocks >> 29;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
160
RC4(&key->ks, len - rc4_off, in + rc4_off, out + rc4_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
162
MD5_Update(&key->md, out + md5_off, plen - md5_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
165
MD5_Final(mac, &key->md);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
166
key->md = key->tail;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
167
MD5_Update(&key->md, mac, MD5_DIGEST_LENGTH);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
168
MD5_Final(mac, &key->md);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
173
MD5_Update(&key->md, out + md5_off, len - md5_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
177
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
185
EVP_RC4_HMAC_MD5 *key = data(ctx);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
195
MD5_Init(&key->head);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
196
MD5_Update(&key->head, ptr, arg);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
197
MD5_Final(hmac_key, &key->head);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
204
MD5_Init(&key->head);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
205
MD5_Update(&key->head, hmac_key, sizeof(hmac_key));
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
209
MD5_Init(&key->tail);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
210
MD5_Update(&key->tail, hmac_key, sizeof(hmac_key));
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
232
key->payload_length = len;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
233
key->md = key->head;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
234
MD5_Update(&key->md, p, arg);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
39
void rc4_md5_enc(RC4_KEY *key, const void *in0, void *out,
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
48
EVP_RC4_HMAC_MD5 *key = data(ctx);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
54
RC4_set_key(&key->ks, keylen, inkey);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
56
MD5_Init(&key->head); /* handy when benchmarking */
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
57
key->tail = key->head;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
58
key->md = key->head;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
60
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
77
EVP_RC4_HMAC_MD5 *key = data(ctx);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
79
size_t rc4_off = 32 - 1 - (key->ks.x & (32 - 1)), /* 32 is $MOD from
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
81
md5_off = MD5_CBLOCK - key->md.num, blocks;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
84
size_t plen = key->payload_length;
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
98
MD5_Update(&key->md, in, md5_off);
crypto/openssl/crypto/evp/e_rc4_hmac_md5.c
99
RC4(&key->ks, rc4_off, in, out);
crypto/openssl/crypto/evp/e_rc5.c
27
static int r_32_12_16_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_rc5.c
72
static int r_32_12_16_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_rc5.c
81
return RC5_32_set_key(&data(ctx)->ks, key_len, key, data(ctx)->rounds);
crypto/openssl/crypto/evp/e_seed.c
25
static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_seed.c
36
static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_seed.c
39
SEED_set_key(key, &EVP_C_DATA(EVP_SEED_KEY, ctx)->ks);
crypto/openssl/crypto/evp/e_sm4.c
101
HWSM4_set_encrypt_key(key, &dat->ks.ks);
crypto/openssl/crypto/evp/e_sm4.c
124
vpsm4_set_encrypt_key(key, &dat->ks.ks);
crypto/openssl/crypto/evp/e_sm4.c
137
ossl_sm4_set_key(key, EVP_CIPHER_CTX_get_cipher_data(ctx));
crypto/openssl/crypto/evp/e_sm4.c
59
static int sm4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_sm4.c
70
HWSM4_set_decrypt_key(key, &dat->ks.ks);
crypto/openssl/crypto/evp/e_sm4.c
85
vpsm4_set_decrypt_key(key, &dat->ks.ks);
crypto/openssl/crypto/evp/e_sm4.c
96
ossl_sm4_set_key(key, EVP_CIPHER_CTX_get_cipher_data(ctx));
crypto/openssl/crypto/evp/e_xcbc_d.c
27
static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_xcbc_d.c
60
static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/e_xcbc_d.c
63
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/crypto/evp/e_xcbc_d.c
66
memcpy(&data(ctx)->inw[0], &key[8], 8);
crypto/openssl/crypto/evp/e_xcbc_d.c
67
memcpy(&data(ctx)->outw[0], &key[16], 8);
crypto/openssl/crypto/evp/evp_enc.c
1749
int EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key)
crypto/openssl/crypto/evp/evp_enc.c
1752
return EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_RAND_KEY, 0, key);
crypto/openssl/crypto/evp/evp_enc.c
1762
if (kl <= 0 || RAND_priv_bytes_ex(libctx, key, kl, 0) <= 0)
crypto/openssl/crypto/evp/evp_enc.c
289
if (key == NULL && ctx->cipher->einit_skey != NULL) {
crypto/openssl/crypto/evp/evp_enc.c
301
key,
crypto/openssl/crypto/evp/evp_enc.c
302
key == NULL ? 0
crypto/openssl/crypto/evp/evp_enc.c
315
if (key == NULL && ctx->cipher->dinit_skey != NULL) {
crypto/openssl/crypto/evp/evp_enc.c
327
key,
crypto/openssl/crypto/evp/evp_enc.c
328
key == NULL ? 0
crypto/openssl/crypto/evp/evp_enc.c
467
if (key != NULL || (ctx->cipher->flags & EVP_CIPH_ALWAYS_CALL_INIT)) {
crypto/openssl/crypto/evp/evp_enc.c
468
if (!ctx->cipher->init(ctx, key, iv, enc))
crypto/openssl/crypto/evp/evp_enc.c
635
const unsigned char *key, const unsigned char *iv,
crypto/openssl/crypto/evp/evp_enc.c
638
return evp_cipher_init_internal(ctx, cipher, NULL, key, iv, enc, 0, params);
crypto/openssl/crypto/evp/evp_enc.c
642
const unsigned char *key, const unsigned char *iv, int enc)
crypto/openssl/crypto/evp/evp_enc.c
646
return evp_cipher_init_internal(ctx, cipher, NULL, key, iv, enc, 0, NULL);
crypto/openssl/crypto/evp/evp_enc.c
650
ENGINE *impl, const unsigned char *key,
crypto/openssl/crypto/evp/evp_enc.c
653
return evp_cipher_init_internal(ctx, cipher, impl, key, iv, enc, 0, NULL);
crypto/openssl/crypto/evp/evp_enc.c
657
const unsigned char *key, size_t keylen,
crypto/openssl/crypto/evp/evp_enc.c
678
key,
crypto/openssl/crypto/evp/evp_enc.c
687
const unsigned char *key, size_t keylen,
crypto/openssl/crypto/evp/evp_enc.c
708
key,
crypto/openssl/crypto/evp/evp_enc.c
810
const unsigned char *key, const unsigned char *iv)
crypto/openssl/crypto/evp/evp_enc.c
812
return EVP_CipherInit(ctx, cipher, key, iv, 1);
crypto/openssl/crypto/evp/evp_enc.c
816
ENGINE *impl, const unsigned char *key,
crypto/openssl/crypto/evp/evp_enc.c
819
return EVP_CipherInit_ex(ctx, cipher, impl, key, iv, 1);
crypto/openssl/crypto/evp/evp_enc.c
823
const unsigned char *key, const unsigned char *iv,
crypto/openssl/crypto/evp/evp_enc.c
826
return EVP_CipherInit_ex2(ctx, cipher, key, iv, 1, params);
crypto/openssl/crypto/evp/evp_enc.c
830
const unsigned char *key, const unsigned char *iv)
crypto/openssl/crypto/evp/evp_enc.c
832
return EVP_CipherInit(ctx, cipher, key, iv, 0);
crypto/openssl/crypto/evp/evp_enc.c
836
ENGINE *impl, const unsigned char *key,
crypto/openssl/crypto/evp/evp_enc.c
839
return EVP_CipherInit_ex(ctx, cipher, impl, key, iv, 0);
crypto/openssl/crypto/evp/evp_enc.c
843
const unsigned char *key, const unsigned char *iv,
crypto/openssl/crypto/evp/evp_enc.c
846
return EVP_CipherInit_ex2(ctx, cipher, key, iv, 0, params);
crypto/openssl/crypto/evp/evp_enc.c
94
ENGINE *impl, const unsigned char *key,
crypto/openssl/crypto/evp/evp_key.c
130
if (key != NULL)
crypto/openssl/crypto/evp/evp_key.c
131
*(key++) = md_buf[i];
crypto/openssl/crypto/evp/evp_key.c
82
int datal, int count, unsigned char *key,
crypto/openssl/crypto/evp/evp_lib.c
1308
derk = params[i].key;
crypto/openssl/crypto/evp/evp_pkey.c
185
int EVP_PKEY_get_attr_count(const EVP_PKEY *key)
crypto/openssl/crypto/evp/evp_pkey.c
187
return X509at_get_attr_count(key->attributes);
crypto/openssl/crypto/evp/evp_pkey.c
190
int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos)
crypto/openssl/crypto/evp/evp_pkey.c
192
return X509at_get_attr_by_NID(key->attributes, nid, lastpos);
crypto/openssl/crypto/evp/evp_pkey.c
195
int EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, const ASN1_OBJECT *obj,
crypto/openssl/crypto/evp/evp_pkey.c
198
return X509at_get_attr_by_OBJ(key->attributes, obj, lastpos);
crypto/openssl/crypto/evp/evp_pkey.c
201
X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc)
crypto/openssl/crypto/evp/evp_pkey.c
203
return X509at_get_attr(key->attributes, loc);
crypto/openssl/crypto/evp/evp_pkey.c
206
X509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc)
crypto/openssl/crypto/evp/evp_pkey.c
208
return X509at_delete_attr(key->attributes, loc);
crypto/openssl/crypto/evp/evp_pkey.c
211
int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr)
crypto/openssl/crypto/evp/evp_pkey.c
213
if (X509at_add1_attr(&key->attributes, attr))
crypto/openssl/crypto/evp/evp_pkey.c
218
int EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key,
crypto/openssl/crypto/evp/evp_pkey.c
222
if (X509at_add1_attr_by_OBJ(&key->attributes, obj, type, bytes, len))
crypto/openssl/crypto/evp/evp_pkey.c
227
int EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key,
crypto/openssl/crypto/evp/evp_pkey.c
231
if (X509at_add1_attr_by_NID(&key->attributes, nid, type, bytes, len))
crypto/openssl/crypto/evp/evp_pkey.c
236
int EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key,
crypto/openssl/crypto/evp/evp_pkey.c
240
if (X509at_add1_attr_by_txt(&key->attributes, attrname, type, bytes, len))
crypto/openssl/crypto/evp/evp_pkey.c
245
const char *EVP_PKEY_get0_type_name(const EVP_PKEY *key)
crypto/openssl/crypto/evp/evp_pkey.c
250
if (key->keymgmt != NULL)
crypto/openssl/crypto/evp/evp_pkey.c
251
return EVP_KEYMGMT_get0_name(key->keymgmt);
crypto/openssl/crypto/evp/evp_pkey.c
254
ameth = EVP_PKEY_get0_asn1(key);
crypto/openssl/crypto/evp/evp_pkey.c
262
const OSSL_PROVIDER *EVP_PKEY_get0_provider(const EVP_PKEY *key)
crypto/openssl/crypto/evp/evp_pkey.c
264
if (evp_pkey_is_provided(key))
crypto/openssl/crypto/evp/evp_pkey.c
265
return EVP_KEYMGMT_get0_provider(key->keymgmt);
crypto/openssl/crypto/evp/exchange.c
514
int EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *pkeylen)
crypto/openssl/crypto/evp/exchange.c
531
ret = ctx->op.kex.exchange->derive(ctx->op.kex.algctx, key, pkeylen,
crypto/openssl/crypto/evp/exchange.c
532
key != NULL ? *pkeylen : 0);
crypto/openssl/crypto/evp/exchange.c
541
M_check_autoarg(ctx, key, pkeylen, EVP_F_EVP_PKEY_DERIVE) return ctx->pmeth->derive(ctx, key, pkeylen);
crypto/openssl/crypto/evp/kdf_lib.c
138
int EVP_KDF_derive(EVP_KDF_CTX *ctx, unsigned char *key, size_t keylen,
crypto/openssl/crypto/evp/kdf_lib.c
144
return ctx->meth->derive(ctx->algctx, key, keylen, params);
crypto/openssl/crypto/evp/keymgmt_lib.c
47
if (params[0].key == NULL)
crypto/openssl/crypto/evp/mac_lib.c
115
int EVP_MAC_init(EVP_MAC_CTX *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/crypto/evp/mac_lib.c
122
return ctx->meth->init(ctx->algctx, key, keylen, params);
crypto/openssl/crypto/evp/mac_lib.c
257
const void *key, size_t keylen,
crypto/openssl/crypto/evp/mac_lib.c
290
if (key == NULL && keylen == 0)
crypto/openssl/crypto/evp/mac_lib.c
291
key = data;
crypto/openssl/crypto/evp/mac_lib.c
295
&& EVP_MAC_init(ctx, key, keylen, params)
crypto/openssl/crypto/evp/p5_crpt.c
100
if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, iv, en_de))
crypto/openssl/crypto/evp/p5_crpt.c
103
OPENSSL_cleanse(key, EVP_MAX_KEY_LENGTH);
crypto/openssl/crypto/evp/p5_crpt.c
32
unsigned char key[EVP_MAX_KEY_LENGTH], iv[EVP_MAX_IV_LENGTH];
crypto/openssl/crypto/evp/p5_crpt.c
98
memcpy(key, md_tmp, kl);
crypto/openssl/crypto/evp/p5_crpt2.c
186
unsigned char *salt, key[EVP_MAX_KEY_LENGTH];
crypto/openssl/crypto/evp/p5_crpt2.c
200
OPENSSL_assert(keylen <= sizeof(key));
crypto/openssl/crypto/evp/p5_crpt2.c
256
keylen, key, libctx, propq))
crypto/openssl/crypto/evp/p5_crpt2.c
258
rv = EVP_CipherInit_ex(ctx, NULL, NULL, key, NULL, en_de);
crypto/openssl/crypto/evp/p5_crpt2.c
260
OPENSSL_cleanse(key, keylen);
crypto/openssl/crypto/evp/p_dec.c
21
int EVP_PKEY_decrypt_old(unsigned char *key, const unsigned char *ek, int ekl,
crypto/openssl/crypto/evp/p_dec.c
36
ret = RSA_private_decrypt(ekl, ek, key, rsa, RSA_PKCS1_PADDING);
crypto/openssl/crypto/evp/p_enc.c
21
int EVP_PKEY_encrypt_old(unsigned char *ek, const unsigned char *key,
crypto/openssl/crypto/evp/p_enc.c
36
ret = RSA_public_encrypt(key_len, key, ek, rsa, RSA_PKCS1_PADDING);
crypto/openssl/crypto/evp/p_legacy.c
25
int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key)
crypto/openssl/crypto/evp/p_legacy.c
29
if (!RSA_up_ref(key))
crypto/openssl/crypto/evp/p_legacy.c
32
ret = EVP_PKEY_assign_RSA(pkey, key);
crypto/openssl/crypto/evp/p_legacy.c
35
RSA_free(key);
crypto/openssl/crypto/evp/p_legacy.c
65
int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key)
crypto/openssl/crypto/evp/p_legacy.c
67
if (!EC_KEY_up_ref(key))
crypto/openssl/crypto/evp/p_legacy.c
69
if (!EVP_PKEY_assign_EC_KEY(pkey, key)) {
crypto/openssl/crypto/evp/p_legacy.c
70
EC_KEY_free(key);
crypto/openssl/crypto/evp/p_lib.c
116
int EVP_PKEY_set_ex_data(EVP_PKEY *key, int idx, void *arg)
crypto/openssl/crypto/evp/p_lib.c
118
return CRYPTO_set_ex_data(&key->ex_data, idx, arg);
crypto/openssl/crypto/evp/p_lib.c
121
void *EVP_PKEY_get_ex_data(const EVP_PKEY *key, int idx)
crypto/openssl/crypto/evp/p_lib.c
123
return CRYPTO_get_ex_data(&key->ex_data, idx);
crypto/openssl/crypto/evp/p_lib.c
416
const unsigned char *key,
crypto/openssl/crypto/evp/p_lib.c
463
(void *)key, len);
crypto/openssl/crypto/evp/p_lib.c
500
if (!pkey->ameth->set_priv_key(pkey, key, len)) {
crypto/openssl/crypto/evp/p_lib.c
510
if (!pkey->ameth->set_pub_key(pkey, key, len)) {
crypto/openssl/crypto/evp/p_lib.c
55
static void evp_pkey_free_it(EVP_PKEY *key);
crypto/openssl/crypto/evp/p_lib.c
558
unsigned char **key;
crypto/openssl/crypto/evp/p_lib.c
572
return OSSL_PARAM_get_octet_string(p, (void **)raw_key->key,
crypto/openssl/crypto/evp/p_lib.c
573
raw_key->key == NULL ? 0 : *raw_key->len,
crypto/openssl/crypto/evp/p_lib.c
578
return OSSL_PARAM_get_octet_string(p, (void **)raw_key->key,
crypto/openssl/crypto/evp/p_lib.c
579
raw_key->key == NULL ? 0 : *raw_key->len,
crypto/openssl/crypto/evp/p_lib.c
592
raw_key.key = priv == NULL ? NULL : &priv;
crypto/openssl/crypto/evp/p_lib.c
624
raw_key.key = pub == NULL ? NULL : &pub;
crypto/openssl/crypto/evp/p_lib.c
786
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key)
crypto/openssl/crypto/evp/p_lib.c
792
if ((key != NULL) && (pktype == EVP_PKEY_EC || pktype == EVP_PKEY_SM2)) {
crypto/openssl/crypto/evp/p_lib.c
793
const EC_GROUP *group = EC_KEY_get0_group(key);
crypto/openssl/crypto/evp/p_lib.c
813
pkey->pkey.ptr = key;
crypto/openssl/crypto/evp/p_lib.c
816
return (key != NULL);
crypto/openssl/crypto/evp/p_lib.c
896
int EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key)
crypto/openssl/crypto/evp/p_lib.c
900
if (!DSA_up_ref(key))
crypto/openssl/crypto/evp/p_lib.c
903
ret = EVP_PKEY_assign_DSA(pkey, key);
crypto/openssl/crypto/evp/p_lib.c
906
DSA_free(key);
crypto/openssl/crypto/evp/p_open.c
22
unsigned char *key = NULL;
crypto/openssl/crypto/evp/p_open.c
45
if ((key = OPENSSL_malloc(keylen)) == NULL)
crypto/openssl/crypto/evp/p_open.c
48
if (EVP_PKEY_decrypt(pctx, key, &keylen, ek, ekl) <= 0)
crypto/openssl/crypto/evp/p_open.c
52
|| !EVP_DecryptInit_ex(ctx, NULL, NULL, key, iv))
crypto/openssl/crypto/evp/p_open.c
58
OPENSSL_clear_free(key, keylen);
crypto/openssl/crypto/evp/p_seal.c
23
unsigned char key[EVP_MAX_KEY_LENGTH];
crypto/openssl/crypto/evp/p_seal.c
42
if (EVP_CIPHER_CTX_rand_key(ctx, key) <= 0)
crypto/openssl/crypto/evp/p_seal.c
53
if (!EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv))
crypto/openssl/crypto/evp/p_seal.c
67
|| EVP_PKEY_encrypt(pctx, ek[i], &outlen, key, keylen) <= 0)
crypto/openssl/crypto/evp/p_seal.c
76
OPENSSL_cleanse(key, sizeof(key));
crypto/openssl/crypto/evp/pbe_scrypt.c
40
unsigned char *key, size_t keylen,
crypto/openssl/crypto/evp/pbe_scrypt.c
83
if (EVP_KDF_derive(kctx, key, keylen, params) != 1)
crypto/openssl/crypto/evp/pbe_scrypt.c
93
unsigned char *key, size_t keylen)
crypto/openssl/crypto/evp/pbe_scrypt.c
96
key, keylen, NULL, NULL);
crypto/openssl/crypto/evp/pmeth_gn.c
314
const unsigned char *key, int keylen)
crypto/openssl/crypto/evp/pmeth_gn.c
323
if (EVP_PKEY_CTX_set_mac_key(mac_ctx, key, keylen) <= 0)
crypto/openssl/crypto/evp/pmeth_lib.c
1134
const unsigned char *key, int keylen)
crypto/openssl/crypto/evp/pmeth_lib.c
1140
key, keylen);
crypto/openssl/crypto/evp/pmeth_lib.c
1252
int EVP_PKEY_CTX_set_mac_key(EVP_PKEY_CTX *ctx, const unsigned char *key,
crypto/openssl/crypto/evp/pmeth_lib.c
1259
key, keylen);
crypto/openssl/crypto/evp/pmeth_lib.c
1792
unsigned char *key,
crypto/openssl/crypto/evp/pmeth_lib.c
1994
unsigned char *key,
crypto/openssl/crypto/evp/pmeth_lib.c
873
for (p = params; p->key != NULL; p++) {
crypto/openssl/crypto/evp/pmeth_lib.c
875
if (OSSL_PARAM_locate_const(settable, p->key) == NULL)
crypto/openssl/crypto/evp/pmeth_lib.c
898
for (p = params; p->key != NULL; p++) {
crypto/openssl/crypto/evp/pmeth_lib.c
900
if (OSSL_PARAM_locate_const(gettable, p->key) == NULL)
crypto/openssl/crypto/evp/s_lib.c
126
const void **key;
crypto/openssl/crypto/evp/s_lib.c
136
return OSSL_PARAM_get_octet_string_ptr(p, raw_key->key, raw_key->len);
crypto/openssl/crypto/evp/s_lib.c
141
int EVP_SKEY_get0_raw_key(const EVP_SKEY *skey, const unsigned char **key,
crypto/openssl/crypto/evp/s_lib.c
146
if (skey == NULL || key == NULL || len == NULL) {
crypto/openssl/crypto/evp/s_lib.c
151
raw_key.key = (const void **)key;
crypto/openssl/crypto/evp/s_lib.c
160
unsigned char *key, size_t keylen,
crypto/openssl/crypto/evp/s_lib.c
166
(void *)key, keylen);
crypto/openssl/crypto/hashtable/hashfunc.c
13
ossl_unused uint64_t ossl_fnv1a_hash(uint8_t *key, size_t len)
crypto/openssl/crypto/hashtable/hashfunc.c
19
hash ^= key[i];
crypto/openssl/crypto/hashtable/hashtable.c
558
if (compare_hash(hash, ihash) && match_key(&newval->value.key, &ival->key)) {
crypto/openssl/crypto/hashtable/hashtable.c
594
static struct ht_internal_value_st *alloc_new_value(HT *h, HT_KEY *key,
crypto/openssl/crypto/hashtable/hashtable.c
602
nvsize += key->keysize;
crypto/openssl/crypto/hashtable/hashtable.c
612
tmp->value.key.keybuf = NULL;
crypto/openssl/crypto/hashtable/hashtable.c
614
tmp->value.key.keybuf = (uint8_t *)(tmp + 1);
crypto/openssl/crypto/hashtable/hashtable.c
615
tmp->value.key.keysize = key->keysize;
crypto/openssl/crypto/hashtable/hashtable.c
616
memcpy(tmp->value.key.keybuf, key->keybuf, key->keysize);
crypto/openssl/crypto/hashtable/hashtable.c
627
int ossl_ht_insert(HT *h, HT_KEY *key, HT_VALUE *data, HT_VALUE **olddata)
crypto/openssl/crypto/hashtable/hashtable.c
637
newval = alloc_new_value(h, key, data->value, data->type_id);
crypto/openssl/crypto/hashtable/hashtable.c
645
hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
crypto/openssl/crypto/hashtable/hashtable.c
663
HT_VALUE *ossl_ht_get(HT *h, HT_KEY *key)
crypto/openssl/crypto/hashtable/hashtable.c
674
hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
crypto/openssl/crypto/hashtable/hashtable.c
691
if (compare_hash(hash, ehash) && match_key(&ival->value.key, key))
crypto/openssl/crypto/hashtable/hashtable.c
711
int ossl_ht_delete(HT *h, HT_KEY *key)
crypto/openssl/crypto/hashtable/hashtable.c
723
hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
crypto/openssl/crypto/hashtable/hashtable.c
732
&& match_key(key, &v->value.key)) {
crypto/openssl/crypto/hmac/hmac.c
108
int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md)
crypto/openssl/crypto/hmac/hmac.c
110
if (key && md)
crypto/openssl/crypto/hmac/hmac.c
112
return HMAC_Init_ex(ctx, key, len, md, NULL);
crypto/openssl/crypto/hmac/hmac.c
248
unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
crypto/openssl/crypto/hmac/hmac.c
25
int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
crypto/openssl/crypto/hmac/hmac.c
259
key, key_len, data, data_len,
crypto/openssl/crypto/hmac/hmac.c
35
if (md != NULL && md != ctx->md && (key == NULL || len < 0))
crypto/openssl/crypto/hmac/hmac.c
53
rv = s390x_HMAC_init(ctx, key, len, impl);
crypto/openssl/crypto/hmac/hmac.c
58
if (key != NULL) {
crypto/openssl/crypto/hmac/hmac.c
68
|| !EVP_DigestUpdate(ctx->md_ctx, key, len)
crypto/openssl/crypto/hmac/hmac.c
75
memcpy(keytmp, key, len);
crypto/openssl/crypto/hmac/hmac_local.h
43
unsigned char key[64];
crypto/openssl/crypto/hmac/hmac_local.h
48
unsigned char key[128];
crypto/openssl/crypto/hmac/hmac_local.h
59
int s390x_HMAC_init(HMAC_CTX *ctx, const void *key, int key_len, ENGINE *impl);
crypto/openssl/crypto/hmac/hmac_s390x.c
146
if (key != NULL) {
crypto/openssl/crypto/hmac/hmac_s390x.c
150
OPENSSL_cleanse(&ctx->plat.s390x.param.hmac_224_256.key,
crypto/openssl/crypto/hmac/hmac_s390x.c
151
sizeof(ctx->plat.s390x.param.hmac_224_256.key));
crypto/openssl/crypto/hmac/hmac_s390x.c
152
key_param = ctx->plat.s390x.param.hmac_224_256.key;
crypto/openssl/crypto/hmac/hmac_s390x.c
153
key_param_len = sizeof(ctx->plat.s390x.param.hmac_224_256.key);
crypto/openssl/crypto/hmac/hmac_s390x.c
157
OPENSSL_cleanse(&ctx->plat.s390x.param.hmac_384_512.key,
crypto/openssl/crypto/hmac/hmac_s390x.c
158
sizeof(ctx->plat.s390x.param.hmac_384_512.key));
crypto/openssl/crypto/hmac/hmac_s390x.c
159
key_param = ctx->plat.s390x.param.hmac_384_512.key;
crypto/openssl/crypto/hmac/hmac_s390x.c
160
key_param_len = sizeof(ctx->plat.s390x.param.hmac_384_512.key);
crypto/openssl/crypto/hmac/hmac_s390x.c
171
|| !EVP_DigestUpdate(ctx->md_ctx, key, key_len)
crypto/openssl/crypto/hmac/hmac_s390x.c
178
memcpy(key_param, key, key_len);
crypto/openssl/crypto/hmac/hmac_s390x.c
98
int s390x_HMAC_init(HMAC_CTX *ctx, const void *key, int key_len, ENGINE *impl)
crypto/openssl/crypto/hpke/hpke.c
1184
if (ctx->key == NULL || ctx->nonce == NULL) {
crypto/openssl/crypto/hpke/hpke.c
1226
if (ctx->key == NULL || ctx->nonce == NULL) {
crypto/openssl/crypto/hpke/hpke.c
171
if (EVP_DecryptInit_ex(ctx, NULL, NULL, hctx->key, iv) != 1) {
crypto/openssl/crypto/hpke/hpke.c
253
if (EVP_EncryptInit_ex(ctx, NULL, NULL, hctx->key, iv) != 1) {
crypto/openssl/crypto/hpke/hpke.c
61
unsigned char *key; /* final aead key */
crypto/openssl/crypto/hpke/hpke.c
769
ctx->key = OPENSSL_malloc(ctx->keylen);
crypto/openssl/crypto/hpke/hpke.c
770
if (ctx->key == NULL)
crypto/openssl/crypto/hpke/hpke.c
772
if (ossl_hpke_labeled_expand(kctx, ctx->key, ctx->keylen,
crypto/openssl/crypto/hpke/hpke.c
869
OPENSSL_clear_free(ctx->key, ctx->keylen);
crypto/openssl/crypto/http/http_client.c
559
char *buf, *key, *value, *line_end = NULL;
crypto/openssl/crypto/http/http_client.c
777
key = buf;
crypto/openssl/crypto/http/http_client.c
778
value = strchr(key, ':');
crypto/openssl/crypto/http/http_client.c
791
&& OPENSSL_strcasecmp(key, "Location") == 0) {
crypto/openssl/crypto/http/http_client.c
799
if (OPENSSL_strcasecmp(key, "Content-Type") == 0) {
crypto/openssl/crypto/http/http_client.c
835
if (OPENSSL_strcasecmp(key, "Connection") == 0) {
crypto/openssl/crypto/http/http_client.c
840
} else if (OPENSSL_strcasecmp(key, "Content-Length") == 0) {
crypto/openssl/crypto/idea/i_cbc.c
106
p = &(key->data[0][0]);
crypto/openssl/crypto/idea/i_cbc.c
96
void IDEA_encrypt(unsigned long *d, IDEA_KEY_SCHEDULE *key)
crypto/openssl/crypto/idea/i_skey.c
21
void IDEA_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks)
crypto/openssl/crypto/idea/i_skey.c
27
n2s(key, kt[0]);
crypto/openssl/crypto/idea/i_skey.c
28
n2s(key, kt[1]);
crypto/openssl/crypto/idea/i_skey.c
29
n2s(key, kt[2]);
crypto/openssl/crypto/idea/i_skey.c
30
n2s(key, kt[3]);
crypto/openssl/crypto/idea/i_skey.c
31
n2s(key, kt[4]);
crypto/openssl/crypto/idea/i_skey.c
32
n2s(key, kt[5]);
crypto/openssl/crypto/idea/i_skey.c
33
n2s(key, kt[6]);
crypto/openssl/crypto/idea/i_skey.c
34
n2s(key, kt[7]);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
622
int ossl_ml_dsa_pk_encode(ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
626
const POLY *t1 = key->t1.poly;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
627
size_t t1_len = key->t1.num_poly;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
628
size_t enc_len = key->params->pk_len;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
636
|| !WPACKET_memcpy(&pkt, key->rho, sizeof(key->rho)))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
644
OPENSSL_free(key->pub_encoding);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
645
key->pub_encoding = enc;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
664
int ossl_ml_dsa_pk_decode(ML_DSA_KEY *key, const uint8_t *in, size_t in_len)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
671
if (key->priv_encoding != NULL || key->pub_encoding != NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
673
if (in_len != key->params->pk_len)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
676
if (!ossl_ml_dsa_key_pub_alloc(key))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
682
|| !PACKET_copy_bytes(&pkt, key->rho, sizeof(key->rho)))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
684
for (i = 0; i < key->t1.num_poly; i++)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
685
if (!poly_decode_10_bits(key->t1.poly + i, &pkt))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
689
if (!shake_xof(ctx, key->shake256_md, in, in_len, key->tr, sizeof(key->tr)))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
692
key->pub_encoding = OPENSSL_memdup(in, in_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
693
ret = (key->pub_encoding != NULL);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
707
int ossl_ml_dsa_sk_encode(ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
710
const ML_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
714
const POLY *t0 = key->t0.poly;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
728
|| !WPACKET_memcpy(&pkt, key->rho, sizeof(key->rho))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
729
|| !WPACKET_memcpy(&pkt, key->K, sizeof(key->K))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
730
|| !WPACKET_memcpy(&pkt, key->tr, sizeof(key->tr)))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
733
if (!encode_fn(key->s1.poly + i, &pkt))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
736
if (!encode_fn(key->s2.poly + i, &pkt))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
744
OPENSSL_clear_free(key->priv_encoding, enc_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
745
key->priv_encoding = enc;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
764
int ossl_ml_dsa_sk_decode(ML_DSA_KEY *key, const uint8_t *in, size_t in_len)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
767
const ML_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
773
OPENSSL_clear_free(key->seed, ML_DSA_SEED_BYTES);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
774
key->seed = NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
777
if ((key->priv_encoding != NULL && key->priv_encoding != in)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
778
|| key->pub_encoding != NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
780
if (in_len != key->params->sk_len)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
782
if (!ossl_ml_dsa_key_priv_alloc(key))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
792
|| !PACKET_copy_bytes(&pkt, key->rho, sizeof(key->rho))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
793
|| !PACKET_copy_bytes(&pkt, key->K, sizeof(key->K))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
798
if (!decode_fn(key->s1.poly + i, &pkt))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
801
if (!decode_fn(key->s2.poly + i, &pkt))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
804
if (!poly_decode_signed_two_to_power_12(key->t0.poly + i, &pkt))
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
808
if (key->priv_encoding == NULL
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
809
&& (key->priv_encoding = OPENSSL_memdup(in, in_len)) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
815
if (!ossl_ml_dsa_key_public_from_private(key)
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
816
|| memcmp(input_tr, key->tr, sizeof(input_tr)) != 0) {
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
819
key->params->alg);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
820
ossl_ml_dsa_key_reset(key);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
103
int ossl_ml_dsa_key_pub_alloc(ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
105
if (key->t1.poly != NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
107
return vector_alloc(&key->t1, key->params->k);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
110
int ossl_ml_dsa_key_priv_alloc(ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
112
size_t k = key->params->k, l = key->params->l;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
115
if (key->s1.poly != NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
117
if (!vector_alloc(&key->s1, l + 2 * k))
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
120
poly = key->s1.poly;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
121
key->s1.num_poly = l;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
122
vector_init(&key->s2, poly + l, k);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
123
vector_init(&key->t0, poly + l + k, k);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
130
void ossl_ml_dsa_key_free(ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
132
if (key == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
135
EVP_MD_free(key->shake128_md);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
136
EVP_MD_free(key->shake256_md);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
137
ossl_ml_dsa_key_reset(key);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
138
OPENSSL_free(key);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
144
void ossl_ml_dsa_key_reset(ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
150
if (key->s1.poly != NULL) {
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
151
vector_zero(&key->s1);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
152
vector_zero(&key->s2);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
153
vector_zero(&key->t0);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
154
vector_free(&key->s1);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
155
key->s2.poly = NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
156
key->t0.poly = NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
159
vector_free(&key->t1);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
160
OPENSSL_cleanse(key->K, sizeof(key->K));
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
161
OPENSSL_free(key->pub_encoding);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
162
key->pub_encoding = NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
163
if (key->priv_encoding != NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
164
OPENSSL_clear_free(key->priv_encoding, key->params->sk_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
165
key->priv_encoding = NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
166
if (key->seed != NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
167
OPENSSL_clear_free(key->seed, ML_DSA_SEED_BYTES);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
168
key->seed = NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
21
const ML_DSA_PARAMS *ossl_ml_dsa_key_params(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
23
return key->params;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
27
const uint8_t *ossl_ml_dsa_key_get_seed(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
289
int ossl_ml_dsa_key_has(const ML_DSA_KEY *key, int selection)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
29
return key->seed;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
293
if (ossl_ml_dsa_key_get_pub(key) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
296
&& ossl_ml_dsa_key_get_priv(key) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
315
static int public_from_private(const ML_DSA_KEY *key, EVP_MD_CTX *md_ctx,
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
319
const ML_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
32
int ossl_ml_dsa_key_get_prov_flags(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
335
if (!matrix_expand_A(md_ctx, key->shake128_md, key->rho, &a_ntt))
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
339
vector_copy(&s1_ntt, &key->s1);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
34
return key->prov_flags;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
344
vector_add(&t, &key->s2, &t);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
357
int ossl_ml_dsa_key_public_from_private(ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
363
if (!vector_alloc(&t0, key->params->k)) /* t0 is already in the private key */
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
366
&& ossl_ml_dsa_key_pub_alloc(key) /* allocate space for t1 */
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
367
&& public_from_private(key, md_ctx, &key->t1, &t0)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
368
&& vector_equal(&t0, &key->t0) /* compare the generated t0 to the expected */
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
369
&& ossl_ml_dsa_pk_encode(key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
37
int ossl_ml_dsa_set_prekey(ML_DSA_KEY *key, int flags_set, int flags_clr,
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
370
&& shake_xof(md_ctx, key->shake256_md,
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
371
key->pub_encoding, key->params->pk_len,
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
372
key->tr, sizeof(key->tr));
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
378
int ossl_ml_dsa_key_pairwise_check(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
383
uint32_t k = key->params->k;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
386
if (key->pub_encoding == NULL || key->priv_encoding == 0)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
398
if (!public_from_private(key, md_ctx, &t1, &t0))
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
401
ret = vector_equal(&t1, &key->t1) && vector_equal(&t0, &key->t0);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
43
if (key == NULL
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
44
|| key->pub_encoding != NULL
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
45
|| key->priv_encoding != NULL
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
46
|| (sk != NULL && sk_len != key->params->sk_len)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
48
|| key->seed != NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
507
int ossl_ml_dsa_key_matches(const ML_DSA_KEY *key, int evp_type)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
509
return (key->params->evp_type == evp_type);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
513
const uint8_t *ossl_ml_dsa_key_get_pub(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
515
return key->pub_encoding;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
519
size_t ossl_ml_dsa_key_get_pub_len(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
52
&& (key->priv_encoding = OPENSSL_memdup(sk, sk_len)) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
521
return key->params->pk_len;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
524
size_t ossl_ml_dsa_key_get_collision_strength_bits(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
526
return key->params->bit_strength;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
530
const uint8_t *ossl_ml_dsa_key_get_priv(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
532
return key->priv_encoding;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
535
size_t ossl_ml_dsa_key_get_priv_len(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
537
return key->params->sk_len;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
540
size_t ossl_ml_dsa_key_get_sig_len(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
542
return key->params->sig_len;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
545
OSSL_LIB_CTX *ossl_ml_dsa_key_get0_libctx(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
547
return key != NULL ? key->libctx : NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
55
&& (key->seed = OPENSSL_memdup(seed, seed_len)) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
550
const char *ossl_ml_dsa_key_get_name(const ML_DSA_KEY *key)
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
552
return key->params->alg;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
57
key->prov_flags |= flags_set;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
58
key->prov_flags &= ~flags_clr;
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
63
OPENSSL_free(key->priv_encoding);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
64
OPENSSL_free(key->seed);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
65
key->priv_encoding = key->seed = NULL;
crypto/openssl/crypto/ml_dsa/ml_dsa_local.h
92
int ossl_ml_dsa_pk_encode(ML_DSA_KEY *key);
crypto/openssl/crypto/ml_dsa/ml_dsa_local.h
93
int ossl_ml_dsa_sk_encode(ML_DSA_KEY *key);
crypto/openssl/crypto/ml_kem/ml_kem.c
117
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key);
crypto/openssl/crypto/ml_kem/ml_kem.c
1306
static __owur int matrix_expand(EVP_MD_CTX *mdctx, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1308
scalar *out = key->m;
crypto/openssl/crypto/ml_kem/ml_kem.c
1310
int rank = key->vinfo->rank;
crypto/openssl/crypto/ml_kem/ml_kem.c
1313
memcpy(input, key->rho, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1318
if (!EVP_DigestInit_ex(mdctx, key->shake128_md, NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
1336
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1343
if (!prf(randbuf, sizeof(randbuf), in, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1376
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1383
if (!prf(randbuf, sizeof(randbuf), in, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1427
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1434
if (!cbd(out++, input, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1445
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1452
if (!cbd(out, input, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1481
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1483
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1497
if (!gencbd_vector_ntt(y, cbd_1, &counter, r, rank, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1500
inner_product(&v, key->t, y, rank);
crypto/openssl/crypto/ml_kem/ml_kem.c
1503
matrix_mult_intt(u, key->m, y, rank);
crypto/openssl/crypto/ml_kem/ml_kem.c
1506
if (!gencbd_vector(e1, cbd_2, &counter, r, rank, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1515
if (!cbd_2(e2, input, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1531
const uint8_t *ctext, scalar *u, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1533
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1542
inner_product(&mask, key->s, u, rank);
crypto/openssl/crypto/ml_kem/ml_kem.c
1557
static void encode_pubkey(uint8_t *out, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1559
const uint8_t *rho = key->rho;
crypto/openssl/crypto/ml_kem/ml_kem.c
1560
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1562
vector_encode(out, key->t, 12, vinfo->rank);
crypto/openssl/crypto/ml_kem/ml_kem.c
1572
static void encode_prvkey(uint8_t *out, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1574
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1576
vector_encode(out, key->s, 12, vinfo->rank);
crypto/openssl/crypto/ml_kem/ml_kem.c
1578
encode_pubkey(out, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
1580
memcpy(out, key->pkhash, ML_KEM_PKHASH_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1582
memcpy(out, key->z, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1593
static int parse_pubkey(const uint8_t *in, EVP_MD_CTX *mdctx, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1595
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1598
if (!vector_decode_12(key->t, in, vinfo->rank)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1605
memcpy(key->rho, in + vinfo->vector_bytes, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1610
if (!hash_h(key->pkhash, in, vinfo->pubkey_bytes, mdctx, key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1611
|| !matrix_expand(mdctx, key)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1626
static int parse_prvkey(const uint8_t *in, EVP_MD_CTX *mdctx, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1628
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1631
if (!vector_decode_12(key->s, in, vinfo->rank)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1639
if (!parse_pubkey(in, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1644
if (memcmp(key->pkhash, in, ML_KEM_PKHASH_BYTES) != 0) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1652
memcpy(key->z, in, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1682
EVP_MD_CTX *mdctx, uint8_t *pubenc, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1687
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1699
if (!hash_g(hashed, augmented_seed, sizeof(augmented_seed), mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1701
memcpy(key->rho, hashed, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1703
CONSTTIME_DECLASSIFY(key->rho, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1706
if (!matrix_expand(mdctx, key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1707
|| !gencbd_vector_ntt(key->s, cbd_1, &counter, sigma, rank, mdctx, key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1708
|| !gencbd_vector_ntt(key->t, cbd_1, &counter, sigma, rank, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1712
matrix_mult_transpose_add(key->t, key->m, key->s, rank);
crypto/openssl/crypto/ml_kem/ml_kem.c
1714
CONSTTIME_DECLASSIFY(key->t, vinfo->rank * sizeof(scalar));
crypto/openssl/crypto/ml_kem/ml_kem.c
1718
if (!hash_h_pubkey(key->pkhash, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1721
encode_pubkey(pubenc, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
1722
if (!hash_h(key->pkhash, pubenc, vinfo->pubkey_bytes, mdctx, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1727
memcpy(key->z, seed + ML_KEM_RANDOM_BYTES, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1730
key->d = key->z + ML_KEM_RANDOM_BYTES;
crypto/openssl/crypto/ml_kem/ml_kem.c
1731
if (key->prov_flags & ML_KEM_KEY_RETAIN_SEED) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1732
memcpy(key->d, seed, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1734
OPENSSL_cleanse(key->d, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1735
key->d = NULL;
crypto/openssl/crypto/ml_kem/ml_kem.c
1760
scalar *tmp, EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1768
memcpy(input + ML_KEM_RANDOM_BYTES, key->pkhash, ML_KEM_PKHASH_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1769
ret = hash_g(Kr, input, sizeof(input), mdctx, key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1770
&& encrypt_cpa(ctext, entropy, r, tmp, mdctx, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
1778
key->vinfo->algorithm_name);
crypto/openssl/crypto/ml_kem/ml_kem.c
1795
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1801
const uint8_t *pkhash = key->pkhash;
crypto/openssl/crypto/ml_kem/ml_kem.c
1802
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1821
if (!kdf(failure_key, key->z, ctext, vinfo->ctext_bytes, mdctx, key)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1827
decrypt_cpa(decrypted, ctext, tmp, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
1829
if (!hash_g(Kr, decrypted, sizeof(decrypted), mdctx, key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1830
|| !encrypt_cpa(tmp_ctext, decrypted, r, tmp, mdctx, key)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
1848
static __owur int add_storage(scalar *p, int private, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1850
int rank = key->vinfo->rank;
crypto/openssl/crypto/ml_kem/ml_kem.c
1859
memset(key->seedbuf, 0, sizeof(key->seedbuf));
crypto/openssl/crypto/ml_kem/ml_kem.c
1860
key->rho = key->seedbuf;
crypto/openssl/crypto/ml_kem/ml_kem.c
1861
key->pkhash = key->seedbuf + ML_KEM_RANDOM_BYTES;
crypto/openssl/crypto/ml_kem/ml_kem.c
1862
key->d = key->z = NULL;
crypto/openssl/crypto/ml_kem/ml_kem.c
1865
key->m = (key->t = p) + rank;
crypto/openssl/crypto/ml_kem/ml_kem.c
1875
key->z = (uint8_t *)(rank + (key->s = key->m + rank * rank));
crypto/openssl/crypto/ml_kem/ml_kem.c
1883
void ossl_ml_kem_key_reset(ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
1885
if (key->t == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
1894
if (ossl_ml_kem_have_prvkey(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1895
OPENSSL_cleanse(key->s,
crypto/openssl/crypto/ml_kem/ml_kem.c
1896
key->vinfo->rank * sizeof(scalar) + 2 * ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
1897
OPENSSL_free(key->t);
crypto/openssl/crypto/ml_kem/ml_kem.c
1898
key->d = key->z = (uint8_t *)(key->s = key->m = key->t = NULL);
crypto/openssl/crypto/ml_kem/ml_kem.c
1926
ML_KEM_KEY *key;
crypto/openssl/crypto/ml_kem/ml_kem.c
1934
if ((key = OPENSSL_malloc(sizeof(*key))) == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
1937
key->vinfo = vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
1938
key->libctx = libctx;
crypto/openssl/crypto/ml_kem/ml_kem.c
1939
key->prov_flags = ML_KEM_KEY_PROV_FLAGS_DEFAULT;
crypto/openssl/crypto/ml_kem/ml_kem.c
1940
key->shake128_md = EVP_MD_fetch(libctx, "SHAKE128", properties);
crypto/openssl/crypto/ml_kem/ml_kem.c
1941
key->shake256_md = EVP_MD_fetch(libctx, "SHAKE256", properties);
crypto/openssl/crypto/ml_kem/ml_kem.c
1942
key->sha3_256_md = EVP_MD_fetch(libctx, "SHA3-256", properties);
crypto/openssl/crypto/ml_kem/ml_kem.c
1943
key->sha3_512_md = EVP_MD_fetch(libctx, "SHA3-512", properties);
crypto/openssl/crypto/ml_kem/ml_kem.c
1944
key->d = key->z = key->rho = key->pkhash = key->encoded_dk = NULL;
crypto/openssl/crypto/ml_kem/ml_kem.c
1945
key->s = key->m = key->t = NULL;
crypto/openssl/crypto/ml_kem/ml_kem.c
1947
if (key->shake128_md != NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
1948
&& key->shake256_md != NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
1949
&& key->sha3_256_md != NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
1950
&& key->sha3_512_md != NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
1951
return key;
crypto/openssl/crypto/ml_kem/ml_kem.c
1953
ossl_ml_kem_key_free(key);
crypto/openssl/crypto/ml_kem/ml_kem.c
1960
ML_KEM_KEY *ossl_ml_kem_key_dup(const ML_KEM_KEY *key, int selection)
crypto/openssl/crypto/ml_kem/ml_kem.c
1969
if (ossl_ml_kem_decoded_key(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1972
if (key == NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
1973
|| (ret = OPENSSL_memdup(key, sizeof(*key))) == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
1979
if (!ossl_ml_kem_have_pubkey(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1981
else if (!ossl_ml_kem_have_prvkey(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
1989
ok = add_storage(OPENSSL_memdup(key->t, key->vinfo->puballoc), 0, ret);
crypto/openssl/crypto/ml_kem/ml_kem.c
1994
ok = add_storage(OPENSSL_memdup(key->t, key->vinfo->prvalloc), 1, ret);
crypto/openssl/crypto/ml_kem/ml_kem.c
1996
if (key->d != NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
2014
void ossl_ml_kem_key_free(ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2016
if (key == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
2019
EVP_MD_free(key->shake128_md);
crypto/openssl/crypto/ml_kem/ml_kem.c
2020
EVP_MD_free(key->shake256_md);
crypto/openssl/crypto/ml_kem/ml_kem.c
2021
EVP_MD_free(key->sha3_256_md);
crypto/openssl/crypto/ml_kem/ml_kem.c
2022
EVP_MD_free(key->sha3_512_md);
crypto/openssl/crypto/ml_kem/ml_kem.c
2024
if (ossl_ml_kem_decoded_key(key)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
2025
OPENSSL_cleanse(key->seedbuf, sizeof(key->seedbuf));
crypto/openssl/crypto/ml_kem/ml_kem.c
2026
if (ossl_ml_kem_have_dkenc(key)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
2027
OPENSSL_cleanse(key->encoded_dk, key->vinfo->prvkey_bytes);
crypto/openssl/crypto/ml_kem/ml_kem.c
2028
OPENSSL_free(key->encoded_dk);
crypto/openssl/crypto/ml_kem/ml_kem.c
2031
ossl_ml_kem_key_reset(key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2032
OPENSSL_free(key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2037
const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2039
if (!ossl_ml_kem_have_pubkey(key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2040
|| len != key->vinfo->pubkey_bytes)
crypto/openssl/crypto/ml_kem/ml_kem.c
2042
encode_pubkey(out, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2048
const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2050
if (!ossl_ml_kem_have_prvkey(key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2051
|| len != key->vinfo->prvkey_bytes)
crypto/openssl/crypto/ml_kem/ml_kem.c
2053
encode_prvkey(out, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2058
const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2060
if (key == NULL || key->d == NULL || len != ML_KEM_SEED_BYTES)
crypto/openssl/crypto/ml_kem/ml_kem.c
2066
memcpy(out, key->d, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
2068
memcpy(out, key->z, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
2077
ML_KEM_KEY *ossl_ml_kem_set_seed(const uint8_t *seed, size_t seedlen, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2079
if (key == NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
2080
|| ossl_ml_kem_have_pubkey(key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2081
|| ossl_ml_kem_have_seed(key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2088
key->z = key->seedbuf;
crypto/openssl/crypto/ml_kem/ml_kem.c
2089
key->d = key->z + ML_KEM_RANDOM_BYTES;
crypto/openssl/crypto/ml_kem/ml_kem.c
2090
memcpy(key->d, seed, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
2092
memcpy(key->z, seed, ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
2093
return key;
crypto/openssl/crypto/ml_kem/ml_kem.c
2097
int ossl_ml_kem_parse_public_key(const uint8_t *in, size_t len, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2104
if (key == NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
2105
|| ossl_ml_kem_have_pubkey(key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2106
|| ossl_ml_kem_have_dkenc(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2108
vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
2114
if (add_storage(OPENSSL_malloc(vinfo->puballoc), 0, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2115
ret = parse_pubkey(in, mdctx, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2118
ossl_ml_kem_key_reset(key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2125
ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2132
if (key == NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
2133
|| ossl_ml_kem_have_pubkey(key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2134
|| ossl_ml_kem_have_dkenc(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2136
vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
2142
if (add_storage(OPENSSL_malloc(vinfo->prvalloc), 1, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2143
ret = parse_prvkey(in, mdctx, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2146
ossl_ml_kem_key_reset(key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2155
int ossl_ml_kem_genkey(uint8_t *pubenc, size_t publen, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2162
if (key == NULL
crypto/openssl/crypto/ml_kem/ml_kem.c
2163
|| ossl_ml_kem_have_pubkey(key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2164
|| ossl_ml_kem_have_dkenc(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2166
vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
2171
if (ossl_ml_kem_have_seed(key)) {
crypto/openssl/crypto/ml_kem/ml_kem.c
2172
if (!ossl_ml_kem_encode_seed(seed, sizeof(seed), key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2174
key->d = key->z = NULL;
crypto/openssl/crypto/ml_kem/ml_kem.c
2175
} else if (RAND_priv_bytes_ex(key->libctx, seed, sizeof(seed),
crypto/openssl/crypto/ml_kem/ml_kem.c
2176
key->vinfo->secbits)
crypto/openssl/crypto/ml_kem/ml_kem.c
2190
if (add_storage(OPENSSL_malloc(vinfo->prvalloc), 1, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2191
ret = genkey(seed, mdctx, pubenc, key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2199
ossl_ml_kem_key_reset(key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2204
CONSTTIME_DECLASSIFY(key->s, vinfo->rank * sizeof(scalar));
crypto/openssl/crypto/ml_kem/ml_kem.c
2205
CONSTTIME_DECLASSIFY(key->z, 2 * ML_KEM_RANDOM_BYTES);
crypto/openssl/crypto/ml_kem/ml_kem.c
2216
const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2222
if (key == NULL || !ossl_ml_kem_have_pubkey(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2224
vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
2246
ret = encap(ctext, shared_secret, entropy, tmp, mdctx, key); \
crypto/openssl/crypto/ml_kem/ml_kem.c
2268
const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2272
if (key == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
2275
if (RAND_bytes_ex(key->libctx, r, ML_KEM_RANDOM_BYTES,
crypto/openssl/crypto/ml_kem/ml_kem.c
2276
key->vinfo->secbits)
crypto/openssl/crypto/ml_kem/ml_kem.c
2281
r, sizeof(r), key);
crypto/openssl/crypto/ml_kem/ml_kem.c
2286
const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
2296
if (!ossl_ml_kem_have_prvkey(key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2298
vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
2303
(void)RAND_bytes_ex(key->libctx, shared_secret,
crypto/openssl/crypto/ml_kem/ml_kem.c
2313
CONSTTIME_SECRET(key->s, classify_bytes);
crypto/openssl/crypto/ml_kem/ml_kem.c
2327
ret = decap(shared_secret, ctext, cbuf, tmp, mdctx, key); \
crypto/openssl/crypto/ml_kem/ml_kem.c
2338
CONSTTIME_DECLASSIFY(key->s, classify_bytes);
crypto/openssl/crypto/ml_kem/ml_kem.c
678
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
680
return EVP_DigestInit_ex(mdctx, key->shake256_md, NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
689
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
691
return EVP_DigestInit_ex(mdctx, key->sha3_256_md, NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
698
EVP_MD_CTX *mdctx, ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
700
const ML_KEM_VINFO *vinfo = key->vinfo;
crypto/openssl/crypto/ml_kem/ml_kem.c
701
const scalar *t = key->t, *end = t + vinfo->rank;
crypto/openssl/crypto/ml_kem/ml_kem.c
704
if (!EVP_DigestInit_ex(mdctx, key->sha3_256_md, NULL))
crypto/openssl/crypto/ml_kem/ml_kem.c
715
if (!EVP_DigestUpdate(mdctx, key->rho, ML_KEM_RANDOM_BYTES))
crypto/openssl/crypto/ml_kem/ml_kem.c
727
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
729
return EVP_DigestInit_ex(mdctx, key->sha3_512_md, NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
742
EVP_MD_CTX *mdctx, const ML_KEM_KEY *key)
crypto/openssl/crypto/ml_kem/ml_kem.c
744
return EVP_DigestInit_ex(mdctx, key->shake256_md, NULL)
crypto/openssl/crypto/modes/cbc128.c
106
(*block)(in, out, key);
crypto/openssl/crypto/modes/cbc128.c
121
(*block)(in, tmp.c, key);
crypto/openssl/crypto/modes/cbc128.c
138
(*block)(in, tmp.c, key);
crypto/openssl/crypto/modes/cbc128.c
153
(*block)(in, tmp.c, key);
crypto/openssl/crypto/modes/cbc128.c
25
size_t len, const void *key,
crypto/openssl/crypto/modes/cbc128.c
39
(*block)(out, out, key);
crypto/openssl/crypto/modes/cbc128.c
49
(*block)(out, out, key);
crypto/openssl/crypto/modes/cbc128.c
62
(*block)(out, out, key);
crypto/openssl/crypto/modes/cbc128.c
75
size_t len, const void *key,
crypto/openssl/crypto/modes/cbc128.c
93
(*block)(in, out, key);
crypto/openssl/crypto/modes/ccm128.c
110
(*block)(ctx->cmac.c, ctx->cmac.c, ctx->key), ctx->blocks++;
crypto/openssl/crypto/modes/ccm128.c
145
void *key = ctx->key;
crypto/openssl/crypto/modes/ccm128.c
152
(*block)(ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++;
crypto/openssl/crypto/modes/ccm128.c
184
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
185
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
203
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
204
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
212
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
229
void *key = ctx->key;
crypto/openssl/crypto/modes/ccm128.c
236
(*block)(ctx->nonce.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
257
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
27
unsigned int M, unsigned int L, void *key,
crypto/openssl/crypto/modes/ccm128.c
270
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
278
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
281
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
287
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
318
void *key = ctx->key;
crypto/openssl/crypto/modes/ccm128.c
325
(*block)(ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++;
crypto/openssl/crypto/modes/ccm128.c
34
ctx->key = key;
crypto/openssl/crypto/modes/ccm128.c
344
(*stream)(inp, out, n, key, ctx->nonce.c, ctx->cmac.c);
crypto/openssl/crypto/modes/ccm128.c
356
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
357
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
365
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
382
void *key = ctx->key;
crypto/openssl/crypto/modes/ccm128.c
389
(*block)(ctx->nonce.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
404
(*stream)(inp, out, n, key, ctx->nonce.c, ctx->cmac.c);
crypto/openssl/crypto/modes/ccm128.c
414
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
417
(*block)(ctx->cmac.c, ctx->cmac.c, key);
crypto/openssl/crypto/modes/ccm128.c
423
(*block)(ctx->nonce.c, scratch.c, key);
crypto/openssl/crypto/modes/ccm128.c
78
(*block)(ctx->nonce.c, ctx->cmac.c, ctx->key), ctx->blocks++;
crypto/openssl/crypto/modes/cfb128.c
102
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cfb128.c
115
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cfb128.c
132
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cfb128.c
148
int nbits, const void *key,
crypto/openssl/crypto/modes/cfb128.c
162
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cfb128.c
184
size_t bits, const void *key,
crypto/openssl/crypto/modes/cfb128.c
193
cfbr_encrypt_block(c, d, 1, key, ivec, enc, block);
crypto/openssl/crypto/modes/cfb128.c
199
size_t length, const void *key,
crypto/openssl/crypto/modes/cfb128.c
206
cfbr_encrypt_block(&in[n], &out[n], 8, key, ivec, enc, block);
crypto/openssl/crypto/modes/cfb128.c
26
size_t len, const void *key,
crypto/openssl/crypto/modes/cfb128.c
54
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cfb128.c
65
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cfb128.c
79
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/ctr128.c
100
(*block)(ivec, ecount_buf, key);
crypto/openssl/crypto/modes/ctr128.c
111
(*block)(ivec, ecount_buf, key);
crypto/openssl/crypto/modes/ctr128.c
126
(*block)(ivec, ecount_buf, key);
crypto/openssl/crypto/modes/ctr128.c
151
size_t len, const void *key,
crypto/openssl/crypto/modes/ctr128.c
187
(*func)(in, out, blocks, key, ivec);
crypto/openssl/crypto/modes/ctr128.c
200
(*func)(ecount_buf, ecount_buf, 1, key, ivec);
crypto/openssl/crypto/modes/ctr128.c
74
size_t len, const void *key,
crypto/openssl/crypto/modes/cts128.c
105
(*cbc)(in, out, len, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
112
(*cbc)(in, out - 16, residue, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
118
(*cbc)(tmp.c, out - 16, 16, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
124
size_t len, const void *key,
crypto/openssl/crypto/modes/cts128.c
140
(*cbc)(in, out, len, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
149
(*cbc)(in, out - 16 + residue, residue, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
153
(*cbc)(tmp.c, out - 16 + residue, 16, key, ivec, 1);
crypto/openssl/crypto/modes/cts128.c
160
const void *key, unsigned char ivec[16],
crypto/openssl/crypto/modes/cts128.c
178
CRYPTO_cbc128_decrypt(in, out, len, key, ivec, block);
crypto/openssl/crypto/modes/cts128.c
183
(*block)(in, tmp.c + 16, key);
crypto/openssl/crypto/modes/cts128.c
187
(*block)(tmp.c, tmp.c, key);
crypto/openssl/crypto/modes/cts128.c
202
const void *key,
crypto/openssl/crypto/modes/cts128.c
218
CRYPTO_cbc128_decrypt(in, out, len, key, ivec, block);
crypto/openssl/crypto/modes/cts128.c
225
CRYPTO_cbc128_decrypt(in, out, len, key, ivec, block);
crypto/openssl/crypto/modes/cts128.c
230
(*block)(in + residue, tmp.c + 16, key);
crypto/openssl/crypto/modes/cts128.c
234
(*block)(tmp.c, tmp.c, key);
crypto/openssl/crypto/modes/cts128.c
249
size_t len, const void *key,
crypto/openssl/crypto/modes/cts128.c
267
(*cbc)(in, out, len, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
276
(*cbc)(in, tmp.c, 16, key, tmp.c + 16, 0);
crypto/openssl/crypto/modes/cts128.c
280
(*cbc)(tmp.c, out, 16 + residue, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
282
(*cbc)(tmp.c, tmp.c, 32, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
289
size_t len, const void *key,
crypto/openssl/crypto/modes/cts128.c
29
const void *key, unsigned char ivec[16],
crypto/openssl/crypto/modes/cts128.c
304
(*cbc)(in, out, len, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
311
(*cbc)(in, out, len, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
320
(*cbc)(in + residue, tmp.c, 16, key, tmp.c + 16, 0);
crypto/openssl/crypto/modes/cts128.c
324
(*cbc)(tmp.c, out, 16 + residue, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
326
(*cbc)(tmp.c, tmp.c, 32, key, ivec, 0);
crypto/openssl/crypto/modes/cts128.c
42
CRYPTO_cbc128_encrypt(in, out, len, key, ivec, block);
crypto/openssl/crypto/modes/cts128.c
49
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cts128.c
58
const void *key,
crypto/openssl/crypto/modes/cts128.c
71
CRYPTO_cbc128_encrypt(in, out, len, key, ivec, block);
crypto/openssl/crypto/modes/cts128.c
81
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/cts128.c
88
size_t len, const void *key,
crypto/openssl/crypto/modes/gcm128.c
1004
void *key = ctx->key;
crypto/openssl/crypto/modes/gcm128.c
1093
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1118
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1140
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1162
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1196
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1239
void *key = ctx->key;
crypto/openssl/crypto/modes/gcm128.c
1312
(*stream)(in, out, GHASH_CHUNK / 16, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1332
(*stream)(in, out, j, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1357
(*ctx->block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1393
void *key = ctx->key;
crypto/openssl/crypto/modes/gcm128.c
1469
(*stream)(in, out, GHASH_CHUNK / 16, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1501
(*stream)(in, out, j, key, ctx->Yi.c);
crypto/openssl/crypto/modes/gcm128.c
1516
(*ctx->block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
1614
GCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block)
crypto/openssl/crypto/modes/gcm128.c
1619
CRYPTO_gcm128_init(ret, key, block);
crypto/openssl/crypto/modes/gcm128.c
600
void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block)
crypto/openssl/crypto/modes/gcm128.c
606
ctx->key = key;
crypto/openssl/crypto/modes/gcm128.c
608
(*block)(ctx->H.c, ctx->H.c, key);
crypto/openssl/crypto/modes/gcm128.c
704
(*ctx->block)(ctx->Yi.c, ctx->EK0.c, ctx->key);
crypto/openssl/crypto/modes/gcm128.c
779
void *key = ctx->key;
crypto/openssl/crypto/modes/gcm128.c
865
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
892
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
915
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
934
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/gcm128.c
965
(*block)(ctx->Yi.c, ctx->EKi.c, key);
crypto/openssl/crypto/modes/ofb128.c
26
size_t len, const void *key,
crypto/openssl/crypto/modes/ofb128.c
52
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/ofb128.c
62
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/ofb128.c
76
(*block)(ivec, ivec, key);
crypto/openssl/crypto/modes/siv128.c
142
SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen,
crypto/openssl/crypto/modes/siv128.c
150
ret = ossl_siv128_init(ctx, key, klen, cbc, ctr, libctx, propq);
crypto/openssl/crypto/modes/siv128.c
162
int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen,
crypto/openssl/crypto/modes/siv128.c
183
if (key == NULL || cbc == NULL || ctr == NULL)
crypto/openssl/crypto/modes/siv128.c
190
(void *)key, klen);
crypto/openssl/crypto/modes/siv128.c
197
|| !EVP_EncryptInit_ex(ctx->cipher_ctx, ctr, NULL, key + klen, NULL)
crypto/openssl/crypto/modes/wrap128.c
106
static size_t crypto_128_unwrap_raw(void *key, unsigned char *iv,
crypto/openssl/crypto/modes/wrap128.c
130
block(B, B, key);
crypto/openssl/crypto/modes/wrap128.c
157
size_t CRYPTO_128_unwrap(void *key, const unsigned char *iv,
crypto/openssl/crypto/modes/wrap128.c
164
ret = crypto_128_unwrap_raw(key, got_iv, out, in, inlen, block);
crypto/openssl/crypto/modes/wrap128.c
190
size_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv,
crypto/openssl/crypto/modes/wrap128.c
232
block(out, out, key);
crypto/openssl/crypto/modes/wrap128.c
237
ret = CRYPTO_128_wrap(key, aiv, out, out, padded_len, block);
crypto/openssl/crypto/modes/wrap128.c
258
size_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv,
crypto/openssl/crypto/modes/wrap128.c
286
block(in, buff, key);
crypto/openssl/crypto/modes/wrap128.c
294
ret = crypto_128_unwrap_raw(key, aiv, out, in, inlen, block);
crypto/openssl/crypto/modes/wrap128.c
55
size_t CRYPTO_128_wrap(void *key, const unsigned char *iv,
crypto/openssl/crypto/modes/wrap128.c
76
block(B, B, key);
crypto/openssl/crypto/objects/obj_dat.c
687
const void *OBJ_bsearch_(const void *key, const void *base, int num, int size,
crypto/openssl/crypto/objects/obj_dat.c
690
return OBJ_bsearch_ex_(key, base, num, size, cmp, 0);
crypto/openssl/crypto/objects/obj_dat.c
693
const void *OBJ_bsearch_ex_(const void *key, const void *base, int num,
crypto/openssl/crypto/objects/obj_dat.c
698
const char *p = ossl_bsearch(key, base, num, size, cmp, flags);
crypto/openssl/crypto/objects/obj_dat.c
713
c = (*cmp)(key, p1);
crypto/openssl/crypto/ocsp/ocsp_cl.c
82
EVP_PKEY *key,
crypto/openssl/crypto/ocsp/ocsp_cl.c
91
if (key != NULL) {
crypto/openssl/crypto/ocsp/ocsp_cl.c
92
if (!X509_check_private_key(signer, key)) {
crypto/openssl/crypto/ocsp/ocsp_cl.c
97
if (!OCSP_REQUEST_sign(req, key, dgst, signer->libctx, signer->propq))
crypto/openssl/crypto/ocsp/ocsp_srv.c
213
X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,
crypto/openssl/crypto/ocsp/ocsp_srv.c
224
signer->libctx, signer->propq, key, NULL)) {
crypto/openssl/crypto/param_build.c
122
int OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD *bld, const char *key, int num)
crypto/openssl/crypto/param_build.c
124
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
129
return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER);
crypto/openssl/crypto/param_build.c
132
int OSSL_PARAM_BLD_push_uint(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
135
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
140
return param_push_num(bld, key, &num, sizeof(num),
crypto/openssl/crypto/param_build.c
144
int OSSL_PARAM_BLD_push_long(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
147
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
152
return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER);
crypto/openssl/crypto/param_build.c
155
int OSSL_PARAM_BLD_push_ulong(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
158
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
163
return param_push_num(bld, key, &num, sizeof(num),
crypto/openssl/crypto/param_build.c
167
int OSSL_PARAM_BLD_push_int32(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
170
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
175
return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER);
crypto/openssl/crypto/param_build.c
178
int OSSL_PARAM_BLD_push_uint32(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
181
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
186
return param_push_num(bld, key, &num, sizeof(num),
crypto/openssl/crypto/param_build.c
190
int OSSL_PARAM_BLD_push_int64(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
193
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
198
return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER);
crypto/openssl/crypto/param_build.c
201
int OSSL_PARAM_BLD_push_uint64(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
204
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
209
return param_push_num(bld, key, &num, sizeof(num),
crypto/openssl/crypto/param_build.c
213
int OSSL_PARAM_BLD_push_size_t(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
216
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
221
return param_push_num(bld, key, &num, sizeof(num),
crypto/openssl/crypto/param_build.c
225
int OSSL_PARAM_BLD_push_time_t(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
228
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
233
return param_push_num(bld, key, &num, sizeof(num),
crypto/openssl/crypto/param_build.c
237
int OSSL_PARAM_BLD_push_double(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
240
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
245
return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_REAL);
crypto/openssl/crypto/param_build.c
248
static int push_BN(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
25
const char *key;
crypto/openssl/crypto/param_build.c
254
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
286
pd = param_push(bld, key, sz, sz, type, secure);
crypto/openssl/crypto/param_build.c
293
int OSSL_PARAM_BLD_push_BN(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
296
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
302
return push_BN(bld, key, bn, BN_num_bytes(bn) + 1,
crypto/openssl/crypto/param_build.c
304
return push_BN(bld, key, bn, bn == NULL ? 0 : BN_num_bytes(bn),
crypto/openssl/crypto/param_build.c
308
int OSSL_PARAM_BLD_push_BN_pad(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
311
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
317
return push_BN(bld, key, bn, BN_num_bytes(bn),
crypto/openssl/crypto/param_build.c
319
return push_BN(bld, key, bn, sz, OSSL_PARAM_UNSIGNED_INTEGER);
crypto/openssl/crypto/param_build.c
322
int OSSL_PARAM_BLD_push_utf8_string(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
328
if (bld == NULL || key == NULL || buf == NULL) {
crypto/openssl/crypto/param_build.c
336
pd = param_push(bld, key, bsize, bsize + 1, OSSL_PARAM_UTF8_STRING, secure);
crypto/openssl/crypto/param_build.c
343
int OSSL_PARAM_BLD_push_utf8_ptr(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
348
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
355
pd = param_push(bld, key, bsize, sizeof(buf), OSSL_PARAM_UTF8_PTR, 0);
crypto/openssl/crypto/param_build.c
362
int OSSL_PARAM_BLD_push_octet_string(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
368
if (bld == NULL || key == NULL || buf == NULL) {
crypto/openssl/crypto/param_build.c
374
pd = param_push(bld, key, bsize, bsize, OSSL_PARAM_OCTET_STRING, secure);
crypto/openssl/crypto/param_build.c
381
int OSSL_PARAM_BLD_push_octet_ptr(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
386
if (bld == NULL || key == NULL) {
crypto/openssl/crypto/param_build.c
391
pd = param_push(bld, key, bsize, sizeof(buf), OSSL_PARAM_OCTET_PTR, 0);
crypto/openssl/crypto/param_build.c
408
param[i].key = pd->key;
crypto/openssl/crypto/param_build.c
51
static OSSL_PARAM_BLD_DEF *param_push(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
59
pd->key = key;
crypto/openssl/crypto/param_build.c
74
static int param_push_num(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/crypto/param_build.c
77
OSSL_PARAM_BLD_DEF *pd = param_push(bld, key, size, size, type, 0);
crypto/openssl/crypto/param_build_set.c
23
const char *key, int num)
crypto/openssl/crypto/param_build_set.c
26
return OSSL_PARAM_BLD_push_int(bld, key, num);
crypto/openssl/crypto/param_build_set.c
27
p = OSSL_PARAM_locate(p, key);
crypto/openssl/crypto/param_build_set.c
34
const char *key, long num)
crypto/openssl/crypto/param_build_set.c
37
return OSSL_PARAM_BLD_push_long(bld, key, num);
crypto/openssl/crypto/param_build_set.c
38
p = OSSL_PARAM_locate(p, key);
crypto/openssl/crypto/param_build_set.c
45
const char *key, const char *buf)
crypto/openssl/crypto/param_build_set.c
48
return OSSL_PARAM_BLD_push_utf8_string(bld, key, buf, 0);
crypto/openssl/crypto/param_build_set.c
49
p = OSSL_PARAM_locate(p, key);
crypto/openssl/crypto/param_build_set.c
56
const char *key,
crypto/openssl/crypto/param_build_set.c
61
return OSSL_PARAM_BLD_push_octet_string(bld, key, data, data_len);
crypto/openssl/crypto/param_build_set.c
63
p = OSSL_PARAM_locate(p, key);
crypto/openssl/crypto/param_build_set.c
70
const char *key, const BIGNUM *bn, size_t sz)
crypto/openssl/crypto/param_build_set.c
73
return OSSL_PARAM_BLD_push_BN_pad(bld, key, bn, sz);
crypto/openssl/crypto/param_build_set.c
74
p = OSSL_PARAM_locate(p, key);
crypto/openssl/crypto/param_build_set.c
87
const char *key, const BIGNUM *bn)
crypto/openssl/crypto/param_build_set.c
90
return OSSL_PARAM_BLD_push_BN(bld, key, bn);
crypto/openssl/crypto/param_build_set.c
92
p = OSSL_PARAM_locate(p, key);
crypto/openssl/crypto/params.c
1013
OSSL_PARAM OSSL_PARAM_construct_uint64(const char *key, uint64_t *buf)
crypto/openssl/crypto/params.c
1015
return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
crypto/openssl/crypto/params.c
1045
OSSL_PARAM OSSL_PARAM_construct_size_t(const char *key, size_t *buf)
crypto/openssl/crypto/params.c
1047
return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
crypto/openssl/crypto/params.c
1077
OSSL_PARAM OSSL_PARAM_construct_time_t(const char *key, time_t *buf)
crypto/openssl/crypto/params.c
1079
return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf, sizeof(time_t));
crypto/openssl/crypto/params.c
1169
OSSL_PARAM OSSL_PARAM_construct_BN(const char *key, unsigned char *buf,
crypto/openssl/crypto/params.c
1172
return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER,
crypto/openssl/crypto/params.c
1323
OSSL_PARAM OSSL_PARAM_construct_double(const char *key, double *buf)
crypto/openssl/crypto/params.c
1325
return ossl_param_construct(key, OSSL_PARAM_REAL, buf, sizeof(double));
crypto/openssl/crypto/params.c
1460
OSSL_PARAM OSSL_PARAM_construct_utf8_string(const char *key, char *buf,
crypto/openssl/crypto/params.c
1465
return ossl_param_construct(key, OSSL_PARAM_UTF8_STRING, buf, bsize);
crypto/openssl/crypto/params.c
1468
OSSL_PARAM OSSL_PARAM_construct_octet_string(const char *key, void *buf,
crypto/openssl/crypto/params.c
1471
return ossl_param_construct(key, OSSL_PARAM_OCTET_STRING, buf, bsize);
crypto/openssl/crypto/params.c
1537
OSSL_PARAM OSSL_PARAM_construct_utf8_ptr(const char *key, char **buf,
crypto/openssl/crypto/params.c
1540
return ossl_param_construct(key, OSSL_PARAM_UTF8_PTR, buf, bsize);
crypto/openssl/crypto/params.c
1543
OSSL_PARAM OSSL_PARAM_construct_octet_ptr(const char *key, void **buf,
crypto/openssl/crypto/params.c
1546
return ossl_param_construct(key, OSSL_PARAM_OCTET_PTR, buf, bsize);
crypto/openssl/crypto/params.c
292
OSSL_PARAM OSSL_PARAM_construct_int(const char *key, int *buf)
crypto/openssl/crypto/params.c
294
return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf, sizeof(int));
crypto/openssl/crypto/params.c
323
OSSL_PARAM OSSL_PARAM_construct_uint(const char *key, unsigned int *buf)
crypto/openssl/crypto/params.c
325
return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
crypto/openssl/crypto/params.c
355
OSSL_PARAM OSSL_PARAM_construct_long(const char *key, long int *buf)
crypto/openssl/crypto/params.c
357
return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf, sizeof(long int));
crypto/openssl/crypto/params.c
386
OSSL_PARAM OSSL_PARAM_construct_ulong(const char *key, unsigned long int *buf)
crypto/openssl/crypto/params.c
388
return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
crypto/openssl/crypto/params.c
53
OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *p, const char *key)
crypto/openssl/crypto/params.c
540
OSSL_PARAM OSSL_PARAM_construct_int32(const char *key, int32_t *buf)
crypto/openssl/crypto/params.c
542
return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf,
crypto/openssl/crypto/params.c
55
if (p != NULL && key != NULL)
crypto/openssl/crypto/params.c
56
for (; p->key != NULL; p++)
crypto/openssl/crypto/params.c
57
if (strcmp(key, p->key) == 0)
crypto/openssl/crypto/params.c
62
const OSSL_PARAM *OSSL_PARAM_locate_const(const OSSL_PARAM *p, const char *key)
crypto/openssl/crypto/params.c
64
return OSSL_PARAM_locate((OSSL_PARAM *)p, key);
crypto/openssl/crypto/params.c
67
static OSSL_PARAM ossl_param_construct(const char *key, unsigned int data_type,
crypto/openssl/crypto/params.c
698
OSSL_PARAM OSSL_PARAM_construct_uint32(const char *key, uint32_t *buf)
crypto/openssl/crypto/params.c
700
return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
crypto/openssl/crypto/params.c
72
res.key = key;
crypto/openssl/crypto/params.c
854
OSSL_PARAM OSSL_PARAM_construct_int64(const char *key, int64_t *buf)
crypto/openssl/crypto/params.c
856
return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf, sizeof(int64_t));
crypto/openssl/crypto/params.c
88
while (p->key != NULL)
crypto/openssl/crypto/params_dup.c
143
return OPENSSL_strcasecmp(l->key, r->key);
crypto/openssl/crypto/params_dup.c
163
for (p = p1; p->key != NULL && list1_sz < OSSL_PARAM_MERGE_LIST_MAX; p++)
crypto/openssl/crypto/params_dup.c
170
for (p = p2; p->key != NULL && list2_sz < OSSL_PARAM_MERGE_LIST_MAX; p++)
crypto/openssl/crypto/params_dup.c
208
diff = OPENSSL_strcasecmp((*p1cur)->key, (*p2cur)->key);
crypto/openssl/crypto/params_dup.c
230
for (p = params; p->key != NULL; p++)
crypto/openssl/crypto/params_dup.c
50
last->key = NULL;
crypto/openssl/crypto/params_dup.c
65
for (in = src; in->key != NULL; in++) {
crypto/openssl/crypto/params_from_text.c
230
for (; p->key != NULL; p++) {
crypto/openssl/crypto/params_from_text.c
232
ok = BIO_printf(bio, "%s: ", p->key);
crypto/openssl/crypto/params_from_text.c
25
static int prepare_from_text(const OSSL_PARAM *paramdefs, const char *key,
crypto/openssl/crypto/params_from_text.c
308
const char *key, const char *value,
crypto/openssl/crypto/params_from_text.c
321
if (!prepare_from_text(paramdefs, key, value, value_n,
crypto/openssl/crypto/params_from_text.c
39
*ishex = CHECK_AND_SKIP_PREFIX(key, "hex");
crypto/openssl/crypto/params_from_text.c
41
p = *paramdef = OSSL_PARAM_locate_const(paramdefs, key);
crypto/openssl/crypto/pem/pem_all.c
134
static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey)
crypto/openssl/crypto/pem/pem_all.c
137
if (!key)
crypto/openssl/crypto/pem/pem_all.c
139
dtmp = EVP_PKEY_get1_EC_KEY(key);
crypto/openssl/crypto/pem/pem_all.c
140
EVP_PKEY_free(key);
crypto/openssl/crypto/pem/pem_all.c
150
EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb,
crypto/openssl/crypto/pem/pem_all.c
155
return pkey_get_eckey(pktmp, key); /* will free pktmp */
crypto/openssl/crypto/pem/pem_all.c
28
static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
crypto/openssl/crypto/pem/pem_all.c
30
static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
crypto/openssl/crypto/pem/pem_all.c
34
static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey);
crypto/openssl/crypto/pem/pem_all.c
53
static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa)
crypto/openssl/crypto/pem/pem_all.c
56
if (!key)
crypto/openssl/crypto/pem/pem_all.c
58
rtmp = EVP_PKEY_get1_RSA(key);
crypto/openssl/crypto/pem/pem_all.c
59
EVP_PKEY_free(key);
crypto/openssl/crypto/pem/pem_all.c
93
static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa)
crypto/openssl/crypto/pem/pem_all.c
96
if (!key)
crypto/openssl/crypto/pem/pem_all.c
98
dtmp = EVP_PKEY_get1_DSA(key);
crypto/openssl/crypto/pem/pem_all.c
99
EVP_PKEY_free(key);
crypto/openssl/crypto/pem/pem_lib.c
331
unsigned char key[EVP_MAX_KEY_LENGTH];
crypto/openssl/crypto/pem/pem_lib.c
390
if (!EVP_BytesToKey(enc, EVP_md5(), iv, kstr, klen, 1, key, NULL))
crypto/openssl/crypto/pem/pem_lib.c
403
|| !EVP_EncryptInit_ex(ctx, enc, NULL, key, iv)
crypto/openssl/crypto/pem/pem_lib.c
418
OPENSSL_cleanse(key, sizeof(key));
crypto/openssl/crypto/pem/pem_lib.c
451
unsigned char key[EVP_MAX_KEY_LENGTH];
crypto/openssl/crypto/pem/pem_lib.c
478
(unsigned char *)buf, keylen, 1, key, NULL))
crypto/openssl/crypto/pem/pem_lib.c
485
ok = EVP_DecryptInit_ex(ctx, cipher->cipher, NULL, key, &(cipher->iv[0]));
crypto/openssl/crypto/pem/pem_lib.c
500
OPENSSL_cleanse((char *)key, sizeof(key));
crypto/openssl/crypto/pem/pvkfmt.c
100
if (EVP_PKEY_set1_DSA(pkey, key))
crypto/openssl/crypto/pem/pvkfmt.c
1018
void *key = do_PVK_key_bio(in, cb, u, &isdss, &ispub, NULL, NULL);
crypto/openssl/crypto/pem/pvkfmt.c
1020
return evp_pkey_new0_key(key, isdss_to_evp_type(isdss));
crypto/openssl/crypto/pem/pvkfmt.c
114
RSA_free(key);
crypto/openssl/crypto/pem/pvkfmt.c
118
DSA_free(key);
crypto/openssl/crypto/pem/pvkfmt.c
291
void *key = NULL;
crypto/openssl/crypto/pem/pvkfmt.c
303
key = ossl_b2i_RSA_after_header(&p, bitlen, *ispub);
crypto/openssl/crypto/pem/pvkfmt.c
306
key = ossl_b2i_DSA_after_header(&p, bitlen, *ispub);
crypto/openssl/crypto/pem/pvkfmt.c
309
if (key == NULL) {
crypto/openssl/crypto/pem/pvkfmt.c
314
return key;
crypto/openssl/crypto/pem/pvkfmt.c
320
void *key = do_b2i_key(in, length, &isdss, ispub);
crypto/openssl/crypto/pem/pvkfmt.c
322
return evp_pkey_new0_key(key, isdss_to_evp_type(isdss));
crypto/openssl/crypto/pem/pvkfmt.c
331
void *key = NULL;
crypto/openssl/crypto/pem/pvkfmt.c
357
key = ossl_b2i_RSA_after_header(&p, bitlen, *ispub);
crypto/openssl/crypto/pem/pvkfmt.c
360
key = ossl_b2i_DSA_after_header(&p, bitlen, *ispub);
crypto/openssl/crypto/pem/pvkfmt.c
363
if (key == NULL) {
crypto/openssl/crypto/pem/pvkfmt.c
368
pkey = evp_pkey_new0_key(key, isdss_to_evp_type(isdss));
crypto/openssl/crypto/pem/pvkfmt.c
73
static EVP_PKEY *evp_pkey_new0_key(void *key, int evp_type)
crypto/openssl/crypto/pem/pvkfmt.c
81
if (key == NULL)
crypto/openssl/crypto/pem/pvkfmt.c
822
static int derive_pvk_key(unsigned char *key, size_t keylen,
crypto/openssl/crypto/pem/pvkfmt.c
848
rv = EVP_KDF_derive(ctx, key, keylen, params);
crypto/openssl/crypto/pem/pvkfmt.c
863
void *key = NULL;
crypto/openssl/crypto/pem/pvkfmt.c
92
if (EVP_PKEY_set1_RSA(pkey, key))
crypto/openssl/crypto/pem/pvkfmt.c
936
key = do_b2i_key(&p, keylen, isdss, ispub);
crypto/openssl/crypto/pem/pvkfmt.c
946
return key;
crypto/openssl/crypto/pem/pvkfmt.c
956
void *key = NULL;
crypto/openssl/crypto/pem/pvkfmt.c
976
key = do_PVK_body_key(&p, saltlen, keylen, cb, u, isdss, ispub, libctx, propq);
crypto/openssl/crypto/pem/pvkfmt.c
980
return key;
crypto/openssl/crypto/pkcs12/p12_crpt.c
31
unsigned char key[EVP_MAX_KEY_LENGTH], iv[EVP_MAX_IV_LENGTH];
crypto/openssl/crypto/pkcs12/p12_crpt.c
53
key, md,
crypto/openssl/crypto/pkcs12/p12_crpt.c
72
ret = EVP_CipherInit_ex(ctx, cipher, NULL, key, piv, en_de);
crypto/openssl/crypto/pkcs12/p12_crpt.c
73
OPENSSL_cleanse(key, EVP_MAX_KEY_LENGTH);
crypto/openssl/crypto/pkcs12/p12_crt.c
235
EVP_PKEY *key, int key_usage, int iter,
crypto/openssl/crypto/pkcs12/p12_crt.c
244
if ((p8 = EVP_PKEY2PKCS8(key)) == NULL)
crypto/openssl/crypto/pkcs12/p12_crt.c
274
EVP_PKEY *key, int key_usage, int iter,
crypto/openssl/crypto/pkcs12/p12_crt.c
277
return PKCS12_add_key_ex(pbags, key, key_usage, iter, nid_key, pass,
crypto/openssl/crypto/pkcs12/p12_mutl.c
110
const X509_ALGOR *macalg, unsigned char *key)
crypto/openssl/crypto/pkcs12/p12_mutl.c
156
ASN1_INTEGER_get(pbkdf2_param->iter), kdf_md, keylen, key)
crypto/openssl/crypto/pkcs12/p12_mutl.c
184
unsigned char key[EVP_MAX_MD_SIZE], *salt;
crypto/openssl/crypto/pkcs12/p12_mutl.c
238
pass, passlen, macalg, key);
crypto/openssl/crypto/pkcs12/p12_mutl.c
247
keylen, key, md)) {
crypto/openssl/crypto/pkcs12/p12_mutl.c
267
iter, keylen, key, hmac_md);
crypto/openssl/crypto/pkcs12/p12_mutl.c
280
iter, keylen, key, md,
crypto/openssl/crypto/pkcs12/p12_mutl.c
288
|| !HMAC_Init_ex(hmac, key, keylen, md, NULL)
crypto/openssl/crypto/pkcs12/p12_mutl.c
297
OPENSSL_cleanse(key, sizeof(key));
crypto/openssl/crypto/pkcs12/p12_mutl.c
64
int iter, int keylen, unsigned char *key,
crypto/openssl/crypto/pkcs12/p12_mutl.c
77
memcpy(key, out + sizeof(out) - TK26_MAC_KEY_LEN, TK26_MAC_KEY_LEN);
crypto/openssl/crypto/pkcs7/pk7_doit.c
146
unsigned char *key, int keylen)
crypto/openssl/crypto/pkcs7/pk7_doit.c
167
if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0)
crypto/openssl/crypto/pkcs7/pk7_doit.c
174
if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0)
crypto/openssl/crypto/pkcs7/pk7_doit.c
318
unsigned char key[EVP_MAX_KEY_LENGTH];
crypto/openssl/crypto/pkcs7/pk7_doit.c
351
if (EVP_CIPHER_CTX_rand_key(ctx, key) <= 0)
crypto/openssl/crypto/pkcs7/pk7_doit.c
353
if (EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, 1) <= 0)
crypto/openssl/crypto/pkcs7/pk7_doit.c
372
if (pkcs7_encode_rinfo(ri, key, keylen) <= 0)
crypto/openssl/crypto/pkcs7/pk7_doit.c
375
OPENSSL_cleanse(key, keylen);
crypto/openssl/crypto/poly1305/poly1305.c
122
static void poly1305_init(void *ctx, const unsigned char key[16])
crypto/openssl/crypto/poly1305/poly1305.c
132
st->r[0] = U8TOU64(&key[0]) & 0x0ffffffc0fffffff;
crypto/openssl/crypto/poly1305/poly1305.c
133
st->r[1] = U8TOU64(&key[8]) & 0x0ffffffc0ffffffc;
crypto/openssl/crypto/poly1305/poly1305.c
257
static void poly1305_init(void *ctx, const unsigned char key[16])
crypto/openssl/crypto/poly1305/poly1305.c
269
st->r[0] = U8TOU32(&key[0]) & 0x0fffffff;
crypto/openssl/crypto/poly1305/poly1305.c
270
st->r[1] = U8TOU32(&key[4]) & 0x0ffffffc;
crypto/openssl/crypto/poly1305/poly1305.c
271
st->r[2] = U8TOU32(&key[8]) & 0x0ffffffc;
crypto/openssl/crypto/poly1305/poly1305.c
272
st->r[3] = U8TOU32(&key[12]) & 0x0ffffffc;
crypto/openssl/crypto/poly1305/poly1305.c
397
int poly1305_init(void *ctx, const unsigned char key[16], void *func);
crypto/openssl/crypto/poly1305/poly1305.c
404
void Poly1305_Init(POLY1305 *ctx, const unsigned char key[32])
crypto/openssl/crypto/poly1305/poly1305.c
406
ctx->nonce[0] = U8TOU32(&key[16]);
crypto/openssl/crypto/poly1305/poly1305.c
407
ctx->nonce[1] = U8TOU32(&key[20]);
crypto/openssl/crypto/poly1305/poly1305.c
408
ctx->nonce[2] = U8TOU32(&key[24]);
crypto/openssl/crypto/poly1305/poly1305.c
409
ctx->nonce[3] = U8TOU32(&key[28]);
crypto/openssl/crypto/poly1305/poly1305.c
412
poly1305_init(ctx->opaque, key);
crypto/openssl/crypto/poly1305/poly1305.c
420
if (!poly1305_init(ctx->opaque, key, &ctx->func)) {
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
50
int poly1305_init(void *ctx, const unsigned char key[16])
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
60
r0 = U8TOU64(&key[0]) & 0x0ffffffc0fffffff;
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
61
r1 = U8TOU64(&key[8]) & 0x0ffffffc0ffffffc;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
112
int poly1305_init(void *ctx, const unsigned char key[16])
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
130
if (key) {
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
162
r0.u = EXP(52 + 0) | (U8TOU32(&key[0]) & 0x0fffffff);
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
163
r1.u = EXP(52 + 32) | (U8TOU32(&key[4]) & 0x0ffffffc);
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
164
r2.u = EXP(52 + 64) | (U8TOU32(&key[8]) & 0x0ffffffc);
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
165
r3.u = EXP(52 + 96) | (U8TOU32(&key[12]) & 0x0ffffffc);
crypto/openssl/crypto/poly1305/poly1305_ppc.c
15
void poly1305_init_int(void *ctx, const unsigned char key[16]);
crypto/openssl/crypto/poly1305/poly1305_ppc.c
20
void poly1305_init_fpu(void *ctx, const unsigned char key[16]);
crypto/openssl/crypto/poly1305/poly1305_ppc.c
25
void poly1305_init_vsx(void *ctx, const unsigned char key[16]);
crypto/openssl/crypto/poly1305/poly1305_ppc.c
30
int poly1305_init(void *ctx, const unsigned char key[16], void *func[2]);
crypto/openssl/crypto/poly1305/poly1305_ppc.c
31
int poly1305_init(void *ctx, const unsigned char key[16], void *func[2])
crypto/openssl/crypto/poly1305/poly1305_ppc.c
34
poly1305_init_int(ctx, key);
crypto/openssl/crypto/poly1305/poly1305_ppc.c
38
poly1305_init_fpu(ctx, key);
crypto/openssl/crypto/poly1305/poly1305_ppc.c
42
poly1305_init_int(ctx, key);
crypto/openssl/crypto/ppccap.c
108
static unsigned long getauxval(unsigned long key)
crypto/openssl/crypto/ppccap.c
112
if (elf_aux_info((int)key, &val, sizeof(val)) != 0)
crypto/openssl/crypto/property/property_query.c
16
OSSL_PROPERTY_IDX key = *(const OSSL_PROPERTY_IDX *)keyp;
crypto/openssl/crypto/property/property_query.c
19
return key - defn->name_idx;
crypto/openssl/crypto/provider_core.c
588
for (i = 0; params[i].key != NULL; i++) {
crypto/openssl/crypto/provider_core.c
591
if (ossl_provider_info_add_parameter(&template, params[i].key,
crypto/openssl/crypto/provider_core.c
862
param[0].key = (char *)name;
crypto/openssl/crypto/rc2/rc2_cbc.c
111
p0 = p1 = &(key->data[0]);
crypto/openssl/crypto/rc2/rc2_cbc.c
138
void RC2_decrypt(unsigned long *d, RC2_KEY *key)
crypto/openssl/crypto/rc2/rc2_cbc.c
155
p0 = &(key->data[63]);
crypto/openssl/crypto/rc2/rc2_cbc.c
156
p1 = &(key->data[0]);
crypto/openssl/crypto/rc2/rc2_cbc.c
94
void RC2_encrypt(unsigned long *d, RC2_KEY *key)
crypto/openssl/crypto/rc2/rc2_skey.c
289
void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits)
crypto/openssl/crypto/rc2/rc2_skey.c
296
k = (unsigned char *)&(key->data[0]);
crypto/openssl/crypto/rc2/rc2_skey.c
331
ki = &(key->data[63]);
crypto/openssl/crypto/rc4/rc4_enc.c
27
void RC4(RC4_KEY *key, size_t len, const unsigned char *indata,
crypto/openssl/crypto/rc4/rc4_enc.c
34
x = key->x;
crypto/openssl/crypto/rc4/rc4_enc.c
35
y = key->y;
crypto/openssl/crypto/rc4/rc4_enc.c
36
d = key->data;
crypto/openssl/crypto/rc4/rc4_enc.c
88
key->x = x;
crypto/openssl/crypto/rc4/rc4_enc.c
89
key->y = y;
crypto/openssl/crypto/rc4/rc4_skey.c
36
void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data)
crypto/openssl/crypto/rc4/rc4_skey.c
43
d = &(key->data[0]);
crypto/openssl/crypto/rc4/rc4_skey.c
44
key->x = 0;
crypto/openssl/crypto/rc4/rc4_skey.c
45
key->y = 0;
crypto/openssl/crypto/rc5/rc5_enc.c
100
s = key->data;
crypto/openssl/crypto/rc5/rc5_enc.c
112
if (key->rounds == 12) {
crypto/openssl/crypto/rc5/rc5_enc.c
117
} else if (key->rounds == 16) {
crypto/openssl/crypto/rc5/rc5_enc.c
132
void RC5_32_decrypt(unsigned long *d, RC5_32_KEY *key)
crypto/openssl/crypto/rc5/rc5_enc.c
136
s = key->data;
crypto/openssl/crypto/rc5/rc5_enc.c
140
if (key->rounds == 16) {
crypto/openssl/crypto/rc5/rc5_enc.c
150
} else if (key->rounds == 12) {
crypto/openssl/crypto/rc5/rc5_enc.c
96
void RC5_32_encrypt(unsigned long *d, RC5_32_KEY *key)
crypto/openssl/crypto/rc5/rc5_skey.c
19
int RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,
crypto/openssl/crypto/rc5/rc5_skey.c
31
key->rounds = rounds;
crypto/openssl/crypto/rc5/rc5_skey.c
32
S = &(key->data[0]);
crypto/openssl/crypto/riscvcap.c
115
if (pairs[j].key == RISCV_capabilities[i].hwprobe_key
crypto/openssl/crypto/rsa/rsa_acvp_test_params.c
33
p = OSSL_PARAM_locate_const(src, settable[0].key);
crypto/openssl/crypto/rsa/rsa_acvp_test_params.c
43
for (s = settable; s->key != NULL; ++s) {
crypto/openssl/crypto/rsa/rsa_acvp_test_params.c
45
p = OSSL_PARAM_locate_const(src, s->key);
crypto/openssl/crypto/rsa/rsa_acvp_test_params.c
72
for (p = dst; p->key != NULL; ++p) {
crypto/openssl/crypto/rsa/rsa_chk.c
100
if (BN_cmp(i, key->n) != 0) {
crypto/openssl/crypto/rsa/rsa_chk.c
109
if (!BN_sub(i, key->p, BN_value_one())) {
crypto/openssl/crypto/rsa/rsa_chk.c
113
if (!BN_sub(j, key->q, BN_value_one())) {
crypto/openssl/crypto/rsa/rsa_chk.c
132
pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx);
crypto/openssl/crypto/rsa/rsa_chk.c
150
if (!BN_mod_mul(i, key->d, key->e, m, ctx)) {
crypto/openssl/crypto/rsa/rsa_chk.c
160
if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) {
crypto/openssl/crypto/rsa/rsa_chk.c
162
if (!BN_sub(i, key->p, BN_value_one())) {
crypto/openssl/crypto/rsa/rsa_chk.c
166
if (!BN_mod(j, key->d, i, ctx)) {
crypto/openssl/crypto/rsa/rsa_chk.c
170
if (BN_cmp(j, key->dmp1) != 0) {
crypto/openssl/crypto/rsa/rsa_chk.c
176
if (!BN_sub(i, key->q, BN_value_one())) {
crypto/openssl/crypto/rsa/rsa_chk.c
180
if (!BN_mod(j, key->d, i, ctx)) {
crypto/openssl/crypto/rsa/rsa_chk.c
184
if (BN_cmp(j, key->dmq1) != 0) {
crypto/openssl/crypto/rsa/rsa_chk.c
190
if (!BN_mod_inverse(i, key->q, key->p, ctx)) {
crypto/openssl/crypto/rsa/rsa_chk.c
194
if (BN_cmp(i, key->iqmp) != 0) {
crypto/openssl/crypto/rsa/rsa_chk.c
201
pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx);
crypto/openssl/crypto/rsa/rsa_chk.c
207
if (!BN_mod(j, key->d, i, ctx)) {
crypto/openssl/crypto/rsa/rsa_chk.c
22
static int rsa_validate_keypair_multiprime(const RSA *key, BN_GENCB *cb)
crypto/openssl/crypto/rsa/rsa_chk.c
237
int ossl_rsa_validate_public(const RSA *key)
crypto/openssl/crypto/rsa/rsa_chk.c
239
return ossl_rsa_sp800_56b_check_public(key);
crypto/openssl/crypto/rsa/rsa_chk.c
242
int ossl_rsa_validate_private(const RSA *key)
crypto/openssl/crypto/rsa/rsa_chk.c
244
return ossl_rsa_sp800_56b_check_private(key);
crypto/openssl/crypto/rsa/rsa_chk.c
247
int ossl_rsa_validate_pairwise(const RSA *key)
crypto/openssl/crypto/rsa/rsa_chk.c
250
return ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, RSA_bits(key));
crypto/openssl/crypto/rsa/rsa_chk.c
252
return rsa_validate_keypair_multiprime(key, NULL) > 0;
crypto/openssl/crypto/rsa/rsa_chk.c
256
int RSA_check_key(const RSA *key)
crypto/openssl/crypto/rsa/rsa_chk.c
258
return RSA_check_key_ex(key, NULL);
crypto/openssl/crypto/rsa/rsa_chk.c
261
int RSA_check_key_ex(const RSA *key, BN_GENCB *cb)
crypto/openssl/crypto/rsa/rsa_chk.c
264
return ossl_rsa_validate_public(key)
crypto/openssl/crypto/rsa/rsa_chk.c
265
&& ossl_rsa_validate_private(key)
crypto/openssl/crypto/rsa/rsa_chk.c
266
&& ossl_rsa_validate_pairwise(key);
crypto/openssl/crypto/rsa/rsa_chk.c
268
return rsa_validate_keypair_multiprime(key, cb);
crypto/openssl/crypto/rsa/rsa_chk.c
29
if (key->p == NULL || key->q == NULL || key->n == NULL
crypto/openssl/crypto/rsa/rsa_chk.c
30
|| key->e == NULL || key->d == NULL) {
crypto/openssl/crypto/rsa/rsa_chk.c
36
if (key->version == RSA_ASN1_VERSION_MULTI) {
crypto/openssl/crypto/rsa/rsa_chk.c
37
ex_primes = sk_RSA_PRIME_INFO_num(key->prime_infos);
crypto/openssl/crypto/rsa/rsa_chk.c
39
|| (ex_primes + 2) > ossl_rsa_multip_cap(BN_num_bits(key->n))) {
crypto/openssl/crypto/rsa/rsa_chk.c
50
ctx = BN_CTX_new_ex(key->libctx);
crypto/openssl/crypto/rsa/rsa_chk.c
58
if (BN_is_one(key->e)) {
crypto/openssl/crypto/rsa/rsa_chk.c
62
if (!BN_is_odd(key->e)) {
crypto/openssl/crypto/rsa/rsa_chk.c
68
if (BN_check_prime(key->p, ctx, cb) != 1) {
crypto/openssl/crypto/rsa/rsa_chk.c
74
if (BN_check_prime(key->q, ctx, cb) != 1) {
crypto/openssl/crypto/rsa/rsa_chk.c
81
pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx);
crypto/openssl/crypto/rsa/rsa_chk.c
89
if (!BN_mul(i, key->p, key->q, ctx)) {
crypto/openssl/crypto/rsa/rsa_chk.c
94
pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx);
crypto/openssl/crypto/slh_dsa/slh_dsa.c
151
const SLH_DSA_KEY *pub = hctx->key;
crypto/openssl/crypto/slh_dsa/slh_dsa.c
48
const SLH_DSA_KEY *priv = hctx->key;
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
26
SLH_DSA_HASH_CTX *ossl_slh_dsa_hash_ctx_new(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
33
ret->key = key;
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
37
if (EVP_DigestInit_ex2(ret->md_ctx, key->md, NULL) != 1)
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
39
if (key->md_big != NULL) {
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
41
if (key->md_big == key->md) {
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
48
if (EVP_DigestInit_ex2(ret->md_big_ctx, key->md_big, NULL) != 1)
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
51
if (key->hmac != NULL) {
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
52
ret->hmac_ctx = EVP_MAC_CTX_new(key->hmac);
crypto/openssl/crypto/slh_dsa/slh_dsa_hash_ctx.c
77
ret->key = src->key;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
128
void ossl_slh_dsa_key_free(SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
130
if (key == NULL)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
133
slh_dsa_key_hash_cleanup(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
134
OPENSSL_cleanse(&key->priv, sizeof(key->priv) >> 1);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
135
OPENSSL_free(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
221
int ossl_slh_dsa_key_has(const SLH_DSA_KEY *key, int selection)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
224
if (key->pub == NULL)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
227
&& key->has_priv == 0)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
23
static void slh_dsa_key_hash_cleanup(SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
234
int ossl_slh_dsa_key_pairwise_check(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
239
if (key->pub == NULL || key->has_priv == 0)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
242
ctx = ossl_slh_dsa_hash_ctx_new(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
245
ret = slh_dsa_compute_pk_root(ctx, (SLH_DSA_KEY *)key, 1);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
25
OPENSSL_free(key->propq);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
250
void ossl_slh_dsa_key_reset(SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
252
key->pub = NULL;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
253
if (key->has_priv) {
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
254
key->has_priv = 0;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
255
OPENSSL_cleanse(key->priv, sizeof(key->priv));
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
26
if (key->md_big != key->md)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
268
int ossl_slh_dsa_key_fromdata(SLH_DSA_KEY *key, const OSSL_PARAM params[],
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
27
EVP_MD_free(key->md_big);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
275
if (key == NULL)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
279
priv_len = ossl_slh_dsa_key_get_priv_len(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
28
key->md_big = NULL;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
287
p = key->priv;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
29
EVP_MD_free(key->md);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
292
key->has_priv = 1;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
293
key->pub = SLH_DSA_PUB(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
299
key->has_priv = 1;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
30
EVP_MAC_free(key->hmac);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
308
p = SLH_DSA_PUB(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
31
key->md = NULL;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
314
key->pub = p;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
317
ossl_slh_dsa_key_reset(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
335
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
336
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
338
const SLH_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
34
static int slh_dsa_key_hash_init(SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
348
return ossl_slh_xmss_node(ctx, SLH_DSA_SK_SEED(key), 0, params->hm,
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
349
SLH_DSA_PK_SEED(key), adrs, dst, n)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
36
int is_shake = key->params->is_shake;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
37
int security_category = key->params->security_category;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
40
key->md = EVP_MD_fetch(key->libctx, digest_alg, key->propq);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
409
int ossl_slh_dsa_key_type_matches(const SLH_DSA_KEY *key, const char *alg)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
41
if (key->md == NULL)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
411
return (OPENSSL_strcasecmp(key->params->alg, alg) == 0);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
415
const uint8_t *ossl_slh_dsa_key_get_pub(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
417
return key->pub;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
421
size_t ossl_slh_dsa_key_get_pub_len(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
423
return 2 * key->params->n;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
427
const uint8_t *ossl_slh_dsa_key_get_priv(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
429
return key->has_priv ? key->priv : NULL;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
437
size_t ossl_slh_dsa_key_get_priv_len(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
439
return 4 * key->params->n;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
442
size_t ossl_slh_dsa_key_get_n(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
444
return key->params->n;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
447
size_t ossl_slh_dsa_key_get_sig_len(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
449
return key->params->sig_len;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
451
const char *ossl_slh_dsa_key_get_name(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
453
return key->params->alg;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
455
int ossl_slh_dsa_key_get_type(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
457
return key->params->type;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
460
int ossl_slh_dsa_set_priv(SLH_DSA_KEY *key, const uint8_t *priv, size_t priv_len)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
462
if (ossl_slh_dsa_key_get_priv_len(key) != priv_len)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
464
memcpy(key->priv, priv, priv_len);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
465
key->has_priv = 1;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
466
key->pub = SLH_DSA_PUB(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
470
int ossl_slh_dsa_set_pub(SLH_DSA_KEY *key, const uint8_t *pub, size_t pub_len)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
472
if (ossl_slh_dsa_key_get_pub_len(key) != pub_len)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
474
key->pub = SLH_DSA_PUB(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
475
memcpy(key->pub, pub, pub_len);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
476
key->has_priv = 0;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
481
int ossl_slh_dsa_key_to_text(BIO *out, const SLH_DSA_KEY *key, int selection)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
485
if (out == NULL || key == NULL) {
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
489
name = ossl_slh_dsa_key_get_name(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
490
if (ossl_slh_dsa_key_get_pub(key) == NULL) {
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
498
if (ossl_slh_dsa_key_get_priv(key) == NULL) {
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
50
key->md_big = key->md;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
505
if (!ossl_bio_print_labeled_buf(out, "priv:", ossl_slh_dsa_key_get_priv(key),
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
506
ossl_slh_dsa_key_get_priv_len(key)))
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
513
if (!ossl_bio_print_labeled_buf(out, "pub:", ossl_slh_dsa_key_get_pub(key),
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
514
ossl_slh_dsa_key_get_pub_len(key)))
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
53
key->md_big = EVP_MD_fetch(key->libctx, "SHA2-512", key->propq);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
54
if (key->md_big == NULL)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
57
key->hmac = EVP_MAC_fetch(key->libctx, "HMAC", key->propq);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
58
if (key->hmac == NULL)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
61
key->adrs_func = ossl_slh_get_adrs_fn(is_shake == 0);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
62
key->hash_func = ossl_slh_get_hash_fn(is_shake);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
65
slh_dsa_key_hash_cleanup(key);
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
85
OSSL_LIB_CTX *ossl_slh_dsa_key_get0_libctx(const SLH_DSA_KEY *key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.c
87
return key != NULL ? key->libctx : NULL;
crypto/openssl/crypto/slh_dsa/slh_dsa_key.h
13
#define SLH_DSA_SK_SEED(key) ((key)->priv)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.h
14
#define SLH_DSA_SK_PRF(key) ((key)->priv + (key)->params->n)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.h
15
#define SLH_DSA_PK_SEED(key) ((key)->priv + (key)->params->n * 2)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.h
16
#define SLH_DSA_PK_ROOT(key) ((key)->priv + (key)->params->n * 3)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.h
17
#define SLH_DSA_PUB(key) SLH_DSA_PK_SEED(key)
crypto/openssl/crypto/slh_dsa/slh_dsa_key.h
18
#define SLH_DSA_PRIV(key) SLH_DSA_SK_SEED(key)
crypto/openssl/crypto/slh_dsa/slh_dsa_local.h
49
const SLH_DSA_KEY *key; /* This key is not owned by this object */
crypto/openssl/crypto/slh_dsa/slh_fors.c
105
if (!key->hash_func->H(ctx, pk_seed, adrs, lnode, rnode, node, node_len))
crypto/openssl/crypto/slh_dsa/slh_fors.c
135
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_fors.c
138
const SLH_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/slh_dsa/slh_fors.c
214
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_fors.c
218
const SLH_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/slh_dsa/slh_fors.c
230
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_fors.c
233
SLH_HASH_FUNC_DECLARE(key, hashf);
crypto/openssl/crypto/slh_dsa/slh_fors.c
45
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_fors.c
47
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_fors.c
53
return key->hash_func->PRF(ctx, pk_seed, sk_seed, sk_adrs, pk_out, pk_out_len);
crypto/openssl/crypto/slh_dsa/slh_fors.c
82
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_fors.c
84
uint32_t n = key->params->n;
crypto/openssl/crypto/slh_dsa/slh_fors.c
86
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_fors.c
94
ret = key->hash_func->F(ctx, pk_seed, adrs, sk, n, node, node_len);
crypto/openssl/crypto/slh_dsa/slh_hash.c
107
const SLH_DSA_PARAMS *params = ctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
117
const SLH_DSA_PARAMS *params = ctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
127
const SLH_DSA_PARAMS *params = ctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
154
const SLH_DSA_PARAMS *params = hctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
158
int sz = EVP_MD_get_size(hctx->key->md_big);
crypto/openssl/crypto/slh_dsa/slh_hash.c
168
&& (PKCS1_MGF1(out, m, seed, seed_len, hctx->key->md_big) == 0);
crypto/openssl/crypto/slh_dsa/slh_hash.c
177
const SLH_DSA_KEY *key = hctx->key;
crypto/openssl/crypto/slh_dsa/slh_hash.c
179
const SLH_DSA_PARAMS *prms = key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
194
(char *)EVP_MD_get0_name(key->md_big), 0);
crypto/openssl/crypto/slh_dsa/slh_hash.c
195
if (key->propq != NULL)
crypto/openssl/crypto/slh_dsa/slh_hash.c
197
(char *)key->propq, 0);
crypto/openssl/crypto/slh_dsa/slh_hash.c
231
size_t n = hctx->key->params->n;
crypto/openssl/crypto/slh_dsa/slh_hash.c
241
return do_hash(hctx->md_ctx, hctx->key->params->n, pk_seed, adrs, m1, m1_len,
crypto/openssl/crypto/slh_dsa/slh_hash.c
250
const SLH_DSA_PARAMS *prms = hctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
263
const SLH_DSA_PARAMS *prms = hctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
70
const SLH_DSA_PARAMS *params = ctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
83
const SLH_DSA_PARAMS *params = ctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hash.c
96
const SLH_DSA_PARAMS *params = ctx->key->params;
crypto/openssl/crypto/slh_dsa/slh_hypertree.c
111
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_hypertree.c
112
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_hypertree.c
115
const SLH_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/slh_dsa/slh_hypertree.c
36
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_hypertree.c
37
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_hypertree.c
41
const SLH_DSA_PARAMS *params = key->params;
crypto/openssl/crypto/slh_dsa/slh_wots.c
102
size_t n = key->params->n;
crypto/openssl/crypto/slh_dsa/slh_wots.c
143
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_wots.c
144
size_t n = key->params->n;
crypto/openssl/crypto/slh_dsa/slh_wots.c
151
SLH_HASH_FUNC_DECLARE(key, hashf);
crypto/openssl/crypto/slh_dsa/slh_wots.c
152
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_wots.c
208
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_wots.c
212
size_t n = key->params->n;
crypto/openssl/crypto/slh_dsa/slh_wots.c
217
SLH_HASH_FUNC_DECLARE(key, hashf);
crypto/openssl/crypto/slh_dsa/slh_wots.c
218
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_wots.c
272
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_wots.c
275
size_t n = key->params->n;
crypto/openssl/crypto/slh_dsa/slh_wots.c
283
SLH_HASH_FUNC_DECLARE(key, hashf);
crypto/openssl/crypto/slh_dsa/slh_wots.c
284
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_wots.c
96
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_wots.c
97
SLH_HASH_FUNC_DECLARE(key, hashf);
crypto/openssl/crypto/slh_dsa/slh_wots.c
98
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_xmss.c
144
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_xmss.c
145
SLH_HASH_FUNC_DECLARE(key, hashf);
crypto/openssl/crypto/slh_dsa/slh_xmss.c
146
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_xmss.c
151
size_t n = key->params->n;
crypto/openssl/crypto/slh_dsa/slh_xmss.c
152
uint32_t hm = key->params->hm;
crypto/openssl/crypto/slh_dsa/slh_xmss.c
40
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_xmss.c
41
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_xmss.c
61
if (!key->hash_func->H(ctx, pk_seed, adrs, lnode, rnode, pk_out, pk_out_len))
crypto/openssl/crypto/slh_dsa/slh_xmss.c
89
const SLH_DSA_KEY *key = ctx->key;
crypto/openssl/crypto/slh_dsa/slh_xmss.c
90
SLH_ADRS_FUNC_DECLARE(key, adrsf);
crypto/openssl/crypto/slh_dsa/slh_xmss.c
92
size_t n = key->params->n;
crypto/openssl/crypto/slh_dsa/slh_xmss.c
93
uint32_t h, hm = key->params->hm;
crypto/openssl/crypto/sm2/sm2_crypt.c
107
int ossl_sm2_encrypt(const EC_KEY *key,
crypto/openssl/crypto/sm2/sm2_crypt.c
122
const EC_GROUP *group = EC_KEY_get0_group(key);
crypto/openssl/crypto/sm2/sm2_crypt.c
124
const EC_POINT *P = EC_KEY_get0_public_key(key);
crypto/openssl/crypto/sm2/sm2_crypt.c
133
OSSL_LIB_CTX *libctx = ossl_ec_key_get_libctx(key);
crypto/openssl/crypto/sm2/sm2_crypt.c
134
const char *propq = ossl_ec_key_get0_propq(key);
crypto/openssl/crypto/sm2/sm2_crypt.c
275
int ossl_sm2_decrypt(const EC_KEY *key,
crypto/openssl/crypto/sm2/sm2_crypt.c
283
const EC_GROUP *group = EC_KEY_get0_group(key);
crypto/openssl/crypto/sm2/sm2_crypt.c
297
OSSL_LIB_CTX *libctx = ossl_ec_key_get_libctx(key);
crypto/openssl/crypto/sm2/sm2_crypt.c
298
const char *propq = ossl_ec_key_get0_propq(key);
crypto/openssl/crypto/sm2/sm2_crypt.c
355
|| !EC_POINT_mul(group, C1, NULL, C1, EC_KEY_get0_private_key(key),
crypto/openssl/crypto/sm2/sm2_crypt.c
87
int ossl_sm2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest,
crypto/openssl/crypto/sm2/sm2_crypt.c
90
const size_t field_size = ec_field_size(EC_KEY_get0_group(key));
crypto/openssl/crypto/sm2/sm2_sign.c
150
const EC_KEY *key,
crypto/openssl/crypto/sm2/sm2_sign.c
160
OSSL_LIB_CTX *libctx = ossl_ec_key_get_libctx(key);
crypto/openssl/crypto/sm2/sm2_sign.c
161
const char *propq = ossl_ec_key_get0_propq(key);
crypto/openssl/crypto/sm2/sm2_sign.c
182
if (!ossl_sm2_compute_z_digest(z, fetched_digest, id, id_len, key)) {
crypto/openssl/crypto/sm2/sm2_sign.c
207
static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e)
crypto/openssl/crypto/sm2/sm2_sign.c
209
const BIGNUM *dA = EC_KEY_get0_private_key(key);
crypto/openssl/crypto/sm2/sm2_sign.c
210
const EC_GROUP *group = EC_KEY_get0_group(key);
crypto/openssl/crypto/sm2/sm2_sign.c
221
OSSL_LIB_CTX *libctx = ossl_ec_key_get_libctx(key);
crypto/openssl/crypto/sm2/sm2_sign.c
27
const EC_KEY *key)
crypto/openssl/crypto/sm2/sm2_sign.c
30
const EC_GROUP *group = EC_KEY_get0_group(key);
crypto/openssl/crypto/sm2/sm2_sign.c
31
const EC_POINT *pubkey = EC_KEY_get0_public_key(key);
crypto/openssl/crypto/sm2/sm2_sign.c
330
static int sm2_sig_verify(const EC_KEY *key, const ECDSA_SIG *sig,
crypto/openssl/crypto/sm2/sm2_sign.c
334
const EC_GROUP *group = EC_KEY_get0_group(key);
crypto/openssl/crypto/sm2/sm2_sign.c
342
OSSL_LIB_CTX *libctx = ossl_ec_key_get_libctx(key);
crypto/openssl/crypto/sm2/sm2_sign.c
393
if (!EC_POINT_mul(group, pt, s, EC_KEY_get0_public_key(key), t, ctx)
crypto/openssl/crypto/sm2/sm2_sign.c
414
ECDSA_SIG *ossl_sm2_do_sign(const EC_KEY *key,
crypto/openssl/crypto/sm2/sm2_sign.c
423
e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len);
crypto/openssl/crypto/sm2/sm2_sign.c
429
sig = sm2_sig_gen(key, e);
crypto/openssl/crypto/sm2/sm2_sign.c
436
int ossl_sm2_do_verify(const EC_KEY *key,
crypto/openssl/crypto/sm2/sm2_sign.c
446
e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len);
crypto/openssl/crypto/sm2/sm2_sign.c
452
ret = sm2_sig_verify(key, sig, e);
crypto/openssl/crypto/sm2/sm2_sign.c
57
ctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(key));
crypto/openssl/crypto/sm4/sm4.c
279
int ossl_sm4_set_key(const uint8_t *key, SM4_KEY *ks)
crypto/openssl/crypto/sm4/sm4.c
305
K[0] = load_u32_be(key, 0) ^ FK[0];
crypto/openssl/crypto/sm4/sm4.c
306
K[1] = load_u32_be(key, 1) ^ FK[1];
crypto/openssl/crypto/sm4/sm4.c
307
K[2] = load_u32_be(key, 2) ^ FK[2];
crypto/openssl/crypto/sm4/sm4.c
308
K[3] = load_u32_be(key, 3) ^ FK[3];
crypto/openssl/crypto/threads_none.c
165
int CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *))
crypto/openssl/crypto/threads_none.c
182
*key = entry_idx;
crypto/openssl/crypto/threads_none.c
183
thread_local_storage[*key].used = 1;
crypto/openssl/crypto/threads_none.c
184
thread_local_storage[*key].data = NULL;
crypto/openssl/crypto/threads_none.c
189
void *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key)
crypto/openssl/crypto/threads_none.c
191
if (*key >= OPENSSL_CRYPTO_THREAD_LOCAL_KEY_MAX)
crypto/openssl/crypto/threads_none.c
194
return thread_local_storage[*key].data;
crypto/openssl/crypto/threads_none.c
197
int CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val)
crypto/openssl/crypto/threads_none.c
199
if (*key >= OPENSSL_CRYPTO_THREAD_LOCAL_KEY_MAX)
crypto/openssl/crypto/threads_none.c
202
thread_local_storage[*key].data = val;
crypto/openssl/crypto/threads_none.c
207
int CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key)
crypto/openssl/crypto/threads_none.c
209
if (*key >= OPENSSL_CRYPTO_THREAD_LOCAL_KEY_MAX)
crypto/openssl/crypto/threads_none.c
212
thread_local_storage[*key].used = 0;
crypto/openssl/crypto/threads_none.c
213
thread_local_storage[*key].data = NULL;
crypto/openssl/crypto/threads_none.c
214
*key = OPENSSL_CRYPTO_THREAD_LOCAL_KEY_MAX + 1;
crypto/openssl/crypto/threads_pthread.c
731
int CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *))
crypto/openssl/crypto/threads_pthread.c
739
if (pthread_key_create(key, cleanup) != 0)
crypto/openssl/crypto/threads_pthread.c
745
void *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key)
crypto/openssl/crypto/threads_pthread.c
747
return pthread_getspecific(*key);
crypto/openssl/crypto/threads_pthread.c
750
int CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val)
crypto/openssl/crypto/threads_pthread.c
752
if (pthread_setspecific(*key, val) != 0)
crypto/openssl/crypto/threads_pthread.c
758
int CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key)
crypto/openssl/crypto/threads_pthread.c
760
if (pthread_key_delete(*key) != 0)
crypto/openssl/crypto/threads_win.c
543
int CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *))
crypto/openssl/crypto/threads_win.c
551
*key = TlsAlloc();
crypto/openssl/crypto/threads_win.c
552
if (*key == TLS_OUT_OF_INDEXES)
crypto/openssl/crypto/threads_win.c
558
void *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key)
crypto/openssl/crypto/threads_win.c
577
ret = TlsGetValue(*key);
crypto/openssl/crypto/threads_win.c
582
int CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val)
crypto/openssl/crypto/threads_win.c
584
if (TlsSetValue(*key, val) == 0)
crypto/openssl/crypto/threads_win.c
590
int CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key)
crypto/openssl/crypto/threads_win.c
592
if (TlsFree(*key) == 0)
crypto/openssl/crypto/ts/ts_conf.c
106
BIO *key = NULL;
crypto/openssl/crypto/ts/ts_conf.c
110
if ((key = BIO_new_file(file, "rb")) == NULL)
crypto/openssl/crypto/ts/ts_conf.c
112
if ((key = BIO_new_file(file, "r")) == NULL)
crypto/openssl/crypto/ts/ts_conf.c
115
pkey = PEM_read_bio_PrivateKey(key, NULL, NULL, (char *)pass);
crypto/openssl/crypto/ts/ts_conf.c
119
BIO_free(key);
crypto/openssl/crypto/ts/ts_conf.c
253
const char *key, const char *pass,
crypto/openssl/crypto/ts/ts_conf.c
258
if (!key)
crypto/openssl/crypto/ts/ts_conf.c
259
key = NCONF_get_string(conf, section, ENV_SIGNER_KEY);
crypto/openssl/crypto/ts/ts_conf.c
260
if (!key) {
crypto/openssl/crypto/ts/ts_conf.c
264
if ((key_obj = TS_CONF_load_key(key, pass)) == NULL)
crypto/openssl/crypto/ts/ts_rsp_sign.c
153
int TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key)
crypto/openssl/crypto/ts/ts_rsp_sign.c
155
if (!EVP_PKEY_up_ref(key))
crypto/openssl/crypto/ts/ts_rsp_sign.c
159
ctx->signer_key = key;
crypto/openssl/crypto/x509/v3_addr.c
506
unsigned char key[3];
crypto/openssl/crypto/x509/v3_addr.c
510
key[0] = (afi >> 8) & 0xFF;
crypto/openssl/crypto/x509/v3_addr.c
511
key[1] = afi & 0xFF;
crypto/openssl/crypto/x509/v3_addr.c
513
key[2] = *safi & 0xFF;
crypto/openssl/crypto/x509/v3_addr.c
521
if (f->addressFamily->length == keylen && !memcmp(f->addressFamily->data, key, keylen))
crypto/openssl/crypto/x509/v3_addr.c
531
if (!ASN1_OCTET_STRING_set(f->addressFamily, key, keylen))
crypto/openssl/crypto/x509/v3_skid.c
107
return ossl_x509_pubkey_hash(ctx->subject_cert != NULL ? ctx->subject_cert->cert_info.key : ctx->subject_req->req_info.pubkey);
crypto/openssl/crypto/x509/x509_cmp.c
382
return X509_PUBKEY_get0(x->cert_info.key);
crypto/openssl/crypto/x509/x509_cmp.c
389
return X509_PUBKEY_get(x->cert_info.key);
crypto/openssl/crypto/x509/x509_set.c
109
if (!X509_PUBKEY_set(&(x->cert_info.key), pkey))
crypto/openssl/crypto/x509/x509_set.c
159
return x->cert_info.key;
crypto/openssl/crypto/x509/x509_set.c
303
X509_PUBKEY_get0(x->cert_info.key));
crypto/openssl/crypto/x509/x_all.c
491
ASN1_BIT_STRING *key = X509_get0_pubkey_bitstr(data);
crypto/openssl/crypto/x509/x_all.c
493
if (key == NULL)
crypto/openssl/crypto/x509/x_all.c
495
return EVP_Digest(key->data, key->length, md, len, type, NULL);
crypto/openssl/crypto/x509/x_all.c
710
int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, const EVP_PKEY *key)
crypto/openssl/crypto/x509/x_all.c
715
p8inf = EVP_PKEY2PKCS8(key);
crypto/openssl/crypto/x509/x_all.c
790
int i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, const EVP_PKEY *key)
crypto/openssl/crypto/x509/x_all.c
795
p8inf = EVP_PKEY2PKCS8(key);
crypto/openssl/crypto/x509/x_pubkey.c
1047
return x->cert_info.key->public_key;
crypto/openssl/crypto/x509/x_pubkey.c
1072
const X509_PUBKEY *key)
crypto/openssl/crypto/x509/x_pubkey.c
1075
*plibctx = key->libctx;
crypto/openssl/crypto/x509/x_pubkey.c
1077
*ppropq = key->propq;
crypto/openssl/crypto/x509/x_pubkey.c
406
static int x509_pubkey_decode(EVP_PKEY **ppkey, const X509_PUBKEY *key)
crypto/openssl/crypto/x509/x_pubkey.c
411
nid = OBJ_obj2nid(key->algor->algorithm);
crypto/openssl/crypto/x509/x_pubkey.c
412
if (!key->flag_force_legacy) {
crypto/openssl/crypto/x509/x_pubkey.c
442
if (!pkey->ameth->pub_decode(pkey, key))
crypto/openssl/crypto/x509/x_pubkey.c
45
static int x509_pubkey_decode(EVP_PKEY **pk, const X509_PUBKEY *key);
crypto/openssl/crypto/x509/x_pubkey.c
457
EVP_PKEY *X509_PUBKEY_get0(const X509_PUBKEY *key)
crypto/openssl/crypto/x509/x_pubkey.c
459
if (key == NULL) {
crypto/openssl/crypto/x509/x_pubkey.c
464
if (key->pkey == NULL) {
crypto/openssl/crypto/x509/x_pubkey.c
470
return key->pkey;
crypto/openssl/crypto/x509/x_pubkey.c
473
EVP_PKEY *X509_PUBKEY_get(const X509_PUBKEY *key)
crypto/openssl/crypto/x509/x_pubkey.c
475
EVP_PKEY *ret = X509_PUBKEY_get0(key);
crypto/openssl/crypto/x509/x_pubkey.c
608
RSA *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
615
key = EVP_PKEY_get1_RSA(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
617
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
622
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
624
return key;
crypto/openssl/crypto/x509/x_pubkey.c
649
DH *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
657
key = EVP_PKEY_get1_DH(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
659
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
664
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
666
return key;
crypto/openssl/crypto/x509/x_pubkey.c
690
DH *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
698
key = EVP_PKEY_get1_DH(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
700
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
705
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
707
return key;
crypto/openssl/crypto/x509/x_pubkey.c
733
DSA *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
740
key = EVP_PKEY_get1_DSA(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
742
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
747
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
749
return key;
crypto/openssl/crypto/x509/x_pubkey.c
755
DSA *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
760
key = d2i_DSA_PUBKEY(NULL, &data, length);
crypto/openssl/crypto/x509/x_pubkey.c
761
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
763
DSA_get0_pqg(key, &p, &q, &g);
crypto/openssl/crypto/x509/x_pubkey.c
765
DSA_free(key);
crypto/openssl/crypto/x509/x_pubkey.c
771
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
773
return key;
crypto/openssl/crypto/x509/x_pubkey.c
799
EC_KEY *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
809
key = EVP_PKEY_get1_EC_KEY(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
811
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
816
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
818
return key;
crypto/openssl/crypto/x509/x_pubkey.c
844
ECX_KEY *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
851
key = ossl_evp_pkey_get1_ED25519(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
853
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
858
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
860
return key;
crypto/openssl/crypto/x509/x_pubkey.c
885
ECX_KEY *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
893
key = ossl_evp_pkey_get1_ED448(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
895
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
900
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
902
return key;
crypto/openssl/crypto/x509/x_pubkey.c
927
ECX_KEY *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
935
key = ossl_evp_pkey_get1_X25519(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
937
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
942
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
944
return key;
crypto/openssl/crypto/x509/x_pubkey.c
969
ECX_KEY *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
977
key = ossl_evp_pkey_get1_X448(pkey);
crypto/openssl/crypto/x509/x_pubkey.c
979
if (key == NULL)
crypto/openssl/crypto/x509/x_pubkey.c
984
*a = key;
crypto/openssl/crypto/x509/x_pubkey.c
986
return key;
crypto/openssl/crypto/x509/x_x509.c
25
ASN1_SIMPLE(X509_CINF, key, X509_PUBKEY),
crypto/openssl/demos/http3/ossl-nghttp3.c
577
OSSL_DEMO_H3_STREAM key, *s;
crypto/openssl/demos/http3/ossl-nghttp3.c
629
key.id = stream_id;
crypto/openssl/demos/http3/ossl-nghttp3.c
630
if ((s = lh_OSSL_DEMO_H3_STREAM_retrieve(conn->streams, &key)) == NULL) {
crypto/openssl/demos/mac/cmac-aes256.c
143
if (!EVP_MAC_init(mctx, key, sizeof(key), params)) {
crypto/openssl/demos/mac/cmac-aes256.c
28
static unsigned char key[] = {
crypto/openssl/demos/mac/gmac.c
106
if (!EVP_MAC_init(mctx, key, sizeof(key), params)) {
crypto/openssl/demos/mac/gmac.c
26
static unsigned char key[] = {
crypto/openssl/demos/mac/hmac-sha512.c
224
if (!EVP_MAC_init(mctx, key, sizeof(key), params)) {
crypto/openssl/demos/mac/hmac-sha512.c
28
static unsigned char key[] = {
crypto/openssl/demos/mac/siphash.c
26
static unsigned char key[] = {
crypto/openssl/demos/mac/siphash.c
90
if (!EVP_MAC_init(mctx, key, sizeof(key), params)) {
crypto/openssl/demos/pkey/EVP_PKEY_EC_keygen.c
38
EVP_PKEY *key = NULL;
crypto/openssl/demos/pkey/EVP_PKEY_EC_keygen.c
70
if (EVP_PKEY_generate(genctx, &key) <= 0) {
crypto/openssl/demos/pkey/EVP_PKEY_EC_keygen.c
76
return key;
crypto/openssl/engines/e_afalg.c
179
static void afalg_waitfd_cleanup(ASYNC_WAIT_CTX *ctx, const void *key,
crypto/openssl/engines/e_afalg.c
427
static ossl_inline int afalg_set_key(afalg_ctx *actx, const unsigned char *key,
crypto/openssl/engines/e_afalg.c
431
ret = setsockopt(actx->bfd, SOL_ALG, ALG_SET_KEY, key, klen);
crypto/openssl/engines/e_afalg.c
574
static int afalg_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_afalg.c
582
if (ctx == NULL || key == NULL) {
crypto/openssl/engines/e_afalg.c
624
ret = afalg_set_key(actx, key, len);
crypto/openssl/engines/e_afalg.c
87
static int afalg_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_capi.c
119
void capi_free_key(CAPI_KEY *key);
crypto/openssl/engines/e_capi.c
1506
CAPI_KEY *key = OPENSSL_malloc(sizeof(*key));
crypto/openssl/engines/e_capi.c
1508
if (key == NULL)
crypto/openssl/engines/e_capi.c
1530
if (!CryptAcquireContextW(&key->hprov, contname, provname, ptype,
crypto/openssl/engines/e_capi.c
1536
if (!CryptGetUserKey(key->hprov, keyspec, &key->key)) {
crypto/openssl/engines/e_capi.c
1539
CryptReleaseContext(key->hprov, 0);
crypto/openssl/engines/e_capi.c
1542
key->keyspec = keyspec;
crypto/openssl/engines/e_capi.c
1543
key->pcert = NULL;
crypto/openssl/engines/e_capi.c
1544
return key;
crypto/openssl/engines/e_capi.c
1547
OPENSSL_free(key);
crypto/openssl/engines/e_capi.c
1553
CAPI_KEY *key = NULL;
crypto/openssl/engines/e_capi.c
1559
key = capi_get_key(ctx, pinfo->pwszContainerName, pinfo->pwszProvName,
crypto/openssl/engines/e_capi.c
1563
return key;
crypto/openssl/engines/e_capi.c
1570
CAPI_KEY *key = NULL;
crypto/openssl/engines/e_capi.c
1580
key = capi_get_cert_key(ctx, cert);
crypto/openssl/engines/e_capi.c
1591
key = capi_get_key(ctx, contname, provname,
crypto/openssl/engines/e_capi.c
1596
return key;
crypto/openssl/engines/e_capi.c
1599
void capi_free_key(CAPI_KEY *key)
crypto/openssl/engines/e_capi.c
1601
if (!key)
crypto/openssl/engines/e_capi.c
1603
CryptDestroyKey(key->key);
crypto/openssl/engines/e_capi.c
1604
CryptReleaseContext(key->hprov, 0);
crypto/openssl/engines/e_capi.c
1605
if (key->pcert)
crypto/openssl/engines/e_capi.c
1606
CertFreeCertificateContext(key->pcert);
crypto/openssl/engines/e_capi.c
1607
OPENSSL_free(key);
crypto/openssl/engines/e_capi.c
1712
CAPI_KEY *key;
crypto/openssl/engines/e_capi.c
1738
key = capi_get_cert_key(ctx, cert);
crypto/openssl/engines/e_capi.c
1739
if (!key) {
crypto/openssl/engines/e_capi.c
1748
key->pcert = excert;
crypto/openssl/engines/e_capi.c
1749
X509_set_ex_data(x, cert_capi_idx, key);
crypto/openssl/engines/e_capi.c
1782
key = X509_get_ex_data(x, cert_capi_idx);
crypto/openssl/engines/e_capi.c
1783
capi_free_key(key);
crypto/openssl/engines/e_capi.c
1795
key = X509_get_ex_data(*pcert, cert_capi_idx);
crypto/openssl/engines/e_capi.c
1796
*pkey = capi_get_pkey(e, key);
crypto/openssl/engines/e_capi.c
1838
CAPI_KEY *key;
crypto/openssl/engines/e_capi.c
1855
key = X509_get_ex_data(x, cert_capi_idx);
crypto/openssl/engines/e_capi.c
1857
if (!CertAddCertificateContextToStore(dstore, key->pcert,
crypto/openssl/engines/e_capi.c
1877
key = X509_get_ex_data(x, cert_capi_idx);
crypto/openssl/engines/e_capi.c
1879
key->pcert->pCertInfo)) {
crypto/openssl/engines/e_capi.c
525
HCRYPTKEY key;
crypto/openssl/engines/e_capi.c
637
static EVP_PKEY *capi_get_pkey(ENGINE *eng, CAPI_KEY *key)
crypto/openssl/engines/e_capi.c
645
if (!CryptExportKey(key->key, 0, PUBLICKEYBLOB, 0, NULL, &len)) {
crypto/openssl/engines/e_capi.c
656
if (!CryptExportKey(key->key, 0, PUBLICKEYBLOB, 0, pubkey, &len)) {
crypto/openssl/engines/e_capi.c
711
RSA_set_ex_data(rkey, rsa_capi_idx, key);
crypto/openssl/engines/e_capi.c
778
DSA_set_ex_data(dkey, dsa_capi_idx, key);
crypto/openssl/engines/e_capi.c
813
CAPI_KEY *key;
crypto/openssl/engines/e_capi.c
822
key = capi_find_key(ctx, key_id);
crypto/openssl/engines/e_capi.c
824
if (!key)
crypto/openssl/engines/e_capi.c
827
ret = capi_get_pkey(eng, key);
crypto/openssl/engines/e_capi.c
830
capi_free_key(key);
crypto/openssl/engines/e_capi.c
986
if (!CryptDecrypt(capi_key->key, 0, TRUE, flags, tmpbuf, &dlen)) {
crypto/openssl/engines/e_dasync.c
136
static int dasync_aes128_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_dasync.c
144
static int dasync_aes256_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_dasync.c
153
const unsigned char *key,
crypto/openssl/engines/e_dasync.c
500
static void wait_cleanup(ASYNC_WAIT_CTX *ctx, const void *key,
crypto/openssl/engines/e_dasync.c
708
const unsigned char *key,
crypto/openssl/engines/e_dasync.c
727
ret = EVP_CIPHER_meth_get_init(cipher)(ctx, key, iv, enc);
crypto/openssl/engines/e_dasync.c
791
static int dasync_aes128_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_dasync.c
794
return dasync_cipher_init_key_helper(ctx, key, iv, enc, EVP_aes_128_cbc());
crypto/openssl/engines/e_dasync.c
814
static int dasync_aes256_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_dasync.c
817
return dasync_cipher_init_key_helper(ctx, key, iv, enc, EVP_aes_256_ctr());
crypto/openssl/engines/e_dasync.c
842
const unsigned char *key,
crypto/openssl/engines/e_dasync.c
850
return dasync_cipher_init_key_helper(ctx, key, iv, enc,
crypto/openssl/engines/e_devcrypto.c
206
static int cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_devcrypto.c
219
cipher_ctx->sess.key = (void *)key;
crypto/openssl/engines/e_devcrypto.c
372
return cipher_init(to_ctx, (void *)cipher_ctx->sess.key, EVP_CIPHER_CTX_iv(ctx),
crypto/openssl/engines/e_devcrypto.c
434
sess.key = (void *)"01234567890123456789012345678901234567890123456789";
crypto/openssl/engines/e_ossltest.c
255
const unsigned char *key,
crypto/openssl/engines/e_ossltest.c
260
const unsigned char *key,
crypto/openssl/engines/e_ossltest.c
267
const unsigned char *key,
crypto/openssl/engines/e_ossltest.c
383
EVP_PKEY *key;
crypto/openssl/engines/e_ossltest.c
394
key = PEM_read_bio_PUBKEY(in, NULL, 0, NULL);
crypto/openssl/engines/e_ossltest.c
396
key = PEM_read_bio_PrivateKey(in, NULL, 0, NULL);
crypto/openssl/engines/e_ossltest.c
398
return key;
crypto/openssl/engines/e_ossltest.c
689
const unsigned char *key,
crypto/openssl/engines/e_ossltest.c
692
return EVP_CIPHER_meth_get_init(EVP_aes_128_cbc())(ctx, key, iv, enc);
crypto/openssl/engines/e_ossltest.c
723
const unsigned char *key,
crypto/openssl/engines/e_ossltest.c
726
return EVP_CIPHER_meth_get_init(EVP_aes_128_gcm())(ctx, key, iv, enc);
crypto/openssl/engines/e_ossltest.c
783
EVP_AES_HMAC_SHA1 *key = data(ctx);
crypto/openssl/engines/e_ossltest.c
784
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/engines/e_ossltest.c
793
EVP_AES_HMAC_SHA1 *key = data(ctx);
crypto/openssl/engines/e_ossltest.c
795
size_t plen = key->payload_length;
crypto/openssl/engines/e_ossltest.c
797
key->payload_length = NO_PAYLOAD_LENGTH;
crypto/openssl/engines/e_ossltest.c
826
if (key->tls_ver >= TLS1_1_VERSION) {
crypto/openssl/engines/e_ossltest.c
854
EVP_AES_HMAC_SHA1 *key = data(ctx);
crypto/openssl/engines/e_ossltest.c
868
key->tls_ver = p[arg - 4] << 8 | p[arg - 3];
crypto/openssl/engines/e_ossltest.c
871
key->payload_length = len;
crypto/openssl/engines/e_ossltest.c
872
if (key->tls_ver >= TLS1_1_VERSION) {
crypto/openssl/engines/e_ossltest.c
883
key->payload_length = arg;
crypto/openssl/engines/e_padlock.c
148
AES_KEY *key);
crypto/openssl/engines/e_padlock.c
151
AES_KEY *key);
crypto/openssl/engines/e_padlock.c
216
void padlock_key_bswap(AES_KEY *key);
crypto/openssl/engines/e_padlock.c
301
static int padlock_aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_padlock.c
614
padlock_aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/engines/e_padlock.c
621
if (key == NULL)
crypto/openssl/engines/e_padlock.c
640
memcpy(cdata->ks.rd_key, key, AES_KEY_SIZE_128);
crypto/openssl/engines/e_padlock.c
656
AES_set_decrypt_key(key, key_len, &cdata->ks);
crypto/openssl/engines/e_padlock.c
658
AES_set_encrypt_key(key, key_len, &cdata->ks);
crypto/openssl/fuzz/hashtable.c
126
FUZZER_KEY key;
crypto/openssl/fuzz/hashtable.c
150
HT_INIT_KEY(&key);
crypto/openssl/fuzz/hashtable.c
160
HT_KEY_RESET(&key);
crypto/openssl/fuzz/hashtable.c
163
HT_SET_KEY_FIELD(&key, fuzzkey, keyval);
crypto/openssl/fuzz/hashtable.c
185
rc = ossl_ht_fz_FUZZER_VALUE_insert(fuzzer_table, TO_HT_KEY(&key),
crypto/openssl/fuzz/hashtable.c
188
rc = ossl_ht_fz_FUZZER_VALUE_insert(fuzzer_table, TO_HT_KEY(&key),
crypto/openssl/fuzz/hashtable.c
221
HT_KEY_RESET(&key);
crypto/openssl/fuzz/hashtable.c
224
HT_SET_KEY_FIELD(&key, fuzzkey, keyval);
crypto/openssl/fuzz/hashtable.c
241
rc = ossl_ht_delete(fuzzer_table, TO_HT_KEY(&key));
crypto/openssl/fuzz/hashtable.c
273
HT_KEY_RESET(&key);
crypto/openssl/fuzz/hashtable.c
276
HT_SET_KEY_FIELD(&key, fuzzkey, keyval);
crypto/openssl/fuzz/hashtable.c
293
lval = ossl_ht_fz_FUZZER_VALUE_get(fuzzer_table, TO_HT_KEY(&key), &v);
crypto/openssl/fuzz/ml-dsa.c
166
uint8_t key[MAX_ML_DSA_PRIV_LEN];
crypto/openssl/fuzz/ml-dsa.c
201
if (!RAND_bytes(key, keylen))
crypto/openssl/fuzz/ml-dsa.c
211
pubkey = EVP_PKEY_new_raw_public_key_ex(NULL, keytype, NULL, key, keylen);
crypto/openssl/fuzz/ml-dsa.c
213
pubkey = EVP_PKEY_new_raw_private_key_ex(NULL, keytype, NULL, key, keylen);
crypto/openssl/fuzz/ml-dsa.c
220
EVP_PKEY **key)
crypto/openssl/fuzz/ml-dsa.c
246
*key = EVP_PKEY_new();
crypto/openssl/fuzz/ml-dsa.c
247
if (*key == NULL)
crypto/openssl/fuzz/ml-dsa.c
250
if (!EVP_PKEY_generate(ctx, key)) {
crypto/openssl/fuzz/ml-dsa.c
301
EVP_PKEY *key = (EVP_PKEY *)key1;
crypto/openssl/fuzz/ml-dsa.c
302
EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new_from_pkey(NULL, key, NULL);
crypto/openssl/fuzz/ml-dsa.c
308
const char *alg = EVP_PKEY_get0_type_name(key);
crypto/openssl/fuzz/ml-dsa.c
348
if ((ctx = EVP_PKEY_CTX_new_from_pkey(NULL, key, NULL)) == NULL
crypto/openssl/fuzz/ml-dsa.c
380
EVP_PKEY *key = (EVP_PKEY *)key1;
crypto/openssl/fuzz/ml-dsa.c
412
if (!EVP_DigestSignInit_ex(ctx, NULL, NULL, NULL, "?fips=true", key, params)
crypto/openssl/fuzz/ml-dsa.c
425
|| EVP_DigestVerifyInit_ex(ctx, NULL, NULL, NULL, "?fips=true", key,
crypto/openssl/fuzz/ml-kem.c
146
uint8_t key[4096];
crypto/openssl/fuzz/ml-kem.c
169
if (!RAND_bytes(key, keylen))
crypto/openssl/fuzz/ml-kem.c
179
pubkey = EVP_PKEY_new_raw_public_key_ex(NULL, keytype, NULL, key, keylen);
crypto/openssl/fuzz/ml-kem.c
181
pubkey = EVP_PKEY_new_raw_private_key_ex(NULL, keytype, NULL, key, keylen);
crypto/openssl/fuzz/ml-kem.c
208
EVP_PKEY **key;
crypto/openssl/fuzz/ml-kem.c
212
key = (EVP_PKEY **)key1;
crypto/openssl/fuzz/ml-kem.c
235
*key = EVP_PKEY_new();
crypto/openssl/fuzz/ml-kem.c
236
if (*key == NULL)
crypto/openssl/fuzz/ml-kem.c
239
if (!EVP_PKEY_generate(ctx, key)) {
crypto/openssl/fuzz/ml-kem.c
244
if (key == (EVP_PKEY **)key1) {
crypto/openssl/fuzz/ml-kem.c
246
key = (EVP_PKEY **)key2;
crypto/openssl/fuzz/ml-kem.c
272
EVP_PKEY *key = (EVP_PKEY *)key1;
crypto/openssl/fuzz/ml-kem.c
281
ctx = EVP_PKEY_CTX_new_from_pkey(NULL, key, NULL);
crypto/openssl/fuzz/ml-kem.c
301
ctx = EVP_PKEY_CTX_new_from_pkey(NULL, key, NULL);
crypto/openssl/fuzz/ml-kem.c
341
static void do_derive(EVP_PKEY *key, EVP_PKEY *peer, uint8_t **shared, size_t *shared_len)
crypto/openssl/fuzz/ml-kem.c
348
ctx = EVP_PKEY_CTX_new_from_pkey(NULL, key, NULL);
crypto/openssl/fuzz/provider.c
250
for (; param != NULL && param->key != NULL; param++) {
crypto/openssl/fuzz/provider.c
269
for (p = param; p != NULL && p->key != NULL; p++)
crypto/openssl/fuzz/provider.c
275
for (; param != NULL && param->key != NULL; param++) {
crypto/openssl/fuzz/provider.c
294
if (strcmp(param->key, OSSL_KDF_PARAM_ITER) == 0) {
crypto/openssl/fuzz/provider.c
297
} else if (strcmp(param->key, OSSL_KDF_PARAM_SCRYPT_N) == 0) {
crypto/openssl/fuzz/provider.c
300
} else if (strcmp(param->key, OSSL_KDF_PARAM_SCRYPT_R) == 0) {
crypto/openssl/fuzz/provider.c
303
} else if (strcmp(param->key, OSSL_KDF_PARAM_SCRYPT_P) == 0) {
crypto/openssl/fuzz/provider.c
316
if (strcmp(param->key, OSSL_KDF_PARAM_ITER) == 0) {
crypto/openssl/fuzz/provider.c
319
} else if (strcmp(param->key, OSSL_KDF_PARAM_SCRYPT_N) == 0) {
crypto/openssl/fuzz/provider.c
322
} else if (strcmp(param->key, OSSL_KDF_PARAM_SCRYPT_R) == 0) {
crypto/openssl/fuzz/provider.c
325
} else if (strcmp(param->key, OSSL_KDF_PARAM_SCRYPT_P) == 0) {
crypto/openssl/fuzz/provider.c
393
unsigned char key[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
crypto/openssl/fuzz/provider.c
405
if (!EVP_EncryptInit_ex2(ctx, evp_cipher, key, iv, NULL)) {
crypto/openssl/fuzz/provider.c
461
const char *key = "mac_key";
crypto/openssl/fuzz/provider.c
468
|| !EVP_MAC_init(ctx, (const unsigned char *)key, strlen(key),
crypto/openssl/fuzz/slh-dsa.c
310
EVP_PKEY *key = NULL;
crypto/openssl/fuzz/slh-dsa.c
367
key = (void *)slh_dsa_gen_key(keytype, keylen, NULL, 0);
crypto/openssl/fuzz/slh-dsa.c
368
OPENSSL_assert(key != NULL);
crypto/openssl/fuzz/slh-dsa.c
369
*out1 = key; /* for cleanup */
crypto/openssl/fuzz/slh-dsa.c
371
ctx = EVP_PKEY_CTX_new_from_pkey(NULL, key, NULL);
crypto/openssl/include/crypto/aes_platform.h
130
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
132
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
134
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
136
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
138
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
140
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
142
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
144
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
146
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
148
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
150
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
152
uint64_t *Xi, unsigned char ivec[16], const void *key);
crypto/openssl/include/crypto/aes_platform.h
153
size_t armv8_aes_gcm_encrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key,
crypto/openssl/include/crypto/aes_platform.h
155
size_t armv8_aes_gcm_decrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key,
crypto/openssl/include/crypto/aes_platform.h
18
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
191
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
193
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
196
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
198
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
20
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
202
size_t length, const AES_KEY *key, int enc);
crypto/openssl/include/crypto/aes_platform.h
206
const AES_KEY *key, unsigned char *ivec, int enc);
crypto/openssl/include/crypto/aes_platform.h
209
size_t blocks, const void *key,
crypto/openssl/include/crypto/aes_platform.h
215
size_t blocks, const void *key,
crypto/openssl/include/crypto/aes_platform.h
22
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
225
const void *key, const unsigned char *ivec);
crypto/openssl/include/crypto/aes_platform.h
24
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
262
const void *key,
crypto/openssl/include/crypto/aes_platform.h
269
const void *key,
crypto/openssl/include/crypto/aes_platform.h
275
const void *key, unsigned char ivec[16], u64 *Xi);
crypto/openssl/include/crypto/aes_platform.h
277
const void *key, unsigned char ivec[16], u64 *Xi);
crypto/openssl/include/crypto/aes_platform.h
28
const AES_KEY *key, unsigned char *ivec, int enc);
crypto/openssl/include/crypto/aes_platform.h
299
void aes_t4_set_encrypt_key(const unsigned char *key, int bits, AES_KEY *ks);
crypto/openssl/include/crypto/aes_platform.h
300
void aes_t4_set_decrypt_key(const unsigned char *key, int bits, AES_KEY *ks);
crypto/openssl/include/crypto/aes_platform.h
302
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
304
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
317
size_t len, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
320
size_t len, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
323
size_t len, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
326
size_t len, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
329
size_t len, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
33
size_t length, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
332
size_t len, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
335
size_t blocks, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
338
size_t blocks, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
341
size_t blocks, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
37
const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
426
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
428
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
430
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
432
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
435
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
437
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
439
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
441
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
444
size_t length, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
448
size_t length, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
452
size_t length, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
456
size_t length, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
461
const void *key,
crypto/openssl/include/crypto/aes_platform.h
466
const void *key,
crypto/openssl/include/crypto/aes_platform.h
471
const void *key,
crypto/openssl/include/crypto/aes_platform.h
49
size_t blocks, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
501
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
504
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
506
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
508
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
510
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
512
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
517
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
519
AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
521
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
523
const AES_KEY *key);
crypto/openssl/include/crypto/aes_platform.h
525
size_t length, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
528
size_t length, const AES_KEY *key,
crypto/openssl/include/crypto/aes_platform.h
531
size_t len, const void *key,
crypto/openssl/include/crypto/aes_platform.h
535
size_t len, const void *key,
crypto/openssl/include/crypto/aes_platform.h
547
size_t blocks, const void *key,
crypto/openssl/include/crypto/aes_platform.h
557
size_t blocks, const void *key,
crypto/openssl/include/crypto/aes_platform.h
86
size_t len, const void *key, unsigned char ivec[16],
crypto/openssl/include/crypto/aes_platform.h
89
size_t len, const void *key, unsigned char ivec[16],
crypto/openssl/include/crypto/aria.h
43
ARIA_KEY *key);
crypto/openssl/include/crypto/aria.h
45
ARIA_KEY *key);
crypto/openssl/include/crypto/aria.h
48
const ARIA_KEY *key);
crypto/openssl/include/crypto/chacha.h
28
size_t len, const unsigned int key[8],
crypto/openssl/include/crypto/chacha.h
33
const unsigned int key[8], const unsigned int counter[4]);
crypto/openssl/include/crypto/cmac.h
18
int ossl_cmac_init(CMAC_CTX *ctx, const void *key, size_t keylen,
crypto/openssl/include/crypto/cmll_platform.h
23
void cmll_t4_set_key(const unsigned char *key, int bits, CAMELLIA_KEY *ks);
crypto/openssl/include/crypto/cmll_platform.h
25
const CAMELLIA_KEY *key);
crypto/openssl/include/crypto/cmll_platform.h
27
const CAMELLIA_KEY *key);
crypto/openssl/include/crypto/cmll_platform.h
30
size_t len, const CAMELLIA_KEY *key,
crypto/openssl/include/crypto/cmll_platform.h
33
size_t len, const CAMELLIA_KEY *key,
crypto/openssl/include/crypto/cmll_platform.h
36
size_t len, const CAMELLIA_KEY *key,
crypto/openssl/include/crypto/cmll_platform.h
39
size_t len, const CAMELLIA_KEY *key,
crypto/openssl/include/crypto/cmll_platform.h
42
size_t blocks, const CAMELLIA_KEY *key,
crypto/openssl/include/crypto/cmll_platform.h
45
size_t blocks, const CAMELLIA_KEY *key,
crypto/openssl/include/crypto/des_platform.h
22
void des_t4_key_expand(const void *key, DES_key_schedule *ks);
crypto/openssl/include/crypto/dh.h
41
int ossl_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
crypto/openssl/include/crypto/dh.h
49
int ossl_dh_buf2key(DH *key, const unsigned char *buf, size_t len);
crypto/openssl/include/crypto/ec.h
68
void ossl_ec_key_set0_libctx(EC_KEY *key, OSSL_LIB_CTX *libctx);
crypto/openssl/include/crypto/ec.h
81
EC_KEY *ossl_ec_key_dup(const EC_KEY *key, int selection);
crypto/openssl/include/crypto/ecx.h
140
int ossl_ecx_public_from_private(ECX_KEY *key);
crypto/openssl/include/crypto/ecx.h
79
void ossl_ecx_key_set0_libctx(ECX_KEY *key, OSSL_LIB_CTX *libctx);
crypto/openssl/include/crypto/ecx.h
80
unsigned char *ossl_ecx_key_allocate_privkey(ECX_KEY *key);
crypto/openssl/include/crypto/ecx.h
81
void ossl_ecx_key_free(ECX_KEY *key);
crypto/openssl/include/crypto/ecx.h
82
int ossl_ecx_key_up_ref(ECX_KEY *key);
crypto/openssl/include/crypto/ecx.h
83
ECX_KEY *ossl_ecx_key_dup(const ECX_KEY *key, int selection);
crypto/openssl/include/crypto/evp.h
179
int (*derive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen);
crypto/openssl/include/crypto/evp.h
314
int (*init)(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/include/crypto/ml_dsa.h
100
__owur size_t ossl_ml_dsa_key_get_sig_len(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
101
__owur int ossl_ml_dsa_key_matches(const ML_DSA_KEY *key, int evp_type);
crypto/openssl/include/crypto/ml_dsa.h
102
__owur const char *ossl_ml_dsa_key_get_name(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
103
OSSL_LIB_CTX *ossl_ml_dsa_key_get0_libctx(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
105
__owur int ossl_ml_dsa_key_public_from_private(ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
106
__owur int ossl_ml_dsa_pk_decode(ML_DSA_KEY *key, const uint8_t *in, size_t in_len);
crypto/openssl/include/crypto/ml_dsa.h
107
__owur int ossl_ml_dsa_sk_decode(ML_DSA_KEY *key, const uint8_t *in, size_t in_len);
crypto/openssl/include/crypto/ml_dsa.h
76
const ML_DSA_PARAMS *ossl_ml_dsa_key_params(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
80
void ossl_ml_dsa_key_reset(ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
81
__owur int ossl_ml_dsa_key_pub_alloc(ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
82
__owur int ossl_ml_dsa_key_priv_alloc(ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
83
void ossl_ml_dsa_key_free(ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
87
__owur int ossl_ml_dsa_key_has(const ML_DSA_KEY *key, int selection);
crypto/openssl/include/crypto/ml_dsa.h
88
__owur int ossl_ml_dsa_key_pairwise_check(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
90
__owur const uint8_t *ossl_ml_dsa_key_get_pub(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
91
__owur size_t ossl_ml_dsa_key_get_pub_len(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
92
__owur const uint8_t *ossl_ml_dsa_key_get_priv(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
93
__owur size_t ossl_ml_dsa_key_get_priv_len(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
94
__owur const uint8_t *ossl_ml_dsa_key_get_seed(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
95
__owur int ossl_ml_dsa_key_get_prov_flags(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_dsa.h
96
int ossl_ml_dsa_set_prekey(ML_DSA_KEY *key, int flags_set, int flags_clr,
crypto/openssl/include/crypto/ml_dsa.h
99
__owur size_t ossl_ml_dsa_key_get_collision_strength_bits(const ML_DSA_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
198
#define ossl_ml_kem_key_vinfo(key) ((key)->vinfo)
crypto/openssl/include/crypto/ml_kem.h
199
#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
crypto/openssl/include/crypto/ml_kem.h
200
#define ossl_ml_kem_have_prvkey(key) ((key)->s != NULL)
crypto/openssl/include/crypto/ml_kem.h
201
#define ossl_ml_kem_have_seed(key) ((key)->d != NULL)
crypto/openssl/include/crypto/ml_kem.h
202
#define ossl_ml_kem_have_dkenc(key) ((key)->encoded_dk != NULL)
crypto/openssl/include/crypto/ml_kem.h
203
#define ossl_ml_kem_decoded_key(key) ((key)->encoded_dk != NULL \
crypto/openssl/include/crypto/ml_kem.h
204
|| ((key)->s == NULL && (key)->d != NULL))
crypto/openssl/include/crypto/ml_kem.h
217
void ossl_ml_kem_key_reset(ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
219
void ossl_ml_kem_key_free(ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
224
ML_KEM_KEY *ossl_ml_kem_key_dup(const ML_KEM_KEY *key, int selection);
crypto/openssl/include/crypto/ml_kem.h
238
ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
240
ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
242
ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
243
__owur int ossl_ml_kem_genkey(uint8_t *pubenc, size_t publen, ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
251
const ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
253
const ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
255
const ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
260
const ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
263
const ML_KEM_KEY *key);
crypto/openssl/include/crypto/ml_kem.h
266
const ML_KEM_KEY *key);
crypto/openssl/include/crypto/modes.h
130
void *key;
crypto/openssl/include/crypto/modes.h
166
void *key;
crypto/openssl/include/crypto/poly1305.h
42
void Poly1305_Init(POLY1305 *ctx, const unsigned char key[32]);
crypto/openssl/include/crypto/rsa.h
108
int ossl_rsa_validate_public(const RSA *key);
crypto/openssl/include/crypto/rsa.h
109
int ossl_rsa_validate_private(const RSA *key);
crypto/openssl/include/crypto/rsa.h
110
int ossl_rsa_validate_pairwise(const RSA *key);
crypto/openssl/include/crypto/siv.h
14
SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen,
crypto/openssl/include/crypto/siv.h
17
int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen,
crypto/openssl/include/crypto/slh_dsa.h
26
__owur OSSL_LIB_CTX *ossl_slh_dsa_key_get0_libctx(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
29
void ossl_slh_dsa_key_free(SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
30
void ossl_slh_dsa_key_reset(SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
34
__owur int ossl_slh_dsa_key_has(const SLH_DSA_KEY *key, int selection);
crypto/openssl/include/crypto/slh_dsa.h
35
__owur int ossl_slh_dsa_key_pairwise_check(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
36
__owur int ossl_slh_dsa_key_fromdata(SLH_DSA_KEY *key, const OSSL_PARAM *params,
crypto/openssl/include/crypto/slh_dsa.h
41
__owur int ossl_slh_dsa_key_to_text(BIO *out, const SLH_DSA_KEY *key, int selection);
crypto/openssl/include/crypto/slh_dsa.h
42
__owur const uint8_t *ossl_slh_dsa_key_get_pub(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
43
__owur const uint8_t *ossl_slh_dsa_key_get_priv(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
44
__owur size_t ossl_slh_dsa_key_get_pub_len(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
45
__owur int ossl_slh_dsa_set_priv(SLH_DSA_KEY *key, const uint8_t *priv,
crypto/openssl/include/crypto/slh_dsa.h
47
__owur int ossl_slh_dsa_set_pub(SLH_DSA_KEY *key, const uint8_t *pub,
crypto/openssl/include/crypto/slh_dsa.h
49
__owur size_t ossl_slh_dsa_key_get_priv_len(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
50
__owur size_t ossl_slh_dsa_key_get_n(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
51
__owur size_t ossl_slh_dsa_key_get_sig_len(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
52
__owur const char *ossl_slh_dsa_key_get_name(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
53
__owur int ossl_slh_dsa_key_get_type(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/slh_dsa.h
54
__owur int ossl_slh_dsa_key_type_matches(const SLH_DSA_KEY *key, const char *alg);
crypto/openssl/include/crypto/slh_dsa.h
55
__owur SLH_DSA_HASH_CTX *ossl_slh_dsa_hash_ctx_new(const SLH_DSA_KEY *key);
crypto/openssl/include/crypto/sm2.h
32
const EC_KEY *key);
crypto/openssl/include/crypto/sm2.h
37
ECDSA_SIG *ossl_sm2_do_sign(const EC_KEY *key,
crypto/openssl/include/crypto/sm2.h
43
int ossl_sm2_do_verify(const EC_KEY *key,
crypto/openssl/include/crypto/sm2.h
67
int ossl_sm2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest,
crypto/openssl/include/crypto/sm2.h
73
int ossl_sm2_encrypt(const EC_KEY *key,
crypto/openssl/include/crypto/sm2.h
78
int ossl_sm2_decrypt(const EC_KEY *key,
crypto/openssl/include/crypto/sm4.h
32
int ossl_sm4_set_key(const uint8_t *key, SM4_KEY *ks);
crypto/openssl/include/crypto/sm4_platform.h
101
const SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
103
size_t length, const SM4_KEY *key,
crypto/openssl/include/crypto/sm4_platform.h
106
size_t length, const SM4_KEY *key,
crypto/openssl/include/crypto/sm4_platform.h
109
size_t len, const void *key,
crypto/openssl/include/crypto/sm4_platform.h
43
SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
45
SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
47
const SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
49
const SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
54
int HWSM4_set_encrypt_key(const unsigned char *userKey, SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
55
int HWSM4_set_decrypt_key(const unsigned char *userKey, SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
57
const SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
59
const SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
61
size_t length, const SM4_KEY *key,
crypto/openssl/include/crypto/sm4_platform.h
64
size_t length, const SM4_KEY *key,
crypto/openssl/include/crypto/sm4_platform.h
67
size_t len, const void *key,
crypto/openssl/include/crypto/sm4_platform.h
72
int vpsm4_set_encrypt_key(const unsigned char *userKey, SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
73
int vpsm4_set_decrypt_key(const unsigned char *userKey, SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
75
const SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
77
const SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
79
size_t length, const SM4_KEY *key,
crypto/openssl/include/crypto/sm4_platform.h
82
size_t length, const SM4_KEY *key,
crypto/openssl/include/crypto/sm4_platform.h
85
size_t len, const void *key,
crypto/openssl/include/crypto/sm4_platform.h
96
int vpsm4_ex_set_encrypt_key(const unsigned char *userKey, SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
97
int vpsm4_ex_set_decrypt_key(const unsigned char *userKey, SM4_KEY *key);
crypto/openssl/include/crypto/sm4_platform.h
99
const SM4_KEY *key);
crypto/openssl/include/crypto/x509.h
167
X509_PUBKEY *key;
crypto/openssl/include/crypto/x509.h
333
const X509_PUBKEY *key);
crypto/openssl/include/internal/cryptlib.h
153
const void *ossl_bsearch(const void *key, const void *base, int num,
crypto/openssl/include/internal/hashfunc.h
18
ossl_unused uint64_t ossl_fnv1a_hash(uint8_t *key, size_t len);
crypto/openssl/include/internal/hashtable.h
109
#define HT_INIT_KEY(key) \
crypto/openssl/include/internal/hashtable.h
111
memset((key), 0, sizeof(*(key))); \
crypto/openssl/include/internal/hashtable.h
112
(key)->key_header.keysize = (sizeof(*(key)) - sizeof(HT_KEY)); \
crypto/openssl/include/internal/hashtable.h
113
(key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY)); \
crypto/openssl/include/internal/hashtable.h
119
#define HT_KEY_RESET(key) memset((key)->key_header.keybuf, 0, (key)->key_header.keysize)
crypto/openssl/include/internal/hashtable.h
124
#define HT_SET_KEY_FIELD(key, member, value) (key)->keyfields.member = value;
crypto/openssl/include/internal/hashtable.h
130
#define HT_SET_KEY_STRING(key, member, value) \
crypto/openssl/include/internal/hashtable.h
133
strncpy((key)->keyfields.member, value, sizeof((key)->keyfields.member) - 1); \
crypto/openssl/include/internal/hashtable.h
142
#define HT_SET_KEY_STRING_CASE(key, member, value) \
crypto/openssl/include/internal/hashtable.h
144
ossl_ht_strcase((key)->keyfields.member, value, sizeof((key)->keyfields.member) - 1); \
crypto/openssl/include/internal/hashtable.h
150
#define HT_SET_KEY_STRING_N(key, member, value, len) \
crypto/openssl/include/internal/hashtable.h
153
if (len < sizeof((key)->keyfields.member)) \
crypto/openssl/include/internal/hashtable.h
154
strncpy((key)->keyfields.member, value, len); \
crypto/openssl/include/internal/hashtable.h
156
strncpy((key)->keyfields.member, value, sizeof((key)->keyfields.member) - 1); \
crypto/openssl/include/internal/hashtable.h
161
#define HT_SET_KEY_STRING_CASE_N(key, member, value, len) \
crypto/openssl/include/internal/hashtable.h
163
if (len < sizeof((key)->keyfields.member)) \
crypto/openssl/include/internal/hashtable.h
164
ossl_ht_strcase((key)->keyfields.member, value, len); \
crypto/openssl/include/internal/hashtable.h
166
ossl_ht_strcase((key)->keyfields.member, value, sizeof((key)->keyfields.member) - 1); \
crypto/openssl/include/internal/hashtable.h
172
#define HT_SET_KEY_BLOB(key, member, value, len) \
crypto/openssl/include/internal/hashtable.h
175
memcpy((key)->keyfields.member, value, len); \
crypto/openssl/include/internal/hashtable.h
181
#define TO_HT_KEY(key) &(key)->key_header
crypto/openssl/include/internal/hashtable.h
187
#define FROM_HT_KEY(key, type) (type)(key)
crypto/openssl/include/internal/hashtable.h
199
pfx ossl_unused int ossl_ht_##name##_##vtype##_insert(HT *h, HT_KEY *key, \
crypto/openssl/include/internal/hashtable.h
209
rc = ossl_ht_insert(h, key, &inval, olddata == NULL ? NULL : &oval); \
crypto/openssl/include/internal/hashtable.h
226
HT_KEY *key, \
crypto/openssl/include/internal/hashtable.h
230
vv = ossl_ht_get(h, key); \
crypto/openssl/include/internal/hashtable.h
251
int ossl_ht_##name##_##vtype##_insert(HT *h, HT_KEY *key, vtype *data, \
crypto/openssl/include/internal/hashtable.h
255
HT_KEY *key, \
crypto/openssl/include/internal/hashtable.h
319
int ossl_ht_insert(HT *htable, HT_KEY *key, HT_VALUE *data,
crypto/openssl/include/internal/hashtable.h
326
int ossl_ht_delete(HT *htable, HT_KEY *key);
crypto/openssl/include/internal/hashtable.h
36
HT_KEY key;
crypto/openssl/include/internal/hashtable.h
362
HT_VALUE *ossl_ht_get(HT *htable, HT_KEY *key);
crypto/openssl/include/internal/hashtable.h
53
uint64_t (*ht_hash_fn)(uint8_t *key, size_t keylen);
crypto/openssl/include/internal/json_enc.h
191
void ossl_json_key(OSSL_JSON_ENC *json, const char *key);
crypto/openssl/include/internal/param_build_set.h
29
const char *key, int num);
crypto/openssl/include/internal/param_build_set.h
31
const char *key, long num);
crypto/openssl/include/internal/param_build_set.h
33
const char *key, const char *buf);
crypto/openssl/include/internal/param_build_set.h
35
const char *key,
crypto/openssl/include/internal/param_build_set.h
39
const char *key, const BIGNUM *bn);
crypto/openssl/include/internal/param_build_set.h
41
const char *key, const BIGNUM *bn, size_t sz);
crypto/openssl/include/internal/param_build_set.h
43
const char *key, const BIGNUM *bn);
crypto/openssl/include/internal/param_build_set.h
45
const char *key, const BIGNUM *bn,
crypto/openssl/include/internal/quic_srt_gen.h
43
const unsigned char *key, size_t key_len);
crypto/openssl/include/internal/recordmethod.h
120
unsigned char *key,
crypto/openssl/include/openssl/aes.h
100
int AES_unwrap_key(AES_KEY *key, const unsigned char *iv,
crypto/openssl/include/openssl/aes.h
51
AES_KEY *key);
crypto/openssl/include/openssl/aes.h
54
AES_KEY *key);
crypto/openssl/include/openssl/aes.h
57
const AES_KEY *key);
crypto/openssl/include/openssl/aes.h
60
const AES_KEY *key);
crypto/openssl/include/openssl/aes.h
63
const AES_KEY *key, const int enc);
crypto/openssl/include/openssl/aes.h
66
size_t length, const AES_KEY *key,
crypto/openssl/include/openssl/aes.h
70
size_t length, const AES_KEY *key,
crypto/openssl/include/openssl/aes.h
74
size_t length, const AES_KEY *key,
crypto/openssl/include/openssl/aes.h
78
size_t length, const AES_KEY *key,
crypto/openssl/include/openssl/aes.h
82
size_t length, const AES_KEY *key,
crypto/openssl/include/openssl/aes.h
88
size_t length, const AES_KEY *key,
crypto/openssl/include/openssl/aes.h
93
size_t length, const AES_KEY *key, const AES_KEY *key2,
crypto/openssl/include/openssl/aes.h
96
int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
crypto/openssl/include/openssl/async.h
57
int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,
crypto/openssl/include/openssl/async.h
62
int ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key,
crypto/openssl/include/openssl/async.h
77
int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key);
crypto/openssl/include/openssl/blowfish.h
50
OSSL_DEPRECATEDIN_3_0 void BF_set_key(BF_KEY *key, int len,
crypto/openssl/include/openssl/blowfish.h
52
OSSL_DEPRECATEDIN_3_0 void BF_encrypt(BF_LONG *data, const BF_KEY *key);
crypto/openssl/include/openssl/blowfish.h
53
OSSL_DEPRECATEDIN_3_0 void BF_decrypt(BF_LONG *data, const BF_KEY *key);
crypto/openssl/include/openssl/blowfish.h
55
unsigned char *out, const BF_KEY *key,
crypto/openssl/include/openssl/camellia.h
101
const CAMELLIA_KEY *key,
crypto/openssl/include/openssl/camellia.h
106
size_t length, const CAMELLIA_KEY *key,
crypto/openssl/include/openssl/camellia.h
60
CAMELLIA_KEY *key);
crypto/openssl/include/openssl/camellia.h
63
const CAMELLIA_KEY *key);
crypto/openssl/include/openssl/camellia.h
66
const CAMELLIA_KEY *key);
crypto/openssl/include/openssl/camellia.h
69
const CAMELLIA_KEY *key,
crypto/openssl/include/openssl/camellia.h
74
const CAMELLIA_KEY *key,
crypto/openssl/include/openssl/camellia.h
80
const CAMELLIA_KEY *key,
crypto/openssl/include/openssl/camellia.h
87
const CAMELLIA_KEY *key,
crypto/openssl/include/openssl/camellia.h
94
const CAMELLIA_KEY *key,
crypto/openssl/include/openssl/cast.h
44
void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);
crypto/openssl/include/openssl/cast.h
47
const CAST_KEY *key, int enc);
crypto/openssl/include/openssl/cast.h
49
void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key);
crypto/openssl/include/openssl/cast.h
51
void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key);
crypto/openssl/include/openssl/cmac.h
38
const void *key, size_t keylen,
crypto/openssl/include/openssl/cms.h
261
const unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/cms.h
264
const unsigned char *key,
crypto/openssl/include/openssl/cms.h
267
const unsigned char *key,
crypto/openssl/include/openssl/cms.h
273
const unsigned char *key, size_t keylen);
crypto/openssl/include/openssl/cms.h
297
unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/cms.h
333
unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/cms.h
347
unsigned char *key, size_t keylen);
crypto/openssl/include/openssl/core.h
86
const char *key; /* the name of the parameter */
crypto/openssl/include/openssl/core_dispatch.h
373
OSSL_CORE_MAKE_FUNC(int, cipher_encrypt_init, (void *cctx, const unsigned char *key, size_t keylen, const unsigned char *iv, size_t ivlen, const OSSL_PARAM params[]))
crypto/openssl/include/openssl/core_dispatch.h
374
OSSL_CORE_MAKE_FUNC(int, cipher_decrypt_init, (void *cctx, const unsigned char *key, size_t keylen, const unsigned char *iv, size_t ivlen, const OSSL_PARAM params[]))
crypto/openssl/include/openssl/core_dispatch.h
388
const unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/core_dispatch.h
393
const unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/core_dispatch.h
436
OSSL_CORE_MAKE_FUNC(int, mac_init, (void *mctx, const unsigned char *key, size_t keylen, const OSSL_PARAM params[]))
crypto/openssl/include/openssl/core_dispatch.h
452
OSSL_CORE_MAKE_FUNC(int, mac_init_skey, (void *mctx, void *key, const OSSL_PARAM params[]))
crypto/openssl/include/openssl/core_dispatch.h
472
OSSL_CORE_MAKE_FUNC(int, kdf_derive, (void *kctx, unsigned char *key, size_t keylen, const OSSL_PARAM params[]))
crypto/openssl/include/openssl/crypto.h
561
int CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *));
crypto/openssl/include/openssl/crypto.h
562
void *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key);
crypto/openssl/include/openssl/crypto.h
563
int CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val);
crypto/openssl/include/openssl/crypto.h
564
int CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key);
crypto/openssl/include/openssl/des.h
176
OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key);
crypto/openssl/include/openssl/des.h
177
OSSL_DEPRECATEDIN_3_0 int DES_check_key_parity(const_DES_cblock *key);
crypto/openssl/include/openssl/des.h
178
OSSL_DEPRECATEDIN_3_0 int DES_is_weak_key(const_DES_cblock *key);
crypto/openssl/include/openssl/des.h
186
int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule);
crypto/openssl/include/openssl/des.h
188
int DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule);
crypto/openssl/include/openssl/des.h
190
int DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule);
crypto/openssl/include/openssl/des.h
192
void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);
crypto/openssl/include/openssl/des.h
193
OSSL_DEPRECATEDIN_3_0 void DES_string_to_key(const char *str, DES_cblock *key);
crypto/openssl/include/openssl/dh.h
235
OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key,
crypto/openssl/include/openssl/dh.h
237
OSSL_DEPRECATEDIN_3_0 int DH_compute_key_padded(unsigned char *key,
crypto/openssl/include/openssl/dh.h
294
OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_compute_key(const DH_METHOD *dhm))(unsigned char *key,
crypto/openssl/include/openssl/dh.h
298
int (*compute_key)(unsigned char *key,
crypto/openssl/include/openssl/ec.h
1014
OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1033
OSSL_DEPRECATEDIN_3_0 int EC_KEY_up_ref(EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1045
OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1053
OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
crypto/openssl/include/openssl/ec.h
1059
OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1067
OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);
crypto/openssl/include/openssl/ec.h
1073
OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1081
OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
crypto/openssl/include/openssl/ec.h
1083
OSSL_DEPRECATEDIN_3_0 unsigned EC_KEY_get_enc_flags(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1085
OSSL_DEPRECATEDIN_3_0 point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1094
OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg);
crypto/openssl/include/openssl/ec.h
1095
OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx);
crypto/openssl/include/openssl/ec.h
1106
OSSL_DEPRECATEDIN_3_0 int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);
crypto/openssl/include/openssl/ec.h
1112
OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1118
OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1133
OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key,
crypto/openssl/include/openssl/ec.h
1144
OSSL_DEPRECATEDIN_3_0 size_t EC_KEY_key2buf(const EC_KEY *key,
crypto/openssl/include/openssl/ec.h
1156
OSSL_DEPRECATEDIN_3_0 int EC_KEY_oct2key(EC_KEY *key, const unsigned char *buf,
crypto/openssl/include/openssl/ec.h
1166
OSSL_DEPRECATEDIN_3_0 int EC_KEY_oct2priv(EC_KEY *key, const unsigned char *buf,
crypto/openssl/include/openssl/ec.h
1177
OSSL_DEPRECATEDIN_3_0 size_t EC_KEY_priv2oct(const EC_KEY *key,
crypto/openssl/include/openssl/ec.h
1198
OSSL_DEPRECATEDIN_3_0 EC_KEY *d2i_ECPrivateKey(EC_KEY **key,
crypto/openssl/include/openssl/ec.h
1208
OSSL_DEPRECATEDIN_3_0 int i2d_ECPrivateKey(const EC_KEY *key,
crypto/openssl/include/openssl/ec.h
1222
OSSL_DEPRECATEDIN_3_0 EC_KEY *d2i_ECParameters(EC_KEY **key,
crypto/openssl/include/openssl/ec.h
1232
OSSL_DEPRECATEDIN_3_0 int i2d_ECParameters(const EC_KEY *key,
crypto/openssl/include/openssl/ec.h
1247
OSSL_DEPRECATEDIN_3_0 EC_KEY *o2i_ECPublicKey(EC_KEY **key,
crypto/openssl/include/openssl/ec.h
1256
OSSL_DEPRECATEDIN_3_0 int i2o_ECPublicKey(const EC_KEY *key, unsigned char **out);
crypto/openssl/include/openssl/ec.h
1263
OSSL_DEPRECATEDIN_3_0 int ECParameters_print(BIO *bp, const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1271
OSSL_DEPRECATEDIN_3_0 int EC_KEY_print(BIO *bp, const EC_KEY *key, int off);
crypto/openssl/include/openssl/ec.h
1279
OSSL_DEPRECATEDIN_3_0 int ECParameters_print_fp(FILE *fp, const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1287
OSSL_DEPRECATEDIN_3_0 int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);
crypto/openssl/include/openssl/ec.h
1293
OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
1294
OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);
crypto/openssl/include/openssl/ec.h
1475
int (*init)(EC_KEY *key),
crypto/openssl/include/openssl/ec.h
1476
void (*finish)(EC_KEY *key),
crypto/openssl/include/openssl/ec.h
1478
int (*set_group)(EC_KEY *key, const EC_GROUP *grp),
crypto/openssl/include/openssl/ec.h
1479
int (*set_private)(EC_KEY *key, const BIGNUM *priv_key),
crypto/openssl/include/openssl/ec.h
1480
int (*set_public)(EC_KEY *key, const EC_POINT *pub_key));
crypto/openssl/include/openssl/ec.h
1483
int (*keygen)(EC_KEY *key));
crypto/openssl/include/openssl/ec.h
1512
int (**pinit)(EC_KEY *key),
crypto/openssl/include/openssl/ec.h
1513
void (**pfinish)(EC_KEY *key),
crypto/openssl/include/openssl/ec.h
1515
int (**pset_group)(EC_KEY *key, const EC_GROUP *grp),
crypto/openssl/include/openssl/ec.h
1516
int (**pset_private)(EC_KEY *key, const BIGNUM *priv_key),
crypto/openssl/include/openssl/ec.h
1517
int (**pset_public)(EC_KEY *key, const EC_POINT *pub_key));
crypto/openssl/include/openssl/ec.h
1519
OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth, int (**pkeygen)(EC_KEY *key));
crypto/openssl/include/openssl/ec.h
981
OSSL_DEPRECATEDIN_3_0 int EC_KEY_get_flags(const EC_KEY *key);
crypto/openssl/include/openssl/ec.h
983
OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_flags(EC_KEY *key, int flags);
crypto/openssl/include/openssl/ec.h
985
OSSL_DEPRECATEDIN_3_0 void EC_KEY_clear_flags(EC_KEY *key, int flags);
crypto/openssl/include/openssl/ec.h
987
OSSL_DEPRECATEDIN_3_0 int EC_KEY_decoded_from_explicit_params(const EC_KEY *key);
crypto/openssl/include/openssl/evp.h
1265
const void *key, size_t keylen,
crypto/openssl/include/openssl/evp.h
1268
int EVP_MAC_init(EVP_MAC_CTX *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/evp.h
1348
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
1378
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
crypto/openssl/include/openssl/evp.h
1394
int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);
crypto/openssl/include/openssl/evp.h
1403
int EVP_PKEY_set1_DSA(EVP_PKEY *pkey, struct dsa_st *key);
crypto/openssl/include/openssl/evp.h
1412
OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);
crypto/openssl/include/openssl/evp.h
1420
int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);
crypto/openssl/include/openssl/evp.h
1433
const OSSL_PROVIDER *EVP_PKEY_get0_provider(const EVP_PKEY *key);
crypto/openssl/include/openssl/evp.h
1548
unsigned char *key, size_t keylen);
crypto/openssl/include/openssl/evp.h
1552
unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/evp.h
1729
const char *EVP_PKEY_get0_type_name(const EVP_PKEY *key);
crypto/openssl/include/openssl/evp.h
1774
int EVP_PKEY_CTX_set_mac_key(EVP_PKEY_CTX *ctx, const unsigned char *key,
crypto/openssl/include/openssl/evp.h
1891
const unsigned char *key, int keylen);
crypto/openssl/include/openssl/evp.h
2029
int EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen);
crypto/openssl/include/openssl/evp.h
2099
int EVP_PKEY_set_ex_data(EVP_PKEY *key, int idx, void *arg);
crypto/openssl/include/openssl/evp.h
2100
void *EVP_PKEY_get_ex_data(const EVP_PKEY *key, int idx);
crypto/openssl/include/openssl/evp.h
2138
int (*derive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen));
crypto/openssl/include/openssl/evp.h
2185
int (**pderive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen));
crypto/openssl/include/openssl/evp.h
2238
unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/evp.h
2240
int EVP_SKEY_get0_raw_key(const EVP_SKEY *skey, const unsigned char **key,
crypto/openssl/include/openssl/evp.h
265
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
290
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
764
unsigned char *key, unsigned char *iv);
crypto/openssl/include/openssl/evp.h
771
const unsigned char *key, const unsigned char *iv);
crypto/openssl/include/openssl/evp.h
774
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
777
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
788
const unsigned char *key, const unsigned char *iv);
crypto/openssl/include/openssl/evp.h
791
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
794
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
805
const unsigned char *key, const unsigned char *iv,
crypto/openssl/include/openssl/evp.h
809
const unsigned char *key,
crypto/openssl/include/openssl/evp.h
815
const unsigned char *key, const unsigned char *iv,
crypto/openssl/include/openssl/evp.h
823
const unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/evp.h
828
const unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/evp.h
919
int EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key);
crypto/openssl/include/openssl/hmac.h
39
const void *key, int len,
crypto/openssl/include/openssl/hmac.h
43
OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
crypto/openssl/include/openssl/hmac.h
54
unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
crypto/openssl/include/openssl/idea.h
45
OSSL_DEPRECATEDIN_3_0 void IDEA_set_encrypt_key(const unsigned char *key,
crypto/openssl/include/openssl/kdf.h
111
const unsigned char *key, int keylen);
crypto/openssl/include/openssl/kdf.h
44
int EVP_KDF_derive(EVP_KDF_CTX *ctx, unsigned char *key, size_t keylen,
crypto/openssl/include/openssl/modes.h
103
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
107
const void *key,
crypto/openssl/include/openssl/modes.h
111
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
116
GCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block);
crypto/openssl/include/openssl/modes.h
117
void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block);
crypto/openssl/include/openssl/modes.h
142
unsigned int M, unsigned int L, void *key,
crypto/openssl/include/openssl/modes.h
167
size_t CRYPTO_128_wrap(void *key, const unsigned char *iv,
crypto/openssl/include/openssl/modes.h
172
size_t CRYPTO_128_unwrap(void *key, const unsigned char *iv,
crypto/openssl/include/openssl/modes.h
176
size_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv,
crypto/openssl/include/openssl/modes.h
179
size_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv,
crypto/openssl/include/openssl/modes.h
187
size_t blocks, const void *key,
crypto/openssl/include/openssl/modes.h
26
unsigned char out[16], const void *key);
crypto/openssl/include/openssl/modes.h
29
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
33
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
37
size_t blocks, const void *key,
crypto/openssl/include/openssl/modes.h
41
size_t blocks, const void *key,
crypto/openssl/include/openssl/modes.h
46
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
49
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
53
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
59
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
65
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
70
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
74
size_t length, const void *key,
crypto/openssl/include/openssl/modes.h
78
size_t bits, const void *key,
crypto/openssl/include/openssl/modes.h
84
const void *key, unsigned char ivec[16],
crypto/openssl/include/openssl/modes.h
87
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
91
const void *key, unsigned char ivec[16],
crypto/openssl/include/openssl/modes.h
94
size_t len, const void *key,
crypto/openssl/include/openssl/modes.h
99
const void *key,
crypto/openssl/include/openssl/objects.h
127
static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
crypto/openssl/include/openssl/objects.h
129
return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \
crypto/openssl/include/openssl/objects.h
141
type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
crypto/openssl/include/openssl/objects.h
143
return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \
crypto/openssl/include/openssl/objects.h
148
#define OBJ_bsearch(type1, key, type2, base, num, cmp) \
crypto/openssl/include/openssl/objects.h
149
((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1, key), CHECKED_PTR_OF(type2, base), \
crypto/openssl/include/openssl/objects.h
155
#define OBJ_bsearch_ex(type1, key, type2, base, num, cmp, flags) \
crypto/openssl/include/openssl/objects.h
156
((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1, key), CHECKED_PTR_OF(type2, base), \
crypto/openssl/include/openssl/objects.h
76
const void *OBJ_bsearch_(const void *key, const void *base, int num, int size,
crypto/openssl/include/openssl/objects.h
78
const void *OBJ_bsearch_ex_(const void *key, const void *base, int num,
crypto/openssl/include/openssl/objects.h
86
scope type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
crypto/openssl/include/openssl/objects.h
91
type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
crypto/openssl/include/openssl/ocsp.h
321
EVP_PKEY *key,
crypto/openssl/include/openssl/ocsp.h
383
X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,
crypto/openssl/include/openssl/param_build.h
26
int OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD *bld, const char *key, int val);
crypto/openssl/include/openssl/param_build.h
27
int OSSL_PARAM_BLD_push_uint(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
29
int OSSL_PARAM_BLD_push_long(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
31
int OSSL_PARAM_BLD_push_ulong(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
33
int OSSL_PARAM_BLD_push_int32(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
35
int OSSL_PARAM_BLD_push_uint32(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
37
int OSSL_PARAM_BLD_push_int64(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
39
int OSSL_PARAM_BLD_push_uint64(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
41
int OSSL_PARAM_BLD_push_size_t(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
43
int OSSL_PARAM_BLD_push_time_t(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
45
int OSSL_PARAM_BLD_push_double(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
47
int OSSL_PARAM_BLD_push_BN(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
49
int OSSL_PARAM_BLD_push_BN_pad(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
51
int OSSL_PARAM_BLD_push_utf8_string(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
53
int OSSL_PARAM_BLD_push_utf8_ptr(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
55
int OSSL_PARAM_BLD_push_octet_string(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/param_build.h
57
int OSSL_PARAM_BLD_push_octet_ptr(OSSL_PARAM_BLD *bld, const char *key,
crypto/openssl/include/openssl/params.h
100
const char *key, const char *value,
crypto/openssl/include/openssl/params.h
27
#define OSSL_PARAM_DEFN(key, type, addr, sz) \
crypto/openssl/include/openssl/params.h
28
{ (key), (type), (addr), (sz), OSSL_PARAM_UNMODIFIED }
crypto/openssl/include/openssl/params.h
31
#define OSSL_PARAM_int(key, addr) \
crypto/openssl/include/openssl/params.h
32
OSSL_PARAM_DEFN((key), OSSL_PARAM_INTEGER, (addr), sizeof(int))
crypto/openssl/include/openssl/params.h
33
#define OSSL_PARAM_uint(key, addr) \
crypto/openssl/include/openssl/params.h
34
OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (addr), \
crypto/openssl/include/openssl/params.h
36
#define OSSL_PARAM_long(key, addr) \
crypto/openssl/include/openssl/params.h
37
OSSL_PARAM_DEFN((key), OSSL_PARAM_INTEGER, (addr), sizeof(long int))
crypto/openssl/include/openssl/params.h
38
#define OSSL_PARAM_ulong(key, addr) \
crypto/openssl/include/openssl/params.h
39
OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (addr), \
crypto/openssl/include/openssl/params.h
41
#define OSSL_PARAM_int32(key, addr) \
crypto/openssl/include/openssl/params.h
42
OSSL_PARAM_DEFN((key), OSSL_PARAM_INTEGER, (addr), sizeof(int32_t))
crypto/openssl/include/openssl/params.h
43
#define OSSL_PARAM_uint32(key, addr) \
crypto/openssl/include/openssl/params.h
44
OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (addr), \
crypto/openssl/include/openssl/params.h
46
#define OSSL_PARAM_int64(key, addr) \
crypto/openssl/include/openssl/params.h
47
OSSL_PARAM_DEFN((key), OSSL_PARAM_INTEGER, (addr), sizeof(int64_t))
crypto/openssl/include/openssl/params.h
48
#define OSSL_PARAM_uint64(key, addr) \
crypto/openssl/include/openssl/params.h
49
OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (addr), \
crypto/openssl/include/openssl/params.h
51
#define OSSL_PARAM_size_t(key, addr) \
crypto/openssl/include/openssl/params.h
52
OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (addr), sizeof(size_t))
crypto/openssl/include/openssl/params.h
53
#define OSSL_PARAM_time_t(key, addr) \
crypto/openssl/include/openssl/params.h
54
OSSL_PARAM_DEFN((key), OSSL_PARAM_INTEGER, (addr), sizeof(time_t))
crypto/openssl/include/openssl/params.h
55
#define OSSL_PARAM_double(key, addr) \
crypto/openssl/include/openssl/params.h
56
OSSL_PARAM_DEFN((key), OSSL_PARAM_REAL, (addr), sizeof(double))
crypto/openssl/include/openssl/params.h
58
#define OSSL_PARAM_BN(key, bn, sz) \
crypto/openssl/include/openssl/params.h
59
OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (bn), (sz))
crypto/openssl/include/openssl/params.h
60
#define OSSL_PARAM_utf8_string(key, addr, sz) \
crypto/openssl/include/openssl/params.h
61
OSSL_PARAM_DEFN((key), OSSL_PARAM_UTF8_STRING, (addr), sz)
crypto/openssl/include/openssl/params.h
62
#define OSSL_PARAM_octet_string(key, addr, sz) \
crypto/openssl/include/openssl/params.h
63
OSSL_PARAM_DEFN((key), OSSL_PARAM_OCTET_STRING, (addr), sz)
crypto/openssl/include/openssl/params.h
65
#define OSSL_PARAM_utf8_ptr(key, addr, sz) \
crypto/openssl/include/openssl/params.h
66
OSSL_PARAM_DEFN((key), OSSL_PARAM_UTF8_PTR, (addr), sz)
crypto/openssl/include/openssl/params.h
67
#define OSSL_PARAM_octet_ptr(key, addr, sz) \
crypto/openssl/include/openssl/params.h
68
OSSL_PARAM_DEFN((key), OSSL_PARAM_OCTET_PTR, (addr), sz)
crypto/openssl/include/openssl/params.h
71
OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *p, const char *key);
crypto/openssl/include/openssl/params.h
72
const OSSL_PARAM *OSSL_PARAM_locate_const(const OSSL_PARAM *p, const char *key);
crypto/openssl/include/openssl/params.h
75
OSSL_PARAM OSSL_PARAM_construct_int(const char *key, int *buf);
crypto/openssl/include/openssl/params.h
76
OSSL_PARAM OSSL_PARAM_construct_uint(const char *key, unsigned int *buf);
crypto/openssl/include/openssl/params.h
77
OSSL_PARAM OSSL_PARAM_construct_long(const char *key, long int *buf);
crypto/openssl/include/openssl/params.h
78
OSSL_PARAM OSSL_PARAM_construct_ulong(const char *key, unsigned long int *buf);
crypto/openssl/include/openssl/params.h
79
OSSL_PARAM OSSL_PARAM_construct_int32(const char *key, int32_t *buf);
crypto/openssl/include/openssl/params.h
80
OSSL_PARAM OSSL_PARAM_construct_uint32(const char *key, uint32_t *buf);
crypto/openssl/include/openssl/params.h
81
OSSL_PARAM OSSL_PARAM_construct_int64(const char *key, int64_t *buf);
crypto/openssl/include/openssl/params.h
82
OSSL_PARAM OSSL_PARAM_construct_uint64(const char *key, uint64_t *buf);
crypto/openssl/include/openssl/params.h
83
OSSL_PARAM OSSL_PARAM_construct_size_t(const char *key, size_t *buf);
crypto/openssl/include/openssl/params.h
84
OSSL_PARAM OSSL_PARAM_construct_time_t(const char *key, time_t *buf);
crypto/openssl/include/openssl/params.h
85
OSSL_PARAM OSSL_PARAM_construct_BN(const char *key, unsigned char *buf,
crypto/openssl/include/openssl/params.h
87
OSSL_PARAM OSSL_PARAM_construct_double(const char *key, double *buf);
crypto/openssl/include/openssl/params.h
88
OSSL_PARAM OSSL_PARAM_construct_utf8_string(const char *key, char *buf,
crypto/openssl/include/openssl/params.h
90
OSSL_PARAM OSSL_PARAM_construct_utf8_ptr(const char *key, char **buf,
crypto/openssl/include/openssl/params.h
92
OSSL_PARAM OSSL_PARAM_construct_octet_string(const char *key, void *buf,
crypto/openssl/include/openssl/params.h
94
OSSL_PARAM OSSL_PARAM_construct_octet_ptr(const char *key, void **buf,
crypto/openssl/include/openssl/pkcs12.h
338
EVP_PKEY *key, int key_usage, int iter,
crypto/openssl/include/openssl/pkcs12.h
341
EVP_PKEY *key, int key_usage, int iter,
crypto/openssl/include/openssl/rc2.h
40
OSSL_DEPRECATEDIN_3_0 void RC2_set_key(RC2_KEY *key, int len,
crypto/openssl/include/openssl/rc2.h
43
unsigned char *out, RC2_KEY *key,
crypto/openssl/include/openssl/rc2.h
45
OSSL_DEPRECATEDIN_3_0 void RC2_encrypt(unsigned long *data, RC2_KEY *key);
crypto/openssl/include/openssl/rc2.h
46
OSSL_DEPRECATEDIN_3_0 void RC2_decrypt(unsigned long *data, RC2_KEY *key);
crypto/openssl/include/openssl/rc4.h
35
OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len,
crypto/openssl/include/openssl/rc4.h
37
OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len,
crypto/openssl/include/openssl/rc5.h
50
OSSL_DEPRECATEDIN_3_0 int RC5_32_set_key(RC5_32_KEY *key, int len,
crypto/openssl/include/openssl/rc5.h
55
RC5_32_KEY *key,
crypto/openssl/include/openssl/rc5.h
57
OSSL_DEPRECATEDIN_3_0 void RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key);
crypto/openssl/include/openssl/rc5.h
58
OSSL_DEPRECATEDIN_3_0 void RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key);
crypto/openssl/include/openssl/ts.h
277
int TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key);
crypto/openssl/include/openssl/ts.h
499
const char *key, const char *pass,
crypto/openssl/include/openssl/x509.h
1198
int EVP_PKEY_get_attr_count(const EVP_PKEY *key);
crypto/openssl/include/openssl/x509.h
1199
int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos);
crypto/openssl/include/openssl/x509.h
1200
int EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, const ASN1_OBJECT *obj,
crypto/openssl/include/openssl/x509.h
1202
X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc);
crypto/openssl/include/openssl/x509.h
1203
X509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc);
crypto/openssl/include/openssl/x509.h
1204
int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr);
crypto/openssl/include/openssl/x509.h
1205
int EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key,
crypto/openssl/include/openssl/x509.h
1208
int EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key,
crypto/openssl/include/openssl/x509.h
1211
int EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key,
crypto/openssl/include/openssl/x509.h
613
int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, const EVP_PKEY *key);
crypto/openssl/include/openssl/x509.h
663
int i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, const EVP_PKEY *key);
crypto/openssl/include/openssl/x509.h
719
EVP_PKEY *X509_PUBKEY_get0(const X509_PUBKEY *key);
crypto/openssl/include/openssl/x509.h
720
EVP_PKEY *X509_PUBKEY_get(const X509_PUBKEY *key);
crypto/openssl/providers/common/der/der_ml_dsa_key.c
19
int ossl_DER_w_algorithmIdentifier_ML_DSA(WPACKET *pkt, int tag, ML_DSA_KEY *key)
crypto/openssl/providers/common/der/der_ml_dsa_key.c
23
const char *name = ossl_ml_dsa_key_get_name(key);
crypto/openssl/providers/common/der/der_slh_dsa_key.c
21
int ossl_DER_w_algorithmIdentifier_SLH_DSA(WPACKET *pkt, int tag, SLH_DSA_KEY *key)
crypto/openssl/providers/common/der/der_slh_dsa_key.c
25
int nid = ossl_slh_dsa_key_get_type(key);
crypto/openssl/providers/common/include/prov/der_ml_dsa.h
42
int ossl_DER_w_algorithmIdentifier_ML_DSA(WPACKET *pkt, int tag, ML_DSA_KEY *key);
crypto/openssl/providers/common/include/prov/der_slh_dsa.h
105
int ossl_DER_w_algorithmIdentifier_SLH_DSA(WPACKET *pkt, int tag, SLH_DSA_KEY *key);
crypto/openssl/providers/common/include/prov/provider_util.h
103
const unsigned char *key,
crypto/openssl/providers/common/include/prov/providercommon.h
28
return params == NULL || params->key == NULL;
crypto/openssl/providers/common/provider_ctx.c
89
param[0].key = (char *)name;
crypto/openssl/providers/common/provider_util.c
236
const unsigned char *key,
crypto/openssl/providers/common/provider_util.c
287
if (key != NULL)
crypto/openssl/providers/common/provider_util.c
289
(unsigned char *)key,
crypto/openssl/providers/fips/self_test_kats.c
508
paramskey = kat_params_to_ossl_params(libctx, t->key, NULL);
crypto/openssl/providers/fips/self_test_kats.c
615
EVP_PKEY *key = NULL;
crypto/openssl/providers/fips/self_test_kats.c
631
|| EVP_PKEY_generate(key_ctx, &key) != 1)
crypto/openssl/providers/fips/self_test_kats.c
636
|| !EVP_PKEY_get_octet_string_param(key, expected->name,
crypto/openssl/providers/fips/self_test_kats.c
647
EVP_PKEY_free(key);
crypto/openssl/providers/fips/self_test_kats.c
76
return EVP_CipherInit_ex(ctx, cipher, NULL, t->key, t->iv, enc)
crypto/openssl/providers/fips/self_test_kats.c
791
params = kat_params_to_ossl_params(libctx, t->key, NULL);
crypto/openssl/providers/fips/self_test_kats.c
826
EVP_PKEY *key = NULL;
crypto/openssl/providers/fips/self_test_kats.c
840
|| !add_params(keybld, t->key, bnctx))
crypto/openssl/providers/fips/self_test_kats.c
847
|| EVP_PKEY_fromdata(keyctx, &key, EVP_PKEY_KEYPAIR, keyparams) <= 0)
crypto/openssl/providers/fips/self_test_kats.c
851
encctx = EVP_PKEY_CTX_new_from_pkey(libctx, key, NULL);
crypto/openssl/providers/fips/self_test_kats.c
891
EVP_PKEY_free(key);
crypto/openssl/providers/fips/self_test_kats.c
90
&& EVP_CipherInit_ex(ctx, NULL, NULL, t->key, t->iv, enc)
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
100
return ossl_sm2_encrypt(psm2ctx->key, md, in, inlen, out, outlen);
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
119
return ossl_sm2_decrypt(psm2ctx->key, md, in, inlen, out, outlen);
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
126
EC_KEY_free(psm2ctx->key);
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
144
if (dstctx->key != NULL && !EC_KEY_up_ref(dstctx->key)) {
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
45
EC_KEY *key;
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
66
EC_KEY_free(psm2ctx->key);
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
67
psm2ctx->key = vkey;
crypto/openssl/providers/implementations/asymciphers/sm2_enc.c
93
if (!ossl_sm2_ciphertext_size(psm2ctx->key, md, inlen, outlen)) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c
49
static int aes_einit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c
53
if (!ossl_cipher_generic_einit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c
58
static int aes_dinit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c
62
if (!ossl_cipher_generic_dinit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
37
const AES_KEY *key, unsigned char iv[16],
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
46
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
53
ret = aesni_set_encrypt_key(key, keylen * 8, &ctx->ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c
55
ret = aesni_set_decrypt_key(key, keylen * 8, &ctx->ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
37
const AES_KEY *key, unsigned char iv[16],
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
47
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
55
ret = aesni_set_encrypt_key(key, ctx->base.keylen * 8, &ctx->ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
57
ret = aesni_set_decrypt_key(key, ctx->base.keylen * 8, &ctx->ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_ccm.c
54
dupctx->base.ccm_ctx.key = &dupctx->ccm.ks.ks;
crypto/openssl/providers/implementations/ciphers/cipher_aes_ccm_hw.c
21
fn_set_enc_key(key, keylen * 8, &actx->ccm.ks.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_ccm_hw.c
27
static int ccm_generic_aes_initkey(PROV_CCM_CTX *ctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm.c
49
if (dctx != NULL && dctx->base.gcm.key != NULL)
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm.c
50
dctx->base.gcm.key = &dctx->ks.ks;
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_hw.c
105
ctx->gcm.key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_hw.c
20
static int aes_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_hw.c
76
ctx->gcm.key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
102
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
107
memcpy(ctx->key_gen_key, key, ctx->key_len);
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
123
static int ossl_aes_gcm_siv_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
127
return ossl_aes_gcm_siv_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
130
static int ossl_aes_gcm_siv_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
134
return ossl_aes_gcm_siv_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c
91
static int ossl_aes_gcm_siv_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
101
ret = vpaes_set_encrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
109
ret = AES_set_encrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
20
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
32
ret = HWAES_set_decrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
47
ret = AES_set_decrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
54
ret = vpaes_set_decrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
62
ret = AES_set_decrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
71
ret = HWAES_set_encrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_hw.c
94
ret = AES_set_encrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
102
static int aes_ocb_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
128
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
133
if (!ctx->base.hw->init(&ctx->base, key, keylen))
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
139
static int aes_ocb_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
143
return aes_ocb_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
146
static int aes_ocb_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
150
return aes_ocb_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
108
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
119
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
156
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
167
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
22
fn_set_enc_key(key, keylen * 8, &ctx->ksenc.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
23
fn_set_dec_key(key, keylen * 8, &ctx->ksdec.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
31
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
63
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb_hw.c
86
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
103
return siv_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
106
static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
110
return siv_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
77
static int siv_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
88
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
93
if (!ctx->hw->initkey(ctx, key, ctx->keylen))
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
99
static int siv_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.h
15
int (*initkey)(void *ctx, const uint8_t *key, size_t keylen);
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv_hw.c
20
static int aes_siv_initkey(void *vctx, const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv_hw.c
55
return ossl_siv128_init(sctx, key, klen, ctx->cbc, ctx->ctr, libctx,
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
119
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
140
AES_set_encrypt_key(key, keylen * 8, &wctx->ks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
143
AES_set_decrypt_key(key, keylen * 8, &wctx->ks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
150
static int aes_wrap_einit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
154
return aes_wrap_init(ctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
157
static int aes_wrap_dinit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
161
return aes_wrap_init(ctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
28
typedef size_t (*aeswrap_fn)(void *key, const unsigned char *iv,
crypto/openssl/providers/implementations/ciphers/cipher_aes_wrp.c
99
static int aes_wrap_init(void *vctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
101
static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
106
if (s390x_aes_xts_einit(vctx, key, keylen, iv, ivlen, params) == 1)
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
109
return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
112
static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
117
if (s390x_aes_xts_dinit(vctx, key, keylen, iv, ivlen, params) == 1)
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
120
return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
54
static int aes_xts_check_keys_differ(const unsigned char *key, size_t bytes,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
58
&& CRYPTO_memcmp(key, key + bytes, bytes) == 0) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
72
static int aes_xts_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
88
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
93
if (!aes_xts_check_keys_differ(key, keylen / 2, enc))
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
95
if (!ctx->hw->init(ctx, key, keylen))
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.h
27
unsigned char key[64];
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
104
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
153
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
192
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
206
PROV_CIPHER_CTX *ctx, const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
228
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
26
fn_set_enc_key(key, bits, &xctx->ks1.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
277
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
289
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
29
fn_set_dec_key(key, bits, &xctx->ks1.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
32
fn_set_enc_key(key + bytes, bits, &xctx->ks2.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts_hw.c
40
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aria_ccm.c
40
if (dctx != NULL && dctx->base.ccm_ctx.key != NULL)
crypto/openssl/providers/implementations/ciphers/cipher_aria_ccm.c
41
dctx->base.ccm_ctx.key = &dctx->ks.ks;
crypto/openssl/providers/implementations/ciphers/cipher_aria_ccm_hw.c
17
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aria_ccm_hw.c
21
ossl_aria_set_encrypt_key(key, keylen * 8, &actx->ks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_aria_gcm.c
39
if (dctx != NULL && dctx->base.gcm.key != NULL)
crypto/openssl/providers/implementations/ciphers/cipher_aria_gcm.c
40
dctx->base.gcm.key = &dctx->ks.ks;
crypto/openssl/providers/implementations/ciphers/cipher_aria_gcm_hw.c
16
static int aria_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_aria_hw.c
14
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_aria_hw.c
21
ret = ossl_aria_set_encrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_aria_hw.c
23
ret = ossl_aria_set_decrypt_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_blowfish_hw.c
19
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_blowfish_hw.c
23
BF_set_key(&bctx->ks.ks, keylen, key);
crypto/openssl/providers/implementations/ciphers/cipher_camellia_hw.c
21
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_camellia_hw.c
28
ret = Camellia_set_key(key, keylen * 8, ks);
crypto/openssl/providers/implementations/ciphers/cipher_cast5_hw.c
19
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_cast5_hw.c
23
CAST_set_key(&(bctx->ks.ks), keylen, key);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20.c
168
int ossl_chacha20_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_chacha20.c
175
ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20.c
187
int ossl_chacha20_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_chacha20.c
194
ret = ossl_cipher_generic_dinit(vctx, key, keylen, iv, ivlen, NULL);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20.h
18
} key;
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_hw.c
105
ctx->key.d, ctx->counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_hw.c
14
static int chacha20_initkey(PROV_CIPHER_CTX *bctx, const uint8_t *key,
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_hw.c
20
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_hw.c
22
ctx->key.d[i / 4] = CHACHA_U8TOU32(key + i);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_hw.c
92
ChaCha20_ctr32(out, in, blocks, ctx->key.d, ctx->counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305.c
256
static int chacha20_poly1305_einit(void *vctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305.c
263
ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305.c
275
static int chacha20_poly1305_dinit(void *vctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305.c
282
ret = ossl_cipher_generic_dinit(vctx, key, keylen, iv, ivlen, NULL);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
136
ChaCha20_ctr32(buf, zero, buf_len, ctx->chacha.key.d, ctx->chacha.counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
161
ctx->chacha.key.d, ctx->chacha.counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
193
ctx->chacha.key.d, ctx->chacha.counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
204
ChaCha20_ctr32(out, in, plen, ctx->chacha.key.d, ctx->chacha.counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
208
ChaCha20_ctr32(out, in, plen, ctx->chacha.key.d, ctx->chacha.counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
289
ctx->chacha.key.d, ctx->chacha.counter);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
59
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
70
return ossl_chacha20_einit(&ctx->chacha, key, keylen, NULL, 0, NULL);
crypto/openssl/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
72
return ossl_chacha20_dinit(&ctx->chacha, key, keylen, NULL, 0, NULL);
crypto/openssl/providers/implementations/ciphers/cipher_des.c
104
static int des_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_des.c
108
return des_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_des.c
111
static int des_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_des.c
115
return des_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_des.c
71
static int des_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_des.c
92
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_des.c
97
if (!ctx->hw->init(ctx, key, keylen))
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
101
DES_ofb64_encrypt(in, out, (long)len, key, (DES_cblock *)ctx->iv, &num);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
111
DES_key_schedule *key = &(((PROV_DES_CTX *)ctx)->dks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
117
DES_cfb64_encrypt(in, out, (long)chunk, key, (DES_cblock *)ctx->iv,
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
137
DES_key_schedule *key = &(((PROV_DES_CTX *)ctx)->dks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
147
DES_cfb_encrypt(c, d, 1, 1, key, (DES_cblock *)ctx->iv, ctx->enc);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
163
DES_key_schedule *key = &(((PROV_DES_CTX *)ctx)->dks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
166
DES_cfb_encrypt(in, out, 8, (long)MAXCHUNK, key,
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
173
DES_cfb_encrypt(in, out, 8, (long)inl, key,
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
20
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
23
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
54
DES_key_schedule *key = &(((PROV_DES_CTX *)ctx)->dks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
60
(const_DES_cblock *)(out + i), key, ctx->enc);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
68
DES_key_schedule *key = &(dctx->dks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
71
(*dctx->dstream.cbc)(in, out, len, key, ctx->iv);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
76
DES_ncbc_encrypt(in, out, MAXCHUNK, key, (DES_cblock *)ctx->iv,
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
83
DES_ncbc_encrypt(in, out, (long)len, key, (DES_cblock *)ctx->iv,
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
92
DES_key_schedule *key = &(((PROV_DES_CTX *)ctx)->dks.ks);
crypto/openssl/providers/implementations/ciphers/cipher_des_hw.c
95
DES_ofb64_encrypt(in, out, MAXCHUNK, key, (DES_cblock *)ctx->iv, &num);
crypto/openssl/providers/implementations/ciphers/cipher_desx_hw.c
28
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_desx_hw.c
31
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/providers/implementations/ciphers/cipher_desx_hw.c
34
memcpy(&tctx->ks2, &key[8], 8);
crypto/openssl/providers/implementations/ciphers/cipher_desx_hw.c
35
memcpy(&tctx->ks3, &key[16], 8);
crypto/openssl/providers/implementations/ciphers/cipher_idea_hw.c
20
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_idea_hw.c
28
IDEA_set_encrypt_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_idea_hw.c
32
IDEA_set_encrypt_key(key, &tmp);
crypto/openssl/providers/implementations/ciphers/cipher_null.c
40
static int null_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_null.c
54
static int null_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_rc2.c
101
if (!ossl_cipher_generic_dinit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc2.c
88
static int rc2_einit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_rc2.c
92
if (!ossl_cipher_generic_einit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc2.c
97
static int rc2_dinit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_rc2_hw.c
19
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_rc2_hw.c
24
RC2_set_key(ks, (int)ctx->keylen, key, (int)rctx->key_bits);
crypto/openssl/providers/implementations/ciphers/cipher_rc4.c
53
static int rc4_einit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_rc4.c
57
if (!ossl_cipher_generic_einit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc4.c
62
static int rc4_dinit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_rc4.c
66
if (!ossl_cipher_generic_dinit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5.c
84
static int rc4_hmac_md5_einit(void *ctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5.c
88
if (!ossl_cipher_generic_einit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5.c
93
static int rc4_hmac_md5_dinit(void *ctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5.c
97
if (!ossl_cipher_generic_dinit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5.h
28
void (*init_mackey)(PROV_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5.h
35
void rc4_md5_enc(RC4_KEY *key, const void *in0, void *out,
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c
191
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c
202
MD5_Update(&ctx->head, key, len);
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c
205
memcpy(hmac_key, key, len);
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c
36
const uint8_t *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c
40
RC4_set_key(&ctx->ks.ks, keylen, key);
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hw.c
19
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_rc4_hw.c
23
RC4_set_key(&rctx->ks.ks, keylen, key);
crypto/openssl/providers/implementations/ciphers/cipher_rc5.c
57
static int rc5_einit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_rc5.c
61
if (!ossl_cipher_generic_einit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc5.c
66
static int rc5_dinit(void *ctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_rc5.c
70
if (!ossl_cipher_generic_dinit(ctx, key, keylen, iv, ivlen, NULL))
crypto/openssl/providers/implementations/ciphers/cipher_rc5_hw.c
19
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_rc5_hw.c
23
return RC5_32_set_key(&rctx->ks.ks, keylen, key, rctx->rounds);
crypto/openssl/providers/implementations/ciphers/cipher_seed_hw.c
19
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_seed_hw.c
23
SEED_set_key(key, &(sctx->ks.ks));
crypto/openssl/providers/implementations/ciphers/cipher_sm4_ccm.c
40
if (dctx != NULL && dctx->base.ccm_ctx.key != NULL)
crypto/openssl/providers/implementations/ciphers/cipher_sm4_ccm.c
41
dctx->base.ccm_ctx.key = &dctx->ks.ks;
crypto/openssl/providers/implementations/ciphers/cipher_sm4_ccm_hw.c
18
fn_set_enc_key(key, &actx->ks.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_sm4_ccm_hw.c
25
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_sm4_gcm.c
41
if (dctx != NULL && dctx->base.gcm.key != NULL)
crypto/openssl/providers/implementations/ciphers/cipher_sm4_gcm.c
42
dctx->base.gcm.key = &dctx->ks.ks;
crypto/openssl/providers/implementations/ciphers/cipher_sm4_gcm_hw.c
18
fn_set_enc_key(key, ks); \
crypto/openssl/providers/implementations/ciphers/cipher_sm4_gcm_hw.c
23
static int sm4_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
104
vpsm4_set_decrypt_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
114
ossl_sm4_set_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
13
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
24
HWSM4_set_encrypt_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
47
vpsm4_ex_set_encrypt_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
60
vpsm4_set_encrypt_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
72
ossl_sm4_set_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
78
HWSM4_set_decrypt_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_hw.c
93
vpsm4_ex_set_decrypt_key(key, ks);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
36
static int sm4_xts_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
52
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
57
if (!ctx->hw->init(ctx, key, keylen))
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
63
static int sm4_xts_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
67
return sm4_xts_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
70
static int sm4_xts_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
74
return sm4_xts_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts_hw.c
19
fn_set_enc_key(key, &xctx->ks1.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts_hw.c
22
fn_set_dec_key(key, &xctx->ks1.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts_hw.c
25
fn_set_enc_key(key + bytes, &xctx->ks2.ks); \
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts_hw.c
34
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_tdes.h
101
const unsigned char *key, size_t keylen);
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
104
if (!ctx->hw->init(ctx, key, ctx->keylen))
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
117
int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
121
return tdes_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
124
int ossl_tdes_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
128
return tdes_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
75
static int tdes_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
99
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/cipher_tdes_default_hw.c
23
const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/cipher_tdes_default_hw.c
27
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/providers/implementations/ciphers/cipher_tdes_hw.c
24
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/ciphers/cipher_tdes_hw.c
27
DES_cblock *deskey = (DES_cblock *)key;
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
190
const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
213
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
222
if (!ctx->hw->init(ctx, key, ctx->keylen))
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
229
int ossl_cipher_generic_einit(void *vctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
233
return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
237
int ossl_cipher_generic_dinit(void *vctx, const unsigned char *key,
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
241
return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
249
PROV_SKEY *key = skeydata;
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
252
key->data, key->length,
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
260
PROV_SKEY *key = skeydata;
crypto/openssl/providers/implementations/ciphers/ciphercommon.c
263
key->data, key->length,
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c
225
static int ccm_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c
244
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c
249
if (!ctx->hw->setkey(ctx, key, keylen))
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c
255
int ossl_ccm_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c
259
return ccm_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c
262
int ossl_ccm_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c
266
return ccm_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
151
for (p = params; p->key != NULL; p++) {
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
152
type = ossl_param_find_pidx(p->key);
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
255
for (p = params; p->key != NULL; p++) {
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
256
type = ossl_param_find_pidx(p->key);
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
49
static int gcm_init(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
70
if (key != NULL) {
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
75
if (!ctx->hw->setkey(ctx, key, ctx->keylen))
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
82
int ossl_gcm_einit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
86
return gcm_init(vctx, key, keylen, iv, ivlen, params, 1);
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
89
int ossl_gcm_dinit(void *vctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c
93
return gcm_init(vctx, key, keylen, iv, ivlen, params, 0);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
136
const void *key)
crypto/openssl/providers/implementations/digests/blake2b_prov.c
144
memcpy(block, key, P->key_length);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
129
const void *key)
crypto/openssl/providers/implementations/digests/blake2s_prov.c
137
memcpy(block, key, P->key_length);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
138
void *key = NULL;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
146
key = key_from_pkcs8(p8inf, PROV_LIBCTX_OF(ctx->provctx), ctx->propq);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
149
return key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
243
void *key = NULL;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
272
key = ctx->desc->d2i_PKCS8(&derp, der_len, ctx);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
278
key = ctx->desc->d2i_private_key(NULL, &derp, der_len);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
280
if (key == NULL && ctx->selection != 0) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
285
if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
288
key = ctx->desc->d2i_PUBKEY(&derp, der_len, ctx);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
290
key = ctx->desc->d2i_public_key(NULL, &derp, der_len);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
291
if (key == NULL && ctx->selection != 0) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
296
if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_ALL_PARAMETERS) != 0) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
299
key = ctx->desc->d2i_key_params(NULL, &derp, der_len);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
300
if (key == NULL && ctx->selection != 0) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
305
if (key == NULL)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
317
if (key != NULL
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
319
&& !ctx->desc->check_key(key, ctx)) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
320
ctx->desc->free_key(key);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
321
key = NULL;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
324
if (key != NULL && ctx->desc->adjust_key != NULL)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
325
ctx->desc->adjust_key(key, ctx);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
342
if (key != NULL) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
350
&& (EC_KEY_get_flags(key) & EC_FLAG_SM2_RANGE) != 0)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
360
&key, sizeof(key));
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
367
ctx->desc->free_key(key);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
422
static void dh_adjust(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
424
ossl_dh_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
456
static void dsa_adjust(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
458
ossl_dsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
480
static int ec_check(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
484
int sm2 = (EC_KEY_get_flags(key) & EC_FLAG_SM2_RANGE) != 0;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
495
static void ec_adjust(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
497
ossl_ec_key_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
518
static void ecx_key_adjust(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
520
ossl_ecx_key_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
586
ML_KEM_KEY *key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
588
key = ossl_ml_kem_d2i_PKCS8(*der, der_len, ctx->desc->evp_type,
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
590
if (key != NULL)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
592
return key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
599
ML_KEM_KEY *key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
601
key = ossl_ml_kem_d2i_PUBKEY(*der, der_len, ctx->desc->evp_type,
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
603
if (key != NULL)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
605
return key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
644
SLH_DSA_KEY *key = NULL, *ret = NULL;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
664
if ((key = ossl_slh_dsa_key_new(libctx, ctx->propq,
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
669
if (!ossl_slh_dsa_set_priv(key, p, plen))
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
671
ret = key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
675
ossl_slh_dsa_key_free(key);
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
906
static int rsa_check(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
910
switch (RSA_test_flags(key, RSA_FLAG_TYPE_MASK)) {
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
922
valid = (valid && ossl_rsa_check_factors(key));
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
927
static void rsa_adjust(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
929
ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
948
ML_DSA_KEY *key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
950
key = ossl_ml_dsa_d2i_PKCS8(*der, der_len, ctx->desc->evp_type,
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
952
if (key != NULL)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
954
return key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
960
ML_DSA_KEY *key;
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
962
key = ossl_ml_dsa_d2i_PUBKEY(*der, der_len, ctx->desc->evp_type,
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
964
if (key != NULL)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
966
return key;
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
104
void *key = NULL;
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
152
key = ctx->desc->read_private_key(&p, bitlen, ispub);
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
153
if (selection != 0 && key == NULL)
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
156
if (key == NULL && (selection == 0 || (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0)
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
160
key = ctx->desc->read_public_key(&p, bitlen, ispub);
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
161
if (selection != 0 && key == NULL)
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
165
if (key != NULL && ctx->desc->adjust_key != NULL)
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
166
ctx->desc->adjust_key(key, ctx);
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
185
if (key != NULL) {
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
194
&key, sizeof(key));
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
203
ctx->desc->free_key(key);
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
242
static void rsa_adjust(void *key, struct msblob2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
244
ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
125
void *key = NULL;
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
143
key = ctx->desc->read_private_key(in, ossl_pw_pvk_password, &pwdata,
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
163
if (selection != 0 && key == NULL)
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
167
if (key != NULL && ctx->desc->adjust_key != NULL)
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
168
ctx->desc->adjust_key(key, ctx);
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
185
if (key != NULL) {
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
194
&key, sizeof(key));
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
202
ctx->desc->free_key(key);
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
238
static void rsa_adjust(void *key, struct pvk2key_ctx_st *ctx)
crypto/openssl/providers/implementations/encode_decode/decode_pvk2key.c
240
ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1023
const SLH_DSA_KEY *key = vkey;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1027
if (key == NULL) {
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1031
key_len = ossl_slh_dsa_key_get_pub_len(key);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1032
key_blob = OPENSSL_memdup(ossl_slh_dsa_key_get_pub(key), key_len);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1043
const SLH_DSA_KEY *key = vkey;
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1046
if (ossl_slh_dsa_key_get_priv(key) == NULL) {
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1050
len = ossl_slh_dsa_key_get_priv_len(key);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1053
&& ((*pder = OPENSSL_memdup(ossl_slh_dsa_key_get_priv(key), len)) == NULL))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1204
const void *key, int type, const char *pemname,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1213
if (key == NULL) {
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1216
&& (checker == NULL || checker(key, type))) {
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1222
ret = writer(out, key, type, pemname, key2paramstring, key2der, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1234
return key2any_encode(ctx, cout, key, impl##_evp_type, \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1244
return key2any_encode(ctx, cout, key, impl##_evp_type, \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1254
return key2any_encode(ctx, cout, key, impl##_evp_type, \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
131
static X509_SIG *key_to_encp8(const void *key, int key_nid,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
136
PKCS8_PRIV_KEY_INFO *p8info = key_to_p8info(key, key_nid, params, params_type, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1415
static void impl##_to_##kind##_##output##_free_object(void *key) \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1417
ossl_prov_free_key(ossl_##impl##_keymgmt_functions, key); \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1427
const void *key, \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
148
static X509_PUBKEY *key_to_pubkey(const void *key, int key_nid,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
160
|| (derlen = k2d(key, &der, (void *)ctx)) <= 0
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
191
static int key_to_epki_der_priv_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
206
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
209
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
218
static int key_to_epki_pem_priv_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
233
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
236
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
245
static int key_to_pki_der_priv_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
258
return key_to_epki_der_priv_bio(out, key, key_nid, pemname,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
261
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
264
p8info = key_to_p8info(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
276
static int key_to_pki_pem_priv_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
289
return key_to_epki_pem_priv_bio(out, key, key_nid, pemname,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
292
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
295
p8info = key_to_p8info(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
307
static int key_to_spki_der_pub_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
319
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
322
xpk = key_to_pubkey(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
332
static int key_to_spki_pem_pub_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
344
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
347
xpk = key_to_pubkey(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
371
static int key_to_type_specific_der_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
382
if ((derlen = k2d(key, &der, (void *)ctx)) <= 0) {
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
395
static int key_to_type_specific_pem_bio_cb(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
402
return PEM_ASN1_write_bio_ctx(k2d, (void *)ctx, pemname, out, key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
407
static int key_to_type_specific_pem_priv_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
413
return key_to_type_specific_pem_bio_cb(out, key, key_nid, pemname,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
418
static int key_to_type_specific_pem_pub_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
424
return key_to_type_specific_pem_bio_cb(out, key, key_nid, pemname,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
429
static int key_to_type_specific_pem_param_bio(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
435
return key_to_type_specific_pem_bio_cb(out, key, key_nid, pemname,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
444
n##_k2d(const void *key, unsigned char **pder, \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
447
return f(key, pder); \
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
63
typedef int check_key_type_fn(const void *key, int nid);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
64
typedef int key_to_paramstring_fn(const void *key, int nid, int save,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
66
typedef int key_to_der_fn(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
85
static PKCS8_PRIV_KEY_INFO *key_to_p8info(const void *key, int key_nid,
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
97
|| (derlen = k2d(key, &der, (void *)ctx)) <= 0
crypto/openssl/providers/implementations/encode_decode/encode_key2blob.c
135
static void impl##2blob_free_object(void *key) \
crypto/openssl/providers/implementations/encode_decode/encode_key2blob.c
137
ossl_prov_free_key(ossl_##impl##_keymgmt_functions, key); \
crypto/openssl/providers/implementations/encode_decode/encode_key2blob.c
145
const void *key, \
crypto/openssl/providers/implementations/encode_decode/encode_key2blob.c
156
return key2blob_encode(vctx, key, selection, cout); \
crypto/openssl/providers/implementations/encode_decode/encode_key2blob.c
88
static int key2blob_encode(void *vctx, const void *key, int selection,
crypto/openssl/providers/implementations/encode_decode/encode_key2blob.c
94
pubkey_len = i2o_ECPublicKey(key, &pubkey);
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
126
typedef int evp_pkey_set1_fn(EVP_PKEY *, const void *key);
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
128
static int key2msblob_encode(void *vctx, const void *key, int selection,
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
144
if ((pkey = EVP_PKEY_new()) != NULL && set1_key(pkey, key))
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
150
static int key2pvk_encode(void *vctx, const void *key, int selection,
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
161
if ((pkey = EVP_PKEY_new()) != NULL && set1_key(pkey, key)
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
192
static void impl##2##output##_free_object(void *key) \
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
194
ossl_prov_free_key(ossl_##impl##_keymgmt_functions, key); \
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
197
const void *key, \
crypto/openssl/providers/implementations/encode_decode/encode_key2ms.c
208
return key2##output##_encode(vctx, key, selection, cout, type##_set1, \
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
116
static int dsa_to_text(BIO *out, const void *key, int selection)
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
118
const DSA *dsa = key;
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
313
static int ec_to_text(BIO *out, const void *key, int selection)
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
315
const EC_KEY *ec = key;
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
387
static int ecx_to_text(BIO *out, const void *key, int selection)
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
389
const ECX_KEY *ecx = key;
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
42
static int dh_to_text(BIO *out, const void *key, int selection)
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
44
const DH *dh = key;
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
452
static int slh_dsa_to_text(BIO *out, const void *key, int selection)
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
454
return ossl_slh_dsa_key_to_text(out, (SLH_DSA_KEY *)key, selection);
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
458
static int rsa_to_text(BIO *out, const void *key, int selection)
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
460
const RSA *rsa = key;
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
618
static int ml_dsa_to_text(BIO *out, const void *key, int selection)
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
620
return ossl_ml_dsa_key_to_text(out, (ML_DSA_KEY *)key, selection);
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
634
static int key2text_encode(void *vctx, const void *key, int selection,
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
636
int (*key2text)(BIO *out, const void *key,
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
646
ret = key2text(out, key, selection);
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
665
static void impl##2text_free_object(void *key) \
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
667
ossl_prov_free_key(ossl_##impl##_keymgmt_functions, key); \
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
670
const void *key, \
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
681
return key2text_encode(vctx, key, selection, cout, \
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
66
void *key = NULL;
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
69
if ((key = kmgmt_new(provctx)) == NULL
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
70
|| !kmgmt_import(key, selection, params)) {
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
71
kmgmt_free(key);
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
72
key = NULL;
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
75
return key;
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
78
void ossl_prov_free_key(const OSSL_DISPATCH *fns, void *key)
crypto/openssl/providers/implementations/encode_decode/endecoder_common.c
83
kmgmt_free(key);
crypto/openssl/providers/implementations/encode_decode/endecoder_local.h
26
void ossl_prov_free_key(const OSSL_DISPATCH *fns, void *key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
408
ML_DSA_KEY *key = NULL, *ret = NULL;
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
508
if ((key = ossl_prov_ml_dsa_new(provctx, propq, evp_type)) == NULL)
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
516
if (ossl_ml_dsa_set_prekey(key, 0, 0,
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
518
ret = key;
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
524
ossl_ml_dsa_key_free(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
529
int ossl_ml_dsa_i2d_pubkey(const ML_DSA_KEY *key, unsigned char **out)
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
531
const ML_DSA_PARAMS *params = ossl_ml_dsa_key_params(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
532
const uint8_t *pk = ossl_ml_dsa_key_get_pub(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
546
int ossl_ml_dsa_i2d_prvkey(const ML_DSA_KEY *key, uint8_t **out,
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
549
const ML_DSA_PARAMS *params = ossl_ml_dsa_key_params(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
557
const uint8_t *seed = ossl_ml_dsa_key_get_seed(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
558
const uint8_t *sk = ossl_ml_dsa_key_get_priv(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
651
memcpy(pos, ossl_ml_dsa_key_get_pub(key), params->pk_len);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
667
int ossl_ml_dsa_key_to_text(BIO *out, const ML_DSA_KEY *key, int selection)
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
672
if (out == NULL || key == NULL) {
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
676
params = ossl_ml_dsa_key_params(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
677
pk = ossl_ml_dsa_key_get_pub(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
678
sk = ossl_ml_dsa_key_get_priv(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
679
seed = ossl_ml_dsa_key_get_seed(key);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.h
26
__owur int ossl_ml_dsa_key_to_text(BIO *out, const ML_DSA_KEY *key, int selection);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.h
29
ossl_ml_dsa_i2d_pubkey(const ML_DSA_KEY *key, unsigned char **out);
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.h
32
ossl_ml_dsa_i2d_prvkey(const ML_DSA_KEY *key, unsigned char **out,
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
277
ML_KEM_KEY *key = NULL, *ret = NULL;
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
375
if ((key = ossl_prov_ml_kem_new(provctx, propq, evp_type)) == NULL)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
380
ML_KEM_SEED_BYTES, key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
388
if ((key->encoded_dk = OPENSSL_malloc(p8fmt->priv_length)) == NULL) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
394
memcpy(key->encoded_dk, buf + p8fmt->priv_offset, p8fmt->priv_length);
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
397
ret = key;
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
403
ossl_ml_kem_key_free(key);
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
408
int ossl_ml_kem_i2d_pubkey(const ML_KEM_KEY *key, unsigned char **out)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
412
if (!ossl_ml_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
415
key->vinfo->algorithm_name);
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
418
publen = key->vinfo->pubkey_bytes;
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
423
if (!ossl_ml_kem_encode_public_key(*out, publen, key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
426
key->vinfo->algorithm_name);
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
435
int ossl_ml_kem_i2d_prvkey(const ML_KEM_KEY *key, uint8_t **out,
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
438
const ML_KEM_VINFO *v = key->vinfo;
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
451
if (!ossl_ml_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
454
key->vinfo->algorithm_name);
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
467
if (ossl_ml_kem_have_seed(key) || p8fmt->seed_length == 0)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
513
|| !ossl_ml_kem_encode_seed(pos, ML_KEM_SEED_BYTES, key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
525
|| !ossl_ml_kem_encode_private_key(pos, v->prvkey_bytes, key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
537
|| !ossl_ml_kem_encode_public_key(pos, v->pubkey_bytes, key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
558
int ossl_ml_kem_key_to_text(BIO *out, const ML_KEM_KEY *key, int selection)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
565
if (out == NULL || key == NULL) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
569
type_label = key->vinfo->algorithm_name;
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
570
publen = key->vinfo->pubkey_bytes;
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
571
prvlen = key->vinfo->prvkey_bytes;
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
574
&& (ossl_ml_kem_have_prvkey(key)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
575
|| ossl_ml_kem_have_seed(key))) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
579
if (ossl_ml_kem_have_seed(key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
580
if (!ossl_ml_kem_encode_seed(seed, sizeof(seed), key))
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
585
if (ossl_ml_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
588
if (!ossl_ml_kem_encode_private_key(prvenc, prvlen, key))
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
597
if (ossl_ml_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
602
if ((pubenc = OPENSSL_malloc(key->vinfo->pubkey_bytes)) == NULL
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
603
|| !ossl_ml_kem_encode_public_key(pubenc, publen, key)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.h
26
__owur int ossl_ml_kem_key_to_text(BIO *out, const ML_KEM_KEY *key, int selection);
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.h
29
ossl_ml_kem_i2d_pubkey(const ML_KEM_KEY *key, unsigned char **out);
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.h
32
ossl_ml_kem_i2d_prvkey(const ML_KEM_KEY *key, unsigned char **out,
crypto/openssl/providers/implementations/exchange/ecx_exch.c
112
ECX_KEY *key = vkey;
crypto/openssl/providers/implementations/exchange/ecx_exch.c
118
|| key == NULL
crypto/openssl/providers/implementations/exchange/ecx_exch.c
119
|| key->keylen != ecxctx->keylen
crypto/openssl/providers/implementations/exchange/ecx_exch.c
120
|| !ossl_ecx_key_up_ref(key)) {
crypto/openssl/providers/implementations/exchange/ecx_exch.c
125
ecxctx->peerkey = key;
crypto/openssl/providers/implementations/exchange/ecx_exch.c
137
return ossl_ecx_compute_key(ecxctx->peerkey, ecxctx->key, ecxctx->keylen,
crypto/openssl/providers/implementations/exchange/ecx_exch.c
145
ossl_ecx_key_free(ecxctx->key);
crypto/openssl/providers/implementations/exchange/ecx_exch.c
164
if (dstctx->key != NULL && !ossl_ecx_key_up_ref(dstctx->key)) {
crypto/openssl/providers/implementations/exchange/ecx_exch.c
172
ossl_ecx_key_free(dstctx->key);
crypto/openssl/providers/implementations/exchange/ecx_exch.c
41
ECX_KEY *key;
crypto/openssl/providers/implementations/exchange/ecx_exch.c
74
ECX_KEY *key = vkey;
crypto/openssl/providers/implementations/exchange/ecx_exch.c
80
|| key == NULL
crypto/openssl/providers/implementations/exchange/ecx_exch.c
81
|| key->keylen != ecxctx->keylen
crypto/openssl/providers/implementations/exchange/ecx_exch.c
82
|| !ossl_ecx_key_up_ref(key)) {
crypto/openssl/providers/implementations/exchange/ecx_exch.c
87
ossl_ecx_key_free(ecxctx->key);
crypto/openssl/providers/implementations/exchange/ecx_exch.c
88
ecxctx->key = key;
crypto/openssl/providers/implementations/exchange/ecx_exch.c
91
if (!ossl_FIPS_IND_callback(key->libctx, algname, "Init"))
crypto/openssl/providers/implementations/include/prov/blake2.h
121
const void *key);
crypto/openssl/providers/implementations/include/prov/blake2.h
98
const void *key);
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
103
int (*init)(PROV_CIPHER_CTX *dat, const uint8_t *key, size_t keylen);
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
251
KEY_NAME *key = &(((CTX_NAME *)ctx)->ks.ks); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
254
FUNC_PREFIX##_encrypt(in, out, MAXCHUNK, key, ctx->iv, &num); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
260
FUNC_PREFIX##_encrypt(in, out, (long)len, key, ctx->iv, &num); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
272
KEY_NAME *key = &(((CTX_NAME *)ctx)->ks.ks); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
277
FUNC_PREFIX##_encrypt(in + i, out + i, key, ctx->enc); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
286
KEY_NAME *key = &(((CTX_NAME *)ctx)->ks.ks); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
289
FUNC_PREFIX##_encrypt(in, out, MAXCHUNK, key, ctx->iv, ctx->enc); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
295
FUNC_PREFIX##_encrypt(in, out, (long)len, key, ctx->iv, ctx->enc); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
305
KEY_NAME *key = &(((CTX_NAME *)ctx)->ks.ks); \
crypto/openssl/providers/implementations/include/prov/ciphercommon.h
311
FUNC_PREFIX##_encrypt(in, out, (long)chunk, key, ctx->iv, &num, \
crypto/openssl/providers/implementations/include/prov/ciphercommon_ccm.h
52
PROV_CIPHER_FUNC(int, CCM_setkey, (PROV_CCM_CTX *ctx, const unsigned char *key, size_t keylen));
crypto/openssl/providers/implementations/include/prov/ciphercommon_gcm.h
120
fn_set_enc_key(key, keylen * 8, ks); \
crypto/openssl/providers/implementations/include/prov/ciphercommon_gcm.h
84
PROV_CIPHER_FUNC(int, GCM_setkey, (PROV_GCM_CTX *ctx, const unsigned char *key, size_t keylen));
crypto/openssl/providers/implementations/include/prov/mlx_kem.h
44
#define mlx_kem_have_pubkey(key) ((key)->state > 0)
crypto/openssl/providers/implementations/include/prov/mlx_kem.h
45
#define mlx_kem_have_prvkey(key) ((key)->state > 1)
crypto/openssl/providers/implementations/kdfs/argon2.c
262
const void *in, size_t inlen, const void *key,
crypto/openssl/providers/implementations/kdfs/argon2.c
784
size_t inlen, const void *key, size_t keylen)
crypto/openssl/providers/implementations/kdfs/argon2.c
795
(void *)key, keylen);
crypto/openssl/providers/implementations/kdfs/argon2.c
831
const void *in, size_t inlen, const void *key, size_t keylen)
crypto/openssl/providers/implementations/kdfs/argon2.c
836
if (key == NULL || keylen == 0)
crypto/openssl/providers/implementations/kdfs/argon2.c
839
return blake2b_mac(mac, out, outlen, in, inlen, key, keylen);
crypto/openssl/providers/implementations/kdfs/hkdf.c
139
OPENSSL_clear_free(ctx->key, ctx->key_len);
crypto/openssl/providers/implementations/kdfs/hkdf.c
154
|| !ossl_prov_memdup(src->key, src->key_len,
crypto/openssl/providers/implementations/kdfs/hkdf.c
155
&dest->key, &dest->key_len)
crypto/openssl/providers/implementations/kdfs/hkdf.c
213
static int kdf_hkdf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/hkdf.c
228
if (ctx->key == NULL) {
crypto/openssl/providers/implementations/kdfs/hkdf.c
241
ctx->key, ctx->key_len, ctx->info, ctx->info_len, key, keylen);
crypto/openssl/providers/implementations/kdfs/hkdf.c
245
ctx->key, ctx->key_len, key, keylen);
crypto/openssl/providers/implementations/kdfs/hkdf.c
248
return HKDF_Expand(md, ctx->key, ctx->key_len, ctx->info,
crypto/openssl/providers/implementations/kdfs/hkdf.c
249
ctx->info_len, key, keylen);
crypto/openssl/providers/implementations/kdfs/hkdf.c
302
OPENSSL_clear_free(ctx->key, ctx->key_len);
crypto/openssl/providers/implementations/kdfs/hkdf.c
303
ctx->key = NULL;
crypto/openssl/providers/implementations/kdfs/hkdf.c
304
if (!OSSL_PARAM_get_octet_string(p, (void **)&ctx->key, 0,
crypto/openssl/providers/implementations/kdfs/hkdf.c
56
const unsigned char *key, size_t key_len,
crypto/openssl/providers/implementations/kdfs/hkdf.c
642
const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/hkdf.c
671
return HKDF_Expand(md, key, keylen, hkdflabel, hkdflabellen,
crypto/openssl/providers/implementations/kdfs/hkdf.c
773
if (ctx->key != NULL)
crypto/openssl/providers/implementations/kdfs/hkdf.c
798
static int kdf_tls1_3_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/hkdf.c
821
ctx->key, ctx->key_len,
crypto/openssl/providers/implementations/kdfs/hkdf.c
824
key, keylen);
crypto/openssl/providers/implementations/kdfs/hkdf.c
827
return prov_tls13_hkdf_expand(md, ctx->key, ctx->key_len,
crypto/openssl/providers/implementations/kdfs/hkdf.c
831
key, keylen);
crypto/openssl/providers/implementations/kdfs/hkdf.c
88
unsigned char *key;
crypto/openssl/providers/implementations/kdfs/kbkdf.c
293
static int kbkdf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/kbkdf.c
326
ret = kmac_derive(ctx->ctx_init, key, keylen,
crypto/openssl/providers/implementations/kdfs/kbkdf.c
358
ctx->use_separator, key, keylen, ctx->r);
crypto/openssl/providers/implementations/kdfs/kbkdf.c
361
OPENSSL_cleanse(key, keylen);
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
111
if (!ossl_prov_memdup(src->key, src->key_len,
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
112
&dest->key, &dest->key_len)
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
125
static int krb5kdf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
140
if (ctx->key == NULL) {
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
149
return KRB5KDF(cipher, engine, ctx->key, ctx->key_len,
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
151
key, keylen);
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
167
if (!krb5kdf_set_membuf(&ctx->key, &ctx->key_len, p))
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
242
static int fixup_des3_key(unsigned char *key)
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
248
cblock = &key[i * 8];
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
249
memmove(cblock, &key[i * 7], 7);
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
257
if (CRYPTO_memcmp(&key[0], &key[8], 8) == 0 || CRYPTO_memcmp(&key[8], &key[16], 8) == 0) {
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
348
const unsigned char *key, size_t key_len)
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
364
ret = EVP_EncryptInit_ex(ctx, NULL, NULL, key, NULL);
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
379
const unsigned char *key, size_t key_len,
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
413
ret = cipher_init(ctx, cipher, engine, key, key_len);
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
463
ret = cipher_init(ctx, cipher, engine, key, key_len);
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
47
const unsigned char *key, size_t key_len,
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
54
unsigned char *key;
crypto/openssl/providers/implementations/kdfs/krb5kdf.c
89
OPENSSL_clear_free(ctx->key, ctx->key_len);
crypto/openssl/providers/implementations/kdfs/pbkdf1.c
177
static int kdf_pbkdf1_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/pbkdf1.c
198
ctx->iter, md, key, keylen);
crypto/openssl/providers/implementations/kdfs/pbkdf2.c
228
static int kdf_pbkdf2_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/pbkdf2.c
250
md, key, keylen, ctx->lower_bound_checks);
crypto/openssl/providers/implementations/kdfs/pbkdf2.c
379
const EVP_MD *digest, unsigned char *key,
crypto/openssl/providers/implementations/kdfs/pbkdf2.c
421
p = key;
crypto/openssl/providers/implementations/kdfs/pbkdf2.c
64
const EVP_MD *digest, unsigned char *key,
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
218
static int kdf_pkcs12_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
239
ctx->id, ctx->iter, md, key, keylen);
crypto/openssl/providers/implementations/kdfs/pvkkdf.c
133
static int kdf_pvk_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/pvkkdf.c
174
&& EVP_DigestFinal_ex(mctx, key, NULL);
crypto/openssl/providers/implementations/kdfs/scrypt.c
185
static int kdf_scrypt_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/scrypt.c
208
ctx->maxmem_bytes, key, keylen, ctx->sha256,
crypto/openssl/providers/implementations/kdfs/scrypt.c
40
unsigned char *key, size_t keylen, EVP_MD *sha256,
crypto/openssl/providers/implementations/kdfs/scrypt.c
447
unsigned char *key, size_t keylen, EVP_MD *sha256,
crypto/openssl/providers/implementations/kdfs/scrypt.c
521
if (key == NULL)
crypto/openssl/providers/implementations/kdfs/scrypt.c
539
keylen, key, libctx, propq)
crypto/openssl/providers/implementations/kdfs/sshkdf.c
100
if (!ossl_prov_memdup(src->key, src->key_len,
crypto/openssl/providers/implementations/kdfs/sshkdf.c
101
&dest->key, &dest->key_len)
crypto/openssl/providers/implementations/kdfs/sshkdf.c
172
static int kdf_sshkdf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/sshkdf.c
186
if (ctx->key == NULL) {
crypto/openssl/providers/implementations/kdfs/sshkdf.c
203
return SSHKDF(md, ctx->key, ctx->key_len,
crypto/openssl/providers/implementations/kdfs/sshkdf.c
206
ctx->type, key, keylen);
crypto/openssl/providers/implementations/kdfs/sshkdf.c
244
if (!sshkdf_set_membuf(&ctx->key, &ctx->key_len, p))
crypto/openssl/providers/implementations/kdfs/sshkdf.c
338
const unsigned char *key, size_t key_len,
crypto/openssl/providers/implementations/kdfs/sshkdf.c
356
if (!EVP_DigestUpdate(md, key, key_len))
crypto/openssl/providers/implementations/kdfs/sshkdf.c
38
const unsigned char *key, size_t key_len,
crypto/openssl/providers/implementations/kdfs/sshkdf.c
384
if (!EVP_DigestUpdate(md, key, key_len))
crypto/openssl/providers/implementations/kdfs/sshkdf.c
46
unsigned char *key; /* K */
crypto/openssl/providers/implementations/kdfs/sshkdf.c
86
OPENSSL_clear_free(ctx->key, ctx->key_len);
crypto/openssl/providers/implementations/kdfs/sskdf.c
413
static int sskdf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/sskdf.c
468
ctx->info, ctx->info_len, key, keylen);
crypto/openssl/providers/implementations/kdfs/sskdf.c
477
ctx->info, ctx->info_len, 0, key, keylen);
crypto/openssl/providers/implementations/kdfs/sskdf.c
522
static int x963kdf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/sskdf.c
549
ctx->info, ctx->info_len, 1, key, keylen);
crypto/openssl/providers/implementations/kdfs/tls1_prf.c
248
static int kdf_tls1_prf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/tls1_prf.c
281
key, keylen);
crypto/openssl/providers/implementations/kdfs/x942kdf.c
455
static int x942kdf_derive(void *vctx, unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/kdfs/x942kdf.c
522
der, der_len, ctr, key, keylen);
crypto/openssl/providers/implementations/kem/ec_kem.c
161
EC_KEY *key;
crypto/openssl/providers/implementations/kem/ec_kem.c
163
key = EC_KEY_new_ex(ossl_ec_key_get_libctx(in), ossl_ec_key_get0_propq(in));
crypto/openssl/providers/implementations/kem/ec_kem.c
164
if (key == NULL)
crypto/openssl/providers/implementations/kem/ec_kem.c
166
if (!EC_KEY_set_group(key, EC_KEY_get0_group(in)))
crypto/openssl/providers/implementations/kem/ec_kem.c
168
if (!EC_KEY_oct2key(key, pubbuf, pubbuflen, NULL))
crypto/openssl/providers/implementations/kem/ec_kem.c
170
return key;
crypto/openssl/providers/implementations/kem/ec_kem.c
172
EC_KEY_free(key);
crypto/openssl/providers/implementations/kem/ec_kem.c
461
EC_KEY *key;
crypto/openssl/providers/implementations/kem/ec_kem.c
466
key = EC_KEY_new_ex(ctx->libctx, ctx->propq);
crypto/openssl/providers/implementations/kem/ec_kem.c
467
if (key == NULL)
crypto/openssl/providers/implementations/kem/ec_kem.c
469
if (!EC_KEY_set_group(key, EC_KEY_get0_group(ctx->recipient_key)))
crypto/openssl/providers/implementations/kem/ec_kem.c
481
ret = ossl_ec_generate_key_dhkem(key, seed, seedlen);
crypto/openssl/providers/implementations/kem/ec_kem.c
486
EC_KEY_free(key);
crypto/openssl/providers/implementations/kem/ec_kem.c
487
key = NULL;
crypto/openssl/providers/implementations/kem/ec_kem.c
489
return key;
crypto/openssl/providers/implementations/kem/ecx_kem.c
391
ECX_KEY *key;
crypto/openssl/providers/implementations/kem/ecx_kem.c
398
key = ossl_ecx_key_new(ctx->libctx, ctx->recipient_key->type, 0, ctx->propq);
crypto/openssl/providers/implementations/kem/ecx_kem.c
399
if (key == NULL)
crypto/openssl/providers/implementations/kem/ecx_kem.c
401
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/providers/implementations/kem/ecx_kem.c
414
if (!ossl_ecx_dhkem_derive_private(key, privkey, seed, seedlen))
crypto/openssl/providers/implementations/kem/ecx_kem.c
416
if (!ossl_ecx_public_from_private(key))
crypto/openssl/providers/implementations/kem/ecx_kem.c
418
key->haspubkey = 1;
crypto/openssl/providers/implementations/kem/ecx_kem.c
422
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/kem/ecx_kem.c
423
key = NULL;
crypto/openssl/providers/implementations/kem/ecx_kem.c
427
return key;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
150
ML_KEM_KEY *key = ctx->key;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
156
if (!ossl_ml_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
160
v = ossl_ml_kem_key_vinfo(key);
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
205
ctx->entropy, ML_KEM_RANDOM_BYTES, key);
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
207
ret = ossl_ml_kem_encap_rand(ctext, encap_clen, shsec, encap_slen, key);
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
228
ML_KEM_KEY *key = ctx->key;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
231
if (!ossl_ml_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
255
return ossl_ml_kem_decap(shsec, decap_slen, ctext, clen, key);
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
34
ML_KEM_KEY *key;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
47
ctx->key = NULL;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
62
static int ml_kem_init(void *vctx, int op, void *key,
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
69
ctx->key = key;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
77
ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
79
if (!ossl_ml_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
83
return ml_kem_init(vctx, EVP_PKEY_OP_ENCAPSULATE, key, params);
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
89
ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
91
if (!ossl_ml_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
95
return ml_kem_init(vctx, EVP_PKEY_OP_DECAPSULATE, key, params);
crypto/openssl/providers/implementations/kem/mlx_kem.c
109
MLX_KEY *key = ((PROV_MLX_KEM_CTX *)vctx)->key;
crypto/openssl/providers/implementations/kem/mlx_kem.c
116
int ml_kem_slot = key->xinfo->ml_kem_slot;
crypto/openssl/providers/implementations/kem/mlx_kem.c
119
if (!mlx_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
123
encap_clen = key->minfo->ctext_bytes + key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
124
encap_slen = ML_KEM_SHARED_SECRET_BYTES + key->xinfo->shsec_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
166
encap_clen = key->minfo->ctext_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
168
cbuf = ctext + ml_kem_slot * key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
169
sbuf = shsec + ml_kem_slot * key->xinfo->shsec_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
170
ctx = EVP_PKEY_CTX_new_from_pkey(key->libctx, key->mkey, key->propq);
crypto/openssl/providers/implementations/kem/mlx_kem.c
175
if (encap_clen != key->minfo->ctext_bytes) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
178
key->minfo->algorithm_name, (unsigned long)encap_clen);
crypto/openssl/providers/implementations/kem/mlx_kem.c
184
key->minfo->algorithm_name, (unsigned long)encap_slen);
crypto/openssl/providers/implementations/kem/mlx_kem.c
203
cbuf = ctext + (1 - ml_kem_slot) * key->minfo->ctext_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
204
encap_clen = key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
205
ctx = EVP_PKEY_CTX_new_from_pkey(key->libctx, key->xkey, key->propq);
crypto/openssl/providers/implementations/kem/mlx_kem.c
213
if (encap_clen != key->xinfo->pubkey_bytes) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
216
key->xinfo->algorithm_name, (unsigned long)encap_clen);
crypto/openssl/providers/implementations/kem/mlx_kem.c
222
encap_slen = key->xinfo->shsec_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
224
ctx = EVP_PKEY_CTX_new_from_pkey(key->libctx, xkey, key->propq);
crypto/openssl/providers/implementations/kem/mlx_kem.c
227
|| EVP_PKEY_derive_set_peer(ctx, key->xkey) <= 0
crypto/openssl/providers/implementations/kem/mlx_kem.c
230
if (encap_slen != key->xinfo->shsec_bytes) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
233
key->xinfo->algorithm_name, (unsigned long)encap_slen);
crypto/openssl/providers/implementations/kem/mlx_kem.c
247
MLX_KEY *key = ((PROV_MLX_KEM_CTX *)vctx)->key;
crypto/openssl/providers/implementations/kem/mlx_kem.c
252
size_t decap_slen = ML_KEM_SHARED_SECRET_BYTES + key->xinfo->shsec_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
253
size_t decap_clen = key->minfo->ctext_bytes + key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
254
int ml_kem_slot = key->xinfo->ml_kem_slot;
crypto/openssl/providers/implementations/kem/mlx_kem.c
257
if (!mlx_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
287
decap_clen = key->minfo->ctext_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
289
cbuf = ctext + ml_kem_slot * key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
290
sbuf = shsec + ml_kem_slot * key->xinfo->shsec_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
291
ctx = EVP_PKEY_CTX_new_from_pkey(key->libctx, key->mkey, key->propq);
crypto/openssl/providers/implementations/kem/mlx_kem.c
299
key->minfo->algorithm_name, (unsigned long)decap_slen);
crypto/openssl/providers/implementations/kem/mlx_kem.c
305
decap_clen = key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
306
decap_slen = key->xinfo->shsec_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
307
cbuf = ctext + (1 - ml_kem_slot) * key->minfo->ctext_bytes;
crypto/openssl/providers/implementations/kem/mlx_kem.c
309
ctx = EVP_PKEY_CTX_new_from_pkey(key->libctx, key->xkey, key->propq);
crypto/openssl/providers/implementations/kem/mlx_kem.c
312
|| EVP_PKEY_copy_parameters(xkey, key->xkey) <= 0
crypto/openssl/providers/implementations/kem/mlx_kem.c
318
if (decap_slen != key->xinfo->shsec_bytes) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
321
key->xinfo->algorithm_name, (unsigned long)decap_slen);
crypto/openssl/providers/implementations/kem/mlx_kem.c
34
MLX_KEY *key;
crypto/openssl/providers/implementations/kem/mlx_kem.c
46
ctx->key = NULL;
crypto/openssl/providers/implementations/kem/mlx_kem.c
56
static int mlx_kem_init(void *vctx, int op, void *key,
crypto/openssl/providers/implementations/kem/mlx_kem.c
63
ctx->key = key;
crypto/openssl/providers/implementations/kem/mlx_kem.c
71
MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/kem/mlx_kem.c
73
if (!mlx_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
77
return mlx_kem_init(vctx, EVP_PKEY_OP_ENCAPSULATE, key, params);
crypto/openssl/providers/implementations/kem/mlx_kem.c
83
MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/kem/mlx_kem.c
85
if (!mlx_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/kem/mlx_kem.c
89
return mlx_kem_init(vctx, EVP_PKEY_OP_DECAPSULATE, key, params);
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
315
static ossl_inline int dh_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
317
DH *dh = key;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
368
static int dh_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
370
DH *dh = key;
crypto/openssl/providers/implementations/keymgmt/dsa_kmgmt.c
313
static ossl_inline int dsa_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/dsa_kmgmt.c
315
DSA *dsa = key;
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1038
#define COPY_INT_PARAM(params, key, val) \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1039
p = OSSL_PARAM_locate_const(params, key); \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1043
#define COPY_UTF8_PARAM(params, key, val) \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1044
p = OSSL_PARAM_locate_const(params, key); \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1054
#define COPY_OCTET_PARAM(params, key, val, len) \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1055
p = OSSL_PARAM_locate_const(params, key); \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1066
#define COPY_BN_PARAM(params, key, bn) \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
1067
p = OSSL_PARAM_locate_const(params, key); \
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
619
static int common_get_params(void *key, OSSL_PARAM params[], int sm2)
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
622
EC_KEY *eck = key;
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
723
const EC_POINT *ecp = EC_KEY_get0_public_key(key);
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
749
static int ec_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
751
return common_get_params(key, params, 0);
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
804
static int ec_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
806
EC_KEY *eck = key;
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
809
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
814
if (!ossl_ec_group_set_params((EC_GROUP *)EC_KEY_get0_group(key), params))
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
819
BN_CTX *ctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(key));
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
824
|| !EC_KEY_oct2key(key, p->data, p->data_size, ctx))
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
836
static int sm2_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c
838
return common_get_params(key, params, 1);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1051
ECX_KEY *key = ossl_ecx_key_new(gctx->libctx, ECX_KEY_TYPE_X25519, 1,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1055
if (key == NULL) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1062
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1064
pubkey = key->pubkey;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1066
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1076
if (!ossl_ecx_dhkem_derive_private(key, privkey,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1092
key->haspubkey = 1;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1093
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1095
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1108
ECX_KEY *key = ossl_ecx_key_new(gctx->libctx, ECX_KEY_TYPE_X448, 1,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1112
if (key == NULL) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1119
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1121
pubkey = key->pubkey;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1123
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1133
if (!ossl_ecx_dhkem_derive_private(key, privkey,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1148
key->haspubkey = 1;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1149
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1151
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1197
ECX_KEY *key = ossl_ecx_key_new(gctx->libctx, ECX_KEY_TYPE_ED25519, 1,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1204
if (key == NULL) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1211
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1213
pubkey = key->pubkey;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1215
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1242
key->haspubkey = 1;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1243
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1245
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1266
ECX_KEY *key = ossl_ecx_key_new(gctx->libctx, ECX_KEY_TYPE_ED448, 1,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1272
if (key == NULL) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1279
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1281
pubkey = key->pubkey;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1283
privkey = ossl_ecx_key_allocate_privkey(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1317
key->haspubkey = 1;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1318
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
1320
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
139
const ECX_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
142
if (ossl_prov_is_running() && key != NULL) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
150
ok = ok && key->haspubkey;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
153
ok = ok && key->privkey != NULL;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
208
ECX_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
212
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
219
ok = ok && ossl_ecx_key_fromdata(key, params, include_private);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
224
static int key_to_params(ECX_KEY *key, OSSL_PARAM_BLD *tmpl,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
227
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
232
key->pubkey, key->keylen))
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
236
&& key->privkey != NULL
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
239
key->privkey, key->keylen))
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
248
ECX_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
253
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
266
if (!key_to_params(key, tmpl, NULL, include_private))
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
296
static int ecx_get_params(void *key, OSSL_PARAM params[], int bits, int secbits,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
299
ECX_KEY *ecx = key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
331
static int ed_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
343
static int x25519_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
345
return ecx_get_params(key, params, X25519_BITS, X25519_SECURITY_BITS,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
349
static int x448_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
351
return ecx_get_params(key, params, X448_BITS, X448_SECURITY_BITS,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
355
static int ed25519_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
357
return ecx_get_params(key, params, ED25519_BITS, ED25519_SECURITY_BITS,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
359
&& ed_get_params(key, params);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
362
static int ed448_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
364
return ecx_get_params(key, params, ED448_BITS, ED448_SECURITY_BITS,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
366
&& ed_get_params(key, params);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
420
static int ecx_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
422
ECX_KEY *ecxkey = key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
450
static int x25519_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
452
return ecx_set_params(key, params);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
455
static int x448_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
457
return ecx_set_params(key, params);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
460
static int ed25519_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
465
static int ed448_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
696
ECX_KEY *key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
701
if ((key = ossl_ecx_key_new(gctx->libctx, gctx->type, 0,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
710
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
712
if ((privkey = ossl_ecx_key_allocate_privkey(key)) == NULL) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
720
if (!ossl_ecx_dhkem_derive_private(key, privkey,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
726
if (RAND_priv_bytes_ex(gctx->libctx, privkey, key->keylen, 0) <= 0)
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
735
ossl_x25519_public_from_private(key->pubkey, privkey);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
740
ossl_x448_public_from_private(key->pubkey, privkey);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
743
if (!ossl_ed25519_public_from_private(gctx->libctx, key->pubkey, privkey,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
748
if (!ossl_ed448_public_from_private(gctx->libctx, key->pubkey, privkey,
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
753
key->haspubkey = 1;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
754
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
756
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
790
ECX_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
801
key = s390x_ecd_keygen25519(gctx);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
805
key = ecx_gen(gctx);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
810
if (!key || ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0))
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
811
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
812
if (ecd_fips140_pairwise_test(key, ECX_KEY_TYPE_ED25519, 1) != 1) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
814
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
819
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
824
ECX_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
834
key = s390x_ecd_keygen448(gctx);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
838
key = ecx_gen(gctx);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
843
if (!key || ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0))
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
844
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
845
if (ecd_fips140_pairwise_test(key, ECX_KEY_TYPE_ED448, 1) != 1) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
847
ossl_ecx_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
852
return key;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
869
ECX_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
871
if (ossl_prov_is_running() && reference_sz == sizeof(key)) {
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
873
key = *(ECX_KEY **)reference;
crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c
876
return key;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
138
const MAC_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
141
if (ossl_prov_is_running() && key != NULL) {
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
150
ok = key->priv_key != NULL;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
180
static int mac_key_fromdata(MAC_KEY *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
190
OPENSSL_secure_clear_free(key->priv_key, key->priv_key_len);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
192
key->priv_key = OPENSSL_secure_malloc(p->data_size > 0 ? p->data_size : 1);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
193
if (key->priv_key == NULL)
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
195
memcpy(key->priv_key, p->data, p->data_size);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
196
key->priv_key_len = p->data_size;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
205
OPENSSL_free(key->properties);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
206
key->properties = OPENSSL_strdup(p->data);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
207
if (key->properties == NULL)
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
211
if (key->cmac && !ossl_prov_cipher_load_from_params(&key->cipher, params, key->libctx)) {
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
216
if (key->priv_key != NULL)
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
224
MAC_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
226
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
232
return mac_key_fromdata(key, params);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
235
static int key_to_params(MAC_KEY *key, OSSL_PARAM_BLD *tmpl,
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
238
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
241
if (key->priv_key != NULL
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
244
key->priv_key, key->priv_key_len))
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
247
if (key->cipher.cipher != NULL
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
250
EVP_CIPHER_get0_name(key->cipher.cipher)))
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
254
if (key->cipher.engine != NULL
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
257
ENGINE_get_id(key->cipher.engine)))
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
267
MAC_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
272
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
283
&& !key_to_params(key, tmpl, NULL))
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
323
static int mac_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
325
return key_to_params(key, NULL, params);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
350
MAC_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
353
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
358
return mac_key_fromdata(key, params);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
475
MAC_KEY *key;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
480
if ((key = ossl_mac_key_new(gctx->libctx, 0)) == NULL) {
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
487
return key;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
491
ossl_mac_key_free(key);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
501
if (!ossl_prov_cipher_copy(&key->cipher, &gctx->cipher)) {
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
502
ossl_mac_key_free(key);
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
507
key->priv_key = gctx->priv_key;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
508
key->priv_key_len = gctx->priv_key_len;
crypto/openssl/providers/implementations/keymgmt/mac_legacy_kmgmt.c
512
return key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
105
ML_DSA_KEY *key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
110
key = ossl_ml_dsa_key_new(PROV_LIBCTX_OF(ctx), propq, evp_type);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
117
if (key != NULL) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
132
ossl_ml_dsa_set_prekey(key, flags_set, flags_clr, NULL, 0, NULL, 0);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
134
return key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
151
const ML_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
153
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
158
return ossl_ml_dsa_key_has(key, selection);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
175
const ML_DSA_KEY *key = key_data;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
177
if (!ml_dsa_has(key, selection))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
181
return ossl_ml_dsa_key_pairwise_check(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
194
static int ml_dsa_key_fromdata(ML_DSA_KEY *key, const OSSL_PARAM params[],
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
198
const ML_DSA_PARAMS *key_params = ossl_ml_dsa_key_params(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
242
|| (ossl_ml_dsa_key_get_prov_flags(key) & ML_DSA_KEY_PREFER_SEED))) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
243
if (!ossl_ml_dsa_set_prekey(key, 0, 0, seed, seed_len, sk, sk_len))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
245
if (!ossl_ml_dsa_generate_key(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
250
if (!ossl_ml_dsa_sk_decode(key, sk, sk_len))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
253
if (!ossl_ml_dsa_pk_decode(key, pk, pk_len))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
260
|| memcmp(ossl_ml_dsa_key_get_pub(key), pk, pk_len) == 0)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
265
ossl_ml_dsa_key_reset(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
271
ML_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
275
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
282
res = ml_dsa_key_fromdata(key, params, include_priv);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
285
res = ml_dsa_pairwise_test(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
287
ossl_ml_dsa_key_reset(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
326
ML_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
331
&& !OSSL_PARAM_set_int(p, 8 * ossl_ml_dsa_key_get_pub_len(key)))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
334
&& !OSSL_PARAM_set_int(p, ossl_ml_dsa_key_get_collision_strength_bits(key)))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
337
&& !OSSL_PARAM_set_int(p, ossl_ml_dsa_key_get_sig_len(key)))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
340
pub = ossl_ml_dsa_key_get_pub(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
341
priv = ossl_ml_dsa_key_get_priv(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
342
seed = ossl_ml_dsa_key_get_seed(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
351
ossl_ml_dsa_key_get_priv_len(key)))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
356
ossl_ml_dsa_key_get_pub_len(key)))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
372
ML_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
377
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
390
if ((buf = ossl_ml_dsa_key_get_seed(key)) != NULL) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
393
if ((buf = ossl_ml_dsa_key_get_priv(key)) != NULL) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
395
ossl_ml_dsa_key_get_priv_len(key));
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
399
&& ((buf = ossl_ml_dsa_key_get_pub(key)) != NULL)) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
401
ossl_ml_dsa_key_get_pub_len(key));
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
412
ML_DSA_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
416
if (ossl_prov_is_running() && reference_sz == sizeof(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
418
key = *(ML_DSA_KEY **)reference;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
422
if (key == NULL || ossl_ml_dsa_key_get_pub(key) != NULL)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
423
return key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
425
sk = ossl_ml_dsa_key_get_priv(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
426
seed = ossl_ml_dsa_key_get_seed(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
428
&& (sk == NULL || (ossl_ml_dsa_key_get_prov_flags(key) & ML_DSA_KEY_PREFER_SEED))) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
429
if (ossl_ml_dsa_generate_key(key))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
430
return key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
432
if (ossl_ml_dsa_sk_decode(key, sk,
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
433
ossl_ml_dsa_key_get_priv_len(key)))
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
434
return key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
435
key_params = ossl_ml_dsa_key_params(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
440
return key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
444
ossl_ml_dsa_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
470
ML_DSA_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
474
key = ossl_prov_ml_dsa_new(gctx->provctx, gctx->propq, evp_type);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
475
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
478
&& !ossl_ml_dsa_set_prekey(key, 0, 0,
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
481
if (!ossl_ml_dsa_generate_key(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
486
if (!ml_dsa_pairwise_test(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
491
return key;
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
493
ossl_ml_dsa_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
51
static int ml_dsa_pairwise_test(const ML_DSA_KEY *key)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
63
if (!ml_dsa_has(key, OSSL_KEYMGMT_SELECT_KEYPAIR)
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
71
ctx = ossl_ml_dsa_key_get0_libctx(key);
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
83
if (ossl_ml_dsa_sign(key, 0, msg, sizeof(msg), NULL, 0, rnd, sizeof(rnd), 0,
crypto/openssl/providers/implementations/keymgmt/ml_dsa_kmgmt.c
90
if (ossl_ml_dsa_verify(key, 0, msg, sizeof(msg), NULL, 0, 0,
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
117
secret, sizeof(secret), key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
123
key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
133
key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
155
ML_KEM_KEY *key;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
165
if ((key = ossl_ml_kem_key_new(PROV_LIBCTX_OF(ctx), propq, evp_type)) != NULL) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
171
key->prov_flags |= ML_KEM_KEY_RETAIN_SEED;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
173
key->prov_flags &= ~ML_KEM_KEY_RETAIN_SEED;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
176
key->prov_flags |= ML_KEM_KEY_PREFER_SEED;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
178
key->prov_flags &= ~ML_KEM_KEY_PREFER_SEED;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
180
key->prov_flags |= ML_KEM_KEY_RANDOM_PCT;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
182
key->prov_flags |= ML_KEM_KEY_FIXED_PCT;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
184
key->prov_flags &= ~ML_KEM_KEY_PCT_TYPE;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
186
return key;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
191
const ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
194
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
201
return ossl_ml_kem_have_pubkey(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
203
return ossl_ml_kem_have_prvkey(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
224
const ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
226
if (!ml_kem_has(key, selection))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
230
return ml_kem_pairwise_test(key, ML_KEM_KEY_RANDOM_PCT);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
237
ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
245
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
251
v = ossl_ml_kem_key_vinfo(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
252
if (!ossl_ml_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
255
|| !ossl_ml_kem_decoded_key(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
262
|| !ossl_ml_kem_encode_public_key(pubenc, v->pubkey_bytes, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
272
if (ossl_ml_kem_have_seed(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
275
|| !ossl_ml_kem_encode_seed(seedenc, seedlen, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
278
if (ossl_ml_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
281
|| !ossl_ml_kem_encode_private_key(prvenc, prvlen, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
283
} else if (ossl_ml_kem_have_dkenc(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
287
memcpy(prvenc, key->encoded_dk, prvlen);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
343
ML_KEM_KEY *key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
348
prvenc + key->vinfo->prvkey_bytes - zlen, zlen)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
354
key->vinfo->algorithm_name);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
358
static int check_prvenc(const uint8_t *prvenc, ML_KEM_KEY *key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
360
size_t len = key->vinfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
365
&& ossl_ml_kem_encode_private_key(buf, len, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
374
key->vinfo->algorithm_name);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
375
ossl_ml_kem_key_reset(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
379
static int ml_kem_key_fromdata(ML_KEM_KEY *key,
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
389
if (key == NULL || ossl_ml_kem_have_pubkey(key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
391
v = ossl_ml_kem_key_vinfo(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
450
&& (prvlen == 0 || (key->prov_flags & ML_KEM_KEY_PREFER_SEED))) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
451
if (prvlen != 0 && !check_seed(seedenc, prvenc, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
453
if (!ossl_ml_kem_set_seed(seedenc, seedlen, key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
454
|| !ossl_ml_kem_genkey(NULL, 0, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
456
return prvlen == 0 || check_prvenc(prvenc, key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
458
return ossl_ml_kem_parse_private_key(prvenc, prvlen, key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
460
return ossl_ml_kem_parse_public_key(pubenc, publen, key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
465
ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
469
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
476
res = ml_kem_key_fromdata(key, params, include_private);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
478
&& !ml_kem_pairwise_test(key, key->prov_flags)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
482
ossl_ml_kem_key_reset(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
511
ML_KEM_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
515
if (ossl_prov_is_running() && reference_sz == sizeof(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
517
key = *(ML_KEM_KEY **)reference;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
518
encoded_dk = key->encoded_dk;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
519
key->encoded_dk = NULL;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
523
&& ossl_ml_kem_encode_seed(seed, sizeof(seed), key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
524
&& !check_seed(seed, encoded_dk, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
527
if (ossl_ml_kem_have_seed(key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
529
|| (key->prov_flags & ML_KEM_KEY_PREFER_SEED))) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
530
if (!ossl_ml_kem_genkey(NULL, 0, key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
531
|| (encoded_dk != NULL && !check_prvenc(encoded_dk, key)))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
535
key->vinfo->prvkey_bytes, key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
538
key->vinfo->algorithm_name);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
541
if (!ml_kem_pairwise_test(key, key->prov_flags))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
545
return key;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
550
ossl_ml_kem_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
560
ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
561
const ML_KEM_VINFO *v = ossl_ml_kem_key_vinfo(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
584
if (ossl_ml_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
602
if (!ossl_ml_kem_encode_public_key(p->data, p->return_size, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
609
if (p != NULL && ossl_ml_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
616
if (!ossl_ml_kem_encode_private_key(p->data, p->return_size, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
622
if (p != NULL && ossl_ml_kem_have_seed(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
629
if (!ossl_ml_kem_encode_seed(p->data, p->return_size, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
650
ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
66
static int ml_kem_pairwise_test(const ML_KEM_KEY *key, int key_flags)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
661
|| publen != key->vinfo->pubkey_bytes)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
670
if (ossl_ml_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
677
return ossl_ml_kem_parse_public_key(pubenc, publen, key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
754
ML_KEM_KEY *key;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
763
key = ossl_prov_ml_kem_new(gctx->provctx, gctx->propq, gctx->evp_type);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
764
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
768
return key;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
77
const ML_KEM_VINFO *v = ossl_ml_kem_key_vinfo(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
770
if (seed != NULL && !ossl_ml_kem_set_seed(seed, ML_KEM_SEED_BYTES, key))
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
772
genok = ossl_ml_kem_genkey(nopub, 0, key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
781
if (!ml_kem_pairwise_test(key, ML_KEM_KEY_FIXED_PCT)) {
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
783
ossl_ml_kem_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
787
return key;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
790
ossl_ml_kem_key_free(key);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
809
const ML_KEM_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
814
return ossl_ml_kem_key_dup(key, selection);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
82
if (!ossl_ml_kem_have_prvkey(key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
83
|| !ossl_ml_kem_have_pubkey(key)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
95
OSSL_SELF_TEST_get_callback(key->libctx, &cb, &cbarg);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
102
const MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
105
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
112
return mlx_kem_have_pubkey(key);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
114
return mlx_kem_have_prvkey(key);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
206
export_sub(EXPORT_CB_ARG *sub_arg, int selection, MLX_KEY *key)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
218
int ml_kem_slot = key->xinfo->ml_kem_slot;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
223
pkey = key->mkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
224
sub_arg->algorithm_name = key->minfo->algorithm_name;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
225
sub_arg->puboff = slot * key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
226
sub_arg->prvoff = slot * key->xinfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
227
sub_arg->publen = key->minfo->pubkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
228
sub_arg->prvlen = key->minfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
230
pkey = key->xkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
231
sub_arg->algorithm_name = key->xinfo->algorithm_name;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
232
sub_arg->puboff = (1 - ml_kem_slot) * key->minfo->pubkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
233
sub_arg->prvoff = (1 - ml_kem_slot) * key->minfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
234
sub_arg->publen = key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
235
sub_arg->prvlen = key->xinfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
246
MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
254
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
261
if (!mlx_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
265
publen = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
266
prvlen = key->minfo->prvkey_bytes + key->xinfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
275
if (mlx_kem_have_prvkey(key)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
292
if (!export_sub(&sub_arg, selection, key))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
334
int selection, MLX_KEY *key, int slot, const uint8_t *in,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
344
int ml_kem_slot = key->xinfo->ml_kem_slot;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
348
alg = key->minfo->algorithm_name;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
349
ppkey = &key->mkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
353
alg = key->xinfo->algorithm_name;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
354
group = (char *)key->xinfo->group_name;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
355
ppkey = &key->xkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
377
load_keys(MLX_KEY *key,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
386
if (!load_slot(key->libctx, key->propq, OSSL_PKEY_PARAM_PRIV_KEY,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
387
minimal_selection, key, slot, prvenc,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
388
key->minfo->prvkey_bytes, key->xinfo->prvkey_bytes))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
392
if (!load_slot(key->libctx, key->propq, OSSL_PKEY_PARAM_PUB_KEY,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
393
minimal_selection, key, slot, pubenc,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
394
key->minfo->pubkey_bytes, key->xinfo->pubkey_bytes))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
398
key->state = prvlen ? MLX_HAVE_PRVKEY : MLX_HAVE_PUBKEY;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
402
EVP_PKEY_free(key->mkey);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
403
EVP_PKEY_free(key->xkey);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
404
key->xkey = key->mkey = NULL;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
405
key->state = MLX_HAVE_NOKEYS;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
409
static int mlx_kem_key_fromdata(MLX_KEY *key,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
419
if (key == NULL || mlx_kem_have_pubkey(key))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
421
pubkey_bytes = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
422
prvkey_bytes = key->minfo->prvkey_bytes + key->xinfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
454
return load_keys(key, pubenc, publen, prvenc, prvlen);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
459
MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
462
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
469
return mlx_kem_key_fromdata(key, params, include_private);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
491
MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
495
size_t publen = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
496
size_t prvlen = key->minfo->prvkey_bytes + key->xinfo->prvkey_bytes;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
501
if (!OSSL_PARAM_set_int(p, key->minfo->bits))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
507
if (!OSSL_PARAM_set_int(p, key->minfo->secbits))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
513
if (!OSSL_PARAM_set_int(p, key->minfo->ctext_bytes + key->xinfo->pubkey_bytes))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
516
if (!mlx_kem_have_pubkey(key))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
537
if (mlx_kem_have_prvkey(key)) {
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
561
if (key->xinfo->group_name != NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
565
if (!export_sub(&sub_arg, selection, key))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
587
MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
601
if (mlx_kem_have_pubkey(key)) {
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
613
OPENSSL_free(key->propq);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
614
key->propq = NULL;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
615
if (!OSSL_PARAM_get_utf8_string(p, &key->propq, 0))
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
619
if (publen != key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes) {
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
624
return load_keys(key, pubenc, publen, NULL, 0);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
64
MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
66
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
68
OPENSSL_free(key->propq);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
686
MLX_KEY *key;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
69
EVP_PKEY_free(key->mkey);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
696
if ((key = mlx_kem_key_new(gctx->evp_type, gctx->libctx, propq)) == NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
70
EVP_PKEY_free(key->xkey);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
700
return key;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
703
key->mkey = EVP_PKEY_Q_keygen(key->libctx, key->propq,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
704
key->minfo->algorithm_name);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
705
key->xkey = EVP_PKEY_Q_keygen(key->libctx, key->propq,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
706
key->xinfo->algorithm_name,
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
707
key->xinfo->group_name);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
708
if (key->mkey != NULL && key->xkey != NULL) {
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
709
key->state = MLX_HAVE_PRVKEY;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
71
OPENSSL_free(key);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
710
return key;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
713
mlx_kem_key_free(key);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
729
const MLX_KEY *key = vkey;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
733
|| (ret = OPENSSL_memdup(key, sizeof(*ret))) == NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
758
ret->mkey = EVP_PKEY_dup(key->mkey);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
759
ret->xkey = EVP_PKEY_dup(key->xkey);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
78
MLX_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
83
|| (key = OPENSSL_malloc(sizeof(*key))) == NULL)
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
87
key->libctx = libctx;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
88
key->minfo = ossl_ml_kem_get_vinfo(ml_kem_variant);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
89
key->xinfo = &hybrid_vtable[v];
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
90
key->xkey = key->mkey = NULL;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
91
key->state = MLX_HAVE_NOKEYS;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
92
key->propq = propq;
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
93
return key;
crypto/openssl/providers/implementations/keymgmt/rsa_kmgmt.c
324
static int rsa_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/rsa_kmgmt.c
326
RSA *rsa = key;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
100
const SLH_DSA_KEY *key = key_data;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
102
if (!slh_dsa_has(key, selection))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
106
return ossl_slh_dsa_key_pairwise_check(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
112
SLH_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
115
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
122
return ossl_slh_dsa_key_fromdata(key, params, include_priv);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
153
static int key_to_params(SLH_DSA_KEY *key, OSSL_PARAM_BLD *tmpl,
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
157
if (key == NULL || ossl_slh_dsa_key_get_pub(key) == NULL)
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
161
&& ossl_slh_dsa_key_get_priv(key) != NULL)
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
164
ossl_slh_dsa_key_get_priv(key),
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
165
ossl_slh_dsa_key_get_priv_len(key))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
174
ossl_slh_dsa_key_get_pub(key),
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
175
ossl_slh_dsa_key_get_pub_len(key));
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
180
SLH_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
185
&& !OSSL_PARAM_set_int(p, 8 * ossl_slh_dsa_key_get_pub_len(key)))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
188
&& !OSSL_PARAM_set_int(p, 8 * ossl_slh_dsa_key_get_n(key)))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
191
&& !OSSL_PARAM_set_int(p, ossl_slh_dsa_key_get_sig_len(key)))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
194
priv = ossl_slh_dsa_key_get_priv(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
200
ossl_slh_dsa_key_get_priv_len(key)))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
203
pub = ossl_slh_dsa_key_get_pub(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
208
ossl_slh_dsa_key_get_pub_len(key)))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
224
SLH_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
229
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
23
static int slh_dsa_fips140_pairwise_test(const SLH_DSA_KEY *key,
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
239
if (!key_to_params(key, tmpl, selection))
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
255
SLH_DSA_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
257
if (ossl_prov_is_running() && reference_sz == sizeof(key)) {
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
259
key = *(SLH_DSA_KEY **)reference;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
262
return key;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
291
static int slh_dsa_fips140_pairwise_test(const SLH_DSA_KEY *key,
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
310
ctx = ossl_slh_dsa_hash_ctx_new(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
315
lib_ctx = ossl_slh_dsa_key_get0_libctx(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
325
sig_len = ossl_slh_dsa_key_get_sig_len(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
354
SLH_DSA_KEY *key = NULL;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
359
key = ossl_slh_dsa_key_new(gctx->libctx, gctx->propq, alg);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
360
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
362
ctx = ossl_slh_dsa_hash_ctx_new(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
365
if (!ossl_slh_dsa_generate_key(ctx, key, gctx->libctx,
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
369
if (!slh_dsa_fips140_pairwise_test(key, ctx)) {
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
375
return key;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
378
ossl_slh_dsa_key_free(key);
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
76
const SLH_DSA_KEY *key = keydata;
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
78
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
83
return ossl_slh_dsa_key_has(key, selection);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
135
static int key_to_params(void *key, OSSL_PARAM_BLD *tmpl,
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
138
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
146
static int template_export(void *key, int selection, OSSL_CALLBACK *param_cb,
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
153
debug_print("export %p\n", key);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
154
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
167
if (!key_to_params(key, tmpl, NULL, include_private))
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
183
static int ossl_template_key_fromdata(void *key,
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
189
if (key == NULL)
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
214
static int template_import(void *key, int selection, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
219
debug_print("import %p\n", key);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
220
if (!ossl_prov_is_running() || key == NULL)
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
227
ok = ok && ossl_template_key_fromdata(key, params, include_private);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
250
static int template_get_params(void *key, OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
254
debug_print("get params %p\n", key);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
293
static int template_set_params(void *key, const OSSL_PARAM params[])
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
297
debug_print("set params called for %p\n", key);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
368
void *key = NULL;
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
377
debug_print("gen returns set %p\n", key);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
378
return key;
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
380
template_free(key);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
73
void *key = NULL;
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
81
debug_print("new key = %p\n", key);
crypto/openssl/providers/implementations/keymgmt/template_kmgmt.c
82
return key;
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
100
memset(macctx->key + keylen, 0, BLAKE2_KEYBYTES - keylen);
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
105
static int blake2_mac_init(void *vmacctx, const unsigned char *key,
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
112
if (key != NULL) {
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
113
if (!blake2_setkey(macctx, key, keylen))
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
120
return BLAKE2_INIT_KEY(&macctx->ctx, &macctx->params, macctx->key);
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
39
unsigned char key[BLAKE2_KEYBYTES];
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
78
OPENSSL_cleanse(macctx->key, sizeof(macctx->key));
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
91
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/macs/blake2_mac_impl.c
97
memcpy(macctx->key, key, keylen);
crypto/openssl/providers/implementations/macs/cmac_prov.c
150
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/macs/cmac_prov.c
163
rv = ossl_cmac_init(macctx->ctx, key, keylen,
crypto/openssl/providers/implementations/macs/cmac_prov.c
170
static int cmac_init(void *vmacctx, const unsigned char *key,
crypto/openssl/providers/implementations/macs/cmac_prov.c
177
if (key != NULL)
crypto/openssl/providers/implementations/macs/cmac_prov.c
178
return cmac_setkey(macctx, key, keylen);
crypto/openssl/providers/implementations/macs/gmac_prov.c
101
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/macs/gmac_prov.c
109
if (!EVP_EncryptInit_ex(ctx, NULL, NULL, key, NULL))
crypto/openssl/providers/implementations/macs/gmac_prov.c
114
static int gmac_init(void *vmacctx, const unsigned char *key,
crypto/openssl/providers/implementations/macs/gmac_prov.c
121
if (key != NULL)
crypto/openssl/providers/implementations/macs/gmac_prov.c
122
return gmac_setkey(macctx, key, keylen);
crypto/openssl/providers/implementations/macs/hmac_prov.c
101
OPENSSL_clear_free(macctx->key, macctx->keylen);
crypto/openssl/providers/implementations/macs/hmac_prov.c
121
dst->key = NULL;
crypto/openssl/providers/implementations/macs/hmac_prov.c
129
if (src->key != NULL) {
crypto/openssl/providers/implementations/macs/hmac_prov.c
130
dst->key = OPENSSL_malloc(src->keylen > 0 ? src->keylen : 1);
crypto/openssl/providers/implementations/macs/hmac_prov.c
131
if (dst->key == NULL) {
crypto/openssl/providers/implementations/macs/hmac_prov.c
136
memcpy(dst->key, src->key, src->keylen);
crypto/openssl/providers/implementations/macs/hmac_prov.c
156
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/macs/hmac_prov.c
180
if (macctx->key != NULL)
crypto/openssl/providers/implementations/macs/hmac_prov.c
181
OPENSSL_clear_free(macctx->key, macctx->keylen);
crypto/openssl/providers/implementations/macs/hmac_prov.c
183
macctx->key = OPENSSL_malloc(keylen > 0 ? keylen : 1);
crypto/openssl/providers/implementations/macs/hmac_prov.c
184
if (macctx->key == NULL)
crypto/openssl/providers/implementations/macs/hmac_prov.c
188
memcpy(macctx->key, key, keylen);
crypto/openssl/providers/implementations/macs/hmac_prov.c
193
if (key != NULL || (macctx->tls_data_size == 0 && digest != NULL))
crypto/openssl/providers/implementations/macs/hmac_prov.c
194
return HMAC_Init_ex(macctx->ctx, key, keylen, digest,
crypto/openssl/providers/implementations/macs/hmac_prov.c
199
static int hmac_init(void *vmacctx, const unsigned char *key,
crypto/openssl/providers/implementations/macs/hmac_prov.c
207
if (key != NULL)
crypto/openssl/providers/implementations/macs/hmac_prov.c
208
return hmac_setkey(macctx, key, keylen);
crypto/openssl/providers/implementations/macs/hmac_prov.c
240
macctx->key,
crypto/openssl/providers/implementations/macs/hmac_prov.c
57
unsigned char *key;
crypto/openssl/providers/implementations/macs/kmac_prov.c
128
unsigned char key[KMAC_MAX_KEY_ENCODED];
crypto/openssl/providers/implementations/macs/kmac_prov.c
161
OPENSSL_cleanse(kctx->key, kctx->key_len);
crypto/openssl/providers/implementations/macs/kmac_prov.c
255
memcpy(dst->key, src->key, src->key_len);
crypto/openssl/providers/implementations/macs/kmac_prov.c
262
static int kmac_setkey(struct kmac_data_st *kctx, const unsigned char *key,
crypto/openssl/providers/implementations/macs/kmac_prov.c
295
if (!kmac_bytepad_encode_key(kctx->key, sizeof(kctx->key), &kctx->key_len,
crypto/openssl/providers/implementations/macs/kmac_prov.c
296
key, keylen, (size_t)w))
crypto/openssl/providers/implementations/macs/kmac_prov.c
306
static int kmac_init(void *vmacctx, const unsigned char *key,
crypto/openssl/providers/implementations/macs/kmac_prov.c
318
if (key != NULL) {
crypto/openssl/providers/implementations/macs/kmac_prov.c
319
if (!kmac_setkey(kctx, key, keylen))
crypto/openssl/providers/implementations/macs/kmac_prov.c
357
&& EVP_DigestUpdate(ctx, kctx->key, kctx->key_len);
crypto/openssl/providers/implementations/macs/poly1305_prov.c
101
if (key != NULL)
crypto/openssl/providers/implementations/macs/poly1305_prov.c
102
return poly1305_setkey(ctx, key, keylen);
crypto/openssl/providers/implementations/macs/poly1305_prov.c
82
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/macs/poly1305_prov.c
88
Poly1305_Init(&ctx->poly1305, key);
crypto/openssl/providers/implementations/macs/poly1305_prov.c
93
static int poly1305_init(void *vmacctx, const unsigned char *key,
crypto/openssl/providers/implementations/macs/siphash_prov.c
102
ret = SipHash_Init(&ctx->siphash, key, crounds(ctx), drounds(ctx));
crypto/openssl/providers/implementations/macs/siphash_prov.c
108
static int siphash_init(void *vmacctx, const unsigned char *key, size_t keylen,
crypto/openssl/providers/implementations/macs/siphash_prov.c
119
if (key == NULL) {
crypto/openssl/providers/implementations/macs/siphash_prov.c
123
return siphash_setkey(ctx, key, keylen);
crypto/openssl/providers/implementations/macs/siphash_prov.c
96
const unsigned char *key, size_t keylen)
crypto/openssl/providers/implementations/rands/drbg.c
958
if (params[cnt].key == NULL)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
140
ECX_KEY *key;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
188
if (peddsactx->key->type != ECX_KEY_TYPE_ED25519)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
196
if (peddsactx->key->type != ECX_KEY_TYPE_ED25519)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
204
if (peddsactx->key->type != ECX_KEY_TYPE_ED25519)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
211
if (peddsactx->key->type != ECX_KEY_TYPE_ED448)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
217
if (peddsactx->key->type != ECX_KEY_TYPE_ED448)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
259
peddsactx->key = edkey;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
281
peddsactx->key = NULL;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
389
const ECX_KEY *edkey = peddsactx->key;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
498
const ECX_KEY *edkey = peddsactx->key;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
574
const ECX_KEY *edkey = peddsactx->key;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
632
const ECX_KEY *edkey = peddsactx->key;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
688
if (vedkey == NULL && peddsactx->key != NULL)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
722
if (vedkey == NULL && peddsactx->key != NULL)
crypto/openssl/providers/implementations/signature/eddsa_sig.c
748
ossl_ecx_key_free(peddsactx->key);
crypto/openssl/providers/implementations/signature/eddsa_sig.c
766
dstctx->key = NULL;
crypto/openssl/providers/implementations/signature/eddsa_sig.c
768
if (srcctx->key != NULL && !ossl_ecx_key_up_ref(srcctx->key)) {
crypto/openssl/providers/implementations/signature/eddsa_sig.c
772
dstctx->key = srcctx->key;
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
106
if (pmacctx->key == NULL && vkey == NULL) {
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
114
ossl_mac_key_free(pmacctx->key);
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
115
pmacctx->key = vkey;
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
118
if (pmacctx->key->cipher.cipher != NULL)
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
119
ciphername = (char *)EVP_CIPHER_get0_name(pmacctx->key->cipher.cipher);
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
121
if (pmacctx->key->cipher.engine != NULL)
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
122
engine = (char *)ENGINE_get_id(pmacctx->key->cipher.engine);
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
129
pmacctx->key->properties,
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
133
if (!EVP_MAC_init(pmacctx->macctx, pmacctx->key->priv_key,
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
134
pmacctx->key->priv_key_len, params))
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
168
ossl_mac_key_free(ctx->key);
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
186
dstctx->key = NULL;
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
192
if (srcctx->key != NULL && !ossl_mac_key_up_ref(srcctx->key))
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
194
dstctx->key = srcctx->key;
crypto/openssl/providers/implementations/signature/mac_legacy_sig.c
46
MAC_KEY *key;
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
113
ret = ret && ossl_DER_w_algorithmIdentifier_ML_DSA(&pkt, -1, ctx->key);
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
129
ML_DSA_KEY *key = vkey;
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
135
if (vkey == NULL && ctx->key == NULL) {
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
140
if (key != NULL)
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
141
ctx->key = vkey;
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
142
if (!ossl_ml_dsa_key_matches(ctx->key, ctx->evp_type))
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
170
if (vkey == NULL && ctx->key != NULL)
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
199
ret = ossl_ml_dsa_sign(ctx->key, ctx->mu, msg, msg_len,
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
227
return ossl_ml_dsa_verify(ctx->key, ctx->mu, msg, msg_len,
crypto/openssl/providers/implementations/signature/ml_dsa_sig.c
44
ML_DSA_KEY *key;
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
134
ret = ret && ossl_DER_w_algorithmIdentifier_SLH_DSA(&pkt, -1, ctx->key);
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
150
SLH_DSA_KEY *key = vkey;
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
156
if (vkey == NULL && ctx->key == NULL) {
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
161
if (key != NULL) {
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
162
if (!ossl_slh_dsa_key_type_matches(key, ctx->alg))
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
164
ctx->hash_ctx = ossl_slh_dsa_hash_ctx_new(key);
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
167
ctx->key = vkey;
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
193
if (vkey == NULL && ctx->key != NULL)
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
215
n = ossl_slh_dsa_key_get_n(ctx->key);
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
282
size_t n = ossl_slh_dsa_key_get_n(pctx->key);
crypto/openssl/providers/implementations/signature/slh_dsa_sig.c
42
SLH_DSA_KEY *key; /* Note that the key is not owned by this object */
crypto/openssl/ssl/quic/json_enc.c
481
void ossl_json_key(OSSL_JSON_ENC *json, const char *key)
crypto/openssl/ssl/quic/json_enc.c
503
json_write_qstring(json, key);
crypto/openssl/ssl/quic/qlog.c
267
static void write_str_once(QLOG *qlog, const char *key, char **p)
crypto/openssl/ssl/quic/qlog.c
272
ossl_json_key(&qlog->json, key);
crypto/openssl/ssl/quic/quic_ackm.c
145
OSSL_ACKM_TX_PKT key;
crypto/openssl/ssl/quic/quic_ackm.c
147
key.pkt_num = pkt_num;
crypto/openssl/ssl/quic/quic_ackm.c
149
return lh_OSSL_ACKM_TX_PKT_retrieve(h->map, &key);
crypto/openssl/ssl/quic/quic_ackm.c
156
OSSL_ACKM_TX_PKT key, *pkt;
crypto/openssl/ssl/quic/quic_ackm.c
157
key.pkt_num = pkt_num;
crypto/openssl/ssl/quic/quic_ackm.c
164
lh_OSSL_ACKM_TX_PKT_delete(h->map, &key);
crypto/openssl/ssl/quic/quic_impl.c
4921
QUIC_TOKEN *key = NULL;
crypto/openssl/ssl/quic/quic_impl.c
4929
key = ossl_quic_build_new_token(peer, NULL, 0);
crypto/openssl/ssl/quic/quic_impl.c
4930
if (key == NULL)
crypto/openssl/ssl/quic/quic_impl.c
4934
tok = lh_QUIC_TOKEN_retrieve(c->cache, key);
crypto/openssl/ssl/quic/quic_impl.c
4942
ossl_quic_free_peer_token(key);
crypto/openssl/ssl/quic/quic_lcidm.c
187
QUIC_LCID key;
crypto/openssl/ssl/quic/quic_lcidm.c
189
key.cid = *lcid;
crypto/openssl/ssl/quic/quic_lcidm.c
190
key.hash_key = (uint64_t *)lcidm->hash_key;
crypto/openssl/ssl/quic/quic_lcidm.c
192
if (key.cid.id_len > QUIC_MAX_CONN_ID_LEN)
crypto/openssl/ssl/quic/quic_lcidm.c
195
return lh_QUIC_LCID_retrieve(lcidm->lcids, &key);
crypto/openssl/ssl/quic/quic_lcidm.c
200
QUIC_LCIDM_CONN key;
crypto/openssl/ssl/quic/quic_lcidm.c
202
key.opaque = opaque;
crypto/openssl/ssl/quic/quic_lcidm.c
204
return lh_QUIC_LCIDM_CONN_retrieve(lcidm->conns, &key);
crypto/openssl/ssl/quic/quic_lcidm.c
338
QUIC_LCID key, *lcid_obj;
crypto/openssl/ssl/quic/quic_lcidm.c
361
key.cid = *lcid_out;
crypto/openssl/ssl/quic/quic_lcidm.c
362
key.hash_key = lcidm->hash_key;
crypto/openssl/ssl/quic/quic_lcidm.c
365
} while (lh_QUIC_LCID_retrieve(lcidm->lcids, &key) != NULL);
crypto/openssl/ssl/quic/quic_lcidm.c
385
QUIC_LCID key, *lcid_obj;
crypto/openssl/ssl/quic/quic_lcidm.c
397
key.cid = *initial_odcid;
crypto/openssl/ssl/quic/quic_lcidm.c
398
key.hash_key = lcidm->hash_key;
crypto/openssl/ssl/quic/quic_lcidm.c
399
if (lh_QUIC_LCID_retrieve(lcidm->lcids, &key) != NULL)
crypto/openssl/ssl/quic/quic_lcidm.c
506
QUIC_LCIDM_CONN key, *conn;
crypto/openssl/ssl/quic/quic_lcidm.c
509
key.opaque = opaque;
crypto/openssl/ssl/quic/quic_lcidm.c
515
if ((conn = lh_QUIC_LCIDM_CONN_retrieve(lcidm->conns, &key)) == NULL)
crypto/openssl/ssl/quic/quic_lcidm.c
542
QUIC_LCIDM_CONN key, *conn;
crypto/openssl/ssl/quic/quic_lcidm.c
544
key.opaque = opaque;
crypto/openssl/ssl/quic/quic_lcidm.c
546
if ((conn = lh_QUIC_LCIDM_CONN_retrieve(lcidm->conns, &key)) == NULL)
crypto/openssl/ssl/quic/quic_lcidm.c
578
QUIC_LCID key, *lcid_obj;
crypto/openssl/ssl/quic/quic_lcidm.c
580
key.cid = *lcid;
crypto/openssl/ssl/quic/quic_lcidm.c
581
key.hash_key = lcidm->hash_key;
crypto/openssl/ssl/quic/quic_lcidm.c
582
if ((lcid_obj = lh_QUIC_LCID_retrieve(lcidm->lcids, &key)) == NULL)
crypto/openssl/ssl/quic/quic_lcidm.c
594
QUIC_LCID key, *lcid_obj;
crypto/openssl/ssl/quic/quic_lcidm.c
602
key.cid = *lcid;
crypto/openssl/ssl/quic/quic_lcidm.c
603
key.hash_key = lcidm->hash_key;
crypto/openssl/ssl/quic/quic_lcidm.c
604
if (lh_QUIC_LCID_retrieve(lcidm->lcids, &key) != NULL)
crypto/openssl/ssl/quic/quic_record_shared.c
109
unsigned char key[EVP_MAX_KEY_LENGTH];
crypto/openssl/ssl/quic/quic_record_shared.c
155
key, key_len, 1))
crypto/openssl/ssl/quic/quic_record_shared.c
176
if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, el->iv[keyslot], 0)) {
crypto/openssl/ssl/quic/quic_record_shared.c
184
OPENSSL_cleanse(key, sizeof(key));
crypto/openssl/ssl/quic/quic_record_shared.c
192
OPENSSL_cleanse(key, sizeof(key));
crypto/openssl/ssl/quic/quic_srt_gen.c
23
const unsigned char *key, size_t key_len)
crypto/openssl/ssl/quic/quic_srt_gen.c
43
if (!EVP_MAC_init(srt_gen->mac_ctx, key, key_len, params))
crypto/openssl/ssl/quic/quic_srtm.c
113
unsigned char key[16];
crypto/openssl/ssl/quic/quic_srtm.c
116
if (RAND_priv_bytes_ex(libctx, key, sizeof(key), sizeof(key) * 8) != 1)
crypto/openssl/ssl/quic/quic_srtm.c
129
if (!EVP_EncryptInit_ex2(srtm->blind_ctx, ecb, key, NULL, NULL))
crypto/openssl/ssl/quic/quic_srtm.c
194
SRTM_ITEM key, *item = NULL, *prev = NULL;
crypto/openssl/ssl/quic/quic_srtm.c
196
key.opaque = opaque;
crypto/openssl/ssl/quic/quic_srtm.c
198
item = lh_SRTM_ITEM_retrieve(srtm->items_fwd, &key);
crypto/openssl/ssl/quic/quic_srtm.c
423
SRTM_ITEM key, *item = NULL, *inext, *ihead;
crypto/openssl/ssl/quic/quic_srtm.c
425
key.opaque = opaque;
crypto/openssl/ssl/quic/quic_srtm.c
430
if ((ihead = lh_SRTM_ITEM_retrieve(srtm->items_fwd, &key)) == NULL)
crypto/openssl/ssl/quic/quic_srtm.c
452
SRTM_ITEM key, *item;
crypto/openssl/ssl/quic/quic_srtm.c
457
if (!srtm_compute_blinded(srtm, &key, token))
crypto/openssl/ssl/quic/quic_srtm.c
460
item = lh_SRTM_ITEM_retrieve(srtm->items_rev, &key);
crypto/openssl/ssl/quic/quic_stream_map.c
144
QUIC_STREAM key;
crypto/openssl/ssl/quic/quic_stream_map.c
146
key.id = stream_id;
crypto/openssl/ssl/quic/quic_stream_map.c
148
s = lh_QUIC_STREAM_retrieve(qsm->map, &key);
crypto/openssl/ssl/quic/quic_stream_map.c
199
QUIC_STREAM key;
crypto/openssl/ssl/quic/quic_stream_map.c
201
key.id = stream_id;
crypto/openssl/ssl/quic/quic_stream_map.c
203
return lh_QUIC_STREAM_retrieve(qsm->map, &key);
crypto/openssl/ssl/quic/quic_tls.c
102
unsigned char *key, size_t keylen, unsigned char *iv,
crypto/openssl/ssl/record/methods/dtls_meth.c
634
unsigned char *key, size_t keylen, unsigned char *iv,
crypto/openssl/ssl/record/methods/dtls_meth.c
686
ret = (*retrl)->funcs->set_crypto_state(*retrl, level, key, keylen, iv,
crypto/openssl/ssl/record/methods/ktls_meth.c
110
crypto_info->cipher_key = key;
crypto/openssl/ssl/record/methods/ktls_meth.c
175
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/methods/ktls_meth.c
225
memcpy(crypto_info->gcm128.key, key, keylen);
crypto/openssl/ssl/record/methods/ktls_meth.c
242
memcpy(crypto_info->gcm256.key, key, keylen);
crypto/openssl/ssl/record/methods/ktls_meth.c
260
memcpy(crypto_info->ccm128.key, key, keylen);
crypto/openssl/ssl/record/methods/ktls_meth.c
274
memcpy(crypto_info->chacha20poly1305.key, key, keylen);
crypto/openssl/ssl/record/methods/ktls_meth.c
287
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/methods/ktls_meth.c
328
iv, ivlen, key, keylen, mackey, mackeylen))
crypto/openssl/ssl/record/methods/ktls_meth.c
402
unsigned char *key, size_t keylen, unsigned char *iv,
crypto/openssl/ssl/record/methods/ktls_meth.c
425
ret = (*retrl)->funcs->set_crypto_state(*retrl, level, key, keylen, iv,
crypto/openssl/ssl/record/methods/ktls_meth.c
77
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/methods/recmethod_local.h
100
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/methods/ssl3_meth.c
18
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/methods/ssl3_meth.c
62
if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) {
crypto/openssl/ssl/record/methods/tls13_meth.c
17
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/methods/tls13_meth.c
56
if (!EVP_MAC_init(mac_ctx, key, keylen, params)) {
crypto/openssl/ssl/record/methods/tls13_meth.c
79
|| EVP_CipherInit_ex(ciph_ctx, NULL, NULL, key, NULL, enc) <= 0) {
crypto/openssl/ssl/record/methods/tls1_meth.c
107
|| !EVP_CipherInit_ex(ciph_ctx, NULL, NULL, key, NULL, enc)) {
crypto/openssl/ssl/record/methods/tls1_meth.c
112
if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) {
crypto/openssl/ssl/record/methods/tls1_meth.c
20
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/methods/tls1_meth.c
89
if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, NULL, enc)
crypto/openssl/ssl/record/methods/tls_common.c
1283
for (p = settings; p->key != NULL; p++) {
crypto/openssl/ssl/record/methods/tls_common.c
1284
if (strcmp(p->key, OSSL_LIBSSL_RECORD_LAYER_PARAM_USE_ETM) == 0) {
crypto/openssl/ssl/record/methods/tls_common.c
1289
} else if (strcmp(p->key,
crypto/openssl/ssl/record/methods/tls_common.c
1296
} else if (strcmp(p->key,
crypto/openssl/ssl/record/methods/tls_common.c
1303
} else if (strcmp(p->key,
crypto/openssl/ssl/record/methods/tls_common.c
1310
} else if (strcmp(p->key,
crypto/openssl/ssl/record/methods/tls_common.c
1400
unsigned char *key, size_t keylen, unsigned char *iv,
crypto/openssl/ssl/record/methods/tls_common.c
1443
ret = (*retrl)->funcs->set_crypto_state(*retrl, level, key, keylen, iv,
crypto/openssl/ssl/record/methods/tlsany_meth.c
18
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/rec_layer_s3.c
1246
unsigned char *key, size_t keylen,
crypto/openssl/ssl/record/rec_layer_s3.c
1423
secret, secretlen, key, keylen, iv,
crypto/openssl/ssl/record/record.h
177
unsigned char *key, size_t keylen,
crypto/openssl/ssl/s3_enc.c
128
key = &(p[n]);
crypto/openssl/ssl/s3_enc.c
136
key = &(p[n]);
crypto/openssl/ssl/s3_enc.c
150
NULL, 0, key, key_len, iv, iv_len, mac_secret,
crypto/openssl/ssl/s3_enc.c
95
unsigned char *key, *iv;
crypto/openssl/ssl/s3_lib.c
4112
*(STACK_OF(X509) **)parg = sc->cert->key->chain;
crypto/openssl/ssl/s3_lib.c
4135
sc->cert->key = sc->s3.tmp.cert;
crypto/openssl/ssl/s3_lib.c
4553
*(STACK_OF(X509) **)parg = ctx->cert->key->chain;
crypto/openssl/ssl/s3_lib.c
4576
*(STACK_OF(X509) **)parg = ctx->cert->key->chain;
crypto/openssl/ssl/ssl_cert.c
1069
CERT_PKEY *cpk = c->key;
crypto/openssl/ssl/ssl_cert.c
113
ret->key = &ret->pkeys[cert->key - cert->pkeys];
crypto/openssl/ssl/ssl_cert.c
302
CERT_PKEY *cpk = s != NULL ? s->cert->key : ctx->cert->key;
crypto/openssl/ssl/ssl_cert.c
339
CERT_PKEY *cpk = s ? s->cert->key : ctx->cert->key;
crypto/openssl/ssl/ssl_cert.c
375
c->key = cpk;
crypto/openssl/ssl/ssl_cert.c
383
c->key = cpk;
crypto/openssl/ssl/ssl_cert.c
399
idx = (size_t)(c->key - c->pkeys + 1);
crypto/openssl/ssl/ssl_cert.c
407
c->key = cpk;
crypto/openssl/ssl/ssl_cert.c
82
ret->key = &(ret->pkeys[SSL_PKEY_RSA]);
crypto/openssl/ssl/ssl_cert_comp.c
343
if (cert == NULL || cert->key == NULL)
crypto/openssl/ssl/ssl_cert_comp.c
351
OSSL_COMP_CERT_free(cert->key->comp_cert[algorithm]);
crypto/openssl/ssl/ssl_cert_comp.c
352
cert->key->comp_cert[algorithm] = comp_cert;
crypto/openssl/ssl/ssl_cert_comp.c
421
cpk = sc->cert->key;
crypto/openssl/ssl/ssl_cert_comp.c
423
cpk = ssl->ctx->cert->key;
crypto/openssl/ssl/ssl_cert_comp.c
437
ret = ssl_get_compressed_cert(new, ctx->cert->key, alg, data, orig_len);
crypto/openssl/ssl/ssl_conf.c
456
size_t fileidx = c->key - c->pkeys;
crypto/openssl/ssl/ssl_conf.c
461
char **pfilename = &cctx->cert_filename[c->key - c->pkeys];
crypto/openssl/ssl/ssl_lib.c
2060
if ((ctx == NULL) || (ctx->cert->key->x509 == NULL)) {
crypto/openssl/ssl/ssl_lib.c
2064
if (ctx->cert->key->privatekey == NULL) {
crypto/openssl/ssl/ssl_lib.c
2068
return X509_check_private_key(ctx->cert->key->x509, ctx->cert->key->privatekey);
crypto/openssl/ssl/ssl_lib.c
2080
if (sc->cert->key->x509 == NULL) {
crypto/openssl/ssl/ssl_lib.c
2084
if (sc->cert->key->privatekey == NULL) {
crypto/openssl/ssl/ssl_lib.c
2088
return X509_check_private_key(sc->cert->key->x509,
crypto/openssl/ssl/ssl_lib.c
2089
sc->cert->key->privatekey);
crypto/openssl/ssl/ssl_lib.c
5244
return sc->cert->key->x509;
crypto/openssl/ssl/ssl_lib.c
5257
return sc->cert->key->privatekey;
crypto/openssl/ssl/ssl_lib.c
5265
return ctx->cert->key->x509;
crypto/openssl/ssl/ssl_lib.c
5273
return ctx->cert->key->privatekey;
crypto/openssl/ssl/ssl_local.h
2086
CERT_PKEY *key;
crypto/openssl/ssl/ssl_local.h
2643
void *key);
crypto/openssl/ssl/ssl_local.h
2795
const unsigned char *secret, unsigned char *key,
crypto/openssl/ssl/ssl_local.h
3030
int ssl_hmac_old_init(SSL_HMAC *ctx, void *key, size_t len, char *md);
crypto/openssl/ssl/ssl_local.h
727
int ssl_hmac_init(SSL_HMAC *ctx, void *key, size_t len, char *md);
crypto/openssl/ssl/ssl_rsa.c
1081
c->key = &(c->pkeys[i]);
crypto/openssl/ssl/ssl_rsa.c
150
c->key = &c->pkeys[i];
crypto/openssl/ssl/ssl_rsa.c
306
c->key = &(c->pkeys[i]);
crypto/openssl/ssl/ssl_rsa.c
835
if (ctx->cert->key == NULL) {
crypto/openssl/ssl/ssl_rsa.c
839
new_serverinfo = OPENSSL_realloc(ctx->cert->key->serverinfo,
crypto/openssl/ssl/ssl_rsa.c
843
ctx->cert->key->serverinfo = new_serverinfo;
crypto/openssl/ssl/ssl_rsa.c
844
memcpy(ctx->cert->key->serverinfo, serverinfo, serverinfo_length);
crypto/openssl/ssl/ssl_rsa.c
845
ctx->cert->key->serverinfo_length = serverinfo_length;
crypto/openssl/ssl/statem/statem_clnt.c
3820
cpk = s->cert->key;
crypto/openssl/ssl/statem/statem_clnt.c
3890
if (!ssl3_output_cert_chain(sc, &tmppkt, sc->cert->key, 0)) {
crypto/openssl/ssl/statem/statem_srvr.c
2201
s->cert->key = s->s3.tmp.cert;
crypto/openssl/ssl/t1_enc.c
119
unsigned char *key, *iv;
crypto/openssl/ssl/t1_enc.c
155
key = &(p[n]);
crypto/openssl/ssl/t1_enc.c
163
key = &(p[n]);
crypto/openssl/ssl/t1_enc.c
237
NULL, 0, key, cl, iv, (size_t)k, mac_secret,
crypto/openssl/ssl/t1_enc.c
247
BIO_dump_indent(trc_out, key, EVP_CIPHER_get_key_length(c), 4);
crypto/openssl/ssl/t1_lib.c
2501
idx = s->cert->key - s->cert->pkeys;
crypto/openssl/ssl/t1_lib.c
4027
cpk = c->key;
crypto/openssl/ssl/t1_lib.c
4659
if (!s->server && !ssl_has_cert(s, s->cert->key - s->cert->pkeys))
crypto/openssl/ssl/t1_lib.c
4686
int cc_idx = s->cert->key - s->cert->pkeys;
crypto/openssl/ssl/t1_lib.c
4777
s->cert->key = s->s3.tmp.cert;
crypto/openssl/ssl/t1_lib.c
4865
int ssl_hmac_init(SSL_HMAC *ctx, void *key, size_t len, char *md)
crypto/openssl/ssl/t1_lib.c
4872
if (EVP_MAC_init(ctx->ctx, key, len, params))
crypto/openssl/ssl/t1_lib.c
4877
return ssl_hmac_old_init(ctx, key, len, md);
crypto/openssl/ssl/tls13_enc.c
124
unsigned char *key, size_t keylen)
crypto/openssl/ssl/tls13_enc.c
130
NULL, 0, key, keylen, 1);
crypto/openssl/ssl/tls13_enc.c
274
unsigned char *key = NULL;
crypto/openssl/ssl/tls13_enc.c
295
key = s->server_finished_secret;
crypto/openssl/ssl/tls13_enc.c
297
key = s->client_finished_secret;
crypto/openssl/ssl/tls13_enc.c
303
key = finsecret;
crypto/openssl/ssl/tls13_enc.c
307
params, key, hashlen, hash, hashlen,
crypto/openssl/ssl/tls13_enc.c
356
unsigned char *key, size_t *keylen,
crypto/openssl/ssl/tls13_enc.c
440
if (!tls13_derive_key(s, md, secret, key, *keylen)
crypto/openssl/ssl/tls13_enc.c
494
unsigned char key[EVP_MAX_KEY_LENGTH];
crypto/openssl/ssl/tls13_enc.c
696
insecret, hash, label, labellen, secret, key,
crypto/openssl/ssl/tls13_enc.c
749
level, secret, hashlen, key, keylen, iv,
crypto/openssl/ssl/tls13_enc.c
764
OPENSSL_cleanse(key, sizeof(key));
crypto/openssl/ssl/tls13_enc.c
777
unsigned char key[EVP_MAX_KEY_LENGTH];
crypto/openssl/ssl/tls13_enc.c
804
sizeof(application_traffic) - 1, secret, key,
crypto/openssl/ssl/tls13_enc.c
815
insecret, hashlen, key, keylen, iv, ivlen, NULL, 0,
crypto/openssl/ssl/tls13_enc.c
830
OPENSSL_cleanse(key, sizeof(key));
crypto/openssl/ssl/tls_depr.c
120
int ssl_hmac_old_init(SSL_HMAC *ctx, void *key, size_t len, char *md)
crypto/openssl/ssl/tls_depr.c
122
return HMAC_Init_ex(ctx->old_ctx, key, len, EVP_get_digestbyname(md), NULL);
crypto/openssl/ssl/tls_depr.c
176
void *key)
crypto/openssl/ssl/tls_depr.c
179
const EC_GROUP *group = EC_KEY_get0_group((const EC_KEY *)key);
crypto/openssl/test/acvp_test.c
1000
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
1005
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
1013
const unsigned char *key, size_t key_len,
crypto/openssl/test/acvp_test.c
1049
if (!TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, enc))
crypto/openssl/test/acvp_test.c
1112
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
1117
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
1123
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
1139
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
1144
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
1667
static const unsigned char key[] = {
crypto/openssl/test/acvp_test.c
1686
if (!TEST_int_gt(EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1), 0))
crypto/openssl/test/acvp_test.c
545
EVP_PKEY *param_key = NULL, *key = NULL;
crypto/openssl/test/acvp_test.c
552
|| !TEST_int_gt(EVP_PKEY_keygen(keygen_ctx, &key), 0))
crypto/openssl/test/acvp_test.c
557
return key;
crypto/openssl/test/acvp_test.c
564
EVP_PKEY *param_key = NULL, *key = NULL;
crypto/openssl/test/acvp_test.c
577
if (!TEST_int_gt(EVP_PKEY_keygen(keygen_ctx, &key), 0)
crypto/openssl/test/acvp_test.c
578
|| !TEST_true(pkey_get_bn_bytes(key, OSSL_PKEY_PARAM_PRIV_KEY,
crypto/openssl/test/acvp_test.c
580
|| !TEST_true(pkey_get_bn_bytes(key, OSSL_PKEY_PARAM_PUB_KEY,
crypto/openssl/test/acvp_test.c
585
EVP_PKEY_free(key);
crypto/openssl/test/acvp_test.c
588
key = NULL;
crypto/openssl/test/acvp_test.c
596
EVP_PKEY_free(key);
crypto/openssl/test/acvp_test.c
878
const unsigned char *key, size_t key_len,
crypto/openssl/test/acvp_test.c
891
|| !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc))
crypto/openssl/test/acvp_test.c
912
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
916
tst->key, tst->key_len,
crypto/openssl/test/acvp_test.c
923
const unsigned char *key, size_t key_len,
crypto/openssl/test/acvp_test.c
948
|| !TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, enc))
crypto/openssl/test/acvp_test.c
996
tst->key, tst->key_len,
crypto/openssl/test/afalgtest.c
37
static const unsigned char key[] = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b\x51\x2e\x03\xd5\x34\x12\x00\x06"
crypto/openssl/test/afalgtest.c
79
if (!TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1))
crypto/openssl/test/afalgtest.c
89
|| !TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 0))
crypto/openssl/test/bftest.c
298
BF_KEY key;
crypto/openssl/test/bftest.c
301
BF_set_key(&key, strlen(bf_key[n]), (unsigned char *)bf_key[n]);
crypto/openssl/test/bftest.c
305
BF_encrypt(data, &key);
crypto/openssl/test/bftest.c
309
BF_decrypt(&(data[0]), &key);
crypto/openssl/test/bftest.c
319
BF_KEY key;
crypto/openssl/test/bftest.c
322
BF_set_key(&key, 8, ecb_data[n]);
crypto/openssl/test/bftest.c
324
BF_ecb_encrypt(&(plain_data[n][0]), out, &key, BF_ENCRYPT);
crypto/openssl/test/bftest.c
328
BF_ecb_encrypt(out, out, &key, BF_DECRYPT);
crypto/openssl/test/bftest.c
338
BF_KEY key;
crypto/openssl/test/bftest.c
341
BF_set_key(&key, n + 1, key_test);
crypto/openssl/test/bftest.c
342
BF_ecb_encrypt(key_data, out, &key, BF_ENCRYPT);
crypto/openssl/test/bftest.c
354
BF_KEY key;
crypto/openssl/test/bftest.c
359
BF_set_key(&key, 16, cbc_key);
crypto/openssl/test/bftest.c
364
&key, iv, BF_ENCRYPT);
crypto/openssl/test/bftest.c
369
BF_cbc_encrypt(cbc_out, cbc_in, len, &key, iv, BF_DECRYPT);
crypto/openssl/test/bftest.c
380
BF_KEY key;
crypto/openssl/test/bftest.c
385
BF_set_key(&key, 16, cbc_key);
crypto/openssl/test/bftest.c
391
&key, iv, &n, BF_ENCRYPT);
crypto/openssl/test/bftest.c
393
len - 13, &key, iv, &n, BF_ENCRYPT);
crypto/openssl/test/bftest.c
399
BF_cfb64_encrypt(cbc_out, cbc_in, 17, &key, iv, &n, BF_DECRYPT);
crypto/openssl/test/bftest.c
401
&key, iv, &n, BF_DECRYPT);
crypto/openssl/test/bftest.c
412
BF_KEY key;
crypto/openssl/test/bftest.c
417
BF_set_key(&key, 16, cbc_key);
crypto/openssl/test/bftest.c
422
BF_ofb64_encrypt((unsigned char *)cbc_data, cbc_out, (long)13, &key, iv,
crypto/openssl/test/bftest.c
425
len - 13, &key, iv, &n);
crypto/openssl/test/bftest.c
431
BF_ofb64_encrypt(cbc_out, cbc_in, 17, &key, iv, &n);
crypto/openssl/test/bftest.c
432
BF_ofb64_encrypt(&(cbc_out[17]), &(cbc_in[17]), len - 17, &key, iv, &n);
crypto/openssl/test/bio_dgram_test.c
456
static int random_data(const uint32_t *key, uint8_t *data, size_t data_len, size_t offset)
crypto/openssl/test/bio_dgram_test.c
474
if (EVP_EncryptInit_ex2(ctx, cipher, (uint8_t *)key, (uint8_t *)counter, NULL) == 0)
crypto/openssl/test/bio_dgram_test.c
498
uint32_t key[8];
crypto/openssl/test/bio_dgram_test.c
514
for (i = 0; i < OSSL_NELEM(key); ++i)
crypto/openssl/test/bio_dgram_test.c
515
key[i] = test_random();
crypto/openssl/test/bio_dgram_test.c
552
if (!TEST_int_eq(random_data(key, scratch, sizeof(scratch), i), 1))
crypto/openssl/test/bio_dgram_test.c
585
if (!TEST_int_eq(random_data(key, scratch, sizeof(scratch), i), 1))
crypto/openssl/test/bio_dgram_test.c
602
if (!TEST_int_eq(random_data(key, scratch, sizeof(scratch), 0), 1))
crypto/openssl/test/bio_enc_test.c
109
if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT))) {
crypto/openssl/test/bio_enc_test.c
135
if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT)))
crypto/openssl/test/bio_enc_test.c
165
if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT))) {
crypto/openssl/test/bio_enc_test.c
197
if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT))) {
crypto/openssl/test/bio_enc_test.c
38
static int do_bio_cipher(const EVP_CIPHER *cipher, const unsigned char *key,
crypto/openssl/test/bio_enc_test.c
56
if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT)))
crypto/openssl/test/bio_enc_test.c
70
if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT))) {
crypto/openssl/test/bntest.c
58
static const char *findattr(STANZA *s, const char *key)
crypto/openssl/test/bntest.c
64
if (OPENSSL_strcasecmp(pp->key, key) == 0)
crypto/openssl/test/casttest.c
100
CAST_ecb_encrypt(&(out_b[0]), &(out_b[0]), &key, CAST_ENCRYPT);
crypto/openssl/test/casttest.c
101
CAST_ecb_encrypt(&(out_b[8]), &(out_b[8]), &key, CAST_ENCRYPT);
crypto/openssl/test/casttest.c
67
CAST_KEY key;
crypto/openssl/test/casttest.c
70
CAST_set_key(&key, k_len[z], k);
crypto/openssl/test/casttest.c
71
CAST_ecb_encrypt(in, out, &key, CAST_ENCRYPT);
crypto/openssl/test/casttest.c
77
CAST_ecb_encrypt(out, out, &key, CAST_DECRYPT);
crypto/openssl/test/casttest.c
89
CAST_KEY key, key_b;
crypto/openssl/test/casttest.c
99
CAST_set_key(&key, 16, out_a);
crypto/openssl/test/cert_comp_test.c
216
if (!TEST_int_eq(sc->cert->key->cert_comp_used, 0))
crypto/openssl/test/cert_comp_test.c
224
if (!TEST_int_gt(sc->cert->key->cert_comp_used, 0))
crypto/openssl/test/chacha_internal_test.c
168
ChaCha20_ctr32(buf, buf, i, key, ivp);
crypto/openssl/test/chacha_internal_test.c
20
static const unsigned int key[] = {
crypto/openssl/test/cmactest.c
127
|| !TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, NULL, NULL))
crypto/openssl/test/cmactest.c
170
if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len,
crypto/openssl/test/cmactest.c
180
if (!TEST_true(CMAC_Init(ctx, test[1].key, test[1].key_len,
crypto/openssl/test/cmactest.c
190
if (!TEST_true(CMAC_Init(ctx, test[2].key, test[2].key_len, NULL, NULL))
crypto/openssl/test/cmactest.c
208
|| !TEST_true(CMAC_Init(ctx, test[2].key, test[2].key_len, NULL, NULL))
crypto/openssl/test/cmactest.c
217
if (!TEST_true(CMAC_Init(ctx, test[3].key, test[3].key_len,
crypto/openssl/test/cmactest.c
226
if (!TEST_true(CMAC_Init(ctx, test[4].key, test[4].key_len,
crypto/openssl/test/cmactest.c
235
if (!TEST_true(CMAC_Init(ctx, test[5].key, test[5].key_len,
crypto/openssl/test/cmactest.c
245
if (!TEST_true(CMAC_Init(ctx, test[6].key, test[6].key_len,
crypto/openssl/test/cmactest.c
256
if (!TEST_true(CMAC_Init(ctx, test[7].key, test[7].key_len,
crypto/openssl/test/cmactest.c
285
if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len,
crypto/openssl/test/cmactest.c
35
const char key[32];
crypto/openssl/test/cmp_client_test.c
304
EVP_PKEY *key = raverified /* wrong key */ ? server_key : client_key;
crypto/openssl/test/cmp_client_test.c
306
if (!EVP_PKEY_up_ref(key))
crypto/openssl/test/cmp_client_test.c
309
OSSL_CMP_CTX_set0_newPkey(fixture->cmp_ctx, 0 /* not priv */, key);
crypto/openssl/test/cmsapitest.c
391
unsigned char key[32] = { 0 };
crypto/openssl/test/cmsapitest.c
398
key, 32)))
crypto/openssl/test/cmsapitest.c
402
key, 16)))
crypto/openssl/test/cmsapitest.c
415
uint8_t key[16] = { 0 };
crypto/openssl/test/cmsapitest.c
422
cms = CMS_EncryptedData_encrypt(msgbio, EVP_aes_128_cbc(), key, keylen, SMIME_BINARY);
crypto/openssl/test/cmsapitest.c
426
if (!TEST_true(CMS_EncryptedData_decrypt(cms, key, keylen, NULL, decryptbio, SMIME_BINARY)))
crypto/openssl/test/cmsapitest.c
446
uint8_t key[16] = { 0 };
crypto/openssl/test/cmsapitest.c
460
if (!TEST_false(CMS_EncryptedData_set1_key(cms, EVP_aes_128_gcm(), key, keylen)))
crypto/openssl/test/cmsapitest.c
470
cms = CMS_EncryptedData_encrypt(msgbio, EVP_aes_128_gcm(), key, keylen, SMIME_BINARY);
crypto/openssl/test/destest.c
815
unsigned char in[100], c_txt[200], p_txt[200], key[24];
crypto/openssl/test/destest.c
825
|| !TEST_size_t_eq(bs * 3u, sizeof(key))
crypto/openssl/test/destest.c
835
memcpy(key, cbc_key, sizeof(cbc_key));
crypto/openssl/test/destest.c
836
memcpy(key + sizeof(cbc_key), cbc2_key, sizeof(cbc2_key));
crypto/openssl/test/destest.c
837
memcpy(key + sizeof(cbc_key) + sizeof(cbc3_key), cbc_key, sizeof(cbc3_key));
crypto/openssl/test/destest.c
841
if (!TEST_true(EVP_EncryptInit(ctx, cipher, key, NULL))
crypto/openssl/test/destest.c
858
if (!TEST_true(EVP_DecryptInit(ctx, cipher, key, NULL))
crypto/openssl/test/destest.c
885
const DES_cblock key;
crypto/openssl/test/destest.c
912
const_DES_cblock *key = (unsigned char (*)[8])weak_keys[n].key;
crypto/openssl/test/destest.c
914
return TEST_int_eq(DES_is_weak_key(key), weak_keys[n].expect);
crypto/openssl/test/destest.c
918
const DES_cblock key;
crypto/openssl/test/destest.c
938
const_DES_cblock *key = (unsigned char (*)[8])bad_parity_keys[n].key;
crypto/openssl/test/destest.c
940
return TEST_int_eq(DES_check_key_parity(key), bad_parity_keys[n].expect);
crypto/openssl/test/destest.c
949
unsigned char key[16];
crypto/openssl/test/destest.c
954
|| !EVP_CIPHER_CTX_set_key_length(ctx, sizeof(key))
crypto/openssl/test/destest.c
955
|| !EVP_CIPHER_CTX_rand_key(ctx, key))
crypto/openssl/test/dsatest.c
298
EVP_PKEY *param_key = NULL, *key = NULL;
crypto/openssl/test/dsatest.c
410
|| !TEST_int_gt(EVP_PKEY_generate(kg_ctx, &key), 0))
crypto/openssl/test/dsatest.c
413
if (!TEST_true(EVP_PKEY_get_bn_param(key, OSSL_PKEY_PARAM_FFC_P, &p_out))
crypto/openssl/test/dsatest.c
415
|| !TEST_true(EVP_PKEY_get_bn_param(key, OSSL_PKEY_PARAM_FFC_Q, &q_out))
crypto/openssl/test/dsatest.c
417
|| !TEST_true(EVP_PKEY_get_bn_param(key, OSSL_PKEY_PARAM_FFC_G, &g_out))
crypto/openssl/test/dsatest.c
420
key, OSSL_PKEY_PARAM_FFC_SEED, seed_out,
crypto/openssl/test/dsatest.c
423
|| !TEST_true(EVP_PKEY_get_int_param(key, OSSL_PKEY_PARAM_FFC_GINDEX,
crypto/openssl/test/dsatest.c
426
|| !TEST_true(EVP_PKEY_get_int_param(key, OSSL_PKEY_PARAM_FFC_H,
crypto/openssl/test/dsatest.c
429
|| !TEST_true(EVP_PKEY_get_int_param(key,
crypto/openssl/test/dsatest.c
433
|| !TEST_false(EVP_PKEY_get_utf8_string_param(key,
crypto/openssl/test/dsatest.c
447
EVP_PKEY_free(key);
crypto/openssl/test/ec_internal_test.c
311
EC_KEY *key = NULL, *aux_key = NULL;
crypto/openssl/test/ec_internal_test.c
314
key = EC_KEY_new_by_curve_name(NID_secp224r1);
crypto/openssl/test/ec_internal_test.c
316
if (!TEST_ptr(key)
crypto/openssl/test/ec_internal_test.c
318
|| !TEST_int_eq(EC_KEY_generate_key(key), 1)
crypto/openssl/test/ec_internal_test.c
323
if (!TEST_int_eq(EC_KEY_set_private_key(key, aux_key->priv_key), 1))
crypto/openssl/test/ec_internal_test.c
327
if (!TEST_int_eq(EC_KEY_set_private_key(key, NULL), 0)
crypto/openssl/test/ec_internal_test.c
328
|| !TEST_ptr_null(key->priv_key))
crypto/openssl/test/ec_internal_test.c
334
EC_KEY_free(key);
crypto/openssl/test/ec_internal_test.c
348
EC_KEY *key = NULL;
crypto/openssl/test/ec_internal_test.c
382
|| !TEST_ptr(key = EC_KEY_new())
crypto/openssl/test/ec_internal_test.c
384
|| !TEST_int_eq(EC_KEY_decoded_from_explicit_params(key), -1)
crypto/openssl/test/ec_internal_test.c
385
|| !TEST_int_eq(EC_KEY_set_group(key, grp_copy), 1)
crypto/openssl/test/ec_internal_test.c
387
|| !TEST_int_eq(EC_KEY_decoded_from_explicit_params(key), 0))
crypto/openssl/test/ec_internal_test.c
421
|| !TEST_int_eq(EC_KEY_set_group(key, grp_copy), 1)
crypto/openssl/test/ec_internal_test.c
423
|| !TEST_int_eq(EC_KEY_decoded_from_explicit_params(key), 1))
crypto/openssl/test/ec_internal_test.c
429
EC_KEY_free(key);
crypto/openssl/test/ecdsatest.c
111
|| !TEST_ptr(key = EC_KEY_new_by_curve_name(nid))
crypto/openssl/test/ecdsatest.c
121
if (!TEST_true(EC_KEY_generate_key(key))
crypto/openssl/test/ecdsatest.c
122
|| !TEST_true(p_len = EC_KEY_key2buf(key, POINT_CONVERSION_UNCOMPRESSED,
crypto/openssl/test/ecdsatest.c
131
if (!TEST_true(ECDSA_sign_setup(key, NULL, &kinv, &rp))
crypto/openssl/test/ecdsatest.c
133
kinv, rp, key))
crypto/openssl/test/ecdsatest.c
135
|| !TEST_int_eq(ECDSA_do_verify(digest, dgst_len, signature, key), 1))
crypto/openssl/test/ecdsatest.c
150
EC_KEY_free(key);
crypto/openssl/test/ecdsatest.c
83
EC_KEY *key = NULL;
crypto/openssl/test/ectest.c
2732
EC_KEY *key = NULL;
crypto/openssl/test/ectest.c
2736
|| !TEST_ptr(key = EC_KEY_new_by_curve_name(curves[id].nid))
crypto/openssl/test/ectest.c
2737
|| !TEST_ptr(group = EC_KEY_get0_group(key))
crypto/openssl/test/ectest.c
2739
|| !TEST_int_gt(EC_KEY_generate_key(key), 0)
crypto/openssl/test/ectest.c
2740
|| !TEST_int_gt(EC_KEY_check_key(key), 0)
crypto/openssl/test/ectest.c
2741
|| !TEST_ptr(pub = EC_KEY_get0_public_key(key))
crypto/openssl/test/ectest.c
2768
if (!TEST_int_le(EC_KEY_set_public_key_affine_coordinates(key, x, y), 0))
crypto/openssl/test/ectest.c
2775
EC_KEY_free(key);
crypto/openssl/test/endecode_test.c
1324
EVP_PKEY *key = NULL;
crypto/openssl/test/endecode_test.c
1328
ret = TEST_ptr(key = EVP_PKEY_Q_keygen(testctx, "", "EC", "P-256"))
crypto/openssl/test/endecode_test.c
1329
&& TEST_ptr(ectx = OSSL_ENCODER_CTX_new_for_pkey(key, EVP_PKEY_KEYPAIR,
crypto/openssl/test/endecode_test.c
1334
EVP_PKEY_free(key);
crypto/openssl/test/endecode_test.c
554
static int test_unprotected_via_DER(const char *type, EVP_PKEY *key, int fips)
crypto/openssl/test/endecode_test.c
556
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
575
static int test_unprotected_via_PEM(const char *type, EVP_PKEY *key, int fips)
crypto/openssl/test/endecode_test.c
577
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
626
static int test_params_via_DER(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
628
return test_encode_decode(__FILE__, __LINE__, type, key, OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS,
crypto/openssl/test/endecode_test.c
635
static int test_params_via_PEM(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
637
return test_encode_decode(__FILE__, __LINE__, type, key, OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS,
crypto/openssl/test/endecode_test.c
658
static int test_unprotected_via_legacy_PEM(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
663
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
683
static int test_unprotected_via_MSBLOB(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
685
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
704
static int test_unprotected_via_PVK(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
706
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
730
static int test_protected_via_DER(const char *type, EVP_PKEY *key, int fips)
crypto/openssl/test/endecode_test.c
732
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
752
static int test_protected_via_PEM(const char *type, EVP_PKEY *key, int fips)
crypto/openssl/test/endecode_test.c
754
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
778
static int test_protected_via_legacy_PEM(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
783
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
793
static int test_protected_via_PVK(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
800
ret = test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
822
static int test_public_via_DER(const char *type, EVP_PKEY *key, int fips)
crypto/openssl/test/endecode_test.c
824
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
842
static int test_public_via_PEM(const char *type, EVP_PKEY *key, int fips)
crypto/openssl/test/endecode_test.c
844
return test_encode_decode(__FILE__, __LINE__, type, key,
crypto/openssl/test/endecode_test.c
865
static int test_public_via_MSBLOB(const char *type, EVP_PKEY *key)
crypto/openssl/test/endecode_test.c
867
return test_encode_decode(__FILE__, __LINE__, type, key, OSSL_KEYMGMT_SELECT_PUBLIC_KEY | OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS,
crypto/openssl/test/endecoder_legacy_test.c
225
EVP_PKEY *key;
crypto/openssl/test/endecoder_legacy_test.c
253
|| (gen_template_params[0].key != NULL
crypto/openssl/test/endecoder_legacy_test.c
504
struct key_st *key = NULL;
crypto/openssl/test/endecoder_legacy_test.c
512
|| !TEST_ptr(key = lookup_key(test_stanza->keytype)))
crypto/openssl/test/endecoder_legacy_test.c
516
if (!TEST_ptr(pkey = key->key)
crypto/openssl/test/endecoder_legacy_test.c
519
|| !TEST_int_eq(EVP_PKEY_get_id(downgraded_pkey), key->evp_type)
crypto/openssl/test/endecoder_legacy_test.c
534
if (!test_protected_PEM(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
553
if (!test_unprotected_PEM(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
571
if (!test_unprotected_PEM(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
589
if (!test_unprotected_PEM(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
606
if (!test_DER(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
625
if (!test_DER(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
643
if (!test_DER(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
659
if (!test_DER(key->keytype, key->evp_type, legacy_obj,
crypto/openssl/test/endecoder_legacy_test.c
691
if (!TEST_ptr(keys[i].key = load_pkey_pem(test_get_argument(1), NULL)))
crypto/openssl/test/endecoder_legacy_test.c
698
if (!TEST_ptr(keys[i].key = load_pkey_pem(test_get_argument(0), NULL)))
crypto/openssl/test/endecoder_legacy_test.c
704
if (!TEST_ptr(keys[i].key = make_key(keys[i].keytype, keys[i].template_params)))
crypto/openssl/test/endecoder_legacy_test.c
719
EVP_PKEY_free(keys[i].key);
crypto/openssl/test/evp_extra_test.c
2101
unsigned char key[16];
crypto/openssl/test/evp_extra_test.c
2116
memset(key, 1, 16);
crypto/openssl/test/evp_extra_test.c
2118
key, 16)))
crypto/openssl/test/evp_extra_test.c
2466
EVP_PKEY *params = NULL, *key = NULL;
crypto/openssl/test/evp_extra_test.c
2485
|| !TEST_true(EVP_PKEY_keygen(kctx, &key))
crypto/openssl/test/evp_extra_test.c
2486
|| !TEST_ptr(key))
crypto/openssl/test/evp_extra_test.c
2490
if (!TEST_true(evp_keymgmt_util_export(key, OSSL_KEYMGMT_SELECT_ALL,
crypto/openssl/test/evp_extra_test.c
2497
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test.c
3401
static unsigned char key[] = {
crypto/openssl/test/evp_extra_test.c
3431
sizeof(key), (void *)key),
crypto/openssl/test/evp_extra_test.c
3445
pkey = EVP_PKEY_new_CMAC_key(NULL, key, sizeof(key), EVP_aes_256_cbc());
crypto/openssl/test/evp_extra_test.c
3468
unsigned char key[] = "012345678901234567890123456789";
crypto/openssl/test/evp_extra_test.c
3489
|| !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_key(pctx, key,
crypto/openssl/test/evp_extra_test.c
3490
sizeof(key) - 1),
crypto/openssl/test/evp_extra_test.c
3515
unsigned char key[] = "";
crypto/openssl/test/evp_extra_test.c
3534
|| !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_key(pctx, key,
crypto/openssl/test/evp_extra_test.c
3535
sizeof(key) - 1),
crypto/openssl/test/evp_extra_test.c
3560
unsigned char key[] = "012345678901234567890123456789";
crypto/openssl/test/evp_extra_test.c
3582
|| !TEST_int_gt(EVP_PKEY_CTX_set1_hkdf_key(pctx, key,
crypto/openssl/test/evp_extra_test.c
3583
sizeof(key) - 1),
crypto/openssl/test/evp_extra_test.c
3753
|| !TEST_int_eq(strcmp(params[0].key, OSSL_DIGEST_PARAM_SSL3_MS), 0)
crypto/openssl/test/evp_extra_test.c
3755
|| !TEST_ptr_null(params[1].key))
crypto/openssl/test/evp_extra_test.c
3897
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test.c
3903
if (!TEST_ptr(key = load_example_rsa_key())
crypto/openssl/test/evp_extra_test.c
3904
|| !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(0, key, 0)))
crypto/openssl/test/evp_extra_test.c
3943
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test.c
3953
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test.c
3956
if (!TEST_ptr(key = load_example_rsa_key())
crypto/openssl/test/evp_extra_test.c
3957
|| !TEST_ptr(key_ctx = EVP_PKEY_CTX_new_from_pkey(testctx, key, NULL))
crypto/openssl/test/evp_extra_test.c
3973
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test.c
4090
const unsigned char key[32] = {
crypto/openssl/test/evp_extra_test.c
4109
key, iv))
crypto/openssl/test/evp_extra_test.c
4126
if (!TEST_true(EVP_DecryptInit_ex(ctx, cipher, NULL, key, iv))
crypto/openssl/test/evp_extra_test.c
4386
unsigned char key[16] = {
crypto/openssl/test/evp_extra_test.c
4496
|| !TEST_true(EVP_EncryptInit_ex(ctx, type, NULL, key, init_iv))
crypto/openssl/test/evp_extra_test.c
4537
static const unsigned char key[24] = {
crypto/openssl/test/evp_extra_test.c
4613
|| !TEST_true(EVP_EncryptInit_ex(ctx, type, NULL, key, init_iv))
crypto/openssl/test/evp_extra_test.c
4854
const unsigned char *key;
crypto/openssl/test/evp_extra_test.c
4964
if (t->keyfirst && !TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, t->key, NULL, -1))) {
crypto/openssl/test/evp_extra_test.c
4972
if (t->keyfirst == 0 && !TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, t->key, NULL, -1))) {
crypto/openssl/test/evp_extra_test.c
5037
|| !TEST_true(EVP_CipherInit_ex2(ctx, type, t->key, t->iv, t->initenc, NULL))
crypto/openssl/test/evp_extra_test.c
5429
static const unsigned char key[] = {
crypto/openssl/test/evp_extra_test.c
5448
if (!TEST_true(EVP_CipherInit_ex(ctx, ciph, NULL, key, NULL, 1)))
crypto/openssl/test/evp_extra_test.c
5519
static int custom_pmeth_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
crypto/openssl/test/evp_extra_test.c
5522
int (*pderive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen);
crypto/openssl/test/evp_extra_test.c
5525
return pderive(ctx, key, keylen);
crypto/openssl/test/evp_extra_test.c
5852
static int custom_ciph_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
crypto/openssl/test/evp_extra_test.c
6504
unsigned char key[5];
crypto/openssl/test/evp_extra_test.c
6524
return rc4_encrypt(rc4_key.key, sizeof(rc4_key.key),
crypto/openssl/test/evp_extra_test.c
6526
&& rc4_decrypt(rc4_key.key, sizeof(rc4_key.key),
crypto/openssl/test/evp_extra_test.c
6554
unsigned char key[16] = { 0 };
crypto/openssl/test/evp_extra_test.c
6567
if (!TEST_int_eq(EVP_EncryptInit_ex2(ctx, cipher, key, iv, NULL), 1))
crypto/openssl/test/evp_extra_test.c
6575
if (!TEST_int_eq(EVP_DecryptInit_ex2(ctx, cipher, key, iv, NULL), 1))
crypto/openssl/test/evp_extra_test.c
6596
unsigned char key[32];
crypto/openssl/test/evp_extra_test.c
6620
memset(key, 0x01, sizeof(key));
crypto/openssl/test/evp_extra_test.c
6628
key, keylen,
crypto/openssl/test/evp_extra_test.c
6671
key, keylen, numpipes,
crypto/openssl/test/evp_extra_test.c
6706
if (!TEST_true(EVP_EncryptInit(ctx, cipher, key, iv_array[i]))
crypto/openssl/test/evp_extra_test.c
6740
key, keylen, numpipes,
crypto/openssl/test/evp_extra_test.c
984
unsigned char key[] = {
crypto/openssl/test/evp_extra_test.c
991
NULL, key, sizeof(key));
crypto/openssl/test/evp_extra_test2.c
1521
static int pkey_has_private(EVP_PKEY *key, const char *privtag,
crypto/openssl/test/evp_extra_test2.c
1529
ret = EVP_PKEY_get_octet_string_param(key, privtag, buf, sizeof(buf),
crypto/openssl/test/evp_extra_test2.c
1534
ret = EVP_PKEY_get_bn_param(key, privtag, &bn);
crypto/openssl/test/evp_extra_test2.c
1540
static int do_pkey_tofrom_data_select(EVP_PKEY *key, const char *keytype)
crypto/openssl/test/evp_extra_test2.c
1553
if (!TEST_int_eq(EVP_PKEY_todata(key, EVP_PKEY_PUBLIC_KEY, &pub_params), 1)
crypto/openssl/test/evp_extra_test2.c
1560
if (!TEST_int_eq(EVP_PKEY_todata(key, EVP_PKEY_KEYPAIR, &keypair_params), 1)
crypto/openssl/test/evp_extra_test2.c
1599
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test2.c
1611
&& TEST_int_gt(EVP_PKEY_generate(gctx, &key), 0)
crypto/openssl/test/evp_extra_test2.c
1612
&& TEST_true(do_pkey_tofrom_data_select(key, "DHX"));
crypto/openssl/test/evp_extra_test2.c
1614
ret = ret && TEST_ptr(dhkey = EVP_PKEY_get0_DH(key))
crypto/openssl/test/evp_extra_test2.c
1618
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test2.c
1715
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test2.c
1722
if (TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "XOR")))
crypto/openssl/test/evp_extra_test2.c
1730
if (!TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "XOR")))
crypto/openssl/test/evp_extra_test2.c
1733
if (!TEST_ptr(ctx = EVP_PKEY_CTX_new(key, NULL))
crypto/openssl/test/evp_extra_test2.c
1753
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test2.c
1763
EVP_PKEY *key = NULL, *outkey = NULL;
crypto/openssl/test/evp_extra_test2.c
1767
|| !TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "EC", "P-256"))
crypto/openssl/test/evp_extra_test2.c
1768
|| !TEST_true(i2d_PUBKEY_fp(fp, key))
crypto/openssl/test/evp_extra_test2.c
1775
|| !TEST_int_eq(EVP_PKEY_eq(key, outkey), 1))
crypto/openssl/test/evp_extra_test2.c
1782
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test2.c
1790
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test2.c
1792
ret = TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "EC", "P-256"))
crypto/openssl/test/evp_extra_test2.c
1793
&& TEST_true(do_pkey_tofrom_data_select(key, "EC"));
crypto/openssl/test/evp_extra_test2.c
1794
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test2.c
1802
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test2.c
1804
ret = TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "X25519"))
crypto/openssl/test/evp_extra_test2.c
1805
&& TEST_true(do_pkey_tofrom_data_select(key, "X25519"));
crypto/openssl/test/evp_extra_test2.c
1806
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test2.c
1816
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test2.c
1818
ret = TEST_ptr(key = EVP_PKEY_Q_keygen(mainctx, NULL, "SM2"))
crypto/openssl/test/evp_extra_test2.c
1819
&& TEST_true(do_pkey_tofrom_data_select(key, "SM2"));
crypto/openssl/test/evp_extra_test2.c
1820
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test2.c
1828
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test2.c
1832
ret = TEST_ptr(key = d2i_AutoPrivateKey_ex(NULL, &pdata, pdata_len,
crypto/openssl/test/evp_extra_test2.c
1834
&& TEST_true(do_pkey_tofrom_data_select(key, "RSA"));
crypto/openssl/test/evp_extra_test2.c
1835
EVP_PKEY_free(key);
crypto/openssl/test/evp_extra_test2.c
3083
static int do_check_bn(OSSL_PARAM params[], const char *key,
crypto/openssl/test/evp_extra_test2.c
3091
ret = TEST_ptr(p = OSSL_PARAM_locate(params, key))
crypto/openssl/test/evp_extra_test2.c
3099
static int do_check_int(OSSL_PARAM params[], const char *key, int expected)
crypto/openssl/test/evp_extra_test2.c
3104
return TEST_ptr(p = OSSL_PARAM_locate(params, key))
crypto/openssl/test/evp_extra_test2.c
3112
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_extra_test2.c
3115
ret = TEST_ptr(key = d2i_AutoPrivateKey_ex(NULL, &pkeydata, sizeof(dsa_key),
crypto/openssl/test/evp_extra_test2.c
3117
&& TEST_true(do_pkey_tofrom_data_select(key, "DSA"));
crypto/openssl/test/evp_extra_test2.c
3119
EVP_PKEY_free(key);
crypto/openssl/test/evp_fetch_prov_test.c
267
unsigned char key[128 / 8];
crypto/openssl/test/evp_fetch_prov_test.c
270
memset(key, 0, sizeof(key));
crypto/openssl/test/evp_fetch_prov_test.c
272
|| !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, key, NULL, 1))
crypto/openssl/test/evp_fetch_prov_test.c
275
|| !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, key, NULL, 0))
crypto/openssl/test/evp_kdf_test.c
1253
static OSSL_PARAM *construct_kbkdf_params(char *digest, char *mac, unsigned char *key,
crypto/openssl/test/evp_kdf_test.c
1269
OSSL_KDF_PARAM_KEY, key, keylen);
crypto/openssl/test/evp_kdf_test.c
1287
static unsigned char key[] = { 0x01 };
crypto/openssl/test/evp_kdf_test.c
1290
params = construct_kbkdf_params("blah", "HMAC", key, 1, "prf", "test", &r);
crypto/openssl/test/evp_kdf_test.c
1310
static unsigned char key[] = { 0x01 };
crypto/openssl/test/evp_kdf_test.c
1313
params = construct_kbkdf_params("sha256", "blah", key, 1, "prf", "test", &r);
crypto/openssl/test/evp_kdf_test.c
1333
static unsigned char key[] = { 0x01 };
crypto/openssl/test/evp_kdf_test.c
1336
params = construct_kbkdf_params("sha256", "HMAC", key, 1, "prf", "test", &r);
crypto/openssl/test/evp_kdf_test.c
1356
static unsigned char key[] = { 0x01 };
crypto/openssl/test/evp_kdf_test.c
1360
params = construct_kbkdf_params("sha256", "HMAC", key, 0, "prf", "test", &r);
crypto/openssl/test/evp_kdf_test.c
1381
static unsigned char key[] = { 0x01 };
crypto/openssl/test/evp_kdf_test.c
1385
params = construct_kbkdf_params("sha256", "HMAC", key, 1, "prf", "test", &r);
crypto/openssl/test/evp_kdf_test.c
1404
static unsigned char key[] = { 0x01 };
crypto/openssl/test/evp_kdf_test.c
1408
params = construct_kbkdf_params("sha256", "HMAC", key, 1, "prf", "test", &r);
crypto/openssl/test/evp_kdf_test.c
192
static OSSL_PARAM *construct_hkdf_params(char *digest, char *key,
crypto/openssl/test/evp_kdf_test.c
2012
static unsigned char key[] = {
crypto/openssl/test/evp_kdf_test.c
2042
*p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY, key,
crypto/openssl/test/evp_kdf_test.c
2043
sizeof(key));
crypto/openssl/test/evp_kdf_test.c
207
(unsigned char *)key, keylen);
crypto/openssl/test/evp_kdf_test.c
2153
static unsigned char key[] = {
crypto/openssl/test/evp_kdf_test.c
2167
*p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY, key,
crypto/openssl/test/evp_kdf_test.c
2168
sizeof(key));
crypto/openssl/test/evp_kdf_test.c
2204
for (i = 0; settableparams[i].key != NULL; ++i) {
crypto/openssl/test/evp_kdf_test.c
2206
if (OPENSSL_strcasecmp(settableparams[i].key,
crypto/openssl/test/evp_kdf_test.c
2209
TEST_note("Testing set int into %s fails", settableparams[i].key);
crypto/openssl/test/evp_kdf_test.c
2210
params[0] = OSSL_PARAM_construct_int(settableparams[i].key, &j);
crypto/openssl/test/evp_kdf_test.c
2272
for (i = 0; gettableparams[i].key != NULL; ++i) {
crypto/openssl/test/evp_kdf_test.c
2273
params[0] = OSSL_PARAM_construct_int(gettableparams[i].key, &j);
crypto/openssl/test/evp_kdf_test.c
2278
for (i = 0; gettableparams[i].key != NULL; ++i) {
crypto/openssl/test/evp_kdf_test.c
2279
params[0] = OSSL_PARAM_construct_utf8_string(gettableparams[i].key,
crypto/openssl/test/evp_kdf_test.c
2298
static /* const */ unsigned char key[] = {
crypto/openssl/test/evp_kdf_test.c
2334
key, sizeof(key));
crypto/openssl/test/evp_kdf_test.c
365
static int do_kdf_hkdf_set_invalid_param(const char *key, int type)
crypto/openssl/test/evp_kdf_test.c
376
params[0] = OSSL_PARAM_construct_utf8_string(key, "BAD", 0);
crypto/openssl/test/evp_kdf_test.c
378
params[0] = OSSL_PARAM_construct_octet_string(key, buf, sizeof(buf));
crypto/openssl/test/evp_libctx_test.c
361
unsigned char key[64] = {
crypto/openssl/test/evp_libctx_test.c
460
if (!TEST_true(EVP_EncryptInit_ex(ctx, cipher, NULL, key, iv))
crypto/openssl/test/evp_libctx_test.c
462
|| !TEST_true(EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv))
crypto/openssl/test/evp_libctx_test.c
539
static const unsigned char key[64] = {
crypto/openssl/test/evp_libctx_test.c
639
if (!TEST_true(EVP_EncryptInit_ex(ctx, cipher, NULL, key, iv))
crypto/openssl/test/evp_libctx_test.c
641
|| !TEST_true(EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv))
crypto/openssl/test/evp_libctx_test.c
790
unsigned char key[24] = { 0 };
crypto/openssl/test/evp_libctx_test.c
803
&& TEST_int_gt(EVP_CIPHER_CTX_rand_key(ctx, key), 0);
crypto/openssl/test/evp_libctx_test.c
914
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_libctx_test.c
917
if (!TEST_ptr(key = gen_dh_key()))
crypto/openssl/test/evp_libctx_test.c
920
if (!TEST_ptr(sctx = EVP_PKEY_CTX_new_from_pkey(libctx, key, NULL)))
crypto/openssl/test/evp_libctx_test.c
927
EVP_PKEY_free(key);
crypto/openssl/test/evp_pkey_dhkem_test.c
297
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_pkey_dhkem_test.c
307
ret = TEST_ptr(key = new_raw_private_key(t->curve, t->rpriv, t->rprivlen,
crypto/openssl/test/evp_pkey_dhkem_test.c
309
&& TEST_ptr(keyctx = EVP_PKEY_CTX_new_from_pkey(libctx, key, NULL))
crypto/openssl/test/evp_pkey_dhkem_test.c
320
&& TEST_int_eq(EVP_PKEY_auth_encapsulate_init(ctx, key, opparam), 1)
crypto/openssl/test/evp_pkey_dhkem_test.c
323
EVP_PKEY_free(key);
crypto/openssl/test/evp_pkey_dhkem_test.c
588
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_pkey_dhkem_test.c
591
ret = TEST_ptr(key = EVP_PKEY_Q_keygen(libctx, NULL, "EC", curve))
crypto/openssl/test/evp_pkey_dhkem_test.c
592
&& TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, key, NULL))
crypto/openssl/test/evp_pkey_dhkem_test.c
595
EVP_PKEY_free(key);
crypto/openssl/test/evp_pkey_dhkem_test.c
794
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_pkey_dhkem_test.c
797
ret = TEST_ptr(key = EVP_PKEY_Q_keygen(libctx, NULL, "ED448"))
crypto/openssl/test/evp_pkey_dhkem_test.c
798
&& TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, key, NULL))
crypto/openssl/test/evp_pkey_dhkem_test.c
801
EVP_PKEY_free(key);
crypto/openssl/test/evp_pkey_provided_test.c
1535
pk, orig_fromdata_params[PRIV_KEY].key,
crypto/openssl/test/evp_pkey_provided_test.c
1541
pk, orig_fromdata_params[PUB_KEY].key,
crypto/openssl/test/evp_pkey_provided_test.c
2163
static OSSL_PARAM *do_construct_hkdf_params(char *digest, char *key,
crypto/openssl/test/evp_pkey_provided_test.c
2173
(unsigned char *)key, keylen);
crypto/openssl/test/evp_pkey_provided_test.c
2226
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_pkey_provided_test.c
2238
EVP_PKEY_free(key);
crypto/openssl/test/evp_pkey_provided_test.c
2239
key = NULL;
crypto/openssl/test/evp_pkey_provided_test.c
2242
|| !TEST_int_gt(EVP_PKEY_keygen(ctx, &key), 0)) {
crypto/openssl/test/evp_pkey_provided_test.c
2252
EVP_PKEY_free(key);
crypto/openssl/test/evp_pkey_provided_test.c
434
for (i = 0; fromdata_params[i].key != NULL; ++i) {
crypto/openssl/test/evp_pkey_provided_test.c
436
|| !TEST_true(EVP_PKEY_get_bn_param(pk, fromdata_params[i].key,
crypto/openssl/test/evp_skey_test.c
102
EVP_SKEY_free(key);
crypto/openssl/test/evp_skey_test.c
37
EVP_SKEY *key = NULL;
crypto/openssl/test/evp_skey_test.c
77
key = EVP_SKEY_import(libctx, "fake_cipher", FAKE_CIPHER_FETCH_PROPS,
crypto/openssl/test/evp_skey_test.c
79
if (!TEST_ptr(key))
crypto/openssl/test/evp_skey_test.c
84
|| !TEST_int_gt(EVP_CipherInit_SKEY(ctx, fake_cipher, key, NULL, 0, 1, NULL), 0))
crypto/openssl/test/evp_skey_test.c
88
if (!TEST_int_gt(EVP_SKEY_export(key, OSSL_SKEYMGMT_SELECT_SECRET_KEY,
crypto/openssl/test/evp_skey_test.c
94
if (!TEST_int_gt(EVP_SKEY_get0_raw_key(key, &export, &export_len), 0)
crypto/openssl/test/evp_test.c
1008
return parse_bin(value, &cdat->key, &cdat->key_len);
crypto/openssl/test/evp_test.c
1208
if (!EVP_CipherInit_ex(ctx_base, NULL, NULL, expected->key, expected->iv, -1)) {
crypto/openssl/test/evp_test.c
1483
if (!cdat->key) {
crypto/openssl/test/evp_test.c
1578
unsigned char *key;
crypto/openssl/test/evp_test.c
1671
OPENSSL_free(mdat->key);
crypto/openssl/test/evp_test.c
1685
return parse_bin(value, &mdata->key, &mdata->key_len);
crypto/openssl/test/evp_test.c
1751
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_test.c
1789
key = EVP_PKEY_new_CMAC_key(NULL, expected->key, expected->key_len,
crypto/openssl/test/evp_test.c
1794
key = EVP_PKEY_new_raw_private_key_ex(libctx,
crypto/openssl/test/evp_test.c
1796
expected->key, expected->key_len);
crypto/openssl/test/evp_test.c
1798
if (key == NULL) {
crypto/openssl/test/evp_test.c
1816
if (!EVP_DigestSignInit_ex(mctx, &pctx, mdname, libctx, NULL, key, NULL)) {
crypto/openssl/test/evp_test.c
1863
EVP_PKEY_free(key);
crypto/openssl/test/evp_test.c
1958
if (!EVP_MAC_init(ctx, expected->key, expected->key_len, params)) {
crypto/openssl/test/evp_test.c
2090
expected->key, expected->key_len,
crypto/openssl/test/evp_test.c
2803
EVP_PKEY *key = NULL;
crypto/openssl/test/evp_test.c
2826
if (EVP_PKEY_fromdata(kdata->ctx, &key, EVP_PKEY_KEYPAIR, p) <= 0) {
crypto/openssl/test/evp_test.c
2832
EVP_PKEY_free(key);
crypto/openssl/test/evp_test.c
3114
unsigned char *key;
crypto/openssl/test/evp_test.c
3228
OPENSSL_free(pdat->key);
crypto/openssl/test/evp_test.c
3241
return parse_bin(value, &pdata->key, &pdata->key_len);
crypto/openssl/test/evp_test.c
3256
unsigned char *key;
crypto/openssl/test/evp_test.c
3262
if (!TEST_ptr(key = OPENSSL_malloc(expected->key_len))) {
crypto/openssl/test/evp_test.c
3270
expected->key_len, key)
crypto/openssl/test/evp_test.c
3280
expected->maxmem, key, expected->key_len)
crypto/openssl/test/evp_test.c
3296
key, fetched_digest)
crypto/openssl/test/evp_test.c
3302
if (!memory_err_compare(t, "KEY_MISMATCH", expected->key, expected->key_len,
crypto/openssl/test/evp_test.c
3303
key, expected->key_len))
crypto/openssl/test/evp_test.c
3309
OPENSSL_free(key);
crypto/openssl/test/evp_test.c
3855
for (p = kdata->params; p->key != NULL; p++)
crypto/openssl/test/evp_test.c
4350
for (p = out_params; p->key != NULL; ++p) {
crypto/openssl/test/evp_test.c
4356
ret = EVP_PKEY_get_octet_string_param(pkey, p->key, data,
crypto/openssl/test/evp_test.c
4362
TEST_error("Expected %s value is incorrect", p->key);
crypto/openssl/test/evp_test.c
4441
KEY_LIST *key;
crypto/openssl/test/evp_test.c
4449
if (!TEST_ptr(key = OPENSSL_malloc(sizeof(*key))))
crypto/openssl/test/evp_test.c
4451
key->name = keygen->keyname;
crypto/openssl/test/evp_test.c
4453
key->key = pkey;
crypto/openssl/test/evp_test.c
4454
key->next = private_keys;
crypto/openssl/test/evp_test.c
4455
private_keys = key;
crypto/openssl/test/evp_test.c
4498
EVP_PKEY *key;
crypto/openssl/test/evp_test.c
4569
mdata->key = pkey;
crypto/openssl/test/evp_test.c
4639
NULL, data->key, p)) {
crypto/openssl/test/evp_test.c
4645
data->key, p)) {
crypto/openssl/test/evp_test.c
5000
*ppk = lst->key;
crypto/openssl/test/evp_test.c
5012
EVP_PKEY_free(lst->key);
crypto/openssl/test/evp_test.c
5117
KEY_LIST *key, **klist;
crypto/openssl/test/evp_test.c
5137
if (strcmp(pp->key, "PrivateKey") == 0) {
crypto/openssl/test/evp_test.c
5138
pkey = PEM_read_bio_PrivateKey_ex(t->s.key, NULL, 0, NULL, libctx, NULL);
crypto/openssl/test/evp_test.c
5146
} else if (strcmp(pp->key, "PublicKey") == 0) {
crypto/openssl/test/evp_test.c
5147
pkey = PEM_read_bio_PUBKEY_ex(t->s.key, NULL, 0, NULL, libctx, NULL);
crypto/openssl/test/evp_test.c
5155
} else if (strcmp(pp->key, "ParamKey") == 0) {
crypto/openssl/test/evp_test.c
5156
pkey = PEM_read_bio_Parameters_ex(t->s.key, NULL, libctx, NULL);
crypto/openssl/test/evp_test.c
5164
} else if (strcmp(pp->key, "PrivateKeyRaw") == 0
crypto/openssl/test/evp_test.c
5165
|| strcmp(pp->key, "PublicKeyRaw") == 0) {
crypto/openssl/test/evp_test.c
5171
if (strcmp(pp->key, "PrivateKeyRaw") == 0)
crypto/openssl/test/evp_test.c
5184
TEST_info("Failed to parse %s value", pp->key);
crypto/openssl/test/evp_test.c
5204
TEST_info("Can't read %s data", pp->key);
crypto/openssl/test/evp_test.c
5210
} else if (strcmp(pp->key, "Availablein") == 0) {
crypto/openssl/test/evp_test.c
5220
} else if (strcmp(pp->key, "FIPSversion") == 0) {
crypto/openssl/test/evp_test.c
5244
if (!TEST_ptr(key = OPENSSL_malloc(sizeof(*key))))
crypto/openssl/test/evp_test.c
5246
key->name = take_value(pp);
crypto/openssl/test/evp_test.c
5247
key->key = pkey;
crypto/openssl/test/evp_test.c
5248
key->next = *klist;
crypto/openssl/test/evp_test.c
5249
*klist = key;
crypto/openssl/test/evp_test.c
5258
if (!TEST_ptr(t->meth = find_test(pp->key)))
crypto/openssl/test/evp_test.c
5261
TEST_error("unknown %s: %s\n", pp->key, pp->value);
crypto/openssl/test/evp_test.c
5270
if (strcmp(pp->key, "Securitycheck") == 0) {
crypto/openssl/test/evp_test.c
5281
} else if (strcmp(pp->key, "Availablein") == 0) {
crypto/openssl/test/evp_test.c
5285
} else if (strcmp(pp->key, "Result") == 0) {
crypto/openssl/test/evp_test.c
5291
} else if (strcmp(pp->key, "Function") == 0) {
crypto/openssl/test/evp_test.c
5293
} else if (strcmp(pp->key, "Reason") == 0) {
crypto/openssl/test/evp_test.c
5299
} else if (strcmp(pp->key, "Threads") == 0) {
crypto/openssl/test/evp_test.c
5305
} else if (strcmp(pp->key, "Unapproved") == 0) {
crypto/openssl/test/evp_test.c
5307
} else if (strcmp(pp->key, "Extended-Test") == 0) {
crypto/openssl/test/evp_test.c
5315
int rv = t->meth->parse(t, pp->key, pp->value);
crypto/openssl/test/evp_test.c
5318
TEST_info("Line %d: unknown keyword %s", t->s.curr, pp->key);
crypto/openssl/test/evp_test.c
5323
t->s.curr, pp->key, pp->value);
crypto/openssl/test/evp_test.c
5366
BIO_free(t->s.key);
crypto/openssl/test/evp_test.c
70
EVP_PKEY *key;
crypto/openssl/test/evp_test.c
882
unsigned char *key;
crypto/openssl/test/evp_test.c
988
OPENSSL_free(cdat->key);
crypto/openssl/test/fake_cipherprov.c
176
out[i] ^= ctx->key[i % FAKE_KEY_LEN];
crypto/openssl/test/fake_cipherprov.c
232
if (p != NULL && !OSSL_PARAM_set_size_t(p, sizeof((PROV_CIPHER_FAKE_CTX *)vctx)->key)) {
crypto/openssl/test/fake_cipherprov.c
26
unsigned char key[FAKE_KEY_LEN];
crypto/openssl/test/fake_cipherprov.c
53
memcpy(pctx->key, p->data, data_size);
crypto/openssl/test/fake_cipherprov.c
95
ctx->key,
crypto/openssl/test/fake_cipherprov.c
96
sizeof(ctx->key));
crypto/openssl/test/fake_pipelineprov.c
101
const unsigned char *key, size_t keylen,
crypto/openssl/test/fake_pipelineprov.c
105
return fake_pipeline_init(vctx, key, keylen, numpipes, iv, ivlen, 1);
crypto/openssl/test/fake_pipelineprov.c
109
const unsigned char *key, size_t keylen,
crypto/openssl/test/fake_pipelineprov.c
113
return fake_pipeline_init(vctx, key, keylen, numpipes, iv, ivlen, 0);
crypto/openssl/test/fake_pipelineprov.c
81
const unsigned char *key, size_t keylen,
crypto/openssl/test/fake_pipelineprov.c
93
if (!EVP_CipherInit(ctx->cipher_ctxs[i], ctx->cipher, key, iv[i], enc))
crypto/openssl/test/fake_rsaprov.c
1001
if (key != NULL && ctx->desc->adjust_key != NULL)
crypto/openssl/test/fake_rsaprov.c
1002
ctx->desc->adjust_key(key, ctx);
crypto/openssl/test/fake_rsaprov.c
1019
if (key != NULL) {
crypto/openssl/test/fake_rsaprov.c
1029
&key, sizeof(key));
crypto/openssl/test/fake_rsaprov.c
1036
ctx->desc->free_key(key);
crypto/openssl/test/fake_rsaprov.c
1075
struct fake_rsa_keydata *key = fake_rsa_keymgmt_new(NULL);
crypto/openssl/test/fake_rsaprov.c
1077
if (key)
crypto/openssl/test/fake_rsaprov.c
1078
key->status = FAKE_RSA_STATUS_DECODED;
crypto/openssl/test/fake_rsaprov.c
1079
return key;
crypto/openssl/test/fake_rsaprov.c
1084
static void *fake_rsa_d2i_PKCS8(void **key, const unsigned char **der, long der_len,
crypto/openssl/test/fake_rsaprov.c
1091
static void fake_rsa_key_adjust(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/test/fake_rsaprov.c
227
struct fake_rsa_keydata *key = NULL;
crypto/openssl/test/fake_rsaprov.c
229
if (reference_sz != sizeof(key))
crypto/openssl/test/fake_rsaprov.c
232
key = *(struct fake_rsa_keydata **)reference;
crypto/openssl/test/fake_rsaprov.c
233
if (key->status != FAKE_RSA_STATUS_IMPORTED && key->status != FAKE_RSA_STATUS_DECODED)
crypto/openssl/test/fake_rsaprov.c
239
return key;
crypto/openssl/test/fake_rsaprov.c
62
struct fake_rsa_keydata *key;
crypto/openssl/test/fake_rsaprov.c
626
struct fake_rsa_keydata *key = NULL;
crypto/openssl/test/fake_rsaprov.c
637
if (!TEST_ptr(key = fake_rsa_keymgmt_new(NULL)))
crypto/openssl/test/fake_rsaprov.c
639
if (!TEST_int_gt(fake_rsa_keymgmt_import(key, 0, NULL), 0))
crypto/openssl/test/fake_rsaprov.c
64
if (!TEST_ptr(key = OPENSSL_zalloc(sizeof(struct fake_rsa_keydata))))
crypto/openssl/test/fake_rsaprov.c
646
&key, sizeof(key));
crypto/openssl/test/fake_rsaprov.c
664
fake_rsa_keymgmt_free(key);
crypto/openssl/test/fake_rsaprov.c
73
return key;
crypto/openssl/test/fake_rsaprov.c
81
static int fake_rsa_keymgmt_has(const void *key, int selection)
crypto/openssl/test/fake_rsaprov.c
827
void *key = NULL;
crypto/openssl/test/fake_rsaprov.c
832
key = key_from_pkcs8(p8inf, PROV_FAKE_RSA_LIBCTX_OF(ctx->provctx), NULL);
crypto/openssl/test/fake_rsaprov.c
835
return key;
crypto/openssl/test/fake_rsaprov.c
841
struct fake_rsa_keydata *key = NULL;
crypto/openssl/test/fake_rsaprov.c
848
key = fake_rsa_keymgmt_new(NULL);
crypto/openssl/test/fake_rsaprov.c
849
if (key == NULL)
crypto/openssl/test/fake_rsaprov.c
852
key->status = FAKE_RSA_STATUS_DECODED;
crypto/openssl/test/fake_rsaprov.c
856
*a = key;
crypto/openssl/test/fake_rsaprov.c
861
return key;
crypto/openssl/test/fake_rsaprov.c
933
void *key = NULL;
crypto/openssl/test/fake_rsaprov.c
961
key = ctx->desc->d2i_PKCS8(NULL, &derp, der_len, ctx);
crypto/openssl/test/fake_rsaprov.c
965
key = ctx->desc->d2i_private_key(NULL, &derp, der_len);
crypto/openssl/test/fake_rsaprov.c
967
if (key == NULL && ctx->selection != 0)
crypto/openssl/test/fake_rsaprov.c
970
if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
crypto/openssl/test/fake_rsaprov.c
973
key = ctx->desc->d2i_PUBKEY(NULL, &derp, der_len);
crypto/openssl/test/fake_rsaprov.c
975
key = ctx->desc->d2i_public_key(NULL, &derp, der_len);
crypto/openssl/test/fake_rsaprov.c
976
if (key == NULL && ctx->selection != 0)
crypto/openssl/test/fake_rsaprov.c
979
if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_ALL_PARAMETERS) != 0) {
crypto/openssl/test/fake_rsaprov.c
982
key = ctx->desc->d2i_key_params(NULL, &derp, der_len);
crypto/openssl/test/fake_rsaprov.c
983
if (key == NULL && ctx->selection != 0)
crypto/openssl/test/fake_rsaprov.c
994
if (key != NULL
crypto/openssl/test/fake_rsaprov.c
996
&& !ctx->desc->check_key(key, ctx)) {
crypto/openssl/test/fake_rsaprov.c
997
ctx->desc->free_key(key);
crypto/openssl/test/fake_rsaprov.c
998
key = NULL;
crypto/openssl/test/helpers/ssltestlib.c
1447
const unsigned char key[SHA384_DIGEST_LENGTH] = {
crypto/openssl/test/helpers/ssltestlib.c
1471
|| !TEST_true(SSL_SESSION_set1_master_key(sess, key, mdsize))
crypto/openssl/test/hmactest.c
143
|| !TEST_false(HMAC_Init_ex(ctx, test[4].key, -1, EVP_sha1(), NULL)))
crypto/openssl/test/hmactest.c
146
if (!TEST_true(HMAC_Init_ex(ctx, test[4].key, test[4].key_len, EVP_sha1(), NULL))
crypto/openssl/test/hmactest.c
158
if (!TEST_true(HMAC_Init_ex(ctx, test[5].key, test[5].key_len, EVP_sha256(), NULL))
crypto/openssl/test/hmactest.c
168
if (!TEST_true(HMAC_Init_ex(ctx, test[6].key, test[6].key_len, NULL, NULL))
crypto/openssl/test/hmactest.c
228
if (!TEST_true(HMAC_Init_ex(ctx, test[5].key, test[5].key_len, EVP_sha256(), NULL))
crypto/openssl/test/hmactest.c
254
if (!TEST_true(HMAC_Init_ex(ctx, test[7].key, test[7].key_len, EVP_sha1(), NULL))
crypto/openssl/test/hmactest.c
273
const unsigned char key[24] = { 0 };
crypto/openssl/test/hmactest.c
282
key, sizeof(key)))
crypto/openssl/test/hmactest.c
319
char key[256];
crypto/openssl/test/hmactest.c
36
const char key[16];
crypto/openssl/test/hmactest.c
405
ebcdic2ascii(test_chunks[idx].key, test_chunks[idx].key,
crypto/openssl/test/hmactest.c
409
if (!TEST_true(HMAC_Init_ex(ctx, test_chunks[idx].key,
crypto/openssl/test/hmactest.c
94
ebcdic2ascii(test[2].key, test[2].key, test[2].key_len);
crypto/openssl/test/hmactest.c
99
test[idx].key, test[idx].key_len,
crypto/openssl/test/ideatest.c
78
IDEA_KEY_SCHEDULE key, dkey;
crypto/openssl/test/ideatest.c
80
IDEA_set_encrypt_key(k, &key);
crypto/openssl/test/ideatest.c
81
IDEA_ecb_encrypt(in, out, &key);
crypto/openssl/test/ideatest.c
85
IDEA_set_decrypt_key(&key, &dkey);
crypto/openssl/test/ideatest.c
92
IDEA_KEY_SCHEDULE key, dkey;
crypto/openssl/test/ideatest.c
96
IDEA_set_encrypt_key(k, &key);
crypto/openssl/test/ideatest.c
97
IDEA_set_decrypt_key(&key, &dkey);
crypto/openssl/test/ideatest.c
99
IDEA_cbc_encrypt(text, out, text_len, &key, iv, 1);
crypto/openssl/test/igetest.c
152
AES_KEY key;
crypto/openssl/test/igetest.c
161
AES_set_encrypt_key(v->key, 8 * sizeof(v->key), &key);
crypto/openssl/test/igetest.c
163
AES_set_decrypt_key(v->key, 8 * sizeof(v->key), &key);
crypto/openssl/test/igetest.c
165
AES_ige_encrypt(v->in, buf, v->length, &key, iv, v->encrypt);
crypto/openssl/test/igetest.c
169
test_output_memory("key", v->key, sizeof(v->key));
crypto/openssl/test/igetest.c
178
AES_ige_encrypt(buf, buf, v->length, &key, iv, v->encrypt);
crypto/openssl/test/igetest.c
182
test_output_memory("key", v->key, sizeof(v->key));
crypto/openssl/test/igetest.c
225
AES_KEY key;
crypto/openssl/test/igetest.c
231
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
232
AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT);
crypto/openssl/test/igetest.c
234
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
236
AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT);
crypto/openssl/test/igetest.c
243
AES_KEY key;
crypto/openssl/test/igetest.c
248
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
250
AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
crypto/openssl/test/igetest.c
254
&key, iv, AES_ENCRYPT);
crypto/openssl/test/igetest.c
256
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
258
AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT);
crypto/openssl/test/igetest.c
265
AES_KEY key;
crypto/openssl/test/igetest.c
270
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
272
AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
crypto/openssl/test/igetest.c
276
&key, iv, AES_ENCRYPT);
crypto/openssl/test/igetest.c
278
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
280
AES_ige_encrypt(ciphertext, checktext, TEST_SIZE / 2, &key, iv,
crypto/openssl/test/igetest.c
283
checktext + TEST_SIZE / 2, TEST_SIZE / 2, &key, iv,
crypto/openssl/test/igetest.c
291
AES_KEY key;
crypto/openssl/test/igetest.c
300
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
302
AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv,
crypto/openssl/test/igetest.c
307
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
309
AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv,
crypto/openssl/test/igetest.c
329
AES_KEY key, key2;
crypto/openssl/test/igetest.c
335
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
337
AES_bi_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, &key2, iv,
crypto/openssl/test/igetest.c
340
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
342
AES_bi_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, &key2, iv,
crypto/openssl/test/igetest.c
350
AES_KEY key, key2;
crypto/openssl/test/igetest.c
358
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
360
AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv,
crypto/openssl/test/igetest.c
365
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
367
AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv,
crypto/openssl/test/igetest.c
38
const unsigned char key[16];
crypto/openssl/test/igetest.c
381
AES_KEY key, key2;
crypto/openssl/test/igetest.c
389
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
391
AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv,
crypto/openssl/test/igetest.c
396
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
398
AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv,
crypto/openssl/test/igetest.c
412
AES_KEY key, key2;
crypto/openssl/test/igetest.c
420
AES_set_encrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
422
AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv,
crypto/openssl/test/igetest.c
427
AES_set_decrypt_key(rkey, 8 * sizeof(rkey), &key);
crypto/openssl/test/igetest.c
429
AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv,
crypto/openssl/test/lhash_test.c
209
static uint64_t hashtable_hash(uint8_t *key, size_t keylen)
crypto/openssl/test/lhash_test.c
211
return (uint64_t)(*(uint32_t *)key);
crypto/openssl/test/lhash_test.c
235
INTKEY key;
crypto/openssl/test/lhash_test.c
248
HT_INIT_KEY(&key);
crypto/openssl/test/lhash_test.c
250
HT_SET_KEY_FIELD(&key, mykey, int_tests[i]);
crypto/openssl/test/lhash_test.c
251
if (!TEST_int_eq(ossl_ht_test_int_insert(ht, TO_HT_KEY(&key),
crypto/openssl/test/lhash_test.c
286
HT_SET_KEY_FIELD(&key, mykey, dels[i].data);
crypto/openssl/test/lhash_test.c
287
todel = ossl_ht_delete(ht, TO_HT_KEY(&key));
crypto/openssl/test/lhash_test.c
416
INTKEY key;
crypto/openssl/test/lhash_test.c
431
HT_INIT_KEY(&key);
crypto/openssl/test/lhash_test.c
441
HT_SET_KEY_FIELD(&key, mykey, *p);
crypto/openssl/test/lhash_test.c
442
if (!TEST_int_eq(ossl_ht_test_int_insert(h, TO_HT_KEY(&key),
crypto/openssl/test/lhash_test.c
457
HT_SET_KEY_FIELD(&key, mykey, j);
crypto/openssl/test/lhash_test.c
461
if (!TEST_int_eq((ossl_ht_delete(h, TO_HT_KEY(&key))), 1)) {
crypto/openssl/test/lhash_test.c
467
if (!TEST_ptr(p = ossl_ht_test_int_get(h, TO_HT_KEY(&key), &v))
crypto/openssl/test/lhash_test.c
569
MTKEY key;
crypto/openssl/test/lhash_test.c
585
HT_INIT_KEY(&key);
crypto/openssl/test/lhash_test.c
595
HT_KEY_RESET(&key);
crypto/openssl/test/lhash_test.c
596
HT_SET_KEY_FIELD(&key, index, index);
crypto/openssl/test/lhash_test.c
605
m = ossl_ht_mt_TEST_MT_ENTRY_get(m_ht, TO_HT_KEY(&key), &v);
crypto/openssl/test/lhash_test.c
626
if (expected_rc != ossl_ht_mt_TEST_MT_ENTRY_insert(m_ht, TO_HT_KEY(&key), expected_m, r)) {
crypto/openssl/test/lhash_test.c
654
if (expected_rc != ossl_ht_delete(m_ht, TO_HT_KEY(&key))) {
crypto/openssl/test/ml_dsa_test.c
234
ML_DSA_KEY *key = NULL, *key1 = NULL;
crypto/openssl/test/ml_dsa_test.c
240
if (!TEST_ptr_null(key = ossl_ml_dsa_key_new(NULL, NULL, EVP_PKEY_ML_DSA_44))
crypto/openssl/test/ml_dsa_test.c
242
|| !TEST_ptr_null(key = ossl_ml_dsa_key_new(lib_ctx, "", NID_undef))
crypto/openssl/test/ml_dsa_test.c
245
|| !TEST_ptr(key = ossl_ml_dsa_key_new(lib_ctx, "?fips=yes",
crypto/openssl/test/ml_dsa_test.c
247
|| !TEST_ptr(key1 = ossl_ml_dsa_key_dup(key, OSSL_KEYMGMT_SELECT_KEYPAIR))
crypto/openssl/test/ml_dsa_test.c
250
|| !TEST_true(ossl_ml_dsa_key_priv_alloc(key))
crypto/openssl/test/ml_dsa_test.c
251
|| !TEST_false(ossl_ml_dsa_key_priv_alloc(key)))
crypto/openssl/test/ml_dsa_test.c
257
ossl_ml_dsa_key_free(key);
crypto/openssl/test/ml_dsa_test.c
398
EVP_PKEY *key = NULL;
crypto/openssl/test/ml_dsa_test.c
404
if (!TEST_ptr(key = do_gen_key(alg, NULL, 0)))
crypto/openssl/test/ml_dsa_test.c
414
if (!TEST_ptr(sctx = EVP_PKEY_CTX_new_from_pkey(lib_ctx, key, NULL))
crypto/openssl/test/ml_dsa_test.c
430
|| !TEST_ptr(vctx = EVP_PKEY_CTX_new_from_pkey(lib_ctx, key, NULL))
crypto/openssl/test/ml_dsa_test.c
436
EVP_PKEY_free(key);
crypto/openssl/test/ml_dsa_test.c
460
EVP_PKEY *key = NULL;
crypto/openssl/test/ml_dsa_test.c
467
if (!TEST_ptr(key = do_gen_key(alg, NULL, 0)))
crypto/openssl/test/ml_dsa_test.c
480
key, params),
crypto/openssl/test/ml_dsa_test.c
483
"?fips=true", key, params),
crypto/openssl/test/ml_dsa_test.c
498
key, params),
crypto/openssl/test/ml_dsa_test.c
505
key, params),
crypto/openssl/test/ml_dsa_test.c
509
key, params),
crypto/openssl/test/ml_dsa_test.c
517
EVP_PKEY_free(key);
crypto/openssl/test/ml_dsa_test.c
526
EVP_PKEY *key = NULL;
crypto/openssl/test/ml_dsa_test.c
538
if (!TEST_true(ml_dsa_create_keypair(&key, td->alg,
crypto/openssl/test/ml_dsa_test.c
543
if (!TEST_true(ml_dsa_create_keypair(&key, td->alg,
crypto/openssl/test/ml_dsa_test.c
549
EVP_PKEY_free(key);
crypto/openssl/test/modes_internal_test.c
140
const void *key, unsigned char ivec[16],
crypto/openssl/test/modes_internal_test.c
143
size_t len, const void *key,
crypto/openssl/test/modes_internal_test.c
147
const void *key, unsigned char ivec[16],
crypto/openssl/test/modes_internal_test.c
150
size_t len, const void *key,
crypto/openssl/test/modes_internal_test.c
859
AES_KEY key;
crypto/openssl/test/modes_internal_test.c
869
AES_set_encrypt_key(K.data, K.size * 8, &key);
crypto/openssl/test/modes_internal_test.c
871
CRYPTO_gcm128_init(&ctx, &key, (block128_f)AES_encrypt);
crypto/openssl/test/ocspapitest.c
104
ASN1_BIT_STRING_free(key);
crypto/openssl/test/ocspapitest.c
116
EVP_PKEY *key = NULL;
crypto/openssl/test/ocspapitest.c
128
|| !TEST_true(get_cert_and_key(&signer, &key))
crypto/openssl/test/ocspapitest.c
130
|| !TEST_true(OCSP_basic_sign(bs, signer, key, EVP_sha1(),
crypto/openssl/test/ocspapitest.c
142
|| !TEST_true(OCSP_basic_sign(bs, signer, key, EVP_sha1(),
crypto/openssl/test/ocspapitest.c
153
EVP_PKEY_free(key);
crypto/openssl/test/ocspapitest.c
29
EVP_PKEY *key = NULL;
crypto/openssl/test/ocspapitest.c
37
key = PEM_read_bio_PrivateKey(keybio, NULL, NULL, NULL);
crypto/openssl/test/ocspapitest.c
39
if (!TEST_ptr(cert) || !TEST_ptr(key))
crypto/openssl/test/ocspapitest.c
42
*key_out = key;
crypto/openssl/test/ocspapitest.c
46
EVP_PKEY_free(key);
crypto/openssl/test/ocspapitest.c
78
ASN1_BIT_STRING *key = ASN1_BIT_STRING_new();
crypto/openssl/test/ocspapitest.c
82
|| !TEST_ptr(key)
crypto/openssl/test/ocspapitest.c
87
|| !TEST_true(ASN1_BIT_STRING_set(key, keybytes, sizeof(keybytes)))
crypto/openssl/test/ocspapitest.c
90
cid = OCSP_cert_id_new(EVP_sha256(), name, key, serial);
crypto/openssl/test/p_test.c
101
for (; ok && p->key != NULL; p++) {
crypto/openssl/test/p_test.c
102
if (strcmp(p->key, "greeting") == 0) {
crypto/openssl/test/p_test.c
143
} else if (strcmp(p->key, "digest-check") == 0) {
crypto/openssl/test/p_test.c
200
} else if (strcmp(p->key, "stop-property-mirror") == 0) {
crypto/openssl/test/param_build_test.c
148
|| !TEST_str_eq(p->key, "i")
crypto/openssl/test/param_build_test.c
155
|| !TEST_str_eq(p->key, "i32")
crypto/openssl/test/param_build_test.c
161
|| !TEST_str_eq(p->key, "i64")
crypto/openssl/test/param_build_test.c
168
|| !TEST_str_eq(p->key, "l")
crypto/openssl/test/param_build_test.c
175
|| !TEST_str_eq(p->key, "t")
crypto/openssl/test/param_build_test.c
183
|| !TEST_str_eq(p->key, "d")
crypto/openssl/test/param_build_test.c
198
|| !TEST_str_eq(p->key, "zeronumber")
crypto/openssl/test/param_build_test.c
204
|| !TEST_str_eq(p->key, "bignumber")
crypto/openssl/test/param_build_test.c
210
|| !TEST_str_eq(p->key, "negativebignumber")
crypto/openssl/test/param_build_test.c
304
|| !TEST_str_eq(p->key, "i")
crypto/openssl/test/param_build_test.c
312
|| !TEST_str_eq(p->key, "i32")
crypto/openssl/test/param_build_test.c
319
|| !TEST_str_eq(p->key, "i64")
crypto/openssl/test/param_build_test.c
327
|| !TEST_str_eq(p->key, "l")
crypto/openssl/test/param_build_test.c
335
|| !TEST_str_eq(p->key, "st")
crypto/openssl/test/param_build_test.c
343
|| !TEST_str_eq(p->key, "oct_s")
crypto/openssl/test/param_build_test.c
350
|| !TEST_str_eq(p->key, "oct_p")
crypto/openssl/test/param_build_test.c
356
|| !TEST_str_eq(p->key, "zeronumber")
crypto/openssl/test/param_build_test.c
36
|| !TEST_str_eq(p->key, "zeronumber")
crypto/openssl/test/param_build_test.c
364
|| !TEST_str_eq(p->key, "bignumber")
crypto/openssl/test/param_build_test.c
372
|| !TEST_str_eq(p->key, "negativebignumber")
crypto/openssl/test/param_build_test.c
417
for (i = 0; params[i].key != NULL; i++)
crypto/openssl/test/param_build_test.c
430
for (i = 0; params[i].key != NULL; i++)
crypto/openssl/test/param_build_test.c
486
|| !TEST_str_eq(p->key, "i")
crypto/openssl/test/param_build_test.c
493
|| !TEST_str_eq(p->key, "i32")
crypto/openssl/test/param_build_test.c
499
|| !TEST_str_eq(p->key, "i64")
crypto/openssl/test/param_build_test.c
506
|| !TEST_str_eq(p->key, "l")
crypto/openssl/test/param_build_test.c
513
|| !TEST_str_eq(p->key, "st")
crypto/openssl/test/param_build_test.c
520
|| !TEST_str_eq(p->key, "oct_s")
crypto/openssl/test/param_build_test.c
525
|| !TEST_str_eq(p->key, "oct_p")
crypto/openssl/test/param_build_test.c
530
|| !TEST_str_eq(p->key, "bignumber_pub")
crypto/openssl/test/param_build_test.c
535
|| !TEST_str_eq(p->key, "bignumber_priv")
crypto/openssl/test/param_build_test.c
69
|| !TEST_str_eq(p->key, "zeronumber")
crypto/openssl/test/params_conversion_test.c
107
} else if (OPENSSL_strcasecmp(pp->key, "double") == 0) {
crypto/openssl/test/params_conversion_test.c
117
TEST_info("Line %d: unknown keyword %s", s->curr, pp->key);
crypto/openssl/test/params_conversion_test.c
122
s->curr, p, pp->key);
crypto/openssl/test/params_conversion_test.c
61
if (OPENSSL_strcasecmp(pp->key, "type") == 0) {
crypto/openssl/test/params_conversion_test.c
71
} else if (OPENSSL_strcasecmp(pp->key, "int32") == 0) {
crypto/openssl/test/params_conversion_test.c
80
} else if (OPENSSL_strcasecmp(pp->key, "int64") == 0) {
crypto/openssl/test/params_conversion_test.c
89
} else if (OPENSSL_strcasecmp(pp->key, "uint32") == 0) {
crypto/openssl/test/params_conversion_test.c
98
} else if (OPENSSL_strcasecmp(pp->key, "uint64") == 0) {
crypto/openssl/test/params_test.c
134
for (; params->key != NULL; params++)
crypto/openssl/test/params_test.c
135
if (strcmp(params->key, "p1") == 0) {
crypto/openssl/test/params_test.c
137
} else if (strcmp(params->key, "p2") == 0) {
crypto/openssl/test/params_test.c
139
} else if (strcmp(params->key, "p3") == 0) {
crypto/openssl/test/params_test.c
144
} else if (strcmp(params->key, "p4") == 0) {
crypto/openssl/test/params_test.c
150
} else if (strcmp(params->key, "p5") == 0) {
crypto/openssl/test/params_test.c
162
} else if (strcmp(params->key, "p6") == 0) {
crypto/openssl/test/params_test.c
174
for (; params->key != NULL; params++)
crypto/openssl/test/params_test.c
175
if (strcmp(params->key, "p1") == 0) {
crypto/openssl/test/params_test.c
178
} else if (strcmp(params->key, "p2") == 0) {
crypto/openssl/test/params_test.c
181
} else if (strcmp(params->key, "p3") == 0) {
crypto/openssl/test/params_test.c
186
} else if (strcmp(params->key, "p4") == 0) {
crypto/openssl/test/params_test.c
191
} else if (strcmp(params->key, "p5") == 0) {
crypto/openssl/test/params_test.c
196
} else if (strcmp(params->key, "p6") == 0) {
crypto/openssl/test/pemtest.c
90
EVP_PKEY *key;
crypto/openssl/test/pemtest.c
92
if (!TEST_ptr(key = load_pkey_pem(pemfile, NULL)))
crypto/openssl/test/pemtest.c
95
EVP_PKEY_free(key);
crypto/openssl/test/pkcs12_api_test.c
107
EVP_PKEY *key = NULL;
crypto/openssl/test/pkcs12_api_test.c
116
if (!TEST_true(PKCS12_parse(p12, in_pass, &key, &cert, &ca)))
crypto/openssl/test/pkcs12_api_test.c
119
if ((has_key && !TEST_ptr(key)) || (!has_key && !TEST_ptr_null(key)))
crypto/openssl/test/pkcs12_api_test.c
125
if (has_key && !changepass(p12, key, cert, ca))
crypto/openssl/test/pkcs12_api_test.c
131
EVP_PKEY_free(key);
crypto/openssl/test/pkcs12_api_test.c
143
static PKCS12 *pkcs12_create_ex2_setup(EVP_PKEY **key, X509 **cert, STACK_OF(X509) **ca)
crypto/openssl/test/pkcs12_api_test.c
150
if (!TEST_true(PKCS12_parse(p12, "", key, cert, ca)))
crypto/openssl/test/pkcs12_api_test.c
163
EVP_PKEY *key = NULL;
crypto/openssl/test/pkcs12_api_test.c
167
p12 = pkcs12_create_ex2_setup(&key, &cert, &ca);
crypto/openssl/test/pkcs12_api_test.c
223
EVP_PKEY_free(key);
crypto/openssl/test/pkcs12_api_test.c
260
EVP_PKEY *key = NULL;
crypto/openssl/test/pkcs12_api_test.c
267
if (!TEST_true(PKCS12_parse(p12, in_pass, &key, &cert, &ca)))
crypto/openssl/test/pkcs12_api_test.c
271
if (!TEST_ptr(p12 = PKCS12_create_ex2("pass", NULL, key, cert, ca,
crypto/openssl/test/pkcs12_api_test.c
279
EVP_PKEY_free(key);
crypto/openssl/test/pkcs12_api_test.c
64
static int changepass(PKCS12 *p12, EVP_PKEY *key, X509 *cert, STACK_OF(X509) *ca)
crypto/openssl/test/pkcs12_api_test.c
86
if (!TEST_ptr(key2) || !TEST_int_eq(EVP_PKEY_eq(key, key2), 1))
crypto/openssl/test/poly1305_internal_test.c
1105
const unsigned char *key = test.key.data;
crypto/openssl/test/poly1305_internal_test.c
1113
Poly1305_Init(&poly1305, key);
crypto/openssl/test/poly1305_internal_test.c
1123
Poly1305_Init(&poly1305, key);
crypto/openssl/test/poly1305_internal_test.c
1137
Poly1305_Init(&poly1305, key);
crypto/openssl/test/poly1305_internal_test.c
1148
Poly1305_Init(&poly1305, key);
crypto/openssl/test/poly1305_internal_test.c
26
SIZED_DATA key;
crypto/openssl/test/quic_multistream_test.c
897
STREAM_INFO key, *info;
crypto/openssl/test/quic_multistream_test.c
905
key.name = stream_name;
crypto/openssl/test/quic_multistream_test.c
906
info = lh_STREAM_INFO_retrieve(lh, &key);
crypto/openssl/test/quic_record_test.c
10277
#define TX_OP_PROVIDE_SECRET(el, suite, key) \
crypto/openssl/test/quic_record_test.c
10279
TX_TEST_OP_PROVIDE_SECRET, (key), sizeof(key), \
crypto/openssl/test/quic_record_test.c
61
#define RX_OP_PROVIDE_SECRET(el, suite, key) \
crypto/openssl/test/quic_record_test.c
63
RX_TEST_OP_PROVIDE_SECRET, 0, (key), sizeof(key), \
crypto/openssl/test/quic_srt_gen_test.c
20
const unsigned char *key;
crypto/openssl/test/quic_srt_gen_test.c
52
t->key, t->key_len)))
crypto/openssl/test/radix/quic_bindings.c
437
RADIX_OBJ key;
crypto/openssl/test/radix/quic_bindings.c
439
key.name = (char *)name;
crypto/openssl/test/radix/quic_bindings.c
440
return lh_RADIX_OBJ_retrieve(rp->objs, &key);
crypto/openssl/test/rc2test.c
50
RC2_KEY key;
crypto/openssl/test/rc2test.c
53
RC2_set_key(&key, 16, &(RC2key[n][0]), 0 /* or 1024 */);
crypto/openssl/test/rc2test.c
55
RC2_ecb_encrypt(&RC2plain[n][0], buf, &key, RC2_ENCRYPT);
crypto/openssl/test/rc2test.c
59
RC2_ecb_encrypt(buf, buf2, &key, RC2_DECRYPT);
crypto/openssl/test/rc4test.c
102
RC4_KEY key;
crypto/openssl/test/rc4test.c
112
RC4_set_key(&key, keys[0][0], &(keys[3][1]));
crypto/openssl/test/rc4test.c
116
RC4(&key, sizeof(buf), buf, buf);
crypto/openssl/test/rc4test.c
67
RC4_KEY key;
crypto/openssl/test/rc4test.c
69
RC4_set_key(&key, keys[i][0], &(keys[i][1]));
crypto/openssl/test/rc4test.c
71
RC4(&key, data_len[i], &(data[i][0]), obuf);
crypto/openssl/test/rc4test.c
78
RC4_KEY key;
crypto/openssl/test/rc4test.c
80
RC4_set_key(&key, keys[3][0], &(keys[3][1]));
crypto/openssl/test/rc4test.c
82
RC4(&key, i, &(data[3][0]), obuf);
crypto/openssl/test/rc4test.c
91
RC4_KEY key;
crypto/openssl/test/rc4test.c
93
RC4_set_key(&key, keys[3][0], &(keys[3][1]));
crypto/openssl/test/rc4test.c
95
RC4(&key, i, &(data[3][0]), obuf);
crypto/openssl/test/rc4test.c
96
RC4(&key, data_len[3] - i, &(data[3][i]), &(obuf[i]));
crypto/openssl/test/rc5test.c
210
RC5_32_KEY key;
crypto/openssl/test/rc5test.c
213
if (!TEST_true(RC5_32_set_key(&key, 16, &RC5key[n][0], 12)))
crypto/openssl/test/rc5test.c
216
RC5_32_ecb_encrypt(&RC5plain[n][0], buf, &key, RC5_ENCRYPT);
crypto/openssl/test/rc5test.c
220
RC5_32_ecb_encrypt(buf, buf2, &key, RC5_DECRYPT);
crypto/openssl/test/rc5test.c
231
RC5_32_KEY key;
crypto/openssl/test/rc5test.c
236
if (!TEST_true(RC5_32_set_key(&key, rc5_cbc_key[n][0],
crypto/openssl/test/rc5test.c
242
&key, &ivb[0], RC5_ENCRYPT);
crypto/openssl/test/rc5test.c
249
RC5_32_cbc_encrypt(buf, buf2, 8, &key, &ivb[0], RC5_DECRYPT);
crypto/openssl/test/rsa_mp_test.c
129
static int key2048_key(RSA *key)
crypto/openssl/test/rsa_mp_test.c
131
if (!TEST_int_eq(RSA_set0_key(key,
crypto/openssl/test/rsa_mp_test.c
138
return RSA_size(key);
crypto/openssl/test/rsa_mp_test.c
141
static int key2048p3_v1(RSA *key)
crypto/openssl/test/rsa_mp_test.c
144
int rv = RSA_size(key);
crypto/openssl/test/rsa_mp_test.c
146
if (!TEST_int_eq(RSA_set0_factors(key,
crypto/openssl/test/rsa_mp_test.c
152
if (!TEST_int_eq(RSA_set0_crt_params(key,
crypto/openssl/test/rsa_mp_test.c
172
if (!TEST_true(RSA_set0_multi_prime_params(key, pris, exps,
crypto/openssl/test/rsa_mp_test.c
192
static int key2048p3_v2(RSA *key)
crypto/openssl/test/rsa_mp_test.c
196
int rv = RSA_size(key);
crypto/openssl/test/rsa_mp_test.c
225
if (!TEST_true(ossl_rsa_set0_all_params(key, primes, exps, coeffs)))
crypto/openssl/test/rsa_mp_test.c
245
RSA *key;
crypto/openssl/test/rsa_mp_test.c
258
key = RSA_new();
crypto/openssl/test/rsa_mp_test.c
259
if (!TEST_ptr(key))
crypto/openssl/test/rsa_mp_test.c
262
if (!TEST_int_eq((clen = key2048_key(key)), 256)
crypto/openssl/test/rsa_mp_test.c
263
|| !TEST_int_eq((clen = param_set[i](key)), 256))
crypto/openssl/test/rsa_mp_test.c
266
if (!TEST_true(RSA_check_key_ex(key, NULL)))
crypto/openssl/test/rsa_mp_test.c
269
num = RSA_public_encrypt(plen, ptext_ex, ctext, key,
crypto/openssl/test/rsa_mp_test.c
274
num = RSA_private_decrypt(num, ctext, ptext, key, RSA_PKCS1_PADDING);
crypto/openssl/test/rsa_mp_test.c
280
RSA_free(key);
crypto/openssl/test/rsa_sp800_56b_test.c
224
RSA *key = NULL;
crypto/openssl/test/rsa_sp800_56b_test.c
228
ret = TEST_ptr(key = RSA_new())
crypto/openssl/test/rsa_sp800_56b_test.c
235
&& TEST_true(RSA_set0_factors(key, p, q));
crypto/openssl/test/rsa_sp800_56b_test.c
248
&& TEST_true(RSA_set0_key(key, n, e, d));
crypto/openssl/test/rsa_sp800_56b_test.c
256
ret = TEST_false(ossl_rsa_check_private_exponent(key, 8, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
259
&& TEST_true(ossl_rsa_check_private_exponent(key, 8, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
261
&& TEST_false(ossl_rsa_check_private_exponent(key, 16, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
264
&& TEST_false(ossl_rsa_check_private_exponent(key, 8, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
267
&& TEST_false(ossl_rsa_check_private_exponent(key, 8, ctx));
crypto/openssl/test/rsa_sp800_56b_test.c
269
RSA_free(key);
crypto/openssl/test/rsa_sp800_56b_test.c
285
RSA *key = NULL;
crypto/openssl/test/rsa_sp800_56b_test.c
289
ret = TEST_ptr(key = RSA_new())
crypto/openssl/test/rsa_sp800_56b_test.c
297
&& TEST_true(RSA_set0_factors(key, p, q));
crypto/openssl/test/rsa_sp800_56b_test.c
304
ret = TEST_int_eq(ossl_rsa_sp800_56b_derive_params_from_pq(key, 8, e, ctx), 1)
crypto/openssl/test/rsa_sp800_56b_test.c
305
&& TEST_BN_eq_word(key->n, N)
crypto/openssl/test/rsa_sp800_56b_test.c
306
&& TEST_BN_eq_word(key->dmp1, DP)
crypto/openssl/test/rsa_sp800_56b_test.c
307
&& TEST_BN_eq_word(key->dmq1, DQ)
crypto/openssl/test/rsa_sp800_56b_test.c
308
&& TEST_BN_eq_word(key->iqmp, QINV)
crypto/openssl/test/rsa_sp800_56b_test.c
309
&& TEST_true(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
311
&& TEST_true(BN_set_word(key->dmp1, 1))
crypto/openssl/test/rsa_sp800_56b_test.c
312
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
313
&& TEST_true(BN_set_word(key->dmp1, P - 1))
crypto/openssl/test/rsa_sp800_56b_test.c
314
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
315
&& TEST_true(BN_set_word(key->dmp1, DP))
crypto/openssl/test/rsa_sp800_56b_test.c
317
&& TEST_true(BN_set_word(key->dmq1, 1))
crypto/openssl/test/rsa_sp800_56b_test.c
318
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
319
&& TEST_true(BN_set_word(key->dmq1, Q - 1))
crypto/openssl/test/rsa_sp800_56b_test.c
320
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
321
&& TEST_true(BN_set_word(key->dmq1, DQ))
crypto/openssl/test/rsa_sp800_56b_test.c
323
&& TEST_true(BN_set_word(key->iqmp, 1))
crypto/openssl/test/rsa_sp800_56b_test.c
324
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
325
&& TEST_true(BN_set_word(key->iqmp, P))
crypto/openssl/test/rsa_sp800_56b_test.c
326
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
327
&& TEST_true(BN_set_word(key->iqmp, QINV))
crypto/openssl/test/rsa_sp800_56b_test.c
329
&& TEST_true(BN_set_word(key->dmp1, DP + 1))
crypto/openssl/test/rsa_sp800_56b_test.c
330
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
331
&& TEST_true(BN_set_word(key->dmp1, DP))
crypto/openssl/test/rsa_sp800_56b_test.c
333
&& TEST_true(BN_set_word(key->dmq1, DQ - 1))
crypto/openssl/test/rsa_sp800_56b_test.c
334
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
335
&& TEST_true(BN_set_word(key->dmq1, DQ))
crypto/openssl/test/rsa_sp800_56b_test.c
337
&& TEST_true(BN_set_word(key->iqmp, QINV + 1))
crypto/openssl/test/rsa_sp800_56b_test.c
338
&& TEST_false(ossl_rsa_check_crt_components(key, ctx))
crypto/openssl/test/rsa_sp800_56b_test.c
339
&& TEST_true(BN_set_word(key->iqmp, QINV))
crypto/openssl/test/rsa_sp800_56b_test.c
341
&& TEST_true(ossl_rsa_check_crt_components(key, ctx));
crypto/openssl/test/rsa_sp800_56b_test.c
344
RSA_free(key);
crypto/openssl/test/rsa_sp800_56b_test.c
359
RSA *key = NULL;
crypto/openssl/test/rsa_sp800_56b_test.c
363
ret = TEST_ptr(key = RSA_new())
crypto/openssl/test/rsa_sp800_56b_test.c
371
&& TEST_true(RSA_set0_factors(key, p, q));
crypto/openssl/test/rsa_sp800_56b_test.c
378
ret = TEST_int_le(ossl_rsa_sp800_56b_derive_params_from_pq(key, 8, e, ctx), 0);
crypto/openssl/test/rsa_sp800_56b_test.c
381
RSA_free(key);
crypto/openssl/test/rsa_sp800_56b_test.c
413
RSA *key = NULL;
crypto/openssl/test/rsa_sp800_56b_test.c
417
ret = TEST_ptr(key = RSA_new())
crypto/openssl/test/rsa_sp800_56b_test.c
420
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
424
&& TEST_true(RSA_set0_factors(key, p, q));
crypto/openssl/test/rsa_sp800_56b_test.c
434
&& TEST_true(RSA_set0_key(key, n, e, d));
crypto/openssl/test/rsa_sp800_56b_test.c
442
ret = TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, 100, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
443
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, 112, 1024))
crypto/openssl/test/rsa_sp800_56b_test.c
444
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, 128, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
445
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, 140, 3072))
crypto/openssl/test/rsa_sp800_56b_test.c
447
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, BN_value_one(),
crypto/openssl/test/rsa_sp800_56b_test.c
451
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
455
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, 3072))
crypto/openssl/test/rsa_sp800_56b_test.c
456
&& TEST_true(ossl_rsa_sp800_56b_check_keypair(key, e, 112, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
459
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
463
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, 2049))
crypto/openssl/test/rsa_sp800_56b_test.c
468
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
474
&& TEST_false(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, 2048))
crypto/openssl/test/rsa_sp800_56b_test.c
478
RSA_free(key);
crypto/openssl/test/rsa_sp800_56b_test.c
489
RSA *key = NULL;
crypto/openssl/test/rsa_sp800_56b_test.c
493
ret = TEST_ptr(key = RSA_new())
crypto/openssl/test/rsa_sp800_56b_test.c
494
&& TEST_true(ossl_rsa_sp800_56b_generate_key(key, sz, NULL, NULL))
crypto/openssl/test/rsa_sp800_56b_test.c
495
&& TEST_true(ossl_rsa_sp800_56b_check_public(key))
crypto/openssl/test/rsa_sp800_56b_test.c
496
&& TEST_true(ossl_rsa_sp800_56b_check_private(key))
crypto/openssl/test/rsa_sp800_56b_test.c
497
&& TEST_true(ossl_rsa_sp800_56b_check_keypair(key, NULL, -1, sz));
crypto/openssl/test/rsa_sp800_56b_test.c
499
RSA_free(key);
crypto/openssl/test/rsa_sp800_56b_test.c
507
RSA *key = NULL;
crypto/openssl/test/rsa_sp800_56b_test.c
509
ret = TEST_ptr(key = RSA_new())
crypto/openssl/test/rsa_sp800_56b_test.c
511
&& TEST_false(ossl_rsa_sp800_56b_check_private(key))
crypto/openssl/test/rsa_sp800_56b_test.c
516
&& TEST_true(RSA_set0_key(key, n, e, d));
crypto/openssl/test/rsa_sp800_56b_test.c
524
ret = TEST_true(ossl_rsa_sp800_56b_check_private(key))
crypto/openssl/test/rsa_sp800_56b_test.c
527
&& TEST_false(ossl_rsa_sp800_56b_check_private(key))
crypto/openssl/test/rsa_sp800_56b_test.c
530
&& TEST_false(ossl_rsa_sp800_56b_check_private(key));
crypto/openssl/test/rsa_sp800_56b_test.c
532
RSA_free(key);
crypto/openssl/test/rsa_sp800_56b_test.c
540
RSA *key = NULL;
crypto/openssl/test/rsa_sp800_56b_test.c
542
ret = TEST_ptr(key = RSA_new())
crypto/openssl/test/rsa_sp800_56b_test.c
544
&& TEST_false(ossl_rsa_sp800_56b_check_public(key))
crypto/openssl/test/rsa_sp800_56b_test.c
548
&& TEST_true(RSA_set0_key(key, n, e, NULL));
crypto/openssl/test/rsa_sp800_56b_test.c
555
ret = TEST_true(ossl_rsa_sp800_56b_check_public(key))
crypto/openssl/test/rsa_sp800_56b_test.c
558
&& TEST_false(ossl_rsa_sp800_56b_check_public(key))
crypto/openssl/test/rsa_sp800_56b_test.c
562
&& TEST_false(ossl_rsa_sp800_56b_check_public(key))
crypto/openssl/test/rsa_sp800_56b_test.c
566
&& TEST_false(ossl_rsa_sp800_56b_check_public(key))
crypto/openssl/test/rsa_sp800_56b_test.c
570
&& TEST_false(ossl_rsa_sp800_56b_check_public(key));
crypto/openssl/test/rsa_sp800_56b_test.c
572
RSA_free(key);
crypto/openssl/test/rsa_test.c
126
static int key3(RSA *key, unsigned char *c)
crypto/openssl/test/rsa_test.c
190
static int rsa_setkey(RSA **key, unsigned char *ctext, int idx)
crypto/openssl/test/rsa_test.c
194
*key = RSA_new();
crypto/openssl/test/rsa_test.c
195
if (*key != NULL)
crypto/openssl/test/rsa_test.c
198
clen = key1(*key, ctext);
crypto/openssl/test/rsa_test.c
201
clen = key2(*key, ctext);
crypto/openssl/test/rsa_test.c
204
clen = key3(*key, ctext);
crypto/openssl/test/rsa_test.c
215
RSA *key;
crypto/openssl/test/rsa_test.c
224
clentmp = rsa_setkey(&key, ctext_ex, idx);
crypto/openssl/test/rsa_test.c
228
num = RSA_public_encrypt(plen, ptext_ex, ctext, key, en_pad_type);
crypto/openssl/test/rsa_test.c
232
num = RSA_private_decrypt(num, ctext, ptext, key, de_pad_type);
crypto/openssl/test/rsa_test.c
243
*retkey = key;
crypto/openssl/test/rsa_test.c
244
key = NULL;
crypto/openssl/test/rsa_test.c
247
RSA_free(key);
crypto/openssl/test/rsa_test.c
260
RSA *key = NULL;
crypto/openssl/test/rsa_test.c
270
ctext_ex, &clen, &key))
crypto/openssl/test/rsa_test.c
276
num = RSA_private_decrypt(clen, ctext_ex, ptext, key,
crypto/openssl/test/rsa_test.c
284
num = RSA_private_decrypt(clen, ctext_ex, ptext, key,
crypto/openssl/test/rsa_test.c
293
num = RSA_private_decrypt(n, ctext_ex, ptext, key,
crypto/openssl/test/rsa_test.c
301
RSA_free(key);
crypto/openssl/test/rsa_test.c
33
RSA_set0_key(key, \
crypto/openssl/test/rsa_test.c
338
RSA *key = RSA_new();
crypto/openssl/test/rsa_test.c
345
if (!TEST_ptr(key) || !TEST_int_le(bytes, (int)sizeof(num)))
crypto/openssl/test/rsa_test.c
361
if (TEST_true(RSA_set0_key(key, BN_bin2bn(num, bytes, NULL),
crypto/openssl/test/rsa_test.c
363
&& TEST_uint_eq(RSA_security_bits(key), result))
crypto/openssl/test/rsa_test.c
366
RSA_free(key);
crypto/openssl/test/rsa_test.c
37
RSA_set0_factors(key, \
crypto/openssl/test/rsa_test.c
40
RSA_set0_crt_params(key, \
crypto/openssl/test/rsa_test.c
48
static int key1(RSA *key, unsigned char *c)
crypto/openssl/test/rsa_test.c
89
static int key2(RSA *key, unsigned char *c)
crypto/openssl/test/siphash_internal_test.c
1839
unsigned char key[SIPHASH_KEY_SIZE];
crypto/openssl/test/siphash_internal_test.c
1857
for (i = 0; i < sizeof(key); i++)
crypto/openssl/test/siphash_internal_test.c
1858
key[i] = (unsigned char)i;
crypto/openssl/test/siphash_internal_test.c
1864
|| !TEST_true(SipHash_Init(&siphash, key, 0, 0)))
crypto/openssl/test/siphash_internal_test.c
1873
|| !TEST_true(SipHash_Init(&siphash, key, 0, 0)))
crypto/openssl/test/siphash_internal_test.c
1890
|| !TEST_true(SipHash_Init(&siphash, key, 0, 0)))
crypto/openssl/test/siphash_internal_test.c
1904
|| !TEST_true(SipHash_Init(&siphash, key, 0, 0)))
crypto/openssl/test/siphash_internal_test.c
1927
static const unsigned char key[SIPHASH_KEY_SIZE] = { 0 };
crypto/openssl/test/siphash_internal_test.c
1936
&& TEST_true(SipHash_Init(&siphash, key, 0, 0))
crypto/openssl/test/siphash_internal_test.c
1942
&& TEST_true(SipHash_Init(&siphash, key, 0, 0))
crypto/openssl/test/siphash_internal_test.c
1948
&& TEST_true(SipHash_Init(&siphash, key, 0, 0))
crypto/openssl/test/slh_dsa_test.c
123
EVP_PKEY *key[4] = { NULL, NULL, NULL, NULL };
crypto/openssl/test/slh_dsa_test.c
130
if (!TEST_ptr(key[0] = slh_dsa_key_from_data(td1->alg, td1->pub, td1->pub_len, 1))
crypto/openssl/test/slh_dsa_test.c
131
|| !TEST_ptr(key[1] = slh_dsa_key_from_data(td1->alg, td1->pub, td1->pub_len, 1))
crypto/openssl/test/slh_dsa_test.c
132
|| !TEST_ptr(key[2] = slh_dsa_key_from_data(td2->alg, td2->pub, td2->pub_len, 1))
crypto/openssl/test/slh_dsa_test.c
133
|| !TEST_ptr(key[3] = EVP_PKEY_dup(key[0])))
crypto/openssl/test/slh_dsa_test.c
136
if (!TEST_int_eq(EVP_PKEY_eq(key[0], key[1]), 1)
crypto/openssl/test/slh_dsa_test.c
137
|| !TEST_int_ne(EVP_PKEY_eq(key[0], key[2]), 1)
crypto/openssl/test/slh_dsa_test.c
138
|| !TEST_int_eq(EVP_PKEY_eq(key[0], key[3]), 1))
crypto/openssl/test/slh_dsa_test.c
144
ret = TEST_int_ne(EVP_PKEY_eq(key[0], eckey), 1);
crypto/openssl/test/slh_dsa_test.c
150
for (i = 0; i < OSSL_NELEM(key); ++i)
crypto/openssl/test/slh_dsa_test.c
151
EVP_PKEY_free(key[i]);
crypto/openssl/test/slh_dsa_test.c
160
EVP_PKEY *key = NULL;
crypto/openssl/test/slh_dsa_test.c
162
if (!TEST_ptr(key = slh_dsa_key_from_data(td->alg, td->pub, td->pub_len, 1)))
crypto/openssl/test/slh_dsa_test.c
164
if (!TEST_ptr(vctx = EVP_PKEY_CTX_new_from_pkey(lib_ctx, key, NULL)))
crypto/openssl/test/slh_dsa_test.c
175
EVP_PKEY_free(key);
crypto/openssl/test/slh_dsa_test.c
183
EVP_PKEY *key = NULL;
crypto/openssl/test/slh_dsa_test.c
189
key = slh_dsa_key_from_data("SLH-DSA-SHA2-128f",
crypto/openssl/test/slh_dsa_test.c
192
if (!TEST_ptr(key))
crypto/openssl/test/slh_dsa_test.c
194
if (!TEST_ptr(vctx = EVP_PKEY_CTX_new_from_pkey(lib_ctx, key, NULL)))
crypto/openssl/test/slh_dsa_test.c
201
EVP_PKEY_free(key);
crypto/openssl/test/slh_dsa_test.c
216
EVP_PKEY *key = NULL;
crypto/openssl/test/slh_dsa_test.c
224
if (!TEST_ptr(key = slh_dsa_key_from_data(td->alg, td->pub, td->pub_len, 1)))
crypto/openssl/test/slh_dsa_test.c
226
if (!TEST_ptr(vctx = EVP_PKEY_CTX_new_from_pkey(lib_ctx, key, NULL)))
crypto/openssl/test/slh_dsa_test.c
238
EVP_PKEY_free(key);
crypto/openssl/test/slh_dsa_test.c
37
EVP_PKEY *key = NULL;
crypto/openssl/test/slh_dsa_test.c
46
&& (EVP_PKEY_fromdata(ctx, &key, selection, params) == 1);
crypto/openssl/test/slh_dsa_test.c
48
EVP_PKEY_free(key);
crypto/openssl/test/slh_dsa_test.c
49
key = NULL;
crypto/openssl/test/slh_dsa_test.c
52
return key;
crypto/openssl/test/slh_dsa_test.c
533
EVP_PKEY *key = NULL;
crypto/openssl/test/slh_dsa_test.c
543
if (!TEST_ptr(key = do_gen_key(alg, NULL, 0)))
crypto/openssl/test/slh_dsa_test.c
553
key, params),
crypto/openssl/test/slh_dsa_test.c
556
"?fips=true", key, params),
crypto/openssl/test/slh_dsa_test.c
567
key, params),
crypto/openssl/test/slh_dsa_test.c
572
key, params),
crypto/openssl/test/slh_dsa_test.c
576
key, params),
crypto/openssl/test/slh_dsa_test.c
582
EVP_PKEY_free(key);
crypto/openssl/test/sm2_internal_test.c
141
EC_KEY *key = NULL;
crypto/openssl/test/sm2_internal_test.c
155
key = EC_KEY_new();
crypto/openssl/test/sm2_internal_test.c
156
if (!TEST_ptr(key)
crypto/openssl/test/sm2_internal_test.c
157
|| !TEST_true(EC_KEY_set_group(key, group))
crypto/openssl/test/sm2_internal_test.c
158
|| !TEST_true(EC_KEY_set_private_key(key, priv)))
crypto/openssl/test/sm2_internal_test.c
164
|| !TEST_true(EC_KEY_set_public_key(key, pt))
crypto/openssl/test/sm2_internal_test.c
165
|| !TEST_true(ossl_sm2_ciphertext_size(key, digest, msg_len,
crypto/openssl/test/sm2_internal_test.c
174
if (!TEST_true(ossl_sm2_encrypt(key, digest,
crypto/openssl/test/sm2_internal_test.c
191
|| !TEST_true(ossl_sm2_decrypt(key, digest, ctext, ctext_len,
crypto/openssl/test/sm2_internal_test.c
204
EC_KEY_free(key);
crypto/openssl/test/sm2_internal_test.c
312
EC_KEY *key = NULL;
crypto/openssl/test/sm2_internal_test.c
322
key = EC_KEY_new();
crypto/openssl/test/sm2_internal_test.c
323
if (!TEST_ptr(key)
crypto/openssl/test/sm2_internal_test.c
324
|| !TEST_true(EC_KEY_set_group(key, group))
crypto/openssl/test/sm2_internal_test.c
325
|| !TEST_true(EC_KEY_set_private_key(key, priv)))
crypto/openssl/test/sm2_internal_test.c
332
|| !TEST_true(EC_KEY_set_public_key(key, pt)))
crypto/openssl/test/sm2_internal_test.c
337
sig = ossl_sm2_do_sign(key, EVP_sm3(), (const uint8_t *)userid,
crypto/openssl/test/sm2_internal_test.c
353
ok = ossl_sm2_do_verify(key, EVP_sm3(), sig, (const uint8_t *)userid,
crypto/openssl/test/sm2_internal_test.c
362
EC_KEY_free(key);
crypto/openssl/test/sm4_internal_test.c
54
SM4_KEY key;
crypto/openssl/test/sm4_internal_test.c
57
ossl_sm4_set_key(k, &key);
crypto/openssl/test/sm4_internal_test.c
60
ossl_sm4_encrypt(block, block, &key);
crypto/openssl/test/sm4_internal_test.c
65
ossl_sm4_encrypt(block, block, &key);
crypto/openssl/test/sm4_internal_test.c
71
ossl_sm4_decrypt(block, block, &key);
crypto/openssl/test/ssl_old_test.c
739
static void print_key_details(BIO *out, EVP_PKEY *key)
crypto/openssl/test/ssl_old_test.c
741
int keyid = EVP_PKEY_get_id(key);
crypto/openssl/test/ssl_old_test.c
748
if (!EVP_PKEY_get_group_name(key, group, sizeof(group), &size))
crypto/openssl/test/ssl_old_test.c
750
BIO_printf(out, "%d bits EC (%s)", EVP_PKEY_get_bits(key), group);
crypto/openssl/test/ssl_old_test.c
769
BIO_printf(out, "%d bits %s", EVP_PKEY_get_bits(key), algname);
crypto/openssl/test/sslapitest.c
5609
const unsigned char key[] = {
crypto/openssl/test/sslapitest.c
5711
|| !TEST_true(SSL_SESSION_set1_master_key(clientpsk, key,
crypto/openssl/test/sslapitest.c
5712
sizeof(key)))
crypto/openssl/test/testutil.h
580
char *key;
crypto/openssl/test/testutil.h
594
BIO *key; /* temp memory BIO for reading in keys */
crypto/openssl/test/testutil/load.c
71
EVP_PKEY *key = NULL;
crypto/openssl/test/testutil/load.c
79
if (TEST_ptr(key = PEM_read_bio_PrivateKey_ex(bio, NULL, NULL, NULL,
crypto/openssl/test/testutil/load.c
83
EVP_PKEY_free(key);
crypto/openssl/test/testutil/load.c
84
key = NULL;
crypto/openssl/test/testutil/load.c
89
return key;
crypto/openssl/test/testutil/stanza.c
114
if (!TEST_ptr(key = strip_spaces(buff))) {
crypto/openssl/test/testutil/stanza.c
121
if (strcmp(key, "Title") == 0) {
crypto/openssl/test/testutil/stanza.c
129
if (strcmp(key, "PrivateKey") == 0
crypto/openssl/test/testutil/stanza.c
130
|| strcmp(key, "PublicKey") == 0
crypto/openssl/test/testutil/stanza.c
131
|| strcmp(key, "ParamKey") == 0) {
crypto/openssl/test/testutil/stanza.c
137
|| !TEST_ptr(pp->key = OPENSSL_strdup(key))
crypto/openssl/test/testutil/stanza.c
153
OPENSSL_free(pp->key);
crypto/openssl/test/testutil/stanza.c
45
if (s->key == NULL) {
crypto/openssl/test/testutil/stanza.c
46
if (!TEST_ptr(s->key = BIO_new(BIO_s_mem())))
crypto/openssl/test/testutil/stanza.c
48
} else if (!TEST_int_gt(BIO_reset(s->key), 0)) {
crypto/openssl/test/testutil/stanza.c
55
if (!TEST_int_gt(BIO_puts(s->key, tmpbuf), 0))
crypto/openssl/test/testutil/stanza.c
88
char *p, *equals, *key;
crypto/openssl/test/threadstest.c
1268
EVP_PKEY *key = NULL;
crypto/openssl/test/threadstest.c
1285
key = PEM_read_bio_PrivateKey(pem, NULL, NULL, NULL);
crypto/openssl/test/threadstest.c
1286
if (key == NULL)
crypto/openssl/test/threadstest.c
1290
EVP_PKEY_free(key);
crypto/openssl/test/threadstest.c
855
const unsigned char key[AES_BLOCK_SIZE] = {
crypto/openssl/test/threadstest.c
885
if (!TEST_true(EVP_EncryptInit_ex(cipherctx, ciph, NULL, key, iv))
crypto/openssl/test/tls-provider.c
1007
if (key == NULL || (select & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
crypto/openssl/test/tls-provider.c
1024
memcpy(key->privkey, privkey, priv_len);
crypto/openssl/test/tls-provider.c
1025
key->hasprivkey = 1;
crypto/openssl/test/tls-provider.c
1028
memcpy(key->pubkey, pubkey, pub_len);
crypto/openssl/test/tls-provider.c
1029
key->haspubkey = 1;
crypto/openssl/test/tls-provider.c
1039
XORKEY *key = vkey;
crypto/openssl/test/tls-provider.c
1042
if (key == NULL || (select & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
crypto/openssl/test/tls-provider.c
1046
key->privkey,
crypto/openssl/test/tls-provider.c
1047
sizeof(key->privkey));
crypto/openssl/test/tls-provider.c
1049
key->pubkey, sizeof(key->pubkey));
crypto/openssl/test/tls-provider.c
1205
XORKEY *key = NULL;
crypto/openssl/test/tls-provider.c
1225
key = xor_newkey(NULL);
crypto/openssl/test/tls-provider.c
1226
if (key == NULL) {
crypto/openssl/test/tls-provider.c
1237
memcpy(key->pubkey, p, plen);
crypto/openssl/test/tls-provider.c
1238
key->haspubkey = 1;
crypto/openssl/test/tls-provider.c
1240
memcpy(key->privkey, p, plen);
crypto/openssl/test/tls-provider.c
1241
key->hasprivkey = 1;
crypto/openssl/test/tls-provider.c
1244
key->tls_name = OPENSSL_strdup(OBJ_nid2sn(nid));
crypto/openssl/test/tls-provider.c
1245
if (key->tls_name == NULL)
crypto/openssl/test/tls-provider.c
1247
return key;
crypto/openssl/test/tls-provider.c
1250
xor_freekey(key);
crypto/openssl/test/tls-provider.c
1324
typedef int check_key_type_fn(const void *key, int nid);
crypto/openssl/test/tls-provider.c
1325
typedef int key_to_paramstring_fn(const void *key, int nid, int save,
crypto/openssl/test/tls-provider.c
1327
typedef int key_to_der_fn(BIO *out, const void *key,
crypto/openssl/test/tls-provider.c
1346
static PKCS8_PRIV_KEY_INFO *key_to_p8info(const void *key, int key_nid,
crypto/openssl/test/tls-provider.c
1357
|| (derlen = k2d(key, &der)) <= 0
crypto/openssl/test/tls-provider.c
1391
static X509_SIG *key_to_encp8(const void *key, int key_nid,
crypto/openssl/test/tls-provider.c
1395
PKCS8_PRIV_KEY_INFO *p8info = key_to_p8info(key, key_nid, params, params_type, k2d);
crypto/openssl/test/tls-provider.c
1407
static X509_PUBKEY *xorx_key_to_pubkey(const void *key, int key_nid,
crypto/openssl/test/tls-provider.c
1418
|| (derlen = k2d(key, &der)) <= 0
crypto/openssl/test/tls-provider.c
1450
static int key_to_epki_der_priv_bio(BIO *out, const void *key,
crypto/openssl/test/tls-provider.c
1465
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1468
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/test/tls-provider.c
1477
static int key_to_epki_pem_priv_bio(BIO *out, const void *key,
crypto/openssl/test/tls-provider.c
1492
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1495
p8 = key_to_encp8(key, key_nid, str, strtype, k2d, ctx);
crypto/openssl/test/tls-provider.c
1504
static int key_to_pki_der_priv_bio(BIO *out, const void *key,
crypto/openssl/test/tls-provider.c
1517
return key_to_epki_der_priv_bio(out, key, key_nid, pemname,
crypto/openssl/test/tls-provider.c
1520
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1523
p8info = key_to_p8info(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
1535
static int key_to_pki_pem_priv_bio(BIO *out, const void *key,
crypto/openssl/test/tls-provider.c
1548
return key_to_epki_pem_priv_bio(out, key, key_nid, pemname,
crypto/openssl/test/tls-provider.c
1551
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1554
p8info = key_to_p8info(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
1566
static int key_to_spki_der_pub_bio(BIO *out, const void *key,
crypto/openssl/test/tls-provider.c
1578
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1581
xpk = xorx_key_to_pubkey(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
1590
static int key_to_spki_pem_pub_bio(BIO *out, const void *key,
crypto/openssl/test/tls-provider.c
1602
if (p2s != NULL && !p2s(key, key_nid, ctx->save_parameters, &str, &strtype))
crypto/openssl/test/tls-provider.c
1605
xpk = xorx_key_to_pubkey(key, key_nid, str, strtype, k2d);
crypto/openssl/test/tls-provider.c
178
void *key = NULL;
crypto/openssl/test/tls-provider.c
181
if ((key = kmgmt_new(provctx)) == NULL
crypto/openssl/test/tls-provider.c
1818
const void *key, const char *typestr, const char *pemname,
crypto/openssl/test/tls-provider.c
182
|| !kmgmt_import(key, selection, params)) {
crypto/openssl/test/tls-provider.c
1827
if (key == NULL || type <= 0) {
crypto/openssl/test/tls-provider.c
183
kmgmt_free(key);
crypto/openssl/test/tls-provider.c
1836
ret = writer(out, key, type, pemname, key2paramstring, key2der, ctx);
crypto/openssl/test/tls-provider.c
184
key = NULL;
crypto/openssl/test/tls-provider.c
1849
return key2any_encode(ctx, cout, key, impl##_pem_type, \
crypto/openssl/test/tls-provider.c
1858
return key2any_encode(ctx, cout, key, impl##_pem_type, \
crypto/openssl/test/tls-provider.c
1867
return key2any_encode(ctx, cout, key, impl##_pem_type, \
crypto/openssl/test/tls-provider.c
187
return key;
crypto/openssl/test/tls-provider.c
190
static void xor_prov_free_key(const OSSL_DISPATCH *fns, void *key)
crypto/openssl/test/tls-provider.c
195
kmgmt_free(key);
crypto/openssl/test/tls-provider.c
1953
static void impl##_to_##kind##_##output##_free_object(void *key) \
crypto/openssl/test/tls-provider.c
1955
xor_prov_free_key(xor_##impl##_keymgmt_functions, key); \
crypto/openssl/test/tls-provider.c
1965
const void *key, \
crypto/openssl/test/tls-provider.c
2214
void *key = NULL;
crypto/openssl/test/tls-provider.c
2219
key = key_from_pkcs8(p8inf, PROV_XOR_LIBCTX_OF(ctx->provctx), NULL);
crypto/openssl/test/tls-provider.c
2222
return key;
crypto/openssl/test/tls-provider.c
2228
XORKEY *key = NULL;
crypto/openssl/test/tls-provider.c
2233
key = xor_key_from_x509pubkey(xpk, NULL, NULL);
crypto/openssl/test/tls-provider.c
2235
if (key == NULL)
crypto/openssl/test/tls-provider.c
2240
*a = key;
crypto/openssl/test/tls-provider.c
2245
return key;
crypto/openssl/test/tls-provider.c
2318
void *key = NULL;
crypto/openssl/test/tls-provider.c
2346
key = ctx->desc->d2i_PKCS8(NULL, &derp, der_len, ctx);
crypto/openssl/test/tls-provider.c
2350
key = ctx->desc->d2i_private_key(NULL, &derp, der_len);
crypto/openssl/test/tls-provider.c
2352
if (key == NULL && ctx->selection != 0)
crypto/openssl/test/tls-provider.c
2355
if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
crypto/openssl/test/tls-provider.c
2358
key = ctx->desc->d2i_PUBKEY(NULL, &derp, der_len);
crypto/openssl/test/tls-provider.c
2360
key = ctx->desc->d2i_public_key(NULL, &derp, der_len);
crypto/openssl/test/tls-provider.c
2361
if (key == NULL && ctx->selection != 0)
crypto/openssl/test/tls-provider.c
2364
if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_ALL_PARAMETERS) != 0) {
crypto/openssl/test/tls-provider.c
2367
key = ctx->desc->d2i_key_params(NULL, &derp, der_len);
crypto/openssl/test/tls-provider.c
2368
if (key == NULL && ctx->selection != 0)
crypto/openssl/test/tls-provider.c
2379
if (key != NULL
crypto/openssl/test/tls-provider.c
2381
&& !ctx->desc->check_key(key, ctx)) {
crypto/openssl/test/tls-provider.c
2382
ctx->desc->free_key(key);
crypto/openssl/test/tls-provider.c
2383
key = NULL;
crypto/openssl/test/tls-provider.c
2386
if (key != NULL && ctx->desc->adjust_key != NULL)
crypto/openssl/test/tls-provider.c
2387
ctx->desc->adjust_key(key, ctx);
crypto/openssl/test/tls-provider.c
2404
if (key != NULL) {
crypto/openssl/test/tls-provider.c
2414
&key, sizeof(key));
crypto/openssl/test/tls-provider.c
2421
ctx->desc->free_key(key);
crypto/openssl/test/tls-provider.c
2446
static void *xorx_d2i_PKCS8(void **key, const unsigned char **der, long der_len,
crypto/openssl/test/tls-provider.c
2453
static void xorx_key_adjust(void *key, struct der2key_ctx_st *ctx)
crypto/openssl/test/tls-provider.c
457
XORKEY *key;
crypto/openssl/test/tls-provider.c
481
pxorctx->key = vkey;
crypto/openssl/test/tls-provider.c
501
if (pxorctx->key == NULL || pxorctx->peerkey == NULL)
crypto/openssl/test/tls-provider.c
512
secret[i] = pxorctx->key->privkey[i] ^ pxorctx->peerkey->pubkey[i];
crypto/openssl/test/tls-provider.c
605
|| !xor_set_peer(derivectx, pxorctx->key)
crypto/openssl/test/tls-provider.c
651
|| !xor_init(derivectx, pxorctx->key, NULL)
crypto/openssl/test/tls-provider.c
703
XORKEY *key = (XORKEY *)keydata;
crypto/openssl/test/tls-provider.c
706
if (key == NULL)
crypto/openssl/test/tls-provider.c
709
if (CRYPTO_DOWN_REF(&key->references, &refcnt) <= 0)
crypto/openssl/test/tls-provider.c
716
if (key != NULL) {
crypto/openssl/test/tls-provider.c
717
OPENSSL_free(key->tls_name);
crypto/openssl/test/tls-provider.c
718
key->tls_name = NULL;
crypto/openssl/test/tls-provider.c
720
CRYPTO_FREE_REF(&key->references);
crypto/openssl/test/tls-provider.c
721
OPENSSL_free(key);
crypto/openssl/test/tls-provider.c
724
static int xor_key_up_ref(XORKEY *key)
crypto/openssl/test/tls-provider.c
728
if (CRYPTO_UP_REF(&key->references, &refcnt) <= 0)
crypto/openssl/test/tls-provider.c
737
const XORKEY *key = vkey;
crypto/openssl/test/tls-provider.c
740
if (key != NULL) {
crypto/openssl/test/tls-provider.c
744
ok = ok && key->haspubkey;
crypto/openssl/test/tls-provider.c
746
ok = ok && key->hasprivkey;
crypto/openssl/test/tls-provider.c
788
XORKEY *key = vkey;
crypto/openssl/test/tls-provider.c
806
memcpy(p->data, key->pubkey, XOR_KEY_SIZE);
crypto/openssl/test/tls-provider.c
826
XORKEY *key = vkey;
crypto/openssl/test/tls-provider.c
834
memcpy(key->pubkey, p->data, XOR_KEY_SIZE);
crypto/openssl/test/tls-provider.c
835
key->haspubkey = 1;
crypto/openssl/test/tls-provider.c
848
XORKEY *key = NULL;
crypto/openssl/test/tls-provider.c
850
if (reference_sz == sizeof(key)) {
crypto/openssl/test/tls-provider.c
852
key = *(XORKEY **)reference;
crypto/openssl/test/tls-provider.c
855
return key;
crypto/openssl/test/tls-provider.c
975
XORKEY *key = xor_newkey(NULL);
crypto/openssl/test/tls-provider.c
978
if (key == NULL)
crypto/openssl/test/tls-provider.c
982
if (RAND_bytes_ex(gctx->libctx, key->privkey, XOR_KEY_SIZE, 0) <= 0) {
crypto/openssl/test/tls-provider.c
983
OPENSSL_free(key);
crypto/openssl/test/tls-provider.c
987
key->pubkey[i] = key->privkey[i] ^ private_constant[i];
crypto/openssl/test/tls-provider.c
988
key->hasprivkey = 1;
crypto/openssl/test/tls-provider.c
989
key->haspubkey = 1;
crypto/openssl/test/tls-provider.c
992
return key;
crypto/openssl/test/tls-provider.c
999
XORKEY *key = vkey;
crypto/openssl/test/tls13encryptiontest.c
216
unsigned char **key, unsigned char *iv, size_t ivlen,
crypto/openssl/test/tls13encryptiontest.c
222
*key = OPENSSL_hexstr2buf(recd->key, NULL);
crypto/openssl/test/tls13encryptiontest.c
227
if (*key == NULL || ivtmp == NULL || sq == NULL || pt == NULL)
crypto/openssl/test/tls13encryptiontest.c
245
OPENSSL_free(*key);
crypto/openssl/test/tls13encryptiontest.c
246
*key = NULL;
crypto/openssl/test/tls13encryptiontest.c
284
unsigned char *key = NULL;
crypto/openssl/test/tls13encryptiontest.c
303
if (!load_record(&rec, &refdata[ctr], &key, iv, ivlen, seqbuf)) {
crypto/openssl/test/tls13encryptiontest.c
31
const char *key;
crypto/openssl/test/tls13encryptiontest.c
313
key, 16, iv, ivlen, NULL, 0, EVP_aes_128_gcm(),
crypto/openssl/test/tls13encryptiontest.c
336
key, 16, iv, ivlen, NULL, 0, EVP_aes_128_gcm(),
crypto/openssl/test/tls13encryptiontest.c
358
OPENSSL_free(key);
crypto/openssl/test/tls13encryptiontest.c
360
key = NULL;
crypto/openssl/test/tls13encryptiontest.c
370
OPENSSL_free(key);
crypto/openssl/test/tls13secretstest.c
230
unsigned char *key, size_t keylen,
crypto/openssl/test/tls13secretstest.c
250
unsigned char key[KEYLEN];
crypto/openssl/test/tls13secretstest.c
268
if (!tls13_derive_key(s, md, gensecret, key, KEYLEN)) {
crypto/openssl/test/tls13secretstest.c
273
if (!TEST_mem_eq(key, KEYLEN, ref_key, KEYLEN))
crypto/openssl/test/v3ext.c
235
unsigned char key[6];
crypto/openssl/test/v3ext.c
255
key[0] = (afi >> 8) & 0xFF;
crypto/openssl/test/v3ext.c
256
key[1] = afi & 0xFF;
crypto/openssl/test/v3ext.c
257
key[2] = 0xD;
crypto/openssl/test/v3ext.c
258
key[3] = 0xE;
crypto/openssl/test/v3ext.c
259
key[4] = 0xA;
crypto/openssl/test/v3ext.c
260
key[5] = 0xD;
crypto/openssl/test/v3ext.c
268
if (!ASN1_OCTET_STRING_set(f1->addressFamily, key, keylen))
crypto/openssl/test/v3ext.c
284
key[0] = (afi >> 8) & 0xFF;
crypto/openssl/test/v3ext.c
285
key[1] = afi & 0xFF;
crypto/openssl/test/v3ext.c
286
key[2] = 0x1;
crypto/openssl/test/v3ext.c
294
if (!ASN1_OCTET_STRING_set(f1->addressFamily, key, keylen))
include/arpa/nameser.h
261
struct dst_key *key;
include/rpc/auth.h
155
} key;
include/rpc/auth_des.h
57
des_block key; /* conversation key */
include/search.h
20
char *key;
include/search.h
37
void *key;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
225
set_key(krb5_keyblock *keyblock, gss_krb5_lucid_key_t *key)
kerberos5/lib/libgssapi_krb5/gss_krb5.c
227
key->type = keyblock->keytype;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
228
key->length = keyblock->keyvalue.length;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
229
key->data = malloc(key->length);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
230
if (key->data == NULL && key->length != 0)
kerberos5/lib/libgssapi_krb5/gss_krb5.c
232
memcpy(key->data, keyblock->keyvalue.data, key->length);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
237
free_key(gss_krb5_lucid_key_t *key)
kerberos5/lib/libgssapi_krb5/gss_krb5.c
239
memset(key->data, 0, key->length);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
240
free(key->data);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
241
memset(key, 0, sizeof(*key));
kerberos5/lib/libgssapi_krb5/gss_krb5.c
328
krb5_keyblock key;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
337
ret = krb5_ret_keyblock(sp, &key);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
339
ret = set_key(&key, &ctx->rfc1964_kd.ctx_key);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
340
krb5_free_keyblock_contents(context, &key);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
343
krb5_keyblock key;
kerberos5/lib/libgssapi_krb5/gss_krb5.c
349
ret = krb5_ret_keyblock(sp, &key);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
351
ret = set_key(&key, &ctx->cfx_kd.ctx_key);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
352
krb5_free_keyblock_contents(context, &key);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
356
ret = krb5_ret_keyblock(sp, &key);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
358
ret = set_key(&key, &ctx->cfx_kd.acceptor_subkey);
kerberos5/lib/libgssapi_krb5/gss_krb5.c
359
krb5_free_keyblock_contents(context, &key);
krb5/lib/gssapi/error_map.h
102
ret = gsserrmap__copy_key (&e->key, key);
krb5/lib/gssapi/error_map.h
25
OM_uint32 key;
krb5/lib/gssapi/error_map.h
46
(*free_key)(e->key);
krb5/lib/gssapi/error_map.h
55
gsserrmap__find_node (struct gsserrmap__head *head, OM_uint32 key)
krb5/lib/gssapi/error_map.h
59
if (compare_OM_uint32 (key, e->key) == 0)
krb5/lib/gssapi/error_map.h
65
gsserrmap_find (struct gsserrmap__head *head, OM_uint32 key)
krb5/lib/gssapi/error_map.h
67
struct gsserrmap__element *e = gsserrmap__find_node(head, key);
krb5/lib/gssapi/error_map.h
86
OM_uint32 key, char * new_value)
krb5/lib/gssapi/error_map.h
88
struct gsserrmap__element *e = gsserrmap__find_node(head, key);
lib/clang/liblldb/LLDBWrapLua.cpp
1191
for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++)
lib/clang/liblldb/LLDBWrapLua.cpp
1195
switch(entry->key.type) {
lib/clang/liblldb/LLDBWrapLua.cpp
1197
lua_pushstring(L,entry->key.key.strkey);
lib/clang/liblldb/LLDBWrapLua.cpp
1198
if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0)
lib/clang/liblldb/LLDBWrapLua.cpp
1202
lua_pushnumber(L,entry->key.key.numkey);
lib/clang/liblldb/LLDBWrapLua.cpp
805
} key;
lib/clang/liblldb/LLDBWrapLua.cpp
825
swig_elua_key key;
lib/geom/eli/geom_eli.c
1028
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1058
unsigned char key[G_ELI_USERKEYLEN];
lib/geom/eli/geom_eli.c
1099
if (eli_genkey(r, &ctxtemplate, &md, key, false) == NULL) {
lib/geom/eli/geom_eli.c
1107
gctl_ro_param(r, "key", sizeof(key), key);
lib/geom/eli/geom_eli.c
1128
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1319
unsigned char key[G_ELI_USERKEYLEN];
lib/geom/eli/geom_eli.c
1331
if (eli_genkey_single(req, md, key, true) == NULL) {
lib/geom/eli/geom_eli.c
1332
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1345
gctl_ro_param(req, "key", sizeof(key), key);
lib/geom/eli/geom_eli.c
1347
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1354
unsigned char key[G_ELI_USERKEYLEN], mkey[G_ELI_DATAIVKEYLEN];
lib/geom/eli/geom_eli.c
1366
if (eli_genkey_single(req, md, key, false) == NULL) {
lib/geom/eli/geom_eli.c
1367
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1372
error = g_eli_mkey_decrypt_any(md, key, mkey, &nkey);
lib/geom/eli/geom_eli.c
1373
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1430
if (eli_genkey_single(req, md, key, true) == NULL) {
lib/geom/eli/geom_eli.c
1431
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1437
error = g_eli_mkey_encrypt(md->md_ealgo, key, md->md_keylen, mkeydst);
lib/geom/eli/geom_eli.c
1438
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1555
unsigned char key[G_ELI_USERKEYLEN];
lib/geom/eli/geom_eli.c
1576
if (eli_genkey_single(req, &md, key, false) == NULL) {
lib/geom/eli/geom_eli.c
1577
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
1581
gctl_ro_param(req, "key", sizeof(key), key);
lib/geom/eli/geom_eli.c
1586
explicit_bzero(key, sizeof(key));
lib/geom/eli/geom_eli.c
594
struct g_eli_metadata *md, unsigned char *key, bool new)
lib/geom/eli/geom_eli.c
603
g_eli_crypto_hmac_final(&ctx, key, 0);
lib/geom/eli/geom_eli.c
605
return (key);
lib/geom/eli/geom_eli.c
610
unsigned char *key, bool new)
lib/geom/eli/geom_eli.c
618
rkey = eli_genkey(req, &ctx, md, key, new);
lib/geom/eli/geom_eli.c
727
unsigned char key[G_ELI_USERKEYLEN];
lib/geom/eli/geom_eli.c
914
if (eli_genkey(r, &ctxtemplate, &md, key, true) == NULL) {
lib/geom/eli/geom_eli.c
923
error = g_eli_mkey_encrypt(md.md_ealgo, key, md.md_keylen,
lib/libc/db/btree/bt_close.c
82
if (t->bt_cursor.key.data != NULL) {
lib/libc/db/btree/bt_close.c
83
free(t->bt_cursor.key.data);
lib/libc/db/btree/bt_close.c
84
t->bt_cursor.key.size = 0;
lib/libc/db/btree/bt_close.c
85
t->bt_cursor.key.data = NULL;
lib/libc/db/btree/bt_delete.c
152
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
lib/libc/db/btree/bt_delete.c
211
if ((e = __bt_search(t, &c->key, &exact)) == NULL)
lib/libc/db/btree/bt_delete.c
279
__bt_bdelete(BTREE *t, const DBT *key)
lib/libc/db/btree/bt_delete.c
288
loop: if ((e = __bt_search(t, key, &exact)) == NULL)
lib/libc/db/btree/bt_delete.c
303
if (__bt_dleaf(t, key, h, e->index)) {
lib/libc/db/btree/bt_delete.c
316
} while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0);
lib/libc/db/btree/bt_delete.c
324
if (__bt_cmp(t, key, e) != 0)
lib/libc/db/btree/bt_delete.c
326
if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) {
lib/libc/db/btree/bt_delete.c
458
__bt_dleaf(BTREE *t, const DBT *key, PAGE *h, u_int idx)
lib/libc/db/btree/bt_delete.c
470
__bt_curdel(t, key, h, idx))
lib/libc/db/btree/bt_delete.c
519
__bt_curdel(BTREE *t, const DBT *key, PAGE *h, u_int idx)
lib/libc/db/btree/bt_delete.c
540
if (key == NULL) {
lib/libc/db/btree/bt_delete.c
544
&c->key, &c->key, NULL, NULL, 1)) != RET_SUCCESS)
lib/libc/db/btree/bt_delete.c
547
key = &c->key;
lib/libc/db/btree/bt_delete.c
553
if (__bt_cmp(t, key, &e) == 0) {
lib/libc/db/btree/bt_delete.c
562
if (__bt_cmp(t, key, &e) == 0) {
lib/libc/db/btree/bt_delete.c
57
__bt_delete(const DB *dbp, const DBT *key, u_int flags)
lib/libc/db/btree/bt_delete.c
573
if (__bt_cmp(t, key, &e) == 0) {
lib/libc/db/btree/bt_delete.c
585
if (__bt_cmp(t, key, &e) == 0) {
lib/libc/db/btree/bt_delete.c
598
__bt_ret(t, &e, &c->key, &c->key, NULL, NULL, 1)) == RET_SUCCESS) {
lib/libc/db/btree/bt_delete.c
80
status = __bt_bdelete(t, key);
lib/libc/db/btree/bt_get.c
57
__bt_get(const DB *dbp, const DBT *key, DBT *data, u_int flags)
lib/libc/db/btree/bt_get.c
77
if ((e = __bt_search(t, key, &exact)) == NULL)
lib/libc/db/btree/bt_put.c
116
if (key->size + data->size > t->bt_ovflsize) {
lib/libc/db/btree/bt_put.c
117
if (key->size > t->bt_ovflsize) {
lib/libc/db/btree/bt_put.c
118
storekey: if (__ovfl_put(t, key, &pg) == RET_ERROR)
lib/libc/db/btree/bt_put.c
123
tmp = key->size;
lib/libc/db/btree/bt_put.c
127
key = &tkey;
lib/libc/db/btree/bt_put.c
129
if (key->size + data->size > t->bt_ovflsize) {
lib/libc/db/btree/bt_put.c
141
if (key->size + data->size > t->bt_ovflsize)
lib/libc/db/btree/bt_put.c
157
if (t->bt_order == NOT || (e = bt_fast(t, key, data, &exact)) == NULL)
lib/libc/db/btree/bt_put.c
158
if ((e = __bt_search(t, key, &exact)) == NULL)
lib/libc/db/btree/bt_put.c
183
delete: if (__bt_dleaf(t, key, h, idx) == RET_ERROR) {
lib/libc/db/btree/bt_put.c
196
nbytes = NBLEAFDBT(key->size, data->size);
lib/libc/db/btree/bt_put.c
198
if ((status = __bt_split(t, h, key,
lib/libc/db/btree/bt_put.c
211
WR_BLEAF(dest, key, data, dflags);
lib/libc/db/btree/bt_put.c
260
bt_fast(BTREE *t, const DBT *key, const DBT *data, int *exactp)
lib/libc/db/btree/bt_put.c
277
nbytes = NBLEAFDBT(key->size, data->size);
lib/libc/db/btree/bt_put.c
286
if ((cmp = __bt_cmp(t, key, &t->bt_cur)) < 0)
lib/libc/db/btree/bt_put.c
294
if ((cmp = __bt_cmp(t, key, &t->bt_cur)) > 0)
lib/libc/db/btree/bt_put.c
61
__bt_put(const DB *dbp, DBT *key, const DBT *data, u_int flags)
lib/libc/db/btree/bt_search.c
101
__bt_sprev(t, h, key, exactp))
lib/libc/db/btree/bt_search.c
105
__bt_snext(t, h, key, exactp))
lib/libc/db/btree/bt_search.c
142
__bt_snext(BTREE *t, PAGE *h, const DBT *key, int *exactp)
lib/libc/db/btree/bt_search.c
153
if (__bt_cmp(t, key, &e) == 0) {
lib/libc/db/btree/bt_search.c
177
__bt_sprev(BTREE *t, PAGE *h, const DBT *key, int *exactp)
lib/libc/db/btree/bt_search.c
188
if (__bt_cmp(t, key, &e) == 0) {
lib/libc/db/btree/bt_search.c
60
__bt_search(BTREE *t, const DBT *key, int *exactp)
lib/libc/db/btree/bt_search.c
76
if ((cmp = __bt_cmp(t, key, &t->bt_cur)) == 0) {
lib/libc/db/btree/bt_seq.c
101
status = __bt_seqset(t, &e, key, flags);
lib/libc/db/btree/bt_seq.c
112
__bt_ret(t, &e, key, &t->bt_rkey, data, &t->bt_rdata, 0);
lib/libc/db/btree/bt_seq.c
143
__bt_seqset(BTREE *t, EPG *ep, DBT *key, int flags)
lib/libc/db/btree/bt_seq.c
160
if (key->data == NULL || key->size == 0) {
lib/libc/db/btree/bt_seq.c
164
return (__bt_first(t, key, ep, &exact));
lib/libc/db/btree/bt_seq.c
250
return (__bt_first(t, &c->key, ep, &exact));
lib/libc/db/btree/bt_seq.c
326
__bt_first(BTREE *t, const DBT *key, EPG *erval, int *exactp)
lib/libc/db/btree/bt_seq.c
340
if ((ep = __bt_search(t, key, exactp)) == NULL)
lib/libc/db/btree/bt_seq.c
383
} while (__bt_cmp(t, key, ep) == 0);
lib/libc/db/btree/bt_seq.c
426
if (t->bt_cursor.key.data != NULL) {
lib/libc/db/btree/bt_seq.c
427
free(t->bt_cursor.key.data);
lib/libc/db/btree/bt_seq.c
428
t->bt_cursor.key.size = 0;
lib/libc/db/btree/bt_seq.c
429
t->bt_cursor.key.data = NULL;
lib/libc/db/btree/bt_seq.c
71
__bt_seq(const DB *dbp, DBT *key, DBT *data, u_int flags)
lib/libc/db/btree/bt_split.c
109
WR_BLEAF(dest, key, data, flags)
lib/libc/db/btree/bt_split.c
73
__bt_split(BTREE *t, PAGE *sp, const DBT *key, const DBT *data, int flags,
lib/libc/db/btree/bt_utils.c
61
__bt_ret(BTREE *t, EPG *e, DBT *key, DBT *rkey, DBT *data, DBT *rdata, int copy)
lib/libc/db/btree/bt_utils.c
73
if (key == NULL)
lib/libc/db/btree/bt_utils.c
78
&key->size, &rkey->data, &rkey->size))
lib/libc/db/btree/bt_utils.c
80
key->data = rkey->data;
lib/libc/db/btree/bt_utils.c
90
key->size = bl->ksize;
lib/libc/db/btree/bt_utils.c
91
key->data = rkey->data;
lib/libc/db/btree/bt_utils.c
93
key->size = bl->ksize;
lib/libc/db/btree/bt_utils.c
94
key->data = bl->bytes;
lib/libc/db/btree/btree.h
188
#define WR_BLEAF(p, key, data, flags) { \
lib/libc/db/btree/btree.h
189
*(u_int32_t *)p = key->size; \
lib/libc/db/btree/btree.h
195
memmove(p, key->data, key->size); \
lib/libc/db/btree/btree.h
196
p += key->size; \
lib/libc/db/btree/btree.h
273
DBT key; /* B: Saved key, or key.data == NULL. */
lib/libc/db/hash/hash.c
517
hash_get(const DB *dbp, const DBT *key, DBT *data, u_int32_t flag)
lib/libc/db/hash/hash.c
530
return (hash_access(hashp, HASH_GET, (DBT *)key, data));
lib/libc/db/hash/hash.c
534
hash_put(const DB *dbp, DBT *key, const DBT *data, u_int32_t flag)
lib/libc/db/hash/hash.c
548
HASH_PUTNEW : HASH_PUT, (DBT *)key, (DBT *)data));
lib/libc/db/hash/hash.c
552
hash_delete(const DB *dbp, const DBT *key,
lib/libc/db/hash/hash.c
566
return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
lib/libc/db/hash/hash.c
573
hash_access(HTAB *hashp, ACTION action, DBT *key, DBT *val)
lib/libc/db/hash/hash.c
587
size = key->size;
lib/libc/db/hash/hash.c
588
kp = (char *)key->data;
lib/libc/db/hash/hash.c
651
if (__addel(hashp, rbufp, key, val)) {
lib/libc/db/hash/hash.c
682
(__addel(hashp, rbufp, key, val))) {
lib/libc/db/hash/hash.c
699
hash_seq(const DB *dbp, DBT *key, DBT *data, u_int32_t flag)
lib/libc/db/hash/hash.c
772
if (__big_keydata(hashp, bufp, key, data, 1))
lib/libc/db/hash/hash.c
777
key->data = (u_char *)hashp->cpage->page + bp[ndx];
lib/libc/db/hash/hash.c
778
key->size = (ndx > 1 ? bp[ndx - 1] : hashp->BSIZE) - bp[ndx];
lib/libc/db/hash/hash_bigkey.c
269
__find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size)
lib/libc/db/hash/hash_bigkey.c
280
kkey = key;
lib/libc/db/hash/hash_bigkey.c
494
__big_keydata(HTAB *hashp, BUFHEAD *bufp, DBT *key, DBT *val, int set)
lib/libc/db/hash/hash_bigkey.c
496
key->size = (size_t)collect_key(hashp, bufp, 0, val, set);
lib/libc/db/hash/hash_bigkey.c
497
if (key->size == (size_t)-1)
lib/libc/db/hash/hash_bigkey.c
499
key->data = (u_char *)hashp->tmp_key;
lib/libc/db/hash/hash_bigkey.c
557
DBT key, val;
lib/libc/db/hash/hash_bigkey.c
564
if (__big_keydata(hashp, big_keyp, &key, &val, 0))
lib/libc/db/hash/hash_bigkey.c
566
change = (__call_hash(hashp, key.data, key.size) != obucket);
lib/libc/db/hash/hash_bigkey.c
82
__big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val)
lib/libc/db/hash/hash_bigkey.c
93
key_data = (char *)key->data;
lib/libc/db/hash/hash_bigkey.c
94
key_size = key->size;
lib/libc/db/hash/hash_func.c
44
__default_hash(const void *key, size_t len)
lib/libc/db/hash/hash_func.c
54
k = key;
lib/libc/db/hash/hash_page.c
101
off = OFFSET(bp) - key->size;
lib/libc/db/hash/hash_page.c
102
memmove(p + off, key->data, key->size);
lib/libc/db/hash/hash_page.c
184
DBT key, val;
lib/libc/db/hash/hash_page.c
215
key.data = (u_char *)op + ino[n];
lib/libc/db/hash/hash_page.c
216
key.size = off - ino[n];
lib/libc/db/hash/hash_page.c
218
if (__call_hash(hashp, key.data, key.size) == obucket) {
lib/libc/db/hash/hash_page.c
234
putpair(np, &key, &val);
lib/libc/db/hash/hash_page.c
286
DBT key, val;
lib/libc/db/hash/hash_page.c
346
key.data = (u_char *)cino + ino[n];
lib/libc/db/hash/hash_page.c
347
key.size = off - ino[n];
lib/libc/db/hash/hash_page.c
352
if (__call_hash(hashp, key.data, key.size) == obucket) {
lib/libc/db/hash/hash_page.c
354
if (PAIRFITS(op, (&key), (&val)))
lib/libc/db/hash/hash_page.c
355
putpair((char *)op, &key, &val);
lib/libc/db/hash/hash_page.c
362
putpair((char *)op, &key, &val);
lib/libc/db/hash/hash_page.c
367
if (PAIRFITS(np, (&key), (&val)))
lib/libc/db/hash/hash_page.c
368
putpair((char *)np, &key, &val);
lib/libc/db/hash/hash_page.c
375
putpair((char *)np, &key, &val);
lib/libc/db/hash/hash_page.c
394
__addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val)
lib/libc/db/hash/hash_page.c
418
FREESPACE(bp) >= PAIRSIZE(key, val)) {
lib/libc/db/hash/hash_page.c
419
squeeze_key(bp, key, val);
lib/libc/db/hash/hash_page.c
429
if (PAIRFITS(bp, key, val))
lib/libc/db/hash/hash_page.c
430
putpair(bufp->page, key, val);
lib/libc/db/hash/hash_page.c
438
if (PAIRFITS(sop, key, val))
lib/libc/db/hash/hash_page.c
439
putpair((char *)sop, key, val);
lib/libc/db/hash/hash_page.c
441
if (__big_insert(hashp, bufp, key, val))
lib/libc/db/hash/hash_page.c
877
squeeze_key(u_int16_t *sp, const DBT *key, const DBT *val)
lib/libc/db/hash/hash_page.c
888
off -= key->size;
lib/libc/db/hash/hash_page.c
890
memmove(p + off, key->data, key->size);
lib/libc/db/hash/hash_page.c
897
FREESPACE(sp) = free_space - PAIRSIZE(key, val);
lib/libc/db/hash/hash_page.c
92
putpair(char *p, const DBT *key, const DBT *val)
lib/libc/db/hash/ndbm.c
152
dbm_delete(DBM *db, datum key)
lib/libc/db/hash/ndbm.c
157
dbtkey.data = key.dptr;
lib/libc/db/hash/ndbm.c
158
dbtkey.size = key.dsize;
lib/libc/db/hash/ndbm.c
173
dbm_store(DBM *db, datum key, datum data, int flags)
lib/libc/db/hash/ndbm.c
177
dbtkey.data = key.dptr;
lib/libc/db/hash/ndbm.c
178
dbtkey.size = key.dsize;
lib/libc/db/hash/ndbm.c
88
dbm_fetch(DBM *db, datum key)
lib/libc/db/hash/ndbm.c
94
dbtkey.data = key.dptr;
lib/libc/db/hash/ndbm.c
95
dbtkey.size = key.dsize;
lib/libc/db/mpool/mpool.c
59
mpool_open(void *key, int fd, pgno_t pagesize, pgno_t maxcache)
lib/libc/db/recno/rec_close.c
107
DBT data, key;
lib/libc/db/recno/rec_close.c
137
key.size = sizeof(recno_t);
lib/libc/db/recno/rec_close.c
138
key.data = &trec;
lib/libc/db/recno/rec_close.c
146
status = (dbp->seq)(dbp, &key, &data, R_FIRST);
lib/libc/db/recno/rec_close.c
151
status = (dbp->seq)(dbp, &key, &data, R_NEXT);
lib/libc/db/recno/rec_close.c
157
status = (dbp->seq)(dbp, &key, &data, R_FIRST);
lib/libc/db/recno/rec_close.c
163
status = (dbp->seq)(dbp, &key, &data, R_NEXT);
lib/libc/db/recno/rec_delete.c
58
__rec_delete(const DB *dbp, const DBT *key, u_int flags)
lib/libc/db/recno/rec_delete.c
74
if ((nrec = *(recno_t *)key->data) == 0)
lib/libc/db/recno/rec_get.c
57
__rec_get(const DB *dbp, const DBT *key, DBT *data, u_int flags)
lib/libc/db/recno/rec_get.c
73
if (flags || (nrec = *(recno_t *)key->data) == 0) {
lib/libc/db/recno/rec_put.c
104
if ((nrec = *(recno_t *)key->data) == 0)
lib/libc/db/recno/rec_put.c
108
if ((nrec = *(recno_t *)key->data) == 0) {
lib/libc/db/recno/rec_put.c
115
if ((nrec = *(recno_t *)key->data) == 0)
lib/libc/db/recno/rec_put.c
119
if ((nrec = *(recno_t *)key->data) == 0)
lib/libc/db/recno/rec_put.c
169
return (__rec_ret(t, NULL, nrec, key, NULL));
lib/libc/db/recno/rec_put.c
56
__rec_put(const DB *dbp, DBT *key, const DBT *data, u_int flags)
lib/libc/db/recno/rec_seq.c
116
status = __rec_ret(t, e, nrec, key, data);
lib/libc/db/recno/rec_seq.c
55
__rec_seq(const DB *dbp, DBT *key, DBT *data, u_int flags)
lib/libc/db/recno/rec_seq.c
72
if ((nrec = *(recno_t *)key->data) == 0)
lib/libc/db/recno/rec_utils.c
56
__rec_ret(BTREE *t, EPG *e, recno_t nrec, DBT *key, DBT *data)
lib/libc/db/recno/rec_utils.c
61
if (key == NULL)
lib/libc/db/recno/rec_utils.c
73
key->size = sizeof(recno_t);
lib/libc/db/recno/rec_utils.c
74
key->data = t->bt_rkey.data;
lib/libc/db/test/btree.tests/main.c
271
DBT key, data;
lib/libc/db/test/btree.tests/main.c
279
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
280
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
283
status = (db->put)(db, &key, &data, R_APPEND);
lib/libc/db/test/btree.tests/main.c
301
DBT data, key;
lib/libc/db/test/btree.tests/main.c
304
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
306
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
308
key.size = strlen(argv[1]) + 1;
lib/libc/db/test/btree.tests/main.c
309
status = (*db->seq)(db, &key, &data, R_CURSOR);
lib/libc/db/test/btree.tests/main.c
318
keydata(&key, &data);
lib/libc/db/test/btree.tests/main.c
341
DBT key;
lib/libc/db/test/btree.tests/main.c
344
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
346
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
348
key.size = strlen(argv[1]) + 1;
lib/libc/db/test/btree.tests/main.c
350
status = (*db->del)(db, &key, 0);
lib/libc/db/test/btree.tests/main.c
376
DBT data, key;
lib/libc/db/test/btree.tests/main.c
379
status = (*db->seq)(db, &key, &data, R_FIRST);
lib/libc/db/test/btree.tests/main.c
389
keydata(&key, &data);
lib/libc/db/test/btree.tests/main.c
399
DBT data, key;
lib/libc/db/test/btree.tests/main.c
402
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
404
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
406
key.size = strlen(argv[1]) + 1;
lib/libc/db/test/btree.tests/main.c
408
status = (*db->get)(db, &key, &data, 0);
lib/libc/db/test/btree.tests/main.c
418
keydata(&key, &data);
lib/libc/db/test/btree.tests/main.c
441
DBT key, data;
lib/libc/db/test/btree.tests/main.c
449
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
450
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
453
status = (db->put)(db, &key, &data, R_IAFTER);
lib/libc/db/test/btree.tests/main.c
471
DBT key, data;
lib/libc/db/test/btree.tests/main.c
479
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
480
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
483
status = (db->put)(db, &key, &data, R_IBEFORE);
lib/libc/db/test/btree.tests/main.c
502
DBT data, key;
lib/libc/db/test/btree.tests/main.c
504
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
506
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
508
key.size = strlen(argv[1]) + 1;
lib/libc/db/test/btree.tests/main.c
512
status = (*db->put)(db, &key, &data, R_CURSOR);
lib/libc/db/test/btree.tests/main.c
531
DBT data, key;
lib/libc/db/test/btree.tests/main.c
533
key.data = argv[1];
lib/libc/db/test/btree.tests/main.c
535
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
537
key.size = strlen(argv[1]) + 1;
lib/libc/db/test/btree.tests/main.c
541
status = (*db->put)(db, &key, &data, R_NOOVERWRITE);
lib/libc/db/test/btree.tests/main.c
559
DBT data, key;
lib/libc/db/test/btree.tests/main.c
562
status = (*db->seq)(db, &key, &data, R_LAST);
lib/libc/db/test/btree.tests/main.c
572
keydata(&key, &data);
lib/libc/db/test/btree.tests/main.c
582
DBT data, key;
lib/libc/db/test/btree.tests/main.c
590
status = (*db->seq)(db, &key, &data, R_FIRST);
lib/libc/db/test/btree.tests/main.c
592
(void)fprintf(fp, "%s\n", key.data);
lib/libc/db/test/btree.tests/main.c
593
status = (*db->seq)(db, &key, &data, R_NEXT);
lib/libc/db/test/btree.tests/main.c
607
DBT data, key;
lib/libc/db/test/btree.tests/main.c
622
key.data = &cnt;
lib/libc/db/test/btree.tests/main.c
623
key.size = sizeof(recno_t);
lib/libc/db/test/btree.tests/main.c
627
key.data = lp;
lib/libc/db/test/btree.tests/main.c
628
key.size = len + 1;
lib/libc/db/test/btree.tests/main.c
635
status = (*db->put)(db, &key, &data, R_NOOVERWRITE);
lib/libc/db/test/btree.tests/main.c
646
"duplicate: %ld {%s}\n", cnt, key.data);
lib/libc/db/test/btree.tests/main.c
660
DBT data, key;
lib/libc/db/test/btree.tests/main.c
663
status = (*db->seq)(db, &key, &data, R_NEXT);
lib/libc/db/test/btree.tests/main.c
673
keydata(&key, &data);
lib/libc/db/test/btree.tests/main.c
683
DBT data, key;
lib/libc/db/test/btree.tests/main.c
686
status = (*db->seq)(db, &key, &data, R_PREV);
lib/libc/db/test/btree.tests/main.c
696
keydata(&key, &data);
lib/libc/db/test/btree.tests/main.c
742
keydata(key, data)
lib/libc/db/test/btree.tests/main.c
743
DBT *key, *data;
lib/libc/db/test/btree.tests/main.c
745
if (!recno && key->size > 0)
lib/libc/db/test/btree.tests/main.c
746
(void)printf("%s/", key->data);
lib/libc/db/test/dbtest.c
201
rem(dbp, &key);
lib/libc/db/test/dbtest.c
221
seq(dbp, &key);
lib/libc/db/test/dbtest.c
241
put(dbp, &key, &data);
lib/libc/db/test/dbtest.c
248
free(key.data);
lib/libc/db/test/dbtest.c
258
key.data = rfile(p + 1, &key.size);
lib/libc/db/test/dbtest.c
266
key.data = &recno;
lib/libc/db/test/dbtest.c
267
key.size = sizeof(recno);
lib/libc/db/test/dbtest.c
269
key.data = xmalloc(p + 1, len - 1);
lib/libc/db/test/dbtest.c
270
key.size = len - 1;
lib/libc/db/test/dbtest.c
274
getdata(dbp, &key, &keydata);
lib/libc/db/test/dbtest.c
278
get(dbp, &key);
lib/libc/db/test/dbtest.c
280
free(key.data);
lib/libc/db/test/dbtest.c
287
rem(dbp, &key);
lib/libc/db/test/dbtest.c
289
free(key.data);
lib/libc/db/test/dbtest.c
293
seq(dbp, &key);
lib/libc/db/test/dbtest.c
295
free(key.data);
lib/libc/db/test/dbtest.c
484
DBT key, data;
lib/libc/db/test/dbtest.c
495
switch (dbp->seq(dbp, &key, &data, flags)) {
lib/libc/db/test/dbtest.c
83
DBT data, key, keydata;
lib/libc/db/test/hash.tests/driver2.c
43
int my_hash(key, len)
lib/libc/db/test/hash.tests/driver2.c
44
char *key;
lib/libc/db/test/hash.tests/driver2.c
54
DBT key, content;
lib/libc/db/test/hash.tests/driver2.c
78
key.data = keybuf;
lib/libc/db/test/hash.tests/driver2.c
83
key.size = 128 + (random()&1023);
lib/libc/db/test/hash.tests/driver2.c
89
if ((db->put)(db, &key, &content, R_NOOVERWRITE)) {
lib/libc/db/test/hash.tests/tcreat3.c
48
DBT item, key;
lib/libc/db/test/hash.tests/tcreat3.c
70
key.data = wp1;
lib/libc/db/test/hash.tests/tcreat3.c
78
key.size = strlen(wp1);
lib/libc/db/test/hash.tests/tcreat3.c
84
if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
lib/libc/db/test/hash.tests/tdel.c
100
stat = (dbp->del)(dbp, &key, 0);
lib/libc/db/test/hash.tests/tdel.c
102
fprintf ( stderr, "Error retrieving %s\n", key.data );
lib/libc/db/test/hash.tests/tdel.c
49
DBT item, key;
lib/libc/db/test/hash.tests/tdel.c
72
key.data = wp1;
lib/libc/db/test/hash.tests/tdel.c
80
key.size = strlen(wp1);
lib/libc/db/test/hash.tests/tdel.c
86
if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
lib/libc/db/test/hash.tests/tdel.c
99
key.size = strlen(wp1);
lib/libc/db/test/hash.tests/thash4.c
104
key.size = strlen(wp1);
lib/libc/db/test/hash.tests/thash4.c
105
stat = (dbp->get)(dbp, &key, &res, 0);
lib/libc/db/test/hash.tests/thash4.c
107
fprintf ( stderr, "Error retrieving %s\n", key.data );
lib/libc/db/test/hash.tests/thash4.c
111
fprintf ( stderr, "%s not found\n", key.data );
lib/libc/db/test/hash.tests/thash4.c
51
DBT item, key, res;
lib/libc/db/test/hash.tests/thash4.c
75
key.data = wp1;
lib/libc/db/test/hash.tests/thash4.c
83
key.size = strlen(wp1);
lib/libc/db/test/hash.tests/thash4.c
89
if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
lib/libc/db/test/hash.tests/tread2.c
52
DBT item, key, res;
lib/libc/db/test/hash.tests/tread2.c
71
key.data = wp1;
lib/libc/db/test/hash.tests/tread2.c
79
key.size = strlen(wp1);
lib/libc/db/test/hash.tests/tread2.c
82
stat = (dbp->get)(dbp, &key, &res,0);
lib/libc/db/test/hash.tests/tread2.c
84
fprintf ( stderr, "Error retrieving %s\n", key.data );
lib/libc/db/test/hash.tests/tread2.c
87
fprintf ( stderr, "%s not found\n", key.data );
lib/libc/db/test/hash.tests/tseq.c
49
DBT item, key, res;
lib/libc/db/test/hash.tests/tverify.c
52
DBT key, res;
lib/libc/db/test/hash.tests/tverify.c
72
key.data = wp1;
lib/libc/db/test/hash.tests/tverify.c
79
key.size = strlen(wp1);
lib/libc/db/test/hash.tests/tverify.c
81
stat = (dbp->get)(dbp, &key, &res,0);
lib/libc/db/test/hash.tests/tverify.c
83
fprintf ( stderr, "Error retrieving %s\n", key.data );
lib/libc/db/test/hash.tests/tverify.c
86
fprintf ( stderr, "%s not found\n", key.data );
lib/libc/db/test/hash.tests/tverify.c
90
fprintf ( stderr, "data for %s is incorrect. Data was %s. Should have been %s\n", key.data, res.data, wp2 );
lib/libc/gen/crypt.c
46
int __freebsd11_des_setkey(const char *key);
lib/libc/gen/crypt.c
48
int __freebsd11_setkey(const char *key);
lib/libc/gen/crypt.c
53
__freebsd11_des_setkey(const char *key __unused)
lib/libc/gen/crypt.c
71
__freebsd11_setkey(const char *key __unused)
lib/libc/gen/getcap.c
532
DBT key, data;
lib/libc/gen/getcap.c
538
key.data = namebuf;
lib/libc/gen/getcap.c
539
key.size = strlen(namebuf);
lib/libc/gen/getcap.c
543
switch(capdbp->get(capdbp, &key, &data, 0)) {
lib/libc/gen/getcap.c
556
key.data = (char *)data.data + 1;
lib/libc/gen/getcap.c
557
key.size = data.size - 1;
lib/libc/gen/getgrent.c
1069
free(((struct nis_state *)p)->key);
lib/libc/gen/getgrent.c
1084
free(st->key);
lib/libc/gen/getgrent.c
1085
st->key = NULL;
lib/libc/gen/getgrent.c
1097
char *buffer, *key, *result;
lib/libc/gen/getgrent.c
1152
if (st->key == NULL)
lib/libc/gen/getgrent.c
1153
rv = yp_first(st->domain, map, &st->key,
lib/libc/gen/getgrent.c
1156
key = st->key;
lib/libc/gen/getgrent.c
1158
st->key = NULL;
lib/libc/gen/getgrent.c
1159
rv = yp_next(st->domain, map, key, keylen,
lib/libc/gen/getgrent.c
1160
&st->key, &st->keylen, &result,
lib/libc/gen/getgrent.c
1162
free(key);
lib/libc/gen/getgrent.c
1166
free(st->key);
lib/libc/gen/getgrent.c
1167
st->key = NULL;
lib/libc/gen/getgrent.c
123
char *key;
lib/libc/gen/getgrent.c
691
getgr(int (*fn)(union key, struct group *, char *, size_t, struct group **),
lib/libc/gen/getgrent.c
692
union key key)
lib/libc/gen/getgrent.c
704
rv = fn(key, &grp, grp_storage, grp_storage_size, &res);
lib/libc/gen/getgrent.c
725
wrap_getgrnam_r(union key key, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
728
return (getgrnam_r(key.name, grp, buffer, bufsize, res));
lib/libc/gen/getgrent.c
733
wrap_getgrgid_r(union key key, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
736
return (getgrgid_r(key.gid, grp, buffer, bufsize, res));
lib/libc/gen/getgrent.c
741
wrap_getgrent_r(union key key __unused, struct group *grp, char *buffer,
lib/libc/gen/getgrent.c
751
union key key;
lib/libc/gen/getgrent.c
753
key.name = name;
lib/libc/gen/getgrent.c
754
return (getgr(wrap_getgrnam_r, key));
lib/libc/gen/getgrent.c
761
union key key;
lib/libc/gen/getgrent.c
763
key.gid = gid;
lib/libc/gen/getgrent.c
764
return (getgr(wrap_getgrgid_r, key));
lib/libc/gen/getgrent.c
771
union key key;
lib/libc/gen/getgrent.c
773
key.gid = 0; /* not used */
lib/libc/gen/getgrent.c
774
return (getgr(wrap_getgrent_r, key));
lib/libc/gen/getgrent.c
89
static struct group *getgr(int (*)(union key, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
90
struct group **), union key);
lib/libc/gen/getgrent.c
91
static int wrap_getgrnam_r(union key, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
93
static int wrap_getgrgid_r(union key, struct group *, char *, size_t,
lib/libc/gen/getgrent.c
95
static int wrap_getgrent_r(union key, struct group *, char *, size_t,
lib/libc/gen/getnetgrent.c
480
char key[MAXHOSTNAMELEN];
lib/libc/gen/getnetgrent.c
487
snprintf(key, MAXHOSTNAMELEN, "%s.%s", str,
lib/libc/gen/getnetgrent.c
491
snprintf(key, MAXHOSTNAMELEN, "%s.*", str);
lib/libc/gen/getnetgrent.c
494
snprintf(key, MAXHOSTNAMELEN, "*.%s",
lib/libc/gen/getnetgrent.c
498
snprintf(key, MAXHOSTNAMELEN, "*.*");
lib/libc/gen/getnetgrent.c
503
y = yp_match(lookupdom, map, key, strlen(key), &result,
lib/libc/gen/getpwent.c
101
static struct passwd *getpw(int (*fn)(union key, struct passwd *, char *,
lib/libc/gen/getpwent.c
102
size_t, struct passwd **), union key);
lib/libc/gen/getpwent.c
103
static int wrap_getpwnam_r(union key, struct passwd *, char *,
lib/libc/gen/getpwent.c
105
static int wrap_getpwuid_r(union key, struct passwd *, char *, size_t,
lib/libc/gen/getpwent.c
107
static int wrap_getpwent_r(union key, struct passwd *, char *, size_t,
lib/libc/gen/getpwent.c
1200
free(((struct nis_state *)p)->key);
lib/libc/gen/getpwent.c
1280
free(st->key);
lib/libc/gen/getpwent.c
1281
st->key = NULL;
lib/libc/gen/getpwent.c
1293
char *buffer, *key, *result;
lib/libc/gen/getpwent.c
1348
if (st->key == NULL)
lib/libc/gen/getpwent.c
1349
rv = yp_first(st->domain, map, &st->key,
lib/libc/gen/getpwent.c
1352
key = st->key;
lib/libc/gen/getpwent.c
1354
st->key = NULL;
lib/libc/gen/getpwent.c
1355
rv = yp_next(st->domain, map, key, keylen,
lib/libc/gen/getpwent.c
1356
&st->key, &st->keylen, &result,
lib/libc/gen/getpwent.c
1358
free(key);
lib/libc/gen/getpwent.c
1362
free(st->key);
lib/libc/gen/getpwent.c
1363
st->key = NULL;
lib/libc/gen/getpwent.c
1547
DBT key, data;
lib/libc/gen/getpwent.c
1552
key.size = strlen(name);
lib/libc/gen/getpwent.c
1553
key.data = (char *)name;
lib/libc/gen/getpwent.c
1557
if ((*db)->put(*db, &key, &data, 0) == -1)
lib/libc/gen/getpwent.c
1566
DBT key, data;
lib/libc/gen/getpwent.c
1570
key.size = strlen(name);
lib/libc/gen/getpwent.c
1571
key.data = (char *)name;
lib/libc/gen/getpwent.c
1572
return (db->get(db, &key, &data, 0) == 0);
lib/libc/gen/getpwent.c
160
char *key;
lib/libc/gen/getpwent.c
1732
DBT key, entry;
lib/libc/gen/getpwent.c
1829
key.data = keybuf;
lib/libc/gen/getpwent.c
1835
key.size = sizeof(keynum) + 1;
lib/libc/gen/getpwent.c
1839
key.size = sizeof(store) + 1;
lib/libc/gen/getpwent.c
1842
rv = st->db->get(st->db, &key, &entry, 0);
lib/libc/gen/getpwent.c
628
getpw(int (*fn)(union key, struct passwd *, char *, size_t, struct passwd **),
lib/libc/gen/getpwent.c
629
union key key)
lib/libc/gen/getpwent.c
641
rv = fn(key, &pwd, pwd_storage, pwd_storage_size, &res);
lib/libc/gen/getpwent.c
662
wrap_getpwnam_r(union key key, struct passwd *pwd, char *buffer,
lib/libc/gen/getpwent.c
665
return (getpwnam_r(key.name, pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
670
wrap_getpwuid_r(union key key, struct passwd *pwd, char *buffer,
lib/libc/gen/getpwent.c
673
return (getpwuid_r(key.uid, pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
678
wrap_getpwent_r(union key key __unused, struct passwd *pwd, char *buffer,
lib/libc/gen/getpwent.c
688
union key key;
lib/libc/gen/getpwent.c
690
key.name = name;
lib/libc/gen/getpwent.c
691
return (getpw(wrap_getpwnam_r, key));
lib/libc/gen/getpwent.c
698
union key key;
lib/libc/gen/getpwent.c
700
key.uid = uid;
lib/libc/gen/getpwent.c
701
return (getpw(wrap_getpwuid_r, key));
lib/libc/gen/getpwent.c
708
union key key;
lib/libc/gen/getpwent.c
710
key.uid = 0; /* not used */
lib/libc/gen/getpwent.c
711
return (getpw(wrap_getpwent_r, key));
lib/libc/gen/getpwent.c
722
DBT key, entry;
lib/libc/gen/getpwent.c
730
key.data = _PWD_VERSION_KEY;
lib/libc/gen/getpwent.c
731
key.size = strlen(_PWD_VERSION_KEY);
lib/libc/gen/getpwent.c
732
rv = res->get(res, &key, &entry, 0);
lib/libc/gen/getpwent.c
796
DBT key, entry;
lib/libc/gen/getpwent.c
847
key.data = keybuf;
lib/libc/gen/getpwent.c
860
key.size = namesize + 1;
lib/libc/gen/getpwent.c
865
key.size = sizeof(uid) + 1;
lib/libc/gen/getpwent.c
869
key.size = sizeof(store) + 1;
lib/libc/gen/getpwent.c
877
key.size = sizeof(st->keynum) + 1;
lib/libc/gen/getpwent.c
881
key.size = sizeof(store) + 1;
lib/libc/gen/getpwent.c
886
rv = st->db->get(st->db, &key, &entry, 0);
lib/libc/gen/getusershell.c
181
char *key, *data;
lib/libc/gen/getusershell.c
206
key = data = NULL;
lib/libc/gen/getusershell.c
207
if (yp_first(ypdomain, "shells", &key, &keylen, &data, &datalen))
lib/libc/gen/getusershell.c
213
lastkey = key;
lib/libc/gen/getusershell.c
215
&key, &keylen, &data, &datalen);
lib/libc/iconv/citrus_csmapper.c
345
char buf1[PATH_MAX], buf2[PATH_MAX], key[PATH_MAX], pivot[PATH_MAX];
lib/libc/iconv/citrus_csmapper.c
366
snprintf(key, sizeof(key), "%s/%s", realsrc, realdst);
lib/libc/iconv/citrus_csmapper.c
368
ret = _mapper_open(maparea, rcsm, key);
lib/libc/iconv/citrus_db.c
121
hashval = db->db_hashfunc(key)%num_entries;
lib/libc/iconv/citrus_db.c
151
if (be32toh(dex->dex_key_size) == _region_size(key)) {
lib/libc/iconv/citrus_db.c
158
_region_size(key)) == NULL)
lib/libc/iconv/citrus_db.c
161
if (memcmp(_region_head(&r), _region_head(key),
lib/libc/iconv/citrus_db.c
162
_region_size(key)) == 0) {
lib/libc/iconv/citrus_db.c
181
_citrus_db_lookup_by_string(struct _citrus_db *db, const char *key,
lib/libc/iconv/citrus_db.c
186
_region_init(&r, __DECONST(void *, key), strlen(key));
lib/libc/iconv/citrus_db.c
192
_citrus_db_lookup8_by_string(struct _citrus_db *db, const char *key,
lib/libc/iconv/citrus_db.c
198
ret = _citrus_db_lookup_by_string(db, key, &r, dl);
lib/libc/iconv/citrus_db.c
212
_citrus_db_lookup16_by_string(struct _citrus_db *db, const char *key,
lib/libc/iconv/citrus_db.c
219
ret = _citrus_db_lookup_by_string(db, key, &r, dl);
lib/libc/iconv/citrus_db.c
235
_citrus_db_lookup32_by_string(struct _citrus_db *db, const char *key,
lib/libc/iconv/citrus_db.c
242
ret = _citrus_db_lookup_by_string(db, key, &r, dl);
lib/libc/iconv/citrus_db.c
258
_citrus_db_lookup_string_by_string(struct _citrus_db *db, const char *key,
lib/libc/iconv/citrus_db.c
264
ret = _citrus_db_lookup_by_string(db, key, &r, dl);
lib/libc/iconv/citrus_db.c
293
_citrus_db_get_entry(struct _citrus_db *db, int idx, struct _region *key,
lib/libc/iconv/citrus_db.c
321
if (_memstream_getregion(&ms, key, be32toh(dex->dex_key_size))==NULL)
lib/libc/iconv/citrus_db.c
98
_citrus_db_lookup(struct _citrus_db *db, struct _citrus_region *key,
lib/libc/iconv/citrus_db_factory.c
111
_citrus_db_factory_add(struct _citrus_db_factory *df, struct _region *key,
lib/libc/iconv/citrus_db_factory.c
120
de->de_hashvalue = df->df_hashfunc(key);
lib/libc/iconv/citrus_db_factory.c
121
de->de_key = *key;
lib/libc/iconv/citrus_db_factory.c
128
df->df_total_key_size += _region_size(key);
lib/libc/iconv/citrus_db_factory.c
138
const char *key, struct _citrus_region *data, int datafree)
lib/libc/iconv/citrus_db_factory.c
143
tmp = strdup(key);
lib/libc/iconv/citrus_db_factory.c
146
_region_init(&r, tmp, strlen(key));
lib/libc/iconv/citrus_db_factory.c
152
const char *key, uint8_t val)
lib/libc/iconv/citrus_db_factory.c
162
return (_citrus_db_factory_add_by_string(df, key, &r, 1));
lib/libc/iconv/citrus_db_factory.c
167
const char *key, uint16_t val)
lib/libc/iconv/citrus_db_factory.c
177
return (_citrus_db_factory_add_by_string(df, key, &r, 1));
lib/libc/iconv/citrus_db_factory.c
182
const char *key, uint32_t val)
lib/libc/iconv/citrus_db_factory.c
192
return (_citrus_db_factory_add_by_string(df, key, &r, 1));
lib/libc/iconv/citrus_db_factory.c
197
const char *key, const char *data)
lib/libc/iconv/citrus_db_factory.c
206
return (_citrus_db_factory_add_by_string(df, key, &r, 1));
lib/libc/iconv/citrus_esdb.c
260
struct _region key, data;
lib/libc/iconv/citrus_esdb.c
291
while ((ret = _lookup_seq_next(cla, &key, &data)) == 0) {
lib/libc/iconv/citrus_esdb.c
296
(int)_region_size(&key),
lib/libc/iconv/citrus_esdb.c
297
(const char *)_region_head(&key));
lib/libc/iconv/citrus_esdb.c
309
while ((ret = _lookup_seq_next(cld, &key, &data)) == 0) {
lib/libc/iconv/citrus_esdb.c
312
(int)_region_size(&key),
lib/libc/iconv/citrus_esdb.c
313
(const char *)_region_head(&key));
lib/libc/iconv/citrus_esdb.c
327
(int)_region_size(&key),
lib/libc/iconv/citrus_esdb.c
328
(const char *)_region_head(&key));
lib/libc/iconv/citrus_hash.c
44
_citrus_string_hash_func(const char *key, int hashsize)
lib/libc/iconv/citrus_hash.c
48
_region_init(&r, __DECONST(void *, key), strlen(key));
lib/libc/iconv/citrus_hash.h
49
#define _CITRUS_HASH_SEARCH(head, elm, field, matchfunc, key, hashval) \
lib/libc/iconv/citrus_hash.h
52
if (matchfunc((elm), key) == 0) \
lib/libc/iconv/citrus_iconv.c
194
hash_func(const char *key)
lib/libc/iconv/citrus_iconv.c
197
return (_string_hash_func(key, CI_HASH_SIZE));
lib/libc/iconv/citrus_iconv.c
202
const char * __restrict key)
lib/libc/iconv/citrus_iconv.c
205
return (strcmp(ci->ci_convname, key));
lib/libc/iconv/citrus_lookup.c
100
_region_init(key, cl->cl_key, cl->cl_keylen);
lib/libc/iconv/citrus_lookup.c
112
return (_db_get_entry(cl->cl_db, cl->cl_dbidx++, key, data));
lib/libc/iconv/citrus_lookup.c
116
seq_lookup_db(struct _citrus_lookup *cl, const char *key, struct _region *data)
lib/libc/iconv/citrus_lookup.c
121
cl->cl_key = strdup(key);
lib/libc/iconv/citrus_lookup.c
171
seq_next_plain(struct _citrus_lookup *cl, struct _region *key,
lib/libc/iconv/citrus_lookup.c
201
if (key)
lib/libc/iconv/citrus_lookup.c
202
_region_init(key, __DECONST(void *, p), (size_t)(q - p));
lib/libc/iconv/citrus_lookup.c
223
seq_lookup_plain(struct _citrus_lookup *cl, const char *key,
lib/libc/iconv/citrus_lookup.c
231
cl->cl_key = strdup(key);
lib/libc/iconv/citrus_lookup.c
308
struct _region *key, struct _region *data)
lib/libc/iconv/citrus_lookup.c
311
return ((*cl->cl_next)(cl, key, data));
lib/libc/iconv/citrus_lookup.c
315
_citrus_lookup_seq_lookup(struct _citrus_lookup *cl, const char *key,
lib/libc/iconv/citrus_lookup.c
319
return ((*cl->cl_lookup)(cl, key, data));
lib/libc/iconv/citrus_lookup.c
339
_citrus_lookup_simple(const char *name, const char *key,
lib/libc/iconv/citrus_lookup.c
350
ret = _citrus_lookup_seq_lookup(cl, key, &data);
lib/libc/iconv/citrus_lookup.c
94
seq_next_db(struct _citrus_lookup *cl, struct _region *key,
lib/libc/iconv/citrus_lookup.c
99
if (key)
lib/libc/iconv/citrus_lookup.h
53
_citrus_lookup_alias(const char *path, const char *key, char *buf, size_t n,
lib/libc/iconv/citrus_lookup.h
58
ret = _citrus_lookup_simple(path, key, buf, n, ignore_case);
lib/libc/iconv/citrus_lookup.h
60
ret = key;
lib/libc/iconv/citrus_lookup_factory.c
53
char data[LINE_MAX], key[LINE_MAX];
lib/libc/iconv/citrus_lookup_factory.c
67
snprintf(key, sizeof(key), "%.*s", (int)(p-line), line);
lib/libc/iconv/citrus_lookup_factory.c
68
_bcs_convert_to_lower(key);
lib/libc/iconv/citrus_lookup_factory.c
75
return (_db_factory_addstr_by_s(df, key, data));
lib/libc/iconv/citrus_mapper.c
291
hash_func(const char *key)
lib/libc/iconv/citrus_mapper.c
294
return (_string_hash_func(key, CM_HASH_SIZE));
lib/libc/iconv/citrus_mapper.c
301
match_func(struct _citrus_mapper *cm, const char *key)
lib/libc/iconv/citrus_mapper.c
304
return (strcmp(cm->cm_key, key));
lib/libc/iconv/citrus_memstream.c
100
if (_bcs_strncasecmp(key, p, keylen) == 0)
lib/libc/iconv/citrus_memstream.c
70
const char * __restrict key, size_t * __restrict rlen, int iscasesensitive)
lib/libc/iconv/citrus_memstream.c
75
keylen = strlen(key);
lib/libc/iconv/citrus_memstream.c
97
if (memcmp(key, p, keylen) == 0)
lib/libc/include/nscache.h
176
char *key;
lib/libc/locale/collate.c
236
substsearch(struct xlocale_collate *table, const wchar_t key, int pass)
lib/libc/locale/collate.c
247
if (!(key & COLLATE_SUBST_PRIORITY))
lib/libc/locale/collate.c
250
p = table->subst_table[pass] + (key & ~COLLATE_SUBST_PRIORITY);
lib/libc/locale/collate.c
251
assert(p->key == key);
lib/libc/locale/collate.c
257
chainsearch(struct xlocale_collate *table, const wchar_t *key, int *len)
lib/libc/locale/collate.c
271
compar = *key - *p->str;
lib/libc/locale/collate.c
274
compar = wcsncmp(key, p->str, l);
lib/libc/locale/collate.c
289
largesearch(struct xlocale_collate *table, const wchar_t key)
lib/libc/locale/collate.c
303
compar = key - p->val;
lib/libc/locale/collate.h
115
int32_t key;
lib/libc/net/getaddrinfo.c
787
struct sockaddr_in6 key;
lib/libc/net/getaddrinfo.c
791
key = *(struct sockaddr_in6 *)addr;
lib/libc/net/getaddrinfo.c
795
memset(&key, 0, sizeof(key));
lib/libc/net/getaddrinfo.c
796
key.sin6_family = AF_INET6;
lib/libc/net/getaddrinfo.c
797
key.sin6_len = sizeof(key);
lib/libc/net/getaddrinfo.c
800
(char *)&key.sin6_addr);
lib/libc/net/getaddrinfo.c
812
k = (u_char *)&key.sin6_addr;
lib/libc/net/getservent.c
1281
wrap_getservbyname_r(struct key key, struct servent *serv, char *buffer,
lib/libc/net/getservent.c
1284
return (getservbyname_r(key.name, key.proto, serv, buffer, bufsize,
lib/libc/net/getservent.c
1289
wrap_getservbyport_r(struct key key, struct servent *serv, char *buffer,
lib/libc/net/getservent.c
1292
return (getservbyport_r(key.port, key.proto, serv, buffer, bufsize,
lib/libc/net/getservent.c
1297
wrap_getservent_r(struct key key, struct servent *serv, char *buffer,
lib/libc/net/getservent.c
1304
getserv(int (*fn)(struct key, struct servent *, char *, size_t,
lib/libc/net/getservent.c
1305
struct servent **), struct key key)
lib/libc/net/getservent.c
1324
rv = fn(key, &st->serv, st->buffer, st->bufsize, &res);
lib/libc/net/getservent.c
1347
struct key key;
lib/libc/net/getservent.c
1349
key.name = name;
lib/libc/net/getservent.c
1350
key.proto = proto;
lib/libc/net/getservent.c
1352
return (getserv(wrap_getservbyname_r, key));
lib/libc/net/getservent.c
1358
struct key key;
lib/libc/net/getservent.c
1360
key.port = port;
lib/libc/net/getservent.c
1361
key.proto = proto;
lib/libc/net/getservent.c
1363
return (getserv(wrap_getservbyport_r, key));
lib/libc/net/getservent.c
1369
struct key key;
lib/libc/net/getservent.c
1371
key.proto = NULL;
lib/libc/net/getservent.c
1372
key.port = 0;
lib/libc/net/getservent.c
1374
return (getserv(wrap_getservent_r, key));
lib/libc/net/getservent.c
146
static int wrap_getservbyname_r(struct key, struct servent *, char *, size_t,
lib/libc/net/getservent.c
148
static int wrap_getservbyport_r(struct key, struct servent *, char *, size_t,
lib/libc/net/getservent.c
150
static int wrap_getservent_r(struct key, struct servent *, char *, size_t,
lib/libc/net/getservent.c
152
static struct servent *getserv(int (*fn)(struct key, struct servent *, char *,
lib/libc/net/getservent.c
153
size_t, struct servent **), struct key);
lib/libc/net/getservent.c
487
DBT key, data, *result;
lib/libc/net/getservent.c
548
key.data = buf;
lib/libc/net/getservent.c
550
key.size = snprintf(buf, sizeof(buf),
lib/libc/net/getservent.c
553
key.size = snprintf(buf, sizeof(buf),
lib/libc/net/getservent.c
555
key.size++;
lib/libc/net/getservent.c
556
if (db->get(db, &key, &data, 0) != 0 ||
lib/libc/net/getservent.c
557
db->get(db, &data, &key, 0) != 0) {
lib/libc/net/getservent.c
561
result = &key;
lib/libc/net/getservent.c
564
key.data = buf;
lib/libc/net/getservent.c
567
key.size = snprintf(buf, sizeof(buf),
lib/libc/net/getservent.c
570
key.size = snprintf(buf, sizeof(buf),
lib/libc/net/getservent.c
572
key.size++;
lib/libc/net/getservent.c
573
if (db->get(db, &key, &data, 0) != 0 ||
lib/libc/net/getservent.c
574
db->get(db, &data, &key, 0) != 0) {
lib/libc/net/getservent.c
578
result = &key;
lib/libc/net/getservent.c
581
key.data = buf;
lib/libc/net/getservent.c
582
key.size = snprintf(buf, sizeof(buf), "%d",
lib/libc/net/getservent.c
584
key.size++;
lib/libc/net/getservent.c
585
if (db->get(db, &key, &data, 0) != 0) {
lib/libc/net/hesiod.c
256
char *key, *data, *p, **which;
lib/libc/net/hesiod.c
286
key = p;
lib/libc/net/hesiod.c
298
if (strcasecmp(key, "lhs") == 0 ||
lib/libc/net/hesiod.c
299
strcasecmp(key, "rhs") == 0) {
lib/libc/net/hesiod.c
300
which = (strcasecmp(key, "lhs") == 0)
lib/libc/net/hesiod.c
309
if (strcasecmp(key, "classes") == 0) {
lib/libc/net/name6.c
787
struct sockaddr_in6 key;
lib/libc/net/name6.c
791
key = *(struct sockaddr_in6 *)addr;
lib/libc/net/name6.c
795
memset(&key, 0, sizeof(key));
lib/libc/net/name6.c
796
key.sin6_family = AF_INET6;
lib/libc/net/name6.c
797
key.sin6_len = sizeof(key);
lib/libc/net/name6.c
800
(char *)&key.sin6_addr);
lib/libc/net/name6.c
812
k = (u_char *)&key.sin6_addr;
lib/libc/net/nscache.c
114
cache_data->key, cache_data->key_size, buffer,
lib/libc/net/nscache.c
126
free(cache_data->key);
lib/libc/net/nscache.c
127
cache_data->key = NULL;
lib/libc/net/nscache.c
139
free(cache_data->key);
lib/libc/net/nscache.c
140
cache_data->key = NULL;
lib/libc/net/nscache.c
148
free(cache_data->key);
lib/libc/net/nscache.c
149
cache_data->key = NULL;
lib/libc/net/nscache.c
174
if (cache_data->key == NULL)
lib/libc/net/nscache.c
182
free(cache_data->key);
lib/libc/net/nscache.c
211
free(cache_data->key);
lib/libc/net/nscache.c
217
cache_data->key, cache_data->key_size, buffer, buffer_size);
lib/libc/net/nscache.c
220
free(cache_data->key);
lib/libc/net/nscache.c
239
if (cache_data->key == NULL)
lib/libc/net/nscache.c
247
free(cache_data->key);
lib/libc/net/nscache.c
252
cache_data->key, cache_data->key_size, NULL, 0);
lib/libc/net/nscache.c
255
free(cache_data->key);
lib/libc/net/nscache.c
73
cache_data->key = (char *)malloc(NSS_CACHE_KEY_INITIAL_SIZE);
lib/libc/net/nscache.c
74
memset(cache_data->key, 0, NSS_CACHE_KEY_INITIAL_SIZE);
lib/libc/net/nscache.c
80
res = cache_info->id_func(cache_data->key, &size, ap_new,
lib/libc/net/nscache.c
88
cache_data->key = realloc(cache_data->key,
lib/libc/net/nscache.c
90
memset(cache_data->key, 0, cache_data->key_size);
lib/libc/net/nscache.c
96
free(cache_data->key);
lib/libc/net/nscache.c
97
cache_data->key = NULL;
lib/libc/net/nscachedcli.c
253
const char *key, size_t key_size, const char *data, size_t data_size)
lib/libc/net/nscachedcli.c
282
result = safe_write(connection, key, key_size);
lib/libc/net/nscachedcli.c
305
const char *key, size_t key_size, char *data, size_t *data_size)
lib/libc/net/nscachedcli.c
332
result = safe_write(connection, key, key_size);
lib/libc/net/nsdispatch.c
202
vector_search(const void *key, void *vec, unsigned int count, size_t esize,
lib/libc/net/nsdispatch.c
205
return (bsearch(key, vec, count, esize, comparison));
lib/libc/net/nsdispatch.c
593
ns_mtab *match, key;
lib/libc/net/nsdispatch.c
605
key.database = database;
lib/libc/net/nsdispatch.c
606
key.name = method;
lib/libc/net/nsdispatch.c
607
match = bsearch(&key, mod->mtab, mod->mtabsize,
lib/libc/resolv/mtctxres.c
127
if (((mt = pthread_getspecific(key)) != NULL) ||
lib/libc/resolv/mtctxres.c
129
(mt = pthread_getspecific(key)) != NULL)) {
lib/libc/resolv/mtctxres.c
16
static pthread_key_t key;
lib/libc/resolv/mtctxres.c
39
pthread_keycreate_ret = pthread_key_create(&key, __res_destroy_ctx);
lib/libc/resolv/mtctxres.c
70
if (pthread_getspecific(key) != 0) {
lib/libc/resolv/mtctxres.c
82
if ((ret = pthread_setspecific(key, mt)) != 0) {
lib/libc/resolv/res_data.c
203
res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key,
lib/libc/resolv/res_data.c
212
return (res_nsendsigned(statp, buf, buflen, key, ans, anssiz));
lib/libc/resolv/res_update.c
169
if (key != NULL) {
lib/libc/resolv/res_update.c
175
n = res_nsendsigned(statp, packet, n, key,
lib/libc/resolv/res_update.c
93
res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) {
lib/libc/rpc/auth_des.c
301
ivec.key.high = ivec.key.low = 0;
lib/libc/rpc/auth_des.c
316
ad->ad_cred.adc_fullname.window = cryptbuf[1].key.high;
lib/libc/rpc/auth_des.c
317
ad->ad_verf.adv_winverf = cryptbuf[1].key.low;
lib/libc/rpc/auth_des.c
373
buf.key.high = (uint32_t)*ixdr++;
lib/libc/rpc/auth_des.c
374
buf.key.low = (uint32_t)*ixdr++;
lib/libc/rpc/auth_des.c
447
cred->adc_fullname.key = ad->ad_xkey;
lib/libc/rpc/authdes_prot.c
59
ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key,
lib/libc/rpc/clnt_dg.c
128
struct dg_fd key, *elem;
lib/libc/rpc/clnt_dg.c
130
key.fd = fd;
lib/libc/rpc/clnt_dg.c
131
elem = RB_FIND(dg_fd_list, &dg_fd_head, &key);
lib/libc/rpc/clnt_vc.c
157
struct vc_fd key, *elem;
lib/libc/rpc/clnt_vc.c
159
key.fd = fd;
lib/libc/rpc/clnt_vc.c
160
elem = RB_FIND(vc_fd_list, &vc_fd_head, &key);
lib/libc/rpc/des_crypt.c
101
return(common_crypt(key, buf, len, mode, &dp));
lib/libc/rpc/des_crypt.c
110
common_crypt(char *key, char *buf, unsigned len, unsigned mode,
lib/libc/rpc/des_crypt.c
122
COPY8(key, desp->des_key);
lib/libc/rpc/des_crypt.c
69
cbc_crypt(char *key, char *buf, unsigned len, unsigned mode, char *ivec)
lib/libc/rpc/des_crypt.c
81
err = common_crypt(key, buf, len, mode, &dp);
lib/libc/rpc/des_crypt.c
91
ecb_crypt(char *key, char *buf, unsigned len, unsigned mode)
lib/libc/rpc/getpublickey.c
118
err = yp_match(domain, PKMAP, key, strlen(key), &lookup, &len);
lib/libc/rpc/getpublickey.c
152
if (strcmp(mkey, key) == 0) {
lib/libc/rpc/getpublickey.c
86
getpublicandprivatekey(const char *key, char *ret)
lib/libc/rpc/getrpcent.c
1001
key.number = 0; /* not used */
lib/libc/rpc/getrpcent.c
1003
return (getrpc(wrap_getrpcent_r, key));
lib/libc/rpc/getrpcent.c
125
static int wrap_getrpcbyname_r(union key, struct rpcent *, char *,
lib/libc/rpc/getrpcent.c
127
static int wrap_getrpcbynumber_r(union key, struct rpcent *, char *,
lib/libc/rpc/getrpcent.c
129
static int wrap_getrpcent_r(union key, struct rpcent *, char *,
lib/libc/rpc/getrpcent.c
131
static struct rpcent *getrpc(int (*fn)(union key, struct rpcent *, char *,
lib/libc/rpc/getrpcent.c
132
size_t, struct rpcent **), union key);
lib/libc/rpc/getrpcent.c
915
wrap_getrpcbyname_r(union key key, struct rpcent *rpc, char *buffer,
lib/libc/rpc/getrpcent.c
918
return (getrpcbyname_r(key.name, rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
922
wrap_getrpcbynumber_r(union key key, struct rpcent *rpc, char *buffer,
lib/libc/rpc/getrpcent.c
925
return (getrpcbynumber_r(key.number, rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
929
wrap_getrpcent_r(union key key __unused, struct rpcent *rpc, char *buffer,
lib/libc/rpc/getrpcent.c
936
getrpc(int (*fn)(union key, struct rpcent *, char *, size_t, struct rpcent **),
lib/libc/rpc/getrpcent.c
937
union key key)
lib/libc/rpc/getrpcent.c
956
rv = fn(key, &st->rpc, st->buffer, st->bufsize, &res);
lib/libc/rpc/getrpcent.c
979
union key key;
lib/libc/rpc/getrpcent.c
981
key.name = name;
lib/libc/rpc/getrpcent.c
983
return (getrpc(wrap_getrpcbyname_r, key));
lib/libc/rpc/getrpcent.c
989
union key key;
lib/libc/rpc/getrpcent.c
991
key.number = number;
lib/libc/rpc/getrpcent.c
993
return (getrpc(wrap_getrpcbynumber_r, key));
lib/libc/rpc/getrpcent.c
999
union key key;
lib/libc/rpc/key_call.c
213
key_gendes(des_block *key)
lib/libc/rpc/key_call.c
216
(xdrproc_t)xdr_des_block, key)) {
lib/libc/rpc/netnamer.c
229
getnetid(char *key, char *ret)
lib/libc/rpc/netnamer.c
271
err = yp_match(domain, NETID, key,
lib/libc/rpc/netnamer.c
272
strlen(key), &lookup, &len);
lib/libc/rpc/netnamer.c
307
if (strcmp(mkey, key) == 0) {
lib/libc/rpc/svc_auth_des.c
151
cred->adc_fullname.key.key.high = (u_long)*ixdr++;
lib/libc/rpc/svc_auth_des.c
152
cred->adc_fullname.key.key.low = (u_long)*ixdr++;
lib/libc/rpc/svc_auth_des.c
166
verf.adv_xtimestamp.key.high = (u_long)*ixdr++;
lib/libc/rpc/svc_auth_des.c
167
verf.adv_xtimestamp.key.low = (u_long)*ixdr++;
lib/libc/rpc/svc_auth_des.c
178
sessionkey = &cred->adc_fullname.key;
lib/libc/rpc/svc_auth_des.c
196
sessionkey = &authdes_cache[sid].key;
lib/libc/rpc/svc_auth_des.c
205
cryptbuf[1].key.high = cred->adc_fullname.window;
lib/libc/rpc/svc_auth_des.c
206
cryptbuf[1].key.low = verf.adv_winverf;
lib/libc/rpc/svc_auth_des.c
207
ivec.key.high = ivec.key.low = 0;
lib/libc/rpc/svc_auth_des.c
303
*ixdr++ = (long)verf.adv_xtimestamp.key.high;
lib/libc/rpc/svc_auth_des.c
304
*ixdr++ = (long)verf.adv_xtimestamp.key.low;
lib/libc/rpc/svc_auth_des.c
332
entry->key = *sessionkey;
lib/libc/rpc/svc_auth_des.c
341
cred->adc_fullname.key = entry->key;
lib/libc/rpc/svc_auth_des.c
406
cache_spot(des_block *key, char *name, struct timeval *timestamp)
lib/libc/rpc/svc_auth_des.c
412
hi = key->key.high;
lib/libc/rpc/svc_auth_des.c
414
if (cp->key.key.high == hi &&
lib/libc/rpc/svc_auth_des.c
415
cp->key.key.low == key->key.low &&
lib/libc/rpc/svc_auth_des.c
80
des_block key; /* conversation key */
lib/libc/stdlib/bsearch.c
61
bsearch_b(const void *key, const void *base0, size_t nmemb, size_t size,
lib/libc/stdlib/bsearch.c
65
bsearch(const void *key, const void *base0, size_t nmemb, size_t size,
lib/libc/stdlib/bsearch.c
76
cmp = COMPAR(key, p);
lib/libc/stdlib/hsearch_r.c
123
if (entry->key != NULL) {
lib/libc/stdlib/hsearch_r.c
125
entry->key);
lib/libc/stdlib/hsearch_r.c
47
if (entry->key == NULL)
lib/libc/stdlib/hsearch_r.c
80
hash = hsearch_hash(hsearch->offset_basis, item.key);
lib/libc/stdlib/hsearch_r.c
88
if (entry->key == NULL)
lib/libc/stdlib/hsearch_r.c
90
if (strcmp(entry->key, item.key) == 0) {
lib/libc/stdlib/lsearch.c
19
void *lsearch(const void *key, void *base, size_t *nelp, size_t width,
lib/libc/stdlib/lsearch.c
23
return (lwork(key, base, nelp, width, compar, 1));
lib/libc/stdlib/lsearch.c
26
void *lfind(const void *key, const void *base, size_t *nelp, size_t width,
lib/libc/stdlib/lsearch.c
30
return (lwork(key, base, nelp, width, compar, 0));
lib/libc/stdlib/lsearch.c
34
lwork(const void *key, const void *base, size_t *nelp, size_t width,
lib/libc/stdlib/lsearch.c
41
if (compar(key, ep) == 0)
lib/libc/stdlib/lsearch.c
53
memcpy(endp, key, width);
lib/libc/stdlib/tdelete.c
113
void **keyp = &(*leaf)->key;
lib/libc/stdlib/tdelete.c
118
*keyp = old->key;
lib/libc/stdlib/tdelete.c
67
tdelete(const void *restrict key, posix_tnode **restrict rootp,
lib/libc/stdlib/tdelete.c
90
cmp = compar(key, (*leaf)->key);
lib/libc/stdlib/tdestroy.c
45
node_free(curr->key);
lib/libc/stdlib/tdestroy.c
63
node_free(curr->key);
lib/libc/stdlib/tfind.c
39
if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */
lib/libc/stdlib/tsearch.c
33
tsearch(const void *key, posix_tnode **rootp,
lib/libc/stdlib/tsearch.c
65
cmp = compar(key, (*leaf)->key);
lib/libc/stdlib/tsearch.c
81
result->key = (void *)key;
lib/libc/tests/db/dbm_nextkey_test.c
26
datum key, data;
lib/libc/tests/db/dbm_nextkey_test.c
30
key.dptr = "foo";
lib/libc/tests/db/dbm_nextkey_test.c
31
key.dsize = strlen("foo");
lib/libc/tests/db/dbm_nextkey_test.c
36
ATF_REQUIRE(dbm_store(db, key, data, DBM_INSERT) != -1);
lib/libc/tests/db/dbm_nextkey_test.c
38
key = dbm_firstkey(db);
lib/libc/tests/db/dbm_nextkey_test.c
39
ATF_REQUIRE(key.dptr != NULL);
lib/libc/tests/db/dbm_nextkey_test.c
40
key = dbm_nextkey(db);
lib/libc/tests/db/dbm_nextkey_test.c
41
ATF_REQUIRE(key.dptr == NULL);
lib/libc/tests/db/dbm_nextkey_test.c
42
key = dbm_nextkey(db);
lib/libc/tests/db/dbm_nextkey_test.c
43
ATF_REQUIRE(key.dptr == NULL);
lib/libc/tests/db/dbm_perm_test.c
21
datum data, key;
lib/libc/tests/db/dbm_perm_test.c
25
key.dptr = "foo";
lib/libc/tests/db/dbm_perm_test.c
26
key.dsize = strlen("foo");
lib/libc/tests/db/dbm_perm_test.c
31
ATF_REQUIRE(dbm_store(db, key, data, DBM_INSERT) != -1);
lib/libc/tests/db/dbm_perm_test.c
39
datum data, key;
lib/libc/tests/db/dbm_perm_test.c
42
key.dptr = "foo";
lib/libc/tests/db/dbm_perm_test.c
43
key.dsize = strlen("foo");
lib/libc/tests/db/dbm_perm_test.c
47
data = dbm_fetch(db, key);
lib/libc/tests/db/dbm_perm_test.c
50
ATF_REQUIRE(dbm_store(db, key, data, DBM_REPLACE) == -1);
lib/libc/tests/db/dbm_perm_test.c
58
datum data, key;
lib/libc/tests/db/dbm_perm_test.c
60
key.dptr = "foo";
lib/libc/tests/db/dbm_perm_test.c
61
key.dsize = strlen("foo");
lib/libc/tests/db/dbm_perm_test.c
67
data = dbm_fetch(db, key);
lib/libc/tests/db/dbm_perm_test.c
70
ATF_REQUIRE(dbm_store(db, key, data, DBM_REPLACE) != -1);
lib/libc/tests/db/dbm_perm_test.c
77
datum data, key;
lib/libc/tests/db/dbm_perm_test.c
79
key.dptr = "foo";
lib/libc/tests/db/dbm_perm_test.c
80
key.dsize = strlen("foo");
lib/libc/tests/db/dbm_perm_test.c
84
data = dbm_fetch(db, key);
lib/libc/tests/db/dbm_perm_test.c
88
ATF_REQUIRE(dbm_store(db, key, data, DBM_REPLACE) != -1);
lib/libc/tests/stdlib/tsearch_test.c
106
if (present[key]) {
lib/libc/tests/stdlib/tsearch_test.c
107
ATF_CHECK(tdelete(&key, &root, compar) != NULL);
lib/libc/tests/stdlib/tsearch_test.c
108
present[key] = false;
lib/libc/tests/stdlib/tsearch_test.c
113
tdelete(&key, &root, compar));
lib/libc/tests/stdlib/tsearch_test.c
117
if (present[key]) {
lib/libc/tests/stdlib/tsearch_test.c
118
ATF_CHECK_EQ(&keys[key],
lib/libc/tests/stdlib/tsearch_test.c
119
*(int **)tfind(&key, &root, compar));
lib/libc/tests/stdlib/tsearch_test.c
121
ATF_CHECK_EQ(NULL, tfind(&key, &root, compar));
lib/libc/tests/stdlib/tsearch_test.c
125
if (present[key]) {
lib/libc/tests/stdlib/tsearch_test.c
126
ATF_CHECK_EQ(&keys[key],
lib/libc/tests/stdlib/tsearch_test.c
127
*(int **)tsearch(&key, &root, compar));
lib/libc/tests/stdlib/tsearch_test.c
129
ATF_CHECK_EQ(&keys[key], *(int **)tsearch(
lib/libc/tests/stdlib/tsearch_test.c
130
&keys[key], &root, compar));
lib/libc/tests/stdlib/tsearch_test.c
131
present[key] = true;
lib/libc/tests/stdlib/tsearch_test.c
144
for (int key = 0; key < NKEYS; ++key)
lib/libc/tests/stdlib/tsearch_test.c
145
if (present[key])
lib/libc/tests/stdlib/tsearch_test.c
146
ATF_CHECK(tdelete(&key, &root, compar) != NULL);
lib/libc/tests/stdlib/tsearch_test.c
153
int key;
lib/libc/tests/stdlib/tsearch_test.c
157
new_my_data(int key)
lib/libc/tests/stdlib/tsearch_test.c
162
res->key = key;
lib/libc/tests/stdlib/tsearch_test.c
182
return (md1->key - md2->key);
lib/libc/tests/stdlib/tsearch_test.c
94
int key = nrand48(random_state) % NKEYS;
lib/libc/yp/xdryp.c
105
key, out.ypresp_all_u.val.key.keydat_len,
lib/libc/yp/xdryp.c
109
free(key);
lib/libc/yp/xdryp.c
65
char *key, *val;
lib/libc/yp/xdryp.c
83
key = (char *)malloc(out.ypresp_all_u.val.key.keydat_len + 1);
lib/libc/yp/xdryp.c
84
if (key == NULL) {
lib/libc/yp/xdryp.c
89
bcopy(out.ypresp_all_u.val.key.keydat_val, key,
lib/libc/yp/xdryp.c
90
out.ypresp_all_u.val.key.keydat_len);
lib/libc/yp/xdryp.c
91
key[out.ypresp_all_u.val.key.keydat_len] = '\0';
lib/libc/yp/xdryp.c
94
free(key);
lib/libc/yp/yplib.c
164
ypmatch_cache_insert(struct dom_binding *ypdb, char *map, keydat *key,
lib/libc/yp/yplib.c
206
new->ypc_key.keydat_val = malloc(key->keydat_len);
lib/libc/yp/yplib.c
221
new->ypc_key.keydat_len = key->keydat_len;
lib/libc/yp/yplib.c
223
bcopy(key->keydat_val, new->ypc_key.keydat_val, key->keydat_len);
lib/libc/yp/yplib.c
235
ypmatch_cache_lookup(struct dom_binding *ypdb, char *map, keydat *key,
lib/libc/yp/yplib.c
245
if (key->keydat_len != c->ypc_key.keydat_len)
lib/libc/yp/yplib.c
247
if (bcmp(key->keydat_val, c->ypc_key.keydat_val,
lib/libc/yp/yplib.c
248
key->keydat_len))
lib/libc/yp/yplib.c
671
yprk.key.keydat_val = (char *)inkey;
lib/libc/yp/yplib.c
672
yprk.key.keydat_len = inkeylen;
lib/libc/yp/yplib.c
675
if (ypmatch_cache_lookup(ysd, yprk.map, &yprk.key, &yprv.val) == TRUE) {
lib/libc/yp/yplib.c
735
ypmatch_cache_insert(ysd, yprk.map, &yprk.key, &yprv.val);
lib/libc/yp/yplib.c
814
*outkeylen = yprkv.key.keydat_len;
lib/libc/yp/yplib.c
823
bcopy(yprkv.key.keydat_val, *outkey, *outkeylen);
lib/libc/yp/yplib.c
881
yprk.key.keydat_val = inkey;
lib/libc/yp/yplib.c
882
yprk.key.keydat_len = inkeylen;
lib/libc/yp/yplib.c
895
*outkeylen = yprkv.key.keydat_len;
lib/libc/yp/yplib.c
904
bcopy(yprkv.key.keydat_val, *outkey, *outkeylen);
lib/libcrypt/crypt-sha256.c
103
SHA256_Update(&ctx, key, key_len);
lib/libcrypt/crypt-sha256.c
115
SHA256_Update(&alt_ctx, key, key_len);
lib/libcrypt/crypt-sha256.c
121
SHA256_Update(&alt_ctx, key, key_len);
lib/libcrypt/crypt-sha256.c
137
SHA256_Update(&ctx, key, key_len);
lib/libcrypt/crypt-sha256.c
147
SHA256_Update(&alt_ctx, key, key_len);
lib/libcrypt/crypt-sha256.c
64
crypt_sha256(const char *key, const char *salt, char *buffer)
lib/libcrypt/crypt-sha256.c
97
key_len = strlen(key);
lib/libcrypt/crypt-sha512.c
103
SHA512_Update(&ctx, key, key_len);
lib/libcrypt/crypt-sha512.c
115
SHA512_Update(&alt_ctx, key, key_len);
lib/libcrypt/crypt-sha512.c
121
SHA512_Update(&alt_ctx, key, key_len);
lib/libcrypt/crypt-sha512.c
137
SHA512_Update(&ctx, key, key_len);
lib/libcrypt/crypt-sha512.c
147
SHA512_Update(&alt_ctx, key, key_len);
lib/libcrypt/crypt-sha512.c
64
crypt_sha512(const char *key, const char *salt, char *buffer)
lib/libcrypt/crypt-sha512.c
97
key_len = strlen(key);
lib/libdevdctl/event.cc
405
string key(eventString.substr(start, end - start));
lib/libdevdctl/event.cc
420
nvpairs[key] = value;
lib/libdevdctl/event.h
161
const std::string &Value(const std::string &key) const;
lib/libdevdctl/event_factory.cc
68
Key key(rec->m_type, rec->m_subsystem);
lib/libdevdctl/event_factory.cc
71
m_registry.erase(key);
lib/libdevdctl/event_factory.cc
73
m_registry[key] = rec->m_buildMethod;
lib/libdevdctl/event_factory.cc
81
Key key(type, nvpairs["system"]);
lib/libdevdctl/event_factory.cc
84
Registry::const_iterator foundMethod(m_registry.find(key));
lib/libfetch/http.c
756
char *key = malloc(strlen(cp) + 1);
lib/libfetch/http.c
760
if (key == NULL || value == NULL || buf == NULL) {
lib/libfetch/http.c
769
lex = http_header_lex(&cp, key);
lib/libfetch/http.c
782
if (strcasecmp(key, "basic") == 0) {
lib/libfetch/http.c
784
} else if (strcasecmp(key, "digest") == 0) {
lib/libfetch/http.c
799
lex = http_header_lex(&cp, key);
lib/libfetch/http.c
813
if (strcasecmp(key, "realm") == 0) {
lib/libfetch/http.c
816
} else if (strcasecmp(key, "qop") == 0) {
lib/libfetch/http.c
819
} else if (strcasecmp(key, "nonce") == 0) {
lib/libfetch/http.c
822
} else if (strcasecmp(key, "opaque") == 0) {
lib/libfetch/http.c
825
} else if (strcasecmp(key, "algorithm") == 0) {
lib/libfetch/http.c
828
} else if (strcasecmp(key, "stale") == 0) {
lib/libfetch/http.c
836
lex = http_header_lex(&cp, key);
lib/libfetch/http.c
863
if (key)
lib/libfetch/http.c
864
free(key);
lib/libipsec/pfkey.c
1977
pfkey_setsadbkey(caddr_t buf, caddr_t lim, u_int type, caddr_t key, u_int keylen)
lib/libipsec/pfkey.c
1994
memcpy(p + 1, key, keylen);
lib/libiscsiutil/libiscsiutil.h
115
void keys_delete(struct keys *key);
lib/libnetmap/libnetmap.h
556
const char *key; /* the key name */
lib/libnetmap/nmport.c
326
const char *key;
lib/libnetmap/nmport.c
338
ok->key = k->key;
lib/libnetmap/nmport.c
350
.key = #k, \
lib/libnetmap/nmreq.c
420
char *key, *value;
lib/libnetmap/nmreq.c
424
key = scan;
lib/libnetmap/nmreq.c
432
for (k = p->keys; (k - p->keys) < NMREQ_OPT_MAXKEYS && k->key != NULL;
lib/libnetmap/nmreq.c
434
if (!strcmp(k->key, key))
lib/libnetmap/nmreq.c
438
nmctx_ferror(pctx->ctx, "unknown key: '%s'", key);
lib/libnetmap/nmreq.c
444
prefix, key, pctx->keys[k->id]);
lib/libnetmap/nmreq.c
460
prefix, key);
lib/libnetmap/nmreq.c
464
pctx->keys[k->id] = key;
lib/libnetmap/nmreq.c
468
for (k = p->keys; (k - p->keys) < NMREQ_OPT_MAXKEYS && k->key != NULL; k++) {
lib/libnetmap/nmreq.c
471
prefix, k->key);
lib/libnv/tests/cnv_tests.cc
1003
key = "name";
lib/libnv/tests/cnv_tests.cc
1009
nvlist_add_binary(nvl, key, in_binary, in_size);
lib/libnv/tests/cnv_tests.cc
1010
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1014
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1015
ATF_REQUIRE(nvlist_exists_binary(nvl, key));
lib/libnv/tests/cnv_tests.cc
1020
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1028
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1029
ATF_REQUIRE(!nvlist_exists_binary(nvl, key));
lib/libnv/tests/cnv_tests.cc
1042
const char *key;
lib/libnv/tests/cnv_tests.cc
1053
key = "name";
lib/libnv/tests/cnv_tests.cc
1056
nvlist_add_bool(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
1057
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1061
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1062
ATF_REQUIRE(nvlist_exists_bool(nvl, key));
lib/libnv/tests/cnv_tests.cc
1067
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1073
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1074
ATF_REQUIRE(!nvlist_exists_bool(nvl, key));
lib/libnv/tests/cnv_tests.cc
1085
const char *key;
lib/libnv/tests/cnv_tests.cc
1096
key = "name";
lib/libnv/tests/cnv_tests.cc
1099
nvlist_add_number(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
1100
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1104
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1105
ATF_REQUIRE(nvlist_exists_number(nvl, key));
lib/libnv/tests/cnv_tests.cc
1110
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1116
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1117
ATF_REQUIRE(!nvlist_exists_number(nvl, key));
lib/libnv/tests/cnv_tests.cc
1128
const char *key;
lib/libnv/tests/cnv_tests.cc
113
const char *key;
lib/libnv/tests/cnv_tests.cc
1139
key = "name";
lib/libnv/tests/cnv_tests.cc
1142
nvlist_add_string(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
1143
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1147
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1148
ATF_REQUIRE(nvlist_exists_string(nvl, key));
lib/libnv/tests/cnv_tests.cc
1153
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1159
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1160
ATF_REQUIRE(!nvlist_exists_string(nvl, key));
lib/libnv/tests/cnv_tests.cc
1171
const char *key, *subkey;
lib/libnv/tests/cnv_tests.cc
1185
key = "name";
lib/libnv/tests/cnv_tests.cc
1202
nvlist_move_nvlist(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
1203
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1207
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1208
ATF_REQUIRE(nvlist_exists_nvlist(nvl, key));
lib/libnv/tests/cnv_tests.cc
1213
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1219
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1220
ATF_REQUIRE(!nvlist_exists_nvlist(nvl, key));
lib/libnv/tests/cnv_tests.cc
1231
const char *key;
lib/libnv/tests/cnv_tests.cc
124
key = "name";
lib/libnv/tests/cnv_tests.cc
1243
key = "name";
lib/libnv/tests/cnv_tests.cc
1249
nvlist_add_binary(nvl, key, in_binary, in_size);
lib/libnv/tests/cnv_tests.cc
1250
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1254
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1255
ATF_REQUIRE(nvlist_exists_binary(nvl, key));
lib/libnv/tests/cnv_tests.cc
1260
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1266
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1267
ATF_REQUIRE(!nvlist_exists_nvlist(nvl, key));
lib/libnv/tests/cnv_tests.cc
127
nvlist_add_string(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
128
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1281
const char *key;
lib/libnv/tests/cnv_tests.cc
1294
key = "name";
lib/libnv/tests/cnv_tests.cc
1296
nvlist_add_bool_array(nvl, key, in_array, 16);
lib/libnv/tests/cnv_tests.cc
1297
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1301
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1302
ATF_REQUIRE(nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
1307
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1313
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1314
ATF_REQUIRE(!nvlist_exists_bool(nvl, key));
lib/libnv/tests/cnv_tests.cc
132
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1326
const char *key;
lib/libnv/tests/cnv_tests.cc
133
ATF_REQUIRE(nvlist_exists_string(nvl, key));
lib/libnv/tests/cnv_tests.cc
1339
key = "name";
lib/libnv/tests/cnv_tests.cc
1341
nvlist_add_number_array(nvl, key, in_array, 16);
lib/libnv/tests/cnv_tests.cc
1342
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1346
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1347
ATF_REQUIRE(nvlist_exists_number_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
1352
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1358
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1359
ATF_REQUIRE(!nvlist_exists_number_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
1371
const char *key;
lib/libnv/tests/cnv_tests.cc
1381
key = "name";
lib/libnv/tests/cnv_tests.cc
1383
nvlist_add_string_array(nvl, key, in_array, 4);
lib/libnv/tests/cnv_tests.cc
1384
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1388
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1389
ATF_REQUIRE(nvlist_exists_string_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
1394
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1400
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1401
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
1417
const char *key;
lib/libnv/tests/cnv_tests.cc
1443
key = "nvl/nvlist";
lib/libnv/tests/cnv_tests.cc
1446
nvlist_add_nvlist_array(nvl, key, (const nvlist_t * const *)testnvl, 8);
lib/libnv/tests/cnv_tests.cc
1447
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1451
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1452
ATF_REQUIRE(nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
1457
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
1463
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
1464
ATF_REQUIRE(!nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
148
const char *key, *subkey;
lib/libnv/tests/cnv_tests.cc
162
key = "name";
lib/libnv/tests/cnv_tests.cc
179
nvlist_add_nvlist(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
180
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
184
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
185
ATF_REQUIRE(nvlist_exists_nvlist(nvl, key));
lib/libnv/tests/cnv_tests.cc
192
ATF_REQUIRE_EQ(result, nvlist_get_nvlist(nvl, key));
lib/libnv/tests/cnv_tests.cc
216
const char *key;
lib/libnv/tests/cnv_tests.cc
226
key = "name";
lib/libnv/tests/cnv_tests.cc
228
nvlist_add_descriptor(nvl, key, STDERR_FILENO);
lib/libnv/tests/cnv_tests.cc
229
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
233
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
234
ATF_REQUIRE(nvlist_exists_descriptor(nvl, key));
lib/libnv/tests/cnv_tests.cc
248
const char *key;
lib/libnv/tests/cnv_tests.cc
261
key = "name";
lib/libnv/tests/cnv_tests.cc
268
nvlist_add_binary(nvl, key, in_binary, in_size);
lib/libnv/tests/cnv_tests.cc
269
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
273
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
274
ATF_REQUIRE(nvlist_exists_binary(nvl, key));
lib/libnv/tests/cnv_tests.cc
294
const char *key;
lib/libnv/tests/cnv_tests.cc
308
key = "name";
lib/libnv/tests/cnv_tests.cc
310
nvlist_add_bool_array(nvl, key, in_array, 16);
lib/libnv/tests/cnv_tests.cc
311
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
315
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
316
ATF_REQUIRE(nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
336
const char *key;
lib/libnv/tests/cnv_tests.cc
350
key = "name";
lib/libnv/tests/cnv_tests.cc
352
nvlist_add_number_array(nvl, key, in_array, 16);
lib/libnv/tests/cnv_tests.cc
353
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
357
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
358
ATF_REQUIRE(nvlist_exists_number_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
378
const char *key;
lib/libnv/tests/cnv_tests.cc
389
key = "name";
lib/libnv/tests/cnv_tests.cc
391
nvlist_add_string_array(nvl, key, in_array, 4);
lib/libnv/tests/cnv_tests.cc
392
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
396
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
397
ATF_REQUIRE(nvlist_exists_string_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
421
const char *key;
lib/libnv/tests/cnv_tests.cc
44
const char *key;
lib/libnv/tests/cnv_tests.cc
453
key = "name";
lib/libnv/tests/cnv_tests.cc
455
nvlist_add_nvlist_array(nvl, key, in_array, 6);
lib/libnv/tests/cnv_tests.cc
456
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
460
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
461
ATF_REQUIRE(nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
471
out_result = nvlist_get_nvlist_array(nvl, key, &nitems);
lib/libnv/tests/cnv_tests.cc
503
const char *key;
lib/libnv/tests/cnv_tests.cc
512
key = "name";
lib/libnv/tests/cnv_tests.cc
522
nvlist_add_descriptor_array(nvl, key, in_array, count);
lib/libnv/tests/cnv_tests.cc
523
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
527
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
528
ATF_REQUIRE(nvlist_exists_descriptor_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
548
const char *key;
lib/libnv/tests/cnv_tests.cc
55
key = "name";
lib/libnv/tests/cnv_tests.cc
559
key = "name";
lib/libnv/tests/cnv_tests.cc
562
nvlist_add_bool(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
563
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
567
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
568
ATF_REQUIRE(nvlist_exists_bool(nvl, key));
lib/libnv/tests/cnv_tests.cc
573
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
579
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
58
nvlist_add_bool(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
580
ATF_REQUIRE(!nvlist_exists_bool(nvl, key));
lib/libnv/tests/cnv_tests.cc
59
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
591
const char *key;
lib/libnv/tests/cnv_tests.cc
602
key = "name";
lib/libnv/tests/cnv_tests.cc
605
nvlist_add_number(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
606
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
610
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
611
ATF_REQUIRE(nvlist_exists_number(nvl, key));
lib/libnv/tests/cnv_tests.cc
616
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
622
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
623
ATF_REQUIRE(!nvlist_exists_number(nvl, key));
lib/libnv/tests/cnv_tests.cc
63
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
634
const char *key;
lib/libnv/tests/cnv_tests.cc
64
ATF_REQUIRE(nvlist_exists_bool(nvl, key));
lib/libnv/tests/cnv_tests.cc
646
key = "name";
lib/libnv/tests/cnv_tests.cc
649
nvlist_add_string(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
650
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
654
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
655
ATF_REQUIRE(nvlist_exists_string(nvl, key));
lib/libnv/tests/cnv_tests.cc
660
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
668
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
669
ATF_REQUIRE(!nvlist_exists_string(nvl, key));
lib/libnv/tests/cnv_tests.cc
681
const char *key, *subkey;
lib/libnv/tests/cnv_tests.cc
695
key = "name";
lib/libnv/tests/cnv_tests.cc
712
nvlist_move_nvlist(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
713
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
717
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
718
ATF_REQUIRE(nvlist_exists_nvlist(nvl, key));
lib/libnv/tests/cnv_tests.cc
723
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
725
ATF_REQUIRE(!nvlist_exists_nvlist(nvl, key));
lib/libnv/tests/cnv_tests.cc
755
const char *key;
lib/libnv/tests/cnv_tests.cc
769
key = "name";
lib/libnv/tests/cnv_tests.cc
771
nvlist_add_bool_array(nvl, key, in_array, 16);
lib/libnv/tests/cnv_tests.cc
772
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
776
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
777
ATF_REQUIRE(nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
78
const char *key;
lib/libnv/tests/cnv_tests.cc
782
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
790
ATF_REQUIRE(!nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
793
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
807
const char *key;
lib/libnv/tests/cnv_tests.cc
821
key = "name";
lib/libnv/tests/cnv_tests.cc
823
nvlist_add_number_array(nvl, key, in_array, 16);
lib/libnv/tests/cnv_tests.cc
824
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
828
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
829
ATF_REQUIRE(nvlist_exists_number_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
834
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
845
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
846
ATF_REQUIRE(!nvlist_exists_number_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
859
const char *key;
lib/libnv/tests/cnv_tests.cc
870
key = "name";
lib/libnv/tests/cnv_tests.cc
872
nvlist_add_string_array(nvl, key, in_array, 4);
lib/libnv/tests/cnv_tests.cc
873
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
877
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
878
ATF_REQUIRE(nvlist_exists_string_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
883
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
89
key = "name";
lib/libnv/tests/cnv_tests.cc
895
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
896
ATF_REQUIRE(!nvlist_exists_number_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
915
const char *key;
lib/libnv/tests/cnv_tests.cc
92
nvlist_add_number(nvl, key, value);
lib/libnv/tests/cnv_tests.cc
93
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
941
key = "nvl/nvlist";
lib/libnv/tests/cnv_tests.cc
944
nvlist_add_nvlist_array(nvl, key, (const nvlist_t * const *)testnvl, 8);
lib/libnv/tests/cnv_tests.cc
945
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
949
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
950
ATF_REQUIRE(nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
955
ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
lib/libnv/tests/cnv_tests.cc
965
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
97
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
972
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/cnv_tests.cc
973
ATF_REQUIRE(!nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/cnv_tests.cc
98
ATF_REQUIRE(nvlist_exists_number(nvl, key));
lib/libnv/tests/cnv_tests.cc
990
const char *key;
lib/libnv/tests/dnv_tests.cc
100
ATF_REQUIRE_EQ(dnvlist_get_number(nvl, key, 5), 5);
lib/libnv/tests/dnv_tests.cc
103
nvlist_add_number(nvl, key, 24841);
lib/libnv/tests/dnv_tests.cc
114
const char *key;
lib/libnv/tests/dnv_tests.cc
119
key = "string";
lib/libnv/tests/dnv_tests.cc
121
nvlist_add_string(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
123
ATF_REQUIRE_EQ(strcmp(dnvlist_get_string(nvl, key, "g"), value), 0);
lib/libnv/tests/dnv_tests.cc
125
actual_value = dnvlist_get_string(nvl, key, "rs");
lib/libnv/tests/dnv_tests.cc
135
const char *key;
lib/libnv/tests/dnv_tests.cc
138
key = "123";
lib/libnv/tests/dnv_tests.cc
141
ATF_REQUIRE_EQ(strcmp(dnvlist_get_string(nvl, key, "bar"), "bar"), 0);
lib/libnv/tests/dnv_tests.cc
143
actual_value = dnvlist_get_string(nvl, key, "d");
lib/libnv/tests/dnv_tests.cc
146
nvlist_add_string(nvl, key, "cxhweh");
lib/libnv/tests/dnv_tests.cc
159
const char *key;
lib/libnv/tests/dnv_tests.cc
165
key = "nvlist";
lib/libnv/tests/dnv_tests.cc
167
nvlist_move_nvlist(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
169
actual_value = dnvlist_get_nvlist(nvl, key, NULL);
lib/libnv/tests/dnv_tests.cc
180
const char *key;
lib/libnv/tests/dnv_tests.cc
183
key = "123";
lib/libnv/tests/dnv_tests.cc
187
ATF_REQUIRE_EQ(dnvlist_get_nvlist(nvl, key, dummy), dummy);
lib/libnv/tests/dnv_tests.cc
189
nvlist_move_nvlist(nvl, key, nvlist_create(0));
lib/libnv/tests/dnv_tests.cc
229
const char *key;
lib/libnv/tests/dnv_tests.cc
233
key = "123";
lib/libnv/tests/dnv_tests.cc
237
actual_value = dnvlist_get_binary(nvl, key, &actual_size, default_value,
lib/libnv/tests/dnv_tests.cc
243
actual_value = dnvlist_get_binary(nvl, key, &actual_size, default_value,
lib/libnv/tests/dnv_tests.cc
248
nvlist_add_binary(nvl, key, "test", 4);
lib/libnv/tests/dnv_tests.cc
270
const char *key;
lib/libnv/tests/dnv_tests.cc
275
key = "name";
lib/libnv/tests/dnv_tests.cc
277
nvlist_add_bool(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
279
ATF_REQUIRE_EQ(dnvlist_take_bool(nvl, key, false), value);
lib/libnv/tests/dnv_tests.cc
314
const char *key;
lib/libnv/tests/dnv_tests.cc
319
key = "name";
lib/libnv/tests/dnv_tests.cc
321
nvlist_add_number(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
323
ATF_REQUIRE_EQ(dnvlist_take_number(nvl, key, 2), value);
lib/libnv/tests/dnv_tests.cc
358
const char *key;
lib/libnv/tests/dnv_tests.cc
364
key = "name";
lib/libnv/tests/dnv_tests.cc
367
nvlist_add_string(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
369
actual_val = dnvlist_take_string(nvl, key, default_val);
lib/libnv/tests/dnv_tests.cc
37
const char *key;
lib/libnv/tests/dnv_tests.cc
417
const char *key;
lib/libnv/tests/dnv_tests.cc
42
key = "name";
lib/libnv/tests/dnv_tests.cc
422
key = "name";
lib/libnv/tests/dnv_tests.cc
425
nvlist_move_nvlist(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
427
actual_val = dnvlist_take_nvlist(nvl, key, default_val);
lib/libnv/tests/dnv_tests.cc
44
nvlist_add_bool(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
46
ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, key, false), value);
lib/libnv/tests/dnv_tests.cc
479
const char *key;
lib/libnv/tests/dnv_tests.cc
485
key = "name";
lib/libnv/tests/dnv_tests.cc
488
nvlist_add_binary(nvl, key, value, value_size);
lib/libnv/tests/dnv_tests.cc
490
actual_val = dnvlist_take_binary(nvl, key, &actual_size, default_val,
lib/libnv/tests/dnv_tests.cc
56
const char *key;
lib/libnv/tests/dnv_tests.cc
58
key = "123";
lib/libnv/tests/dnv_tests.cc
61
ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, key, false), false);
lib/libnv/tests/dnv_tests.cc
64
nvlist_add_bool(nvl, key, true);
lib/libnv/tests/dnv_tests.cc
76
const char *key;
lib/libnv/tests/dnv_tests.cc
81
key = "key";
lib/libnv/tests/dnv_tests.cc
83
nvlist_add_number(nvl, key, value);
lib/libnv/tests/dnv_tests.cc
85
ATF_REQUIRE_EQ(dnvlist_get_number(nvl, key, 19), value);
lib/libnv/tests/dnv_tests.cc
95
const char *key;
lib/libnv/tests/dnv_tests.cc
97
key = "123";
lib/libnv/tests/nv_array_tests.cc
1002
key = "nvl/descriptor";
lib/libnv/tests/nv_array_tests.cc
102
key = "nvl/string";
lib/libnv/tests/nv_array_tests.cc
1020
ATF_REQUIRE(!nvlist_exists_descriptor_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1022
nvlist_add_descriptor_array(nvl, key, desc, nitems(desc));
lib/libnv/tests/nv_array_tests.cc
1025
ATF_REQUIRE(nvlist_exists_descriptor_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1040
ATF_REQUIRE(nvlist_exists_descriptor_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1042
const_result = nvlist_get_descriptor_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
1059
const char *key;
lib/libnv/tests/nv_array_tests.cc
106
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1067
key = "nvl/string";
lib/libnv/tests/nv_array_tests.cc
1071
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1073
nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr));
lib/libnv/tests/nv_array_tests.cc
1076
ATF_REQUIRE(nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
108
nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr));
lib/libnv/tests/nv_array_tests.cc
1084
ATF_REQUIRE(nvlist_exists_string_array(unpacked, key));
lib/libnv/tests/nv_array_tests.cc
1086
const_result = nvlist_get_string_array(unpacked, key, &count);
lib/libnv/tests/nv_array_tests.cc
1107
const char *key;
lib/libnv/tests/nv_array_tests.cc
111
ATF_REQUIRE(nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1118
key = "nvl/nvlist";
lib/libnv/tests/nv_array_tests.cc
1122
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1124
nvlist_add_nvlist_array(nvl, key, (const nvlist_t * const *)testnvl, 8);
lib/libnv/tests/nv_array_tests.cc
1127
ATF_REQUIRE(nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
1135
ATF_REQUIRE(nvlist_exists_nvlist_array(unpacked, key));
lib/libnv/tests/nv_array_tests.cc
1137
const_result = nvlist_get_nvlist_array(unpacked, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
114
const_result = nvlist_get_string_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
127
result = nvlist_take_string_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
138
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
156
const char *key;
lib/libnv/tests/nv_array_tests.cc
163
key = "nvl/descriptor";
lib/libnv/tests/nv_array_tests.cc
167
ATF_REQUIRE(!nvlist_exists_descriptor_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
169
nvlist_add_descriptor_array(nvl, key, fd, nitems(fd));
lib/libnv/tests/nv_array_tests.cc
172
ATF_REQUIRE(nvlist_exists_descriptor_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
175
const_result = nvlist_get_descriptor_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
185
result = nvlist_take_descriptor_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
194
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
214
const char *key;
lib/libnv/tests/nv_array_tests.cc
218
key = "nvl/number";
lib/libnv/tests/nv_array_tests.cc
222
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
224
nvlist_add_number_array(nvl, key, number, nitems(number));
lib/libnv/tests/nv_array_tests.cc
227
ATF_REQUIRE(nvlist_exists_number_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
230
const_result = nvlist_get_number_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
237
result = nvlist_take_number_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
243
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
261
const char *key;
lib/libnv/tests/nv_array_tests.cc
272
key = "nvl/nvlist";
lib/libnv/tests/nv_array_tests.cc
276
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
278
nvlist_add_nvlist_array(nvl, key, (const nvlist_t * const *)testnvl, 8);
lib/libnv/tests/nv_array_tests.cc
281
ATF_REQUIRE(nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
284
const_result = nvlist_get_nvlist_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
306
result = nvlist_take_nvlist_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
317
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
461
const char *key;
lib/libnv/tests/nv_array_tests.cc
463
key = "nvl/bool";
lib/libnv/tests/nv_array_tests.cc
467
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
475
nvlist_move_bool_array(nvl, key, testbool, count);
lib/libnv/tests/nv_array_tests.cc
478
ATF_REQUIRE(nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
480
const_result = nvlist_get_bool_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
498
const char *key;
lib/libnv/tests/nv_array_tests.cc
500
key = "nvl/string";
lib/libnv/tests/nv_array_tests.cc
504
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
516
nvlist_move_string_array(nvl, key, teststr, count);
lib/libnv/tests/nv_array_tests.cc
519
ATF_REQUIRE(nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
521
const_result = nvlist_get_string_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
53
const char *key;
lib/libnv/tests/nv_array_tests.cc
541
const char *key;
lib/libnv/tests/nv_array_tests.cc
543
key = "nvl/nvlist";
lib/libnv/tests/nv_array_tests.cc
547
ATF_REQUIRE(!nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
55
key = "nvl/bool";
lib/libnv/tests/nv_array_tests.cc
557
nvlist_move_nvlist_array(nvl, key, testnv, count);
lib/libnv/tests/nv_array_tests.cc
560
ATF_REQUIRE(nvlist_exists_nvlist_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
562
const_result = nvlist_get_nvlist_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
59
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
591
const char *key;
lib/libnv/tests/nv_array_tests.cc
593
key = "nvl/number";
lib/libnv/tests/nv_array_tests.cc
597
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
605
nvlist_move_number_array(nvl, key, testnumber, count);
lib/libnv/tests/nv_array_tests.cc
608
ATF_REQUIRE(nvlist_exists_number_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
610
const_result = nvlist_get_number_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
628
const char *key;
lib/libnv/tests/nv_array_tests.cc
630
key = "nvl/fd";
lib/libnv/tests/nv_array_tests.cc
634
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
64
nvlist_add_bool_array(nvl, key, testbool, 16);
lib/libnv/tests/nv_array_tests.cc
644
nvlist_move_descriptor_array(nvl, key, testfd, count);
lib/libnv/tests/nv_array_tests.cc
647
ATF_REQUIRE(nvlist_exists_descriptor_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
649
const_result = nvlist_get_descriptor_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
67
ATF_REQUIRE(nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
70
const_result = nvlist_get_bool_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
76
result = nvlist_take_bool_array(nvl, key, &num_items);
lib/libnv/tests/nv_array_tests.cc
82
ATF_REQUIRE(!nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
909
const char *key;
lib/libnv/tests/nv_array_tests.cc
919
key = "nvl/bool";
lib/libnv/tests/nv_array_tests.cc
923
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
925
nvlist_add_bool_array(nvl, key, testbool, nitems(testbool));
lib/libnv/tests/nv_array_tests.cc
928
ATF_REQUIRE(nvlist_exists_bool_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
936
ATF_REQUIRE(nvlist_exists_bool_array(unpacked, key));
lib/libnv/tests/nv_array_tests.cc
938
const_result = nvlist_get_bool_array(unpacked, key, &count);
lib/libnv/tests/nv_array_tests.cc
953
const char *key;
lib/libnv/tests/nv_array_tests.cc
961
key = "nvl/number";
lib/libnv/tests/nv_array_tests.cc
965
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
967
nvlist_add_number_array(nvl, key, number, 8);
lib/libnv/tests/nv_array_tests.cc
970
ATF_REQUIRE(nvlist_exists_number_array(nvl, key));
lib/libnv/tests/nv_array_tests.cc
978
ATF_REQUIRE(nvlist_exists_number_array(unpacked, key));
lib/libnv/tests/nv_array_tests.cc
98
const char *key;
lib/libnv/tests/nv_array_tests.cc
980
const_result = nvlist_get_number_array(unpacked, key, &count);
lib/libnv/tests/nv_array_tests.cc
995
const char *key;
lib/libnv/tests/nv_tests.cc
103
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
1035
const char *key;
lib/libnv/tests/nv_tests.cc
1038
key = "test";
lib/libnv/tests/nv_tests.cc
1039
nvlist_add_null(nvl, key);
lib/libnv/tests/nv_tests.cc
1041
nvlist_free(nvl, key);
lib/libnv/tests/nv_tests.cc
105
nvlist_add_bool(nvl, key, true);
lib/libnv/tests/nv_tests.cc
1051
const char *key;
lib/libnv/tests/nv_tests.cc
1054
key = "test";
lib/libnv/tests/nv_tests.cc
1055
nvlist_add_bool(nvl, key, true);
lib/libnv/tests/nv_tests.cc
1057
nvlist_free(nvl, key);
lib/libnv/tests/nv_tests.cc
1067
const char *key;
lib/libnv/tests/nv_tests.cc
1070
key = "test";
lib/libnv/tests/nv_tests.cc
1071
nvlist_add_number(nvl, key, 584);
lib/libnv/tests/nv_tests.cc
1073
nvlist_free(nvl, key);
lib/libnv/tests/nv_tests.cc
108
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
1083
const char *key;
lib/libnv/tests/nv_tests.cc
1086
key = "test";
lib/libnv/tests/nv_tests.cc
1087
nvlist_add_string(nvl, key, "gjkfkjd");
lib/libnv/tests/nv_tests.cc
1089
nvlist_free(nvl, key);
lib/libnv/tests/nv_tests.cc
1099
const char *key;
lib/libnv/tests/nv_tests.cc
110
ATF_REQUIRE(nvlist_exists_bool(nvl, key));
lib/libnv/tests/nv_tests.cc
1102
key = "test";
lib/libnv/tests/nv_tests.cc
1103
nvlist_add_nvlist(nvl, key, nvlist_create(0));
lib/libnv/tests/nv_tests.cc
1105
nvlist_free(nvl, key);
lib/libnv/tests/nv_tests.cc
1115
const char *key;
lib/libnv/tests/nv_tests.cc
1118
key = "test";
lib/libnv/tests/nv_tests.cc
1119
nvlist_add_binary(nvl, key, "jgjgfd", 6);
lib/libnv/tests/nv_tests.cc
112
ATF_REQUIRE_EQ(nvlist_get_bool(nvl, key), true);
lib/libnv/tests/nv_tests.cc
1121
nvlist_free(nvl, key);
lib/libnv/tests/nv_tests.cc
1131
const char *key;
lib/libnv/tests/nv_tests.cc
1134
key = "test";
lib/libnv/tests/nv_tests.cc
1135
nvlist_add_null(nvl, key);
lib/libnv/tests/nv_tests.cc
1137
nvlist_free_null(nvl, key);
lib/libnv/tests/nv_tests.cc
1147
const char *key;
lib/libnv/tests/nv_tests.cc
1150
key = "test";
lib/libnv/tests/nv_tests.cc
1151
nvlist_add_bool(nvl, key, true);
lib/libnv/tests/nv_tests.cc
1153
nvlist_free_bool(nvl, key);
lib/libnv/tests/nv_tests.cc
116
ATF_REQUIRE_EQ(strcmp(nvlist_next(nvl, &type, &it), key), 0);
lib/libnv/tests/nv_tests.cc
1163
const char *key;
lib/libnv/tests/nv_tests.cc
1166
key = "test";
lib/libnv/tests/nv_tests.cc
1167
nvlist_add_number(nvl, key, 584);
lib/libnv/tests/nv_tests.cc
1169
nvlist_free_number(nvl, key);
lib/libnv/tests/nv_tests.cc
1179
const char *key;
lib/libnv/tests/nv_tests.cc
1182
key = "test";
lib/libnv/tests/nv_tests.cc
1183
nvlist_add_string(nvl, key, "gjkfkjd");
lib/libnv/tests/nv_tests.cc
1185
nvlist_free_string(nvl, key);
lib/libnv/tests/nv_tests.cc
1195
const char *key;
lib/libnv/tests/nv_tests.cc
1198
key = "test";
lib/libnv/tests/nv_tests.cc
1199
nvlist_add_nvlist(nvl, key, nvlist_create(0));
lib/libnv/tests/nv_tests.cc
1201
nvlist_free_nvlist(nvl, key);
lib/libnv/tests/nv_tests.cc
1211
const char *key;
lib/libnv/tests/nv_tests.cc
1214
key = "test";
lib/libnv/tests/nv_tests.cc
1215
nvlist_add_binary(nvl, key, "jgjgfd", 6);
lib/libnv/tests/nv_tests.cc
1217
nvlist_free_binary(nvl, key);
lib/libnv/tests/nv_tests.cc
128
const char *key;
lib/libnv/tests/nv_tests.cc
132
key = "foo123";
lib/libnv/tests/nv_tests.cc
137
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
139
nvlist_add_number(nvl, key, value);
lib/libnv/tests/nv_tests.cc
142
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
144
ATF_REQUIRE(nvlist_exists_number(nvl, key));
lib/libnv/tests/nv_tests.cc
145
ATF_REQUIRE_EQ(nvlist_get_number(nvl, key), value);
lib/libnv/tests/nv_tests.cc
149
ATF_REQUIRE_EQ(strcmp(nvlist_next(nvl, &type, &it), key), 0);
lib/libnv/tests/nv_tests.cc
161
const char *key;
lib/libnv/tests/nv_tests.cc
165
key = "test";
lib/libnv/tests/nv_tests.cc
170
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
172
nvlist_add_string(nvl, key, value);
lib/libnv/tests/nv_tests.cc
175
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
177
ATF_REQUIRE(nvlist_exists_string(nvl, key));
lib/libnv/tests/nv_tests.cc
179
ATF_REQUIRE_EQ(strcmp(nvlist_get_string(nvl, key), value), 0);
lib/libnv/tests/nv_tests.cc
182
ATF_REQUIRE(nvlist_get_string(nvl, key) != value);
lib/libnv/tests/nv_tests.cc
186
ATF_REQUIRE_EQ(strcmp(nvlist_next(nvl, &type, &it), key), 0);
lib/libnv/tests/nv_tests.cc
198
const char *key, *subkey;
lib/libnv/tests/nv_tests.cc
203
key = "test";
lib/libnv/tests/nv_tests.cc
209
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
212
nvlist_add_nvlist(nvl, key, sublist);
lib/libnv/tests/nv_tests.cc
215
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
217
ATF_REQUIRE(nvlist_exists_nvlist(nvl, key));
lib/libnv/tests/nv_tests.cc
220
value = nvlist_get_nvlist(nvl, key);
lib/libnv/tests/nv_tests.cc
228
ATF_REQUIRE_EQ(strcmp(nvlist_next(nvl, &type, &it), key), 0);
lib/libnv/tests/nv_tests.cc
257
const char *key;
lib/libnv/tests/nv_tests.cc
263
key = "binary";
lib/libnv/tests/nv_tests.cc
270
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
272
nvlist_add_binary(nvl, key, value, value_size);
lib/libnv/tests/nv_tests.cc
275
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
277
ATF_REQUIRE(nvlist_exists_binary(nvl, key));
lib/libnv/tests/nv_tests.cc
280
ret_value = nvlist_get_binary(nvl, key, &ret_size);
lib/libnv/tests/nv_tests.cc
289
ATF_REQUIRE_EQ(strcmp(nvlist_next(nvl, &type, &it), key), 0);
lib/libnv/tests/nv_tests.cc
318
const char *key;
lib/libnv/tests/nv_tests.cc
326
key = "testkey";
lib/libnv/tests/nv_tests.cc
328
nvlist_add_number(nvl, key, value);
lib/libnv/tests/nv_tests.cc
333
ATF_REQUIRE(nvlist_exists_number(clone, key));
lib/libnv/tests/nv_tests.cc
334
ATF_REQUIRE_EQ(nvlist_get_number(clone, key), value);
lib/libnv/tests/nv_tests.cc
338
ATF_REQUIRE_EQ(strcmp(nvlist_next(clone, &type, &it), key), 0);
lib/libnv/tests/nv_tests.cc
66
const char *key;
lib/libnv/tests/nv_tests.cc
663
const char *key;
lib/libnv/tests/nv_tests.cc
669
key = "testkey";
lib/libnv/tests/nv_tests.cc
673
nvlist_move_string(nvl, key, value);
lib/libnv/tests/nv_tests.cc
674
ATF_REQUIRE_EQ(nvlist_get_string(nvl, key), value);
lib/libnv/tests/nv_tests.cc
69
key = "key";
lib/libnv/tests/nv_tests.cc
712
const char *key;
lib/libnv/tests/nv_tests.cc
718
key = "testkey";
lib/libnv/tests/nv_tests.cc
722
nvlist_move_nvlist(nvl, key, value);
lib/libnv/tests/nv_tests.cc
723
ATF_REQUIRE_EQ(nvlist_get_nvlist(nvl, key), value);
lib/libnv/tests/nv_tests.cc
73
ATF_REQUIRE(!nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
732
const char *key;
lib/libnv/tests/nv_tests.cc
739
key = "testkey";
lib/libnv/tests/nv_tests.cc
744
nvlist_move_binary(nvl, key, value, size);
lib/libnv/tests/nv_tests.cc
745
ATF_REQUIRE_EQ(nvlist_get_binary(nvl, key, &actual_size), value);
lib/libnv/tests/nv_tests.cc
75
nvlist_add_null(nvl, key);
lib/libnv/tests/nv_tests.cc
78
ATF_REQUIRE(nvlist_exists(nvl, key));
lib/libnv/tests/nv_tests.cc
79
ATF_REQUIRE(nvlist_exists_null(nvl, key));
lib/libnv/tests/nv_tests.cc
84
ATF_REQUIRE_EQ(strcmp(nvlist_next(nvl, &type, &it), key), 0);
lib/libnv/tests/nv_tests.cc
96
const char *key;
lib/libnv/tests/nv_tests.cc
99
key = "name";
lib/libomp/omp.h
363
omp_alloctrait_key_t key;
lib/libpam/modules/pam_ssh/pam_ssh.c
102
struct sshkey *key;
lib/libpam/modules/pam_ssh/pam_ssh.c
116
ret = sshkey_load_private(fn, "", &key, &comment);
lib/libpam/modules/pam_ssh/pam_ssh.c
118
sshkey_free(key);
lib/libpam/modules/pam_ssh/pam_ssh.c
122
ret = sshkey_load_private(fn, passphrase, &key, &comment);
lib/libpam/modules/pam_ssh/pam_ssh.c
130
sshkey_free(key);
lib/libpam/modules/pam_ssh/pam_ssh.c
134
psk->key = key;
lib/libpam/modules/pam_ssh/pam_ssh.c
149
sshkey_free(psk->key);
lib/libpam/modules/pam_ssh/pam_ssh.c
240
char *line, *p, *key, *val;
lib/libpam/modules/pam_ssh/pam_ssh.c
248
for (p = key = line; p < line + len; ++p)
lib/libpam/modules/pam_ssh/pam_ssh.c
264
openpam_log(PAM_LOG_DEBUG, "got %s: %s", key, val);
lib/libpam/modules/pam_ssh/pam_ssh.c
265
pam_setenv(pamh, key, val, 1);
lib/libpam/modules/pam_ssh/pam_ssh.c
350
if (ssh_add_identity(fd, psk->key, psk->comment) == 0)
lib/libpam/modules/pam_ssh/pam_ssh.c
64
#define ssh_add_identity(auth, key, comment) \
lib/libpam/modules/pam_ssh/pam_ssh.c
65
ssh_add_identity_constrained(auth, key, comment, 0, 0, 0, NULL, NULL, 0)
lib/libpam/modules/pam_ssh/pam_ssh.c
70
struct sshkey *key;
lib/libpfctl/libpfctl.c
1183
snl_add_msg_attr(nw, PF_PT_KEY, sizeof(pool->key), &pool->key);
lib/libpfctl/libpfctl.c
1547
{ .type = PF_PT_KEY, .off = _OUT(key), .arg = (void *)sizeof(struct pf_poolhashkey), .cb = snl_attr_get_bytes },
lib/libpfctl/libpfctl.c
1939
{ .type = PF_ST_KEY_WIRE, .off = _OUT(key[0]), .arg = &skey_parser, .cb = snl_attr_get_nested },
lib/libpfctl/libpfctl.c
1940
{ .type = PF_ST_KEY_STACK, .off = _OUT(key[1]), .arg = &skey_parser, .cb = snl_attr_get_nested },
lib/libpfctl/libpfctl.c
682
assert(len == sizeof(pool->key));
lib/libpfctl/libpfctl.c
683
memcpy(&pool->key, data, len);
lib/libpfctl/libpfctl.h
160
struct pf_poolhashkey key;
lib/libpfctl/libpfctl.h
385
struct pfctl_state_key key[2]; /* addresses stack and wire */
lib/libpmc/libpmc_pmu_util.c
329
char *kvp, *key, *value, *r;
lib/libpmc/libpmc_pmu_util.c
339
key = strsep(&kvp, "=");
lib/libpmc/libpmc_pmu_util.c
340
if (key == NULL)
lib/libpmc/libpmc_pmu_util.c
343
if (strcmp(key, "umask") == 0)
lib/libpmc/libpmc_pmu_util.c
345
else if (strcmp(key, "event") == 0)
lib/libpmc/libpmc_pmu_util.c
347
else if (strcmp(key, "period") == 0)
lib/libpmc/libpmc_pmu_util.c
349
else if (strcmp(key, "offcore_rsp") == 0)
lib/libpmc/libpmc_pmu_util.c
351
else if (strcmp(key, "any") == 0)
lib/libpmc/libpmc_pmu_util.c
353
else if (strcmp(key, "cmask") == 0)
lib/libpmc/libpmc_pmu_util.c
355
else if (strcmp(key, "inv") == 0)
lib/libpmc/libpmc_pmu_util.c
357
else if (strcmp(key, "edge") == 0)
lib/libpmc/libpmc_pmu_util.c
359
else if (strcmp(key, "frontend") == 0)
lib/libpmc/libpmc_pmu_util.c
361
else if (strcmp(key, "ldlat") == 0)
lib/libpmc/libpmc_pmu_util.c
363
else if (strcmp(key, "fc_mask") == 0)
lib/libpmc/libpmc_pmu_util.c
365
else if (strcmp(key, "ch_mask") == 0)
lib/libpmc/libpmc_pmu_util.c
367
else if (strcmp(key, "config1") == 0)
lib/libpmc/libpmc_pmu_util.c
369
else if (strcmp(key, "l3_thread_mask") == 0)
lib/libpmc/libpmc_pmu_util.c
371
else if (strcmp(key, "l3_slice_mask") == 0)
lib/libpmc/libpmc_pmu_util.c
373
else if (strcmp(key, "sourceid") == 0)
lib/libpmc/libpmc_pmu_util.c
375
else if (strcmp(key, "coreid") == 0)
lib/libpmc/libpmc_pmu_util.c
377
else if (strcmp(key, "allcores") == 0)
lib/libpmc/libpmc_pmu_util.c
379
else if (strcmp(key, "allsources") == 0)
lib/libpmc/libpmc_pmu_util.c
381
else if (strcmp(key, "pebs") == 0)
lib/libpmc/libpmc_pmu_util.c
386
printf("unrecognized kvpair: %s:%s\n", key, value);
lib/librpcsvc/xcrypt.c
104
passwd2des(passwd, key);
lib/librpcsvc/xcrypt.c
107
err = cbc_crypt(key, buf, len, DES_DECRYPT | DES_HW, ivec);
lib/librpcsvc/xcrypt.c
122
passwd2des(char *pw, char *key)
lib/librpcsvc/xcrypt.c
126
bzero(key, 8);
lib/librpcsvc/xcrypt.c
128
key[i] ^= *pw++ << 1;
lib/librpcsvc/xcrypt.c
130
des_setparity(key);
lib/librpcsvc/xcrypt.c
59
char key[8];
lib/librpcsvc/xcrypt.c
71
passwd2des(passwd, key);
lib/librpcsvc/xcrypt.c
74
err = cbc_crypt(key, buf, len, DES_ENCRYPT | DES_HW, ivec);
lib/librpcsvc/xcrypt.c
92
char key[8];
lib/librpcsvc/yp_update.c
124
upargs.key.yp_buf_len = keylen;
lib/librpcsvc/yp_update.c
125
upargs.key.yp_buf_val = key;
lib/librpcsvc/yp_update.c
141
upargs.key.yp_buf_len = keylen;
lib/librpcsvc/yp_update.c
142
upargs.key.yp_buf_val = key;
lib/librpcsvc/yp_update.c
158
delargs.key.yp_buf_len = keylen;
lib/librpcsvc/yp_update.c
159
delargs.key.yp_buf_val = key;
lib/librpcsvc/yp_update.c
173
upargs.key.yp_buf_len = keylen;
lib/librpcsvc/yp_update.c
174
upargs.key.yp_buf_val = key;
lib/librpcsvc/yp_update.c
58
yp_update(char *domain, char *map, unsigned int ypop, char *key, int keylen,
lib/libsecureboot/brf.c
368
ta->pkey.key.rsa.n = xblobdup(pk->key.rsa.n, pk->key.rsa.nlen);
lib/libsecureboot/brf.c
369
ta->pkey.key.rsa.nlen = pk->key.rsa.nlen;
lib/libsecureboot/brf.c
370
ta->pkey.key.rsa.e = xblobdup(pk->key.rsa.e, pk->key.rsa.elen);
lib/libsecureboot/brf.c
371
ta->pkey.key.rsa.elen = pk->key.rsa.elen;
lib/libsecureboot/brf.c
375
ta->pkey.key.ec.curve = pk->key.ec.curve;
lib/libsecureboot/brf.c
376
ta->pkey.key.ec.q = xblobdup(pk->key.ec.q, pk->key.ec.qlen);
lib/libsecureboot/brf.c
377
ta->pkey.key.ec.qlen = pk->key.ec.qlen;
lib/libsecureboot/brf.c
394
xfree(ta->pkey.key.rsa.n);
lib/libsecureboot/brf.c
395
xfree(ta->pkey.key.rsa.e);
lib/libsecureboot/brf.c
398
xfree(ta->pkey.key.ec.q);
lib/libsecureboot/openpgp/opgp_key.c
109
key->id = octets2hex(&mdata[mlen - 8], 8);
lib/libsecureboot/openpgp/opgp_key.c
115
key->sig_alg = *ptr++;
lib/libsecureboot/openpgp/opgp_key.c
116
if (key->sig_alg == 1) { /* RSA */
lib/libsecureboot/openpgp/opgp_key.c
118
key->key = NEW(br_rsa_public_key);
lib/libsecureboot/openpgp/opgp_key.c
119
if (!key->key)
lib/libsecureboot/openpgp/opgp_key.c
121
key->key->n = mpi2bn(&ptr, &key->key->nlen);
lib/libsecureboot/openpgp/opgp_key.c
122
key->key->e = mpi2bn(&ptr, &key->key->elen);
lib/libsecureboot/openpgp/opgp_key.c
129
key->key = EVP_PKEY_new();
lib/libsecureboot/openpgp/opgp_key.c
130
if (!key->key || !rsa->n || !rsa->e) {
lib/libsecureboot/openpgp/opgp_key.c
133
if (!EVP_PKEY_set1_RSA(key->key, rsa))
lib/libsecureboot/openpgp/opgp_key.c
141
free(key->key);
lib/libsecureboot/openpgp/opgp_key.c
142
key->key = NULL;
lib/libsecureboot/openpgp/opgp_key.c
146
if (key->key) {
lib/libsecureboot/openpgp/opgp_key.c
147
EVP_PKEY_free(key->key);
lib/libsecureboot/openpgp/opgp_key.c
148
key->key = NULL;
lib/libsecureboot/openpgp/opgp_key.c
161
OpenPGP_key *key;
lib/libsecureboot/openpgp/opgp_key.c
174
key = NEW(OpenPGP_key);
lib/libsecureboot/openpgp/opgp_key.c
175
if (key) {
lib/libsecureboot/openpgp/opgp_key.c
177
key);
lib/libsecureboot/openpgp/opgp_key.c
179
free(key);
lib/libsecureboot/openpgp/opgp_key.c
180
key = NULL;
lib/libsecureboot/openpgp/opgp_key.c
186
key->user = NEW(OpenPGP_user);
lib/libsecureboot/openpgp/opgp_key.c
188
(decoder_t)decode_user, key->user);
lib/libsecureboot/openpgp/opgp_key.c
192
return (key);
lib/libsecureboot/openpgp/opgp_key.c
201
openpgp_trust_add(OpenPGP_key *key)
lib/libsecureboot/openpgp/opgp_key.c
210
if (key && openpgp_trust_get(key->id) == NULL) {
lib/libsecureboot/openpgp/opgp_key.c
212
printf("openpgp_trust_add(%s)\n", key->id);
lib/libsecureboot/openpgp/opgp_key.c
213
LIST_INSERT_HEAD(&trust_list, key, entries);
lib/libsecureboot/openpgp/opgp_key.c
223
OpenPGP_key *key;
lib/libsecureboot/openpgp/opgp_key.c
225
if ((key = load_key_buf(buf, nbytes))) {
lib/libsecureboot/openpgp/opgp_key.c
226
openpgp_trust_add(key);
lib/libsecureboot/openpgp/opgp_key.c
228
return (key != NULL);
lib/libsecureboot/openpgp/opgp_key.c
240
OpenPGP_key *key, *tkey;
lib/libsecureboot/openpgp/opgp_key.c
244
LIST_FOREACH(key, &trust_list, entries) {
lib/libsecureboot/openpgp/opgp_key.c
245
if (strcmp(key->id, keyID) == 0) {
lib/libsecureboot/openpgp/opgp_key.c
246
tkey = key;
lib/libsecureboot/openpgp/opgp_key.c
248
printf("openpgp_trust_revoke(%s)\n", key->id);
lib/libsecureboot/openpgp/opgp_key.c
249
memset(key, 0, sizeof(OpenPGP_key));
lib/libsecureboot/openpgp/opgp_key.c
250
free(key);
lib/libsecureboot/openpgp/opgp_key.c
265
OpenPGP_key *key;
lib/libsecureboot/openpgp/opgp_key.c
269
LIST_FOREACH(key, &trust_list, entries) {
lib/libsecureboot/openpgp/opgp_key.c
270
if (strcmp(key->id, keyID) == 0)
lib/libsecureboot/openpgp/opgp_key.c
271
return (key);
lib/libsecureboot/openpgp/opgp_key.c
284
OpenPGP_key *key;
lib/libsecureboot/openpgp/opgp_key.c
287
key = load_key_buf(data, n);
lib/libsecureboot/openpgp/opgp_key.c
289
openpgp_trust_add(key);
lib/libsecureboot/openpgp/opgp_key.c
290
return (key);
lib/libsecureboot/openpgp/opgp_key.c
335
OpenPGP_key *key;
lib/libsecureboot/openpgp/opgp_key.c
337
key = openpgp_trust_get(keyID);
lib/libsecureboot/openpgp/opgp_key.c
339
if (!key)
lib/libsecureboot/openpgp/opgp_key.c
340
key = load_trusted_key_id(keyID);
lib/libsecureboot/openpgp/opgp_key.c
342
DEBUG_PRINTF(2, ("load_key_id(%s): %s\n", keyID, key ? "found" : "nope"));
lib/libsecureboot/openpgp/opgp_key.c
343
return (key);
lib/libsecureboot/openpgp/opgp_key.c
354
OpenPGP_key *key;
lib/libsecureboot/openpgp/opgp_key.c
366
key = load_key_buf((unsigned char *)cp, n);
lib/libsecureboot/openpgp/opgp_key.c
368
if (key) {
lib/libsecureboot/openpgp/opgp_key.c
369
openpgp_trust_add(key);
lib/libsecureboot/openpgp/opgp_key.c
67
decode_key(int tag, unsigned char **pptr, size_t len, OpenPGP_key *key)
lib/libsecureboot/openpgp/opgp_key.c
86
key->key = NULL;
lib/libsecureboot/openpgp/opgp_sig.c
287
OpenPGP_key *key;
lib/libsecureboot/openpgp/opgp_sig.c
317
key = load_key_id(sig->key_id);
lib/libsecureboot/openpgp/opgp_sig.c
318
if (!key) {
lib/libsecureboot/openpgp/opgp_sig.c
363
rc = verify_rsa_digest(key->key, hash_oid,
lib/libsecureboot/openpgp/opgp_sig.c
374
rc = verify_digest(key->key, hname, mdata, mlen,
lib/libsecureboot/openpgp/opgp_sig.c
382
key->user ? key->user->name : "someone");
lib/libsecureboot/openpgp/packet.h
44
br_rsa_public_key *key;
lib/libsecureboot/openpgp/packet.h
46
EVP_PKEY *key;
lib/libsecureboot/openpgp/packet.h
64
void openpgp_trust_add(OpenPGP_key *key);
lib/libsecureboot/openpgp/packet.h
80
DECODER_DECL(key);
lib/libsecureboot/vets.c
820
if (!vrfy(ec, rhbuf, br_sha256_SIZE, &pk->key.ec, po->data,
lib/libsecureboot/vets.c
920
if (!verify_rsa_digest(&pk->key.rsa, hash_oid,
lib/libstdthreads/tss.c
35
tss_create(tss_t *key, tss_dtor_t dtor)
lib/libstdthreads/tss.c
38
if (pthread_key_create(key, dtor) != 0)
lib/libstdthreads/tss.c
44
tss_delete(tss_t key)
lib/libstdthreads/tss.c
47
(void)pthread_key_delete(key);
lib/libstdthreads/tss.c
51
tss_get(tss_t key)
lib/libstdthreads/tss.c
54
return (pthread_getspecific(key));
lib/libstdthreads/tss.c
58
tss_set(tss_t key, void *val)
lib/libstdthreads/tss.c
61
if (pthread_setspecific(key, val) != 0)
lib/libsys/_libsys.h
599
int __sys_semget(key_t key, int nsems, int semflg);
lib/libsys/_libsys.h
601
int __sys_msgget(key_t key, int msgflg);
lib/libsys/_libsys.h
606
int __sys_shmget(key_t key, size_t size, int shmflg);
lib/libthr/thread/thr_private.h
1015
void *__thr_pshared_offpage(void *key, int doalloc) __hidden;
lib/libthr/thread/thr_private.h
1016
void __thr_pshared_destroy(void *key) __hidden;
lib/libthr/thread/thr_pshared.c
125
pshared_lookup(void *key)
lib/libthr/thread/thr_pshared.c
130
hd = &pshared_hash[PSHARED_KEY_HASH(key)];
lib/libthr/thread/thr_pshared.c
132
if (h->key == key)
lib/libthr/thread/thr_pshared.c
139
pshared_insert(void *key, void **val)
lib/libthr/thread/thr_pshared.c
144
hd = &pshared_hash[PSHARED_KEY_HASH(key)];
lib/libthr/thread/thr_pshared.c
167
if (h->key == key) {
lib/libthr/thread/thr_pshared.c
179
h->key = key;
lib/libthr/thread/thr_pshared.c
186
pshared_remove(void *key)
lib/libthr/thread/thr_pshared.c
192
hd = &pshared_hash[PSHARED_KEY_HASH(key)];
lib/libthr/thread/thr_pshared.c
194
if (h->key == key) {
lib/libthr/thread/thr_pshared.c
205
pshared_clean(void *key, void *val)
lib/libthr/thread/thr_pshared.c
210
_umtx_op(NULL, UMTX_OP_SHM, UMTX_SHM_DESTROY, key, NULL);
lib/libthr/thread/thr_pshared.c
214
pshared_destroy(struct pthread *curthread, void *key)
lib/libthr/thread/thr_pshared.c
219
val = pshared_remove(key);
lib/libthr/thread/thr_pshared.c
221
pshared_clean(key, val);
lib/libthr/thread/thr_pshared.c
225
__thr_pshared_offpage(void *key, int doalloc)
lib/libthr/thread/thr_pshared.c
233
pshared_destroy(curthread, key);
lib/libthr/thread/thr_pshared.c
237
res = pshared_lookup(key);
lib/libthr/thread/thr_pshared.c
243
UMTX_SHM_LOOKUP, key, NULL);
lib/libthr/thread/thr_pshared.c
251
ins_done = pshared_insert(key, &res);
lib/libthr/thread/thr_pshared.c
254
pshared_clean(key, res);
lib/libthr/thread/thr_pshared.c
261
__thr_pshared_destroy(void *key)
lib/libthr/thread/thr_pshared.c
266
pshared_destroy(curthread, key);
lib/libthr/thread/thr_pshared.c
40
void *key;
lib/libthr/thread/thr_pshared.c
47
#define PSHARED_KEY_HASH(key) (((unsigned long)(key) >> 8) % HASH_SIZE)
lib/libthr/thread/thr_spec.c
111
int i, key;
lib/libthr/thread/thr_spec.c
119
for (key = 0; key < PTHREAD_KEYS_MAX &&
lib/libthr/thread/thr_spec.c
120
curthread->specific_data_count > 0; key++) {
lib/libthr/thread/thr_spec.c
123
if (_thread_keytable[key].allocated &&
lib/libthr/thread/thr_spec.c
124
(curthread->specific[key].data != NULL)) {
lib/libthr/thread/thr_spec.c
125
if (curthread->specific[key].seqno ==
lib/libthr/thread/thr_spec.c
126
_thread_keytable[key].seqno) {
lib/libthr/thread/thr_spec.c
127
data = curthread->specific[key].data;
lib/libthr/thread/thr_spec.c
128
destructor = _thread_keytable[key].
lib/libthr/thread/thr_spec.c
131
curthread->specific[key].data = NULL;
lib/libthr/thread/thr_spec.c
133
} else if (curthread->specific[key].data != NULL) {
lib/libthr/thread/thr_spec.c
142
curthread->specific[key].data = NULL;
lib/libthr/thread/thr_spec.c
172
pthread_key_t key;
lib/libthr/thread/thr_spec.c
174
key = userkey - 1;
lib/libthr/thread/thr_spec.c
175
if ((unsigned int)key >= PTHREAD_KEYS_MAX ||
lib/libthr/thread/thr_spec.c
176
!_thread_keytable[key].allocated)
lib/libthr/thread/thr_spec.c
187
if (pthread->specific[key].data == NULL) {
lib/libthr/thread/thr_spec.c
192
pthread->specific[key].data = value;
lib/libthr/thread/thr_spec.c
193
pthread->specific[key].seqno = _thread_keytable[key].seqno;
lib/libthr/thread/thr_spec.c
202
pthread_key_t key;
lib/libthr/thread/thr_spec.c
205
key = userkey - 1;
lib/libthr/thread/thr_spec.c
206
if ((unsigned int)key >= PTHREAD_KEYS_MAX)
lib/libthr/thread/thr_spec.c
211
if (_thread_keytable[key].allocated && pthread->specific != NULL &&
lib/libthr/thread/thr_spec.c
212
pthread->specific[key].seqno == _thread_keytable[key].seqno) {
lib/libthr/thread/thr_spec.c
214
data = pthread->specific[key].data;
lib/libthr/thread/thr_spec.c
230
int key;
lib/libthr/thread/thr_spec.c
234
for (key = 0; key < PTHREAD_KEYS_MAX; key++) {
lib/libthr/thread/thr_spec.c
235
if (!_thread_keytable[key].allocated)
lib/libthr/thread/thr_spec.c
237
destructor = _thread_keytable[key].destructor;
lib/libthr/thread/thr_spec.c
241
_thread_keytable[key].destructor = NULL;
lib/libthr/thread/thr_spec.c
57
_thr_key_create(pthread_key_t *key, void (*destructor)(void *))
lib/libthr/thread/thr_spec.c
75
*key = i + 1;
lib/libthr/thread/thr_spec.c
88
int key, ret;
lib/libthr/thread/thr_spec.c
90
key = userkey - 1;
lib/libthr/thread/thr_spec.c
91
if ((unsigned int)key >= PTHREAD_KEYS_MAX)
lib/libthr/thread/thr_spec.c
95
if (_thread_keytable[key].allocated) {
lib/libthr/thread/thr_spec.c
96
_thread_keytable[key].allocated = 0;
lib/libypclnt/ypclnt_get.c
40
ypclnt_get(ypclnt_t *ypc, const char *key)
lib/libypclnt/ypclnt_get.c
46
key, (int)strlen(key), &value, &len);
lib/nss_tacplus/nss_tacplus.c
116
char *av, *key, *value, *end;
lib/nss_tacplus/nss_tacplus.c
172
key = av;
lib/nss_tacplus/nss_tacplus.c
178
if (strcasecmp(key, "uid") == 0) {
lib/nss_tacplus/nss_tacplus.c
187
} else if (strcasecmp(key, "gid") == 0) {
libexec/bootpd/hash.c
177
hash_datum *key)
libexec/bootpd/hash.c
183
if ((*compare) (key, memberptr->data)) {
libexec/bootpd/hash.c
205
hash_datum *key, hash_datum *element)
libexec/bootpd/hash.c
210
if (hash_Exists(hashtable, hashcode, compare, key)) {
libexec/bootpd/hash.c
233
hash_datum *key, hash_freefp free_data)
libexec/bootpd/hash.c
248
while (memberptr && (*compare) (key, memberptr->data)) {
libexec/bootpd/hash.c
267
if ((*compare) (key, memberptr->data)) {
libexec/bootpd/hash.c
295
hash_datum *key)
libexec/bootpd/hash.c
301
if ((*compare) (key, memberptr->data)) {
libexec/bootpd/hash.h
130
hash_cmpfp, hash_datum *key);
libexec/bootpd/hash.h
133
hash_cmpfp, hash_datum *key,
libexec/bootpd/hash.h
137
hash_cmpfp, hash_datum *key,
libexec/bootpd/hash.h
141
hash_cmpfp, hash_datum *key);
libexec/mknetid/hash.c
100
u_int32_t hashkey(char *key)
libexec/mknetid/hash.c
103
if (key == NULL)
libexec/mknetid/hash.c
105
return(hash((void *)key, strlen(key)) & HASH_MASK);
libexec/mknetid/hash.c
109
struct grouplist *lookup(struct member_entry *table[], char *key)
libexec/mknetid/hash.c
113
cur = table[hashkey(key)];
libexec/mknetid/hash.c
116
if (!strcmp(cur->key, key))
libexec/mknetid/hash.c
129
void mstore (struct member_entry *table[], char *key, int gid, int dup)
libexec/mknetid/hash.c
135
i = hashkey(key);
libexec/mknetid/hash.c
146
if (!dup && !strcmp(cur->key, key)) {
libexec/mknetid/hash.c
156
new->key = strdup(key);
libexec/mknetid/hash.c
53
const u_char *key;
libexec/mknetid/hash.c
57
#define HASHC h = *key++ + 65599 * h
libexec/mknetid/hash.c
60
key = keyarg;
libexec/mknetid/hash.h
43
char *key; /* username */
libexec/revnetgroup/hash.c
101
hashkey(char *key)
libexec/revnetgroup/hash.c
104
if (key == NULL)
libexec/revnetgroup/hash.c
106
return(hash((void *)key, strlen(key)) & HASH_MASK);
libexec/revnetgroup/hash.c
111
lookup(struct group_entry *table[], char *key)
libexec/revnetgroup/hash.c
115
cur = table[hashkey(key)];
libexec/revnetgroup/hash.c
118
if (!strcmp(cur->key, key))
libexec/revnetgroup/hash.c
144
store(struct group_entry *table[], char *key, char *data)
libexec/revnetgroup/hash.c
149
i = hashkey(key);
libexec/revnetgroup/hash.c
152
new->key = strdup(key);
libexec/revnetgroup/hash.c
173
mstore(struct member_entry *table[], char *key, char *data, char *domain)
libexec/revnetgroup/hash.c
179
i = hashkey(key);
libexec/revnetgroup/hash.c
188
if (!strcmp(cur->key, key)) {
libexec/revnetgroup/hash.c
198
new->key = strdup(key);
libexec/revnetgroup/hash.c
53
const u_char *key;
libexec/revnetgroup/hash.c
57
#define HASHC h = *key++ + 65599 * h
libexec/revnetgroup/hash.c
60
key = keyarg;
libexec/revnetgroup/hash.h
43
char *key;
libexec/revnetgroup/hash.h
51
char *key;
libexec/revnetgroup/revnetgroup.c
130
key = (char *)&readbuf;
libexec/revnetgroup/revnetgroup.c
132
store(gtable, key, data);
libexec/revnetgroup/revnetgroup.c
144
__setnetgrent(gcur->key);
libexec/revnetgroup/revnetgroup.c
147
mstore(mtable, hosts ? host : user, gcur->key, domain);
libexec/revnetgroup/revnetgroup.c
161
printf ("%s.%s\t", mcur->key, mcur->domain);
libexec/revnetgroup/revnetgroup.c
76
char *key = NULL, *data = NULL;
libexec/ypxfr/yp_dbwrite.c
91
yp_put_record(DB *dbp, DBT *key, DBT *data, int allow_overwrite)
libexec/ypxfr/yp_dbwrite.c
95
if ((rval = (dbp->put)(dbp,key,data, allow_overwrite ? 0 :
libexec/ypxfr/ypxfr_main.c
123
ypxfr_foreach(int status, char *key, int keylen, char *val, int vallen,
libexec/ypxfr/ypxfr_main.c
138
dbkey.data = key;
libexec/ypxfr/ypxfr_main.c
174
DBT key, data;
libexec/ypxfr/ypxfr_main.c
308
key.data = "YP_MASTER_NAME";
libexec/ypxfr/ypxfr_main.c
309
key.size = sizeof("YP_MASTER_NAME") - 1;
libexec/ypxfr/ypxfr_main.c
312
&key, &data, 1) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
374
key.data = "YP_LAST_MODIFIED";
libexec/ypxfr/ypxfr_main.c
375
key.size = sizeof("YP_LAST_MODIFIED") - 1;
libexec/ypxfr/ypxfr_main.c
381
if (yp_get_record(ypxfr_dest_domain,ypxfr_mapname,&key,&data,1) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
440
if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
445
key.data = "YP_MASTER_NAME";
libexec/ypxfr/ypxfr_main.c
446
key.size = sizeof("YP_MASTER_NAME") - 1;
libexec/ypxfr/ypxfr_main.c
450
if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
455
key.data = "YP_DOMAIN_NAME";
libexec/ypxfr/ypxfr_main.c
456
key.size = sizeof("YP_DOMAIN_NAME") - 1;
libexec/ypxfr/ypxfr_main.c
460
if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
467
key.data = "YP_INPUT_NAME";
libexec/ypxfr/ypxfr_main.c
468
key.size = sizeof("YP_INPUT_NAME") - 1;
libexec/ypxfr/ypxfr_main.c
472
if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
481
key.data = "YP_OUTPUT_NAME";
libexec/ypxfr/ypxfr_main.c
482
key.size = sizeof("YP_OUTPUT_NAME") - 1;
libexec/ypxfr/ypxfr_main.c
486
if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
492
key.data = "YP_INTERDOMAIN";
libexec/ypxfr/ypxfr_main.c
493
key.size = sizeof("YP_INTERDOMAIN") - 1;
libexec/ypxfr/ypxfr_main.c
497
if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
libexec/ypxfr/ypxfr_main.c
504
key.data = "YP_SECURE";
libexec/ypxfr/ypxfr_main.c
505
key.size = sizeof("YP_SECURE") - 1;
libexec/ypxfr/ypxfr_main.c
509
if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
libexec/ypxfr/ypxfr_misc.c
255
ypxfr_match(char *server, char *domain, char *map, char *key,
libexec/ypxfr/ypxfr_misc.c
273
ypkey.key.keydat_len = keylen;
libexec/ypxfr/ypxfr_misc.c
274
ypkey.key.keydat_val = key;
sbin/camcontrol/persist.c
215
struct scsi_per_res_key *key;
sbin/camcontrol/persist.c
220
num_keys = length / sizeof(*key);
sbin/camcontrol/persist.c
226
for (i = 0, key = (struct scsi_per_res_key *)&hdr[1]; i < num_keys;
sbin/camcontrol/persist.c
227
i++, key++) {
sbin/camcontrol/persist.c
229
(uintmax_t)scsi_8btou64(key->key));
sbin/camcontrol/persist.c
400
(uintmax_t)scsi_8btou64(desc->res_key.key));
sbin/camcontrol/persist.c
439
uint64_t key = 0, sa_key = 0;
sbin/camcontrol/persist.c
510
key = tmpval;
sbin/camcontrol/persist.c
793
scsi_u64to8b(key, parms->res_key.key);
sbin/camcontrol/persist.c
809
scsi_u64to8b(key, reg_move->res_key.key);
sbin/decryptcore/decryptcore.c
121
uint8_t buf[KERNELDUMP_BUFFER_SIZE], key[KERNELDUMP_KEY_MAX_SIZE],
sbin/decryptcore/decryptcore.c
235
kdk->kdk_encryptedkey, key, privkey,
sbin/decryptcore/decryptcore.c
236
RSA_PKCS1_OAEP_PADDING) != sizeof(key) &&
sbin/decryptcore/decryptcore.c
239
kdk->kdk_encryptedkey, key, privkey,
sbin/decryptcore/decryptcore.c
240
RSA_PKCS1_PADDING) != sizeof(key)) {
sbin/decryptcore/decryptcore.c
262
EVP_DecryptInit_ex(ctx, cipher, NULL, key, chachaiv);
sbin/decryptcore/decryptcore.c
264
EVP_DecryptInit_ex(ctx, cipher, NULL, key, kdk->kdk_iv);
sbin/decryptcore/decryptcore.c
267
explicit_bzero(key, sizeof(key));
sbin/decryptcore/decryptcore.c
300
explicit_bzero(key, sizeof(key));
sbin/devmatch/devmatch.c
177
char key[256];
sbin/devmatch/devmatch.c
184
key[0] = ' ';
sbin/devmatch/devmatch.c
186
strlcpy(key + 1, val, sizeof(key) - 1);
sbin/devmatch/devmatch.c
188
memcpy(key + 1, val, cp - val);
sbin/devmatch/devmatch.c
189
key[cp - val + 1] = '\0';
sbin/devmatch/devmatch.c
191
strlcat(key, "=", sizeof(key));
sbin/devmatch/devmatch.c
192
if (strncmp(key + 1, pnpinfo, strlen(key + 1)) == 0)
sbin/devmatch/devmatch.c
193
rv = strtol(pnpinfo + strlen(key + 1), NULL, 0);
sbin/devmatch/devmatch.c
195
cp = strstr(pnpinfo, key);
sbin/devmatch/devmatch.c
199
rv = strtol(cp + strlen(key), NULL, 0);
sbin/devmatch/devmatch.c
221
char key[256];
sbin/devmatch/devmatch.c
230
key[0] = ' ';
sbin/devmatch/devmatch.c
232
strlcpy(key + 1, val, sizeof(key) - 1);
sbin/devmatch/devmatch.c
234
memcpy(key + 1, val, cp - val);
sbin/devmatch/devmatch.c
235
key[cp - val + 1] = '\0';
sbin/devmatch/devmatch.c
237
strlcat(key, "=", sizeof(key));
sbin/devmatch/devmatch.c
238
if (strncmp(key + 1, pnpinfo, strlen(key + 1)) == 0)
sbin/devmatch/devmatch.c
239
quoted_strcpy(retval, pnpinfo + strlen(key + 1));
sbin/devmatch/devmatch.c
241
cp = strstr(pnpinfo, key);
sbin/devmatch/devmatch.c
245
quoted_strcpy(retval, cp + strlen(key));
sbin/dump/dump.h
147
struct fstab *fstabsearch(const char *key); /* search fs_file and fs_spec */
sbin/dump/optr.c
336
fstabsearch(const char *key)
sbin/dump/optr.c
344
if (strcmp(fs->fs_file, key) == 0 ||
sbin/dump/optr.c
345
strcmp(fs->fs_spec, key) == 0)
sbin/dump/optr.c
348
if (rn != NULL && strcmp(rn, key) == 0)
sbin/dump/optr.c
350
if (key[0] != '/') {
sbin/dump/optr.c
352
strcmp(fs->fs_spec + 1, key) == 0)
sbin/dump/optr.c
355
strcmp(fs->fs_file + 1, key) == 0)
sbin/ifconfig/ifieee80211.c
961
int key = 0;
sbin/ifconfig/ifieee80211.c
966
key = atoi(val)-1;
sbin/ifconfig/ifieee80211.c
974
set80211(ctx, IEEE80211_IOC_WEPKEY, key, len, data);
sbin/init/init.c
1213
DBT key;
sbin/init/init.c
1216
key.data = &sp->se_process;
sbin/init/init.c
1217
key.size = sizeof sp->se_process;
sbin/init/init.c
1221
if ((*session_db->put)(session_db, &key, &data, 0))
sbin/init/init.c
1231
DBT key;
sbin/init/init.c
1233
key.data = &sp->se_process;
sbin/init/init.c
1234
key.size = sizeof sp->se_process;
sbin/init/init.c
1236
if ((*session_db->del)(session_db, &key, 0))
sbin/init/init.c
1246
DBT key;
sbin/init/init.c
1250
key.data = &pid;
sbin/init/init.c
1251
key.size = sizeof pid;
sbin/init/init.c
1252
if ((*session_db->get)(session_db, &key, &data, 0) != 0)
sbin/ipf/common/lexer.c
606
static wordtab_t *yyfindkey(char *key)
sbin/ipf/common/lexer.c
614
if (strcasecmp(key, w->w_word) == 0)
sbin/ipfw/ipfw2.c
1355
const char *key;
sbin/ipfw/ipfw2.c
1367
key = match_value(lookup_keys,
sbin/ipfw/ipfw2.c
1374
(key != NULL ? key : "<invalid>"), t);
sbin/ipfw/ipfw2.c
1383
bprintf(bp, "lookup %s:%s %s", key, maskbuf, t);
sbin/ipfw/ipfw2.c
1389
bprintf(bp, "lookup %s:%s %s", key,
sbin/ipfw/ipfw2.c
1394
bprintf(bp, "lookup %s:%s %s", key,
sbin/ipfw/ipfw2.c
1399
(key != NULL ? key : "<invalid>"),
sbin/ipfw/ipfw2.c
1415
key = match_value(lookup_keys,
sbin/ipfw/ipfw2.c
1418
(key != NULL ? key : "<invalid>"),
sbin/ipfw/ipfw2.c
5801
struct object_kt key;
sbin/ipfw/ipfw2.c
5803
key = *((const struct object_kt *)k);
sbin/ipfw/ipfw2.c
5806
if (key.uidx < ntlv->idx)
sbin/ipfw/ipfw2.c
5808
else if (key.uidx > ntlv->idx)
sbin/ipfw/ipfw2.c
5811
if (key.type < ntlv->head.type)
sbin/ipfw/ipfw2.c
5813
else if (key.type > ntlv->head.type)
sbin/ipfw/ipfw2.c
5831
struct object_kt key;
sbin/ipfw/ipfw2.c
5833
key.uidx = idx;
sbin/ipfw/ipfw2.c
5834
key.type = type;
sbin/ipfw/ipfw2.c
5836
ntlv = bsearch(&key, (ctlv + 1), ctlv->count, ctlv->objsize,
sbin/ipfw/tables.c
1118
table_do_lookup(ipfw_obj_header *oh, char *key, ipfw_xtable_info *xi,
sbin/ipfw/tables.c
1135
tentry_fill_key(oh, tent, key, 0, &type, &vmask, xi);
sbin/ipfw/tables.c
1155
char key[64];
sbin/ipfw/tables.c
1161
strlcpy(key, *av, sizeof(key));
sbin/ipfw/tables.c
1164
error = table_do_lookup(oh, key, &xi, &xtent);
sbin/ipfw/tables.c
1192
uint32_t key, *pkey;
sbin/ipfw/tables.c
1264
key = strtol(arg, &p, 10);
sbin/ipfw/tables.c
1269
*pkey = key;
sbin/ipfw/tables.c
1306
key = strtol(arg, &pp, 10);
sbin/ipfw/tables.c
1312
key = pent->p_proto;
sbin/ipfw/tables.c
1315
if (key > 255)
sbin/ipfw/tables.c
1316
errx(EX_DATAERR, "Bad protocol number: %u",key);
sbin/ipfw/tables.c
1318
tfe->proto = key;
sbin/ipfw/tables.c
1403
guess_key_type(char *key, uint8_t *ptype)
sbin/ipfw/tables.c
1408
if (ishexnumber(*key) != 0 || *key == ':') {
sbin/ipfw/tables.c
1410
if ((p = strchr(key, '/')) != NULL)
sbin/ipfw/tables.c
1413
if ((inet_pton(AF_INET, key, &addr) == 1) ||
sbin/ipfw/tables.c
1414
(inet_pton(AF_INET6, key, &addr) == 1)) {
sbin/ipfw/tables.c
1422
(void)strtol(key, &p, 10);
sbin/ipfw/tables.c
1426
} else if ((p != key) && (*p == '.')) {
sbin/ipfw/tables.c
1439
if (strchr(key, '.') == NULL) {
sbin/ipfw/tables.c
1444
if (lookup_host(key, (struct in_addr *)&addr) != 0)
sbin/ipfw/tables.c
1452
tentry_fill_key(ipfw_obj_header *oh, ipfw_obj_tentry *tent, char *key,
sbin/ipfw/tables.c
1480
if (guess_key_type(key, &type) != 0) {
sbin/ipfw/tables.c
1483
"key '%s' type", key);
sbin/ipfw/tables.c
1498
if (guess_key_type(key, &type) != 0) {
sbin/ipfw/tables.c
1501
"key '%s' type", oh->ntlv.name, key);
sbin/ipfw/tables.c
1507
tentry_fill_key_type(key, tent, type, tflags);
sbin/ipfw/tables.c
1925
printf("%u %s\n", tent->k.key, pval);
sbin/ipfw/tables.c
64
char *key, int add, uint8_t *ptype, uint32_t *pvmask, ipfw_xtable_info *xi);
sbin/nvmecontrol/logpage.c
153
kv_lookup(const struct kv_name *kv, size_t kv_count, uint32_t key)
sbin/nvmecontrol/logpage.c
159
if (kv->key == key)
sbin/nvmecontrol/logpage.c
161
snprintf(bad, sizeof(bad), "Attribute %#x", key);
sbin/nvmecontrol/modules/wdc/wdc.c
425
uint16_t key;
sbin/nvmecontrol/modules/wdc/wdc.c
773
if (sp->key == subtype) {
sbin/nvmecontrol/nvmecontrol.h
59
uint32_t key;
sbin/nvmecontrol/nvmecontrol.h
74
const char *kv_lookup(const struct kv_name *kv, size_t kv_count, uint32_t key);
sbin/pfctl/parse.y
248
struct pf_poolhashkey *key;
sbin/pfctl/parse.y
5129
pool_opts.key = $2;
sbin/pfctl/parse.y
6682
if (rs->pool_opts.key != NULL)
sbin/pfctl/parse.y
6683
memcpy(&(rpool->key), rs->pool_opts.key,
sbin/pfctl/pf_print_state.c
229
struct pfctl_state_key *key, *sk, *nk;
sbin/pfctl/pf_print_state.c
233
int afto = (s->key[PF_SK_STACK].af != s->key[PF_SK_WIRE].af);
sbin/pfctl/pf_print_state.c
239
bcopy(&s->key, aligned_key, sizeof(aligned_key));
sbin/pfctl/pf_print_state.c
240
key = aligned_key;
sbin/pfctl/pf_print_state.c
242
key = s->key;
sbin/pfctl/pf_print_state.c
245
proto = s->key[PF_SK_WIRE].proto;
sbin/pfctl/pf_print_state.c
250
sk = &key[PF_SK_STACK];
sbin/pfctl/pf_print_state.c
251
nk = &key[PF_SK_WIRE];
sbin/pfctl/pf_print_state.c
257
sk = &key[PF_SK_WIRE];
sbin/pfctl/pf_print_state.c
258
nk = &key[PF_SK_STACK];
sbin/pfctl/pf_ruleset.c
146
struct pfctl_anchor *key, *found;
sbin/pfctl/pf_ruleset.c
148
key = (struct pfctl_anchor *)rs_malloc(sizeof(*key));
sbin/pfctl/pf_ruleset.c
149
if (key == NULL)
sbin/pfctl/pf_ruleset.c
151
strlcpy(key->path, path, sizeof(key->path));
sbin/pfctl/pf_ruleset.c
152
found = RB_FIND(pfctl_anchor_global, &V_pf_anchors, key);
sbin/pfctl/pf_ruleset.c
153
rs_free(key);
sbin/pfctl/pfctl.c
4224
struct pfctl_statelim key;
sbin/pfctl/pfctl.c
4226
key.ioc.id = id;
sbin/pfctl/pfctl.c
4228
return (RB_FIND(pfctl_statelim_nms, &pf->statelim_nms, &key));
sbin/pfctl/pfctl.c
4234
struct pfctl_statelim key;
sbin/pfctl/pfctl.c
4236
if (strlcpy(key.ioc.name, name, sizeof(key.ioc.name)) >=
sbin/pfctl/pfctl.c
4237
sizeof(key.ioc.name))
sbin/pfctl/pfctl.c
4240
return (RB_FIND(pfctl_statelim_nms, &pf->statelim_nms, &key));
sbin/pfctl/pfctl.c
4293
struct pfctl_sourcelim key;
sbin/pfctl/pfctl.c
4295
key.ioc.id = id;
sbin/pfctl/pfctl.c
4297
return (RB_FIND(pfctl_sourcelim_nms, &pf->sourcelim_nms, &key));
sbin/pfctl/pfctl.c
4303
struct pfctl_sourcelim key;
sbin/pfctl/pfctl.c
4305
if (strlcpy(key.ioc.name, name, sizeof(key.ioc.name)) >=
sbin/pfctl/pfctl.c
4306
sizeof(key.ioc.name))
sbin/pfctl/pfctl.c
4309
return (RB_FIND(pfctl_sourcelim_nms, &pf->sourcelim_nms, &key));
sbin/pfctl/pfctl_altq.c
139
item.key = altq->pa.ifname;
sbin/pfctl/pfctl_altq.c
146
if ((item.key = malloc(key_size)) == NULL)
sbin/pfctl/pfctl_altq.c
148
snprintf(item.key, key_size, "%s:%s", a->ifname, a->qname);
sbin/pfctl/pfctl_altq.c
153
item.key = altq->pa.qname;
sbin/pfctl/pfctl_altq.c
166
item.key = ifname;
sbin/pfctl/pfctl_altq.c
178
char key[IFNAMSIZ + PF_QNAME_SIZE];
sbin/pfctl/pfctl_altq.c
180
item.key = key;
sbin/pfctl/pfctl_altq.c
181
snprintf(item.key, sizeof(key), "%s:%s", ifname, qname);
sbin/pfctl/pfctl_altq.c
199
item.key = qname;
sbin/pfctl/pfctl_parser.c
1533
item.key = ifg->ifgrq_group;
sbin/pfctl/pfctl_parser.c
1549
item.key = strdup(ifg->ifgrq_group);
sbin/pfctl/pfctl_parser.c
1682
item.key = name;
sbin/pfctl/pfctl_parser.c
497
pool->key.key32[0], pool->key.key32[1],
sbin/pfctl/pfctl_parser.c
498
pool->key.key32[2], pool->key.key32[3]);
sbin/rcorder/hash.c
182
char *key) /* A hash key. */
sbin/rcorder/hash.c
188
for (h = 0, p = key; *p;)
sbin/rcorder/hash.c
190
p = key;
sbin/rcorder/hash.c
219
char *key, /* A hash key. */
sbin/rcorder/hash.c
233
for (h = 0, p = key; *p;)
sbin/rcorder/hash.c
235
keylen = p - key;
sbin/rcorder/hash.c
236
p = key;
sbin/reboot/reboot.c
222
add_env(char **env, const char *key, const char *value)
sbin/reboot/reboot.c
227
asprintf(env, "%s%s=\"%s\"\n", oldenv != NULL ? oldenv : "", key, value);
sbin/restore/restore.c
204
int key = 0;
sbin/restore/restore.c
220
key |= ONTAPE;
sbin/restore/restore.c
226
key |= NAMEFND;
sbin/restore/restore.c
239
key |= INOFND;
sbin/restore/restore.c
260
if (((key & (INOFND|NAMEFND)) == (INOFND|NAMEFND)) && ip != np) {
sbin/restore/restore.c
270
key &= ~NAMEFND;
sbin/restore/restore.c
272
if ((key & ONTAPE) &&
sbin/restore/restore.c
273
(((key & INOFND) && ip->e_type != type) ||
sbin/restore/restore.c
274
((key & NAMEFND) && np->e_type != type)))
sbin/restore/restore.c
275
key |= MODECHG;
sbin/restore/restore.c
283
switch (key) {
sbin/restore/restore.c
293
dprintf(stdout, "[%s] %s: %s\n", keyval(key), name,
sbin/restore/restore.c
329
dprintf(stdout, "[%s] %s: %s\n", keyval(key), name,
sbin/restore/restore.c
353
dprintf(stdout, "[%s] %s: %s\n", keyval(key), name,
sbin/restore/restore.c
366
dprintf(stdout, "[%s] %s: %s|LINK\n", keyval(key), name,
sbin/restore/restore.c
383
dprintf(stdout, "[%s] %s: %s|LINK\n", keyval(key), name,
sbin/restore/restore.c
390
dprintf(stdout, "[%s] %s: %s\n", keyval(key), name,
sbin/restore/restore.c
432
dprintf(stdout, "[%s] %s: %s\n", keyval(key), name,
sbin/restore/restore.c
441
dprintf(stdout, "[%s] %s: Extraneous name\n", keyval(key),
sbin/restore/restore.c
465
fprintf(stderr, "[%s] %s: inconsistent state\n", keyval(key),
sbin/restore/restore.c
475
panic("[%s] %s: impossible state\n", keyval(key), name);
sbin/restore/restore.c
485
keyval(int key)
sbin/restore/restore.c
491
if (key & ONTAPE)
sbin/restore/restore.c
493
if (key & INOFND)
sbin/restore/restore.c
495
if (key & NAMEFND)
sbin/restore/restore.c
497
if (key & MODECHG)
sbin/route/route.c
1001
set_metric(*++argv, key);
sbin/route/route.c
796
set_metric(char *value, int key)
sbin/route/route.c
802
switch (key) {
sbin/route/route.c
846
int key, error, flags, nrflags, fibnum;
sbin/route/route.c
869
switch (key = keyword(1 + *argv)) {
sbin/routed/defs.h
274
u_char key[RIP_AUTH_PW_LEN];
sbin/routed/input.c
1014
MD5Update(&md5_ctx, ap->key, RIP_AUTH_MD5_KEY_LEN);
sbin/routed/input.c
962
if (!memcmp(NA->au.au_pw, ap->key, RIP_AUTH_PW_LEN))
sbin/routed/output.c
255
memcpy(na->au.au_pw, ap->key, sizeof(na->au.au_pw));
sbin/routed/output.c
287
MD5Update(&md5_ctx, ap->key, RIP_AUTH_MD5_KEY_LEN);
sbin/routed/parms.c
488
(char *)k.key, sizeof(k.key)))
sbin/zfsbootcfg/zfsbootcfg.c
101
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
109
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
117
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
125
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
133
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
150
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
162
delete_pair(const char *name, const char *nvlist, const char *key)
sbin/zfsbootcfg/zfsbootcfg.c
169
rv = lzbe_remove_pair(nv, key);
sbin/zfsbootcfg/zfsbootcfg.c
189
const char *key, *value, *type, *nvlist;
sbin/zfsbootcfg/zfsbootcfg.c
195
key = NULL;
sbin/zfsbootcfg/zfsbootcfg.c
203
key = optarg;
sbin/zfsbootcfg/zfsbootcfg.c
206
key = optarg;
sbin/zfsbootcfg/zfsbootcfg.c
256
if (key != NULL || value != NULL) {
sbin/zfsbootcfg/zfsbootcfg.c
261
rv = delete_pair(name, nvlist, key);
sbin/zfsbootcfg/zfsbootcfg.c
262
else if (key == NULL || strcmp(key, "command") == 0)
sbin/zfsbootcfg/zfsbootcfg.c
265
rv = add_pair(name, nvlist, key, type, value);
sbin/zfsbootcfg/zfsbootcfg.c
44
add_pair(const char *name, const char *nvlist, const char *key,
sbin/zfsbootcfg/zfsbootcfg.c
61
rv = lzbe_add_pair(nv, key, type, data, size);
sbin/zfsbootcfg/zfsbootcfg.c
69
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
77
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
85
rv = lzbe_add_pair(nv, key, type, &v, size);
sbin/zfsbootcfg/zfsbootcfg.c
93
rv = lzbe_add_pair(nv, key, type, &v, size);
secure/lib/libcrypt/blowfish.c
392
Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes)
secure/lib/libcrypt/blowfish.c
404
temp = Blowfish_stream2word(key, keybytes, &j);
secure/lib/libcrypt/blowfish.c
430
const u_int8_t *key, u_int16_t keybytes)
secure/lib/libcrypt/blowfish.c
442
temp = Blowfish_stream2word(key, keybytes, &j);
secure/lib/libcrypt/crypt-blowfish.c
135
crypt_blowfish(const char *key, const char *salt, char *buffer)
secure/lib/libcrypt/crypt-blowfish.c
204
key_len = (u_int8_t)(strlen(key) + (minr >= 'a' ? 1 : 0));
secure/lib/libcrypt/crypt-blowfish.c
210
key_len = strlen(key);
secure/lib/libcrypt/crypt-blowfish.c
219
(const u_int8_t *) key, key_len);
secure/lib/libcrypt/crypt-blowfish.c
221
Blowfish_expand0state(&state, (const u_int8_t *) key, key_len);
secure/lib/libcrypt/crypt-des.c
366
des_setkey(const char *key)
secure/lib/libcrypt/crypt-des.c
374
rawkey0 = ntohl(*(const u_int32_t *) key);
secure/lib/libcrypt/crypt-des.c
375
rawkey1 = ntohl(*(const u_int32_t *) (key + 4));
secure/lib/libcrypt/crypt-des.c
589
crypt_des(const char *key, const char *setting, char *buffer)
secure/lib/libcrypt/crypt-des.c
604
*q++ = *key << 1;
secure/lib/libcrypt/crypt-des.c
605
if (*key != '\0')
secure/lib/libcrypt/crypt-des.c
606
key++;
secure/lib/libcrypt/crypt-des.c
623
while (*key) {
secure/lib/libcrypt/crypt-des.c
633
while (q - (u_char *)keybuf - 8 && *key)
secure/lib/libcrypt/crypt-des.c
634
*q++ ^= *key++ << 1;
stand/common/bootstrap.h
320
#define COMMAND_SET(tag, key, desc, func) \
stand/common/bootstrap.h
322
static struct bootblk_command _cmd_ ## tag = { key, desc, func }; \
stand/common/module.c
1267
char key[256];
stand/common/module.c
1274
key[0] = ' ';
stand/common/module.c
1276
strlcpy(key + 1, val, sizeof(key) - 1);
stand/common/module.c
1278
memcpy(key + 1, val, cp - val);
stand/common/module.c
1279
key[cp - val + 1] = '\0';
stand/common/module.c
1281
strlcat(key, "=", sizeof(key));
stand/common/module.c
1282
if (strncmp(key + 1, pnpinfo, strlen(key + 1)) == 0)
stand/common/module.c
1283
rv = strtol(pnpinfo + strlen(key + 1), NULL, 0);
stand/common/module.c
1285
cp = strstr(pnpinfo, key);
stand/common/module.c
1289
rv = strtol(cp + strlen(key), NULL, 0);
stand/common/module.c
1311
char key[256];
stand/common/module.c
1320
key[0] = ' ';
stand/common/module.c
1322
strlcpy(key + 1, val, sizeof(key) - 1);
stand/common/module.c
1324
memcpy(key + 1, val, cp - val);
stand/common/module.c
1325
key[cp - val + 1] = '\0';
stand/common/module.c
1327
strlcat(key, "=", sizeof(key));
stand/common/module.c
1328
if (strncmp(key + 1, pnpinfo, strlen(key + 1)) == 0)
stand/common/module.c
1329
quoted_strcpy(retval, pnpinfo + strlen(key + 1));
stand/common/module.c
1331
cp = strstr(pnpinfo, key);
stand/common/module.c
1335
quoted_strcpy(retval, cp + strlen(key));
stand/efi/include/efilib.h
77
efi_exit_boot_services(UINTN key)
stand/efi/include/efilib.h
81
status = BS->ExitBootServices(IH, key);
stand/efi/libefi/efi_console.c
1244
keybuf_inschar(EFI_INPUT_KEY *key)
stand/efi/libefi/efi_console.c
1247
switch (key->ScanCode) {
stand/efi/libefi/efi_console.c
1275
keybuf[0] = key->UnicodeChar;
stand/efi/libefi/efi_console.c
1284
EFI_INPUT_KEY key;
stand/efi/libefi/efi_console.c
1286
status = conin->ReadKeyStroke(conin, &key);
stand/efi/libefi/efi_console.c
1288
keybuf_inschar(&key);
stand/efi/loader/copy.c
104
status = BS->GetMemoryMap(&sz, map, &key, &dsz, &dver);
stand/efi/loader/copy.c
95
UINTN key, dsz;
stand/efi/loader/main.c
1617
UINTN key, dsz;
stand/efi/loader/main.c
1624
status = BS->GetMemoryMap(&sz, 0, &key, &dsz, &dver);
stand/efi/loader/main.c
1630
status = BS->GetMemoryMap(&sz, map, &key, &dsz, &dver);
stand/efi/loader/main.c
764
setenv_int(const char *key, int val)
stand/efi/loader/main.c
769
setenv(key, buf, 1);
stand/ficl/loader.c
849
dictAppendWord(dp, "key", key, FW_DEFAULT);
stand/i386/common/edd.h
66
uint16_t key;
stand/liblua/lutils.c
217
const char *key, *val;
stand/liblua/lutils.c
219
key = luaL_checkstring(L, 1);
stand/liblua/lutils.c
221
lua_pushinteger(L, setenv(key, val, 1));
stand/libsa/bootparam.c
232
bp_getfile(int sockfd, char *key, struct in_addr *serv_addr, char *pathname)
stand/libsa/bootparam.c
263
if (xdr_string_encode(&send_tail, key, strlen(key))) {
stand/libsa/bootparam.h
4
int bp_getfile(int sock, char *key, struct in_addr *addrp, char *path);
stand/libsa/geli/geliboot.c
222
u_char key[G_ELI_USERKEYLEN], mkey[G_ELI_DATAIVKEYLEN], *mkp;
stand/libsa/geli/geliboot.c
261
g_eli_crypto_hmac_final(&ctx, key, 0);
stand/libsa/geli/geliboot.c
263
error = g_eli_mkey_decrypt_any(&gdev->md, key, mkey, &keynum);
stand/libsa/geli/geliboot.c
266
explicit_bzero(key, sizeof(key));
stand/libsa/geli/geliboot.c
271
explicit_bzero(key, sizeof(key));
stand/libsa/geli/geliboot.c
276
geli_add_key(key);
stand/libsa/geli/geliboot.c
277
explicit_bzero(&key, sizeof(key));
stand/libsa/geli/geliboot.c
84
geli_add_key(geli_ukey key)
stand/libsa/geli/geliboot.c
92
memcpy(saved_keys[nsaved_keys], key, G_ELI_USERKEYLEN);
stand/libsa/geli/geliboot.h
94
void geli_add_key(geli_ukey key);
stand/libsa/geli/geliboot_crypto.c
105
const u_char *key, size_t keysize)
stand/libsa/geli/geliboot_crypto.c
110
return (geliboot_crypt(algo, enc, data, datasize, key, keysize, iv));
stand/libsa/geli/geliboot_crypto.c
115
const u_char *key, size_t keysize)
stand/libsa/geli/geliboot_crypto.c
122
return (g_eli_crypto_cipher(algo, GELI_ENCRYPT, data, datasize, key,
stand/libsa/geli/geliboot_crypto.c
128
const u_char *key, size_t keysize)
stand/libsa/geli/geliboot_crypto.c
135
return (g_eli_crypto_cipher(algo, GELI_DECRYPT, data, datasize, key,
stand/libsa/geli/geliboot_crypto.c
37
const u_char *key, size_t keysize, u_char *iv)
stand/libsa/geli/geliboot_crypto.c
48
(const char *)key);
stand/libsa/geli/geliboot_crypto.c
81
enc_xform_aes_xts.setkey(ctxp, key, xts_len / 8);
stand/libsa/geli/geliboot_internal.h
67
const u_char *key, size_t keysize, u_char *iv);
stand/libsa/zfs/zfs.c
823
zfs_get_bootonce(void *vdev, const char *key, char *buf, size_t size)
stand/libsa/zfs/zfs.c
830
return (zfs_get_bootonce_spa(spa, key, buf, size));
stand/libsa/zfs/zfsimpl.c
366
const uint64_t *key = v_key;
stand/libsa/zfs/zfsimpl.c
371
if (*key < src_offset) {
stand/libsa/zfs/zfsimpl.c
373
} else if (*key < src_offset + DVA_GET_ASIZE(&array_elem->vimep_dst)) {
stand/libsa/zfs/zfsimpl.c
4035
zfs_get_bootonce_spa(spa_t *spa, const char *key, char *buf, size_t size)
stand/libsa/zfs/zfsimpl.c
4044
if ((rv = nvlist_find(benv, key, DATA_TYPE_STRING, NULL,
stand/libsa/zfs/zfsimpl.c
4053
(void)nvlist_remove(benv, key, DATA_TYPE_STRING);
sys/amd64/linux/linux_proto.h
158
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/amd64/linux/linux_proto.h
319
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/amd64/linux/linux_proto.h
333
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/amd64/linux/linux_systrace_args.c
273
iarg[a++] = p->key; /* l_key_t */
sys/amd64/linux/linux_systrace_args.c
573
iarg[a++] = p->key; /* l_key_t */
sys/amd64/linux/linux_systrace_args.c
608
iarg[a++] = p->key; /* l_key_t */
sys/amd64/linux32/linux32_machdep.c
131
a.key = args->arg1;
sys/amd64/linux32/linux32_machdep.c
192
a.key = args->arg1;
sys/amd64/linux32/linux32_machdep.c
229
a.key = args->arg1;
sys/amd64/linux32/linux32_proto.h
1488
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/amd64/linux32/linux32_proto.h
1499
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/amd64/linux32/linux32_proto.h
1517
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/amd64/linux32/linux32_systrace_args.c
2896
iarg[a++] = p->key; /* l_key_t */
sys/amd64/linux32/linux32_systrace_args.c
2915
iarg[a++] = p->key; /* l_key_t */
sys/amd64/linux32/linux32_systrace_args.c
2949
iarg[a++] = p->key; /* l_key_t */
sys/arm/nvidia/drm2/tegra_bo.c
297
*offset = DRM_GEM_MAPPING_OFF(gem_obj->map_list.key) |
sys/arm64/linux/linux_proto.h
715
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/arm64/linux/linux_proto.h
737
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/arm64/linux/linux_proto.h
754
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/arm64/linux/linux_systrace_args.c
1472
iarg[a++] = p->key; /* l_key_t */
sys/arm64/linux/linux_systrace_args.c
1510
iarg[a++] = p->key; /* l_key_t */
sys/arm64/linux/linux_systrace_args.c
1548
iarg[a++] = p->key; /* l_key_t */
sys/cam/cam.c
308
camstatusentrycomp(const void *key, const void *member)
sys/cam/cam.c
313
status = *(const cam_status *)key;
sys/cam/cam.c
65
static int camstatusentrycomp(const void *key, const void *member);
sys/cam/ctl/ctl.c
3910
ctl_set_prkey(struct ctl_lun *lun, uint32_t residx, uint64_t key)
sys/cam/ctl/ctl.c
3916
t[residx % CTL_MAX_INIT_PER_PORT] = key;
sys/cam/ctl/ctl.c
501
static void ctl_set_prkey(struct ctl_lun *lun, uint32_t residx, uint64_t key);
sys/cam/ctl/ctl.c
7666
uint64_t key;
sys/cam/ctl/ctl.c
7738
if ((key = ctl_get_prkey(lun, i)) == 0)
sys/cam/ctl/ctl.c
7752
scsi_u64to8b(key, res_keys->keys[key_count].key);
sys/cam/ctl/ctl.c
7856
if ((key = ctl_get_prkey(lun, i)) == 0)
sys/cam/ctl/ctl.c
7859
scsi_u64to8b(key, res_desc->res_key.key);
sys/cam/ctl/ctl.c
8232
uint64_t res_key, sa_res_key, key;
sys/cam/ctl/ctl.c
8304
res_key = scsi_8btou64(param->res_key.key);
sys/cam/ctl/ctl.c
8313
if ((key = ctl_get_prkey(lun, residx)) != 0) {
sys/cam/ctl/ctl.c
8314
if (res_key != key) {
sys/cam/ctl/ctl_util.c
599
uint64_t key, uint64_t sa_key,
sys/cam/ctl/ctl_util.c
640
scsi_u64to8b(key, params->res_key.key);
sys/cam/ctl/ctl_util.h
92
uint64_t key, uint64_t sa_key,
sys/cam/scsi/scsi_all.c
107
static int ascentrycomp(const void *key, const void *member);
sys/cam/scsi/scsi_all.c
108
static int senseentrycomp(const void *key, const void *member);
sys/cam/scsi/scsi_all.c
3317
ascentrycomp(const void *key, const void *member)
sys/cam/scsi/scsi_all.c
3323
asc = ((const struct asc_key *)key)->asc;
sys/cam/scsi/scsi_all.c
3324
ascq = ((const struct asc_key *)key)->ascq;
sys/cam/scsi/scsi_all.c
3345
senseentrycomp(const void *key, const void *member)
sys/cam/scsi/scsi_all.c
3350
sense_key = *((const int *)key);
sys/cam/scsi/scsi_all.h
311
uint8_t key[8];
sys/compat/freebsd32/freebsd32_ipc.h
138
uint32_t key;
sys/compat/freebsd32/freebsd32_ipc.h
39
uint32_t key;
sys/compat/freebsd32/freebsd32_systrace_args.c
1028
iarg[a++] = p->key; /* key_t */
sys/compat/freebsd32/freebsd32_systrace_args.c
1046
iarg[a++] = p->key; /* key_t */
sys/compat/freebsd32/freebsd32_systrace_args.c
1091
iarg[a++] = p->key; /* key_t */
sys/compat/linprocfs/linprocfs.c
2114
(int)msqids[id].u.msg_perm.key,
sys/compat/linprocfs/linprocfs.c
2157
(int)semids[id].u.sem_perm.key,
sys/compat/linprocfs/linprocfs.c
2197
(int)shmids[id].u.shm_perm.key,
sys/compat/linux/linux_futex.c
570
struct umtx_key key;
sys/compat/linux/linux_futex.c
585
error = futex_key_get(args->uaddr, TYPE_PI_FUTEX, GET_SHARED(args), &key);
sys/compat/linux/linux_futex.c
588
umtxq_lock(&key);
sys/compat/linux/linux_futex.c
589
umtxq_busy(&key);
sys/compat/linux/linux_futex.c
590
error = umtx_pi_drop(td, &key, rb, &count);
sys/compat/linux/linux_futex.c
592
umtxq_unbusy(&key);
sys/compat/linux/linux_futex.c
593
umtxq_unlock(&key);
sys/compat/linux/linux_futex.c
594
umtx_key_release(&key);
sys/compat/linux/linux_futex.c
597
umtxq_unlock(&key);
sys/compat/linux/linux_futex.c
616
umtxq_unbusy_unlocked(&key);
sys/compat/linux/linux_futex.c
617
umtx_key_release(&key);
sys/compat/linux/linux_futex.c
628
struct umtx_key key, key2;
sys/compat/linux/linux_futex.c
635
error = futex_key_get(args->uaddr, TYPE_FUTEX, GET_SHARED(args), &key);
sys/compat/linux/linux_futex.c
640
umtx_key_release(&key);
sys/compat/linux/linux_futex.c
643
umtxq_busy_unlocked(&key);
sys/compat/linux/linux_futex.c
645
umtxq_lock(&key);
sys/compat/linux/linux_futex.c
646
umtxq_unbusy(&key);
sys/compat/linux/linux_futex.c
649
ret = umtxq_signal_mask(&key, args->val, args->val3);
sys/compat/linux/linux_futex.c
657
ret += umtxq_signal_mask(&key, nrwake, args->val3);
sys/compat/linux/linux_futex.c
662
umtxq_unlock(&key);
sys/compat/linux/linux_futex.c
664
umtx_key_release(&key);
sys/compat/linux/linux_futex.c
672
struct umtx_key key, key2;
sys/compat/linux/linux_futex.c
692
error = futex_key_get(args->uaddr, TYPE_FUTEX, GET_SHARED(args), &key);
sys/compat/linux/linux_futex.c
697
umtx_key_release(&key);
sys/compat/linux/linux_futex.c
700
umtxq_busy_unlocked(&key);
sys/compat/linux/linux_futex.c
706
umtxq_lock(&key);
sys/compat/linux/linux_futex.c
707
umtxq_unbusy(&key);
sys/compat/linux/linux_futex.c
710
td->td_retval[0] = umtxq_requeue(&key, nrwake, &key2, nrrequeue);
sys/compat/linux/linux_futex.c
713
umtxq_unlock(&key);
sys/compat/linux/linux_futex.c
715
umtx_key_release(&key);
sys/compat/linux/linux_futex.c
722
struct umtx_key key;
sys/compat/linux/linux_futex.c
728
error = futex_key_get(args->uaddr, TYPE_FUTEX, GET_SHARED(args), &key);
sys/compat/linux/linux_futex.c
731
umtxq_lock(&key);
sys/compat/linux/linux_futex.c
732
td->td_retval[0] = umtxq_signal_mask(&key, args->val, args->val3);
sys/compat/linux/linux_futex.c
733
umtxq_unlock(&key);
sys/compat/linux/linux_futex.c
734
umtx_key_release(&key);
sys/compat/linux/linux_futex.c
93
futex_key_get(const void *uaddr, int type, int share, struct umtx_key *key)
sys/compat/linux/linux_futex.c
99
return (umtx_key_get(uaddr, type, share, key));
sys/compat/linux/linux_ioctl.c
1251
l_dvd_key key;
sys/compat/linux/linux_ioctl.c
1428
memcpy(bp->keychal, lp->hsk.key, 5);
sys/compat/linux/linux_ioctl.c
1472
memcpy(lp->lsk.key, bp->keychal, sizeof(lp->lsk.key));
sys/compat/linux/linux_ipc.c
133
bpp->key = lpp->key;
sys/compat/linux/linux_ipc.c
146
lpp->key = bpp->key;
sys/compat/linux/linux_ipc.c
278
out->key = in->key;
sys/compat/linux/linux_ipc.c
525
.key = args->key,
sys/compat/linux/linux_ipc.c
56
l_key_t key;
sys/compat/linux/linux_ipc.c
686
.key = args->key,
sys/compat/linux/linux_ipc.c
798
.key = args->key,
sys/compat/linux/linux_ipc64.h
44
l_key_t key;
sys/compat/linux/linux_xattr.c
134
char *data, *prefix, *key;
sys/compat/linux/linux_xattr.c
174
key = data;
sys/compat/linux/linux_xattr.c
176
keylen = (unsigned char)key[0];
sys/compat/linux/linux_xattr.c
192
++key;
sys/compat/linux/linux_xattr.c
194
sprintf(attrname, "%s.%.*s", prefix, keylen, key);
sys/compat/linux/linux_xattr.c
200
key += keylen;
sys/compat/linuxkpi/common/include/crypto/hash.h
69
crypto_shash_setkey(struct crypto_shash *csh, const uint8_t *key, size_t keylen)
sys/compat/linuxkpi/common/include/linux/hashtable.h
170
#define hash_for_each_possible_rcu(name, obj, member, key) \
sys/compat/linuxkpi/common/include/linux/hashtable.h
171
for ((obj) = __hash_first(&(name)[hash_min(key, HASH_BITS(name))], \
sys/compat/linuxkpi/common/include/linux/hashtable.h
176
#define hash_for_each_possible_safe(name, obj, tmp, member, key) \
sys/compat/linuxkpi/common/include/linux/hashtable.h
177
for ((obj) = __hash_first(&(name)[hash_min(key, HASH_BITS(name))], \
sys/compat/linuxkpi/common/include/linux/hashtable.h
92
#define hash_add_rcu(ht, node, key) do { \
sys/compat/linuxkpi/common/include/linux/hashtable.h
93
struct lkpi_hash_head *__head = &(ht)[hash_min(key, HASH_BITS(ht))]; \
sys/compat/linuxkpi/common/include/linux/jhash.h
46
static inline u32 jhash(const void *key, u32 length, u32 initval)
sys/compat/linuxkpi/common/include/linux/jhash.h
49
const u8 *k = key;
sys/compat/linuxkpi/common/include/linux/jump_label.h
34
#define DEFINE_STATIC_KEY_FALSE(key) bool key = false
sys/compat/linuxkpi/common/include/linux/lockdep.h
44
#define lockdep_set_class(lock, key)
sys/compat/linuxkpi/common/include/linux/lockdep.h
46
#define lockdep_set_class_and_name(lock, key, name)
sys/compat/linuxkpi/common/include/linux/lockdep.h
50
#define lockdep_register_key(key) do { } while(0)
sys/compat/linuxkpi/common/include/linux/lockdep.h
51
#define lockdep_unregister_key(key) do { } while(0)
sys/compat/linuxkpi/common/include/linux/rhashtable.h
61
rhashtable_lookup_fast(struct rhashtable *rht, const void *key,
sys/compat/linuxkpi/common/include/linux/seqlock.h
61
struct lock_class_key *key __unused)
sys/compat/linuxkpi/common/include/linux/siphash.h
100
u32 hsiphash_1u32(const u32 a, const hsiphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
101
u32 hsiphash_2u32(const u32 a, const u32 b, const hsiphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
103
const hsiphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
105
const hsiphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
108
const hsiphash_key_t *key)
sys/compat/linuxkpi/common/include/linux/siphash.h
111
return hsiphash_1u32(le32_to_cpu(data[0]), key);
sys/compat/linuxkpi/common/include/linux/siphash.h
114
key);
sys/compat/linuxkpi/common/include/linux/siphash.h
117
le32_to_cpu(data[2]), key);
sys/compat/linuxkpi/common/include/linux/siphash.h
121
key);
sys/compat/linuxkpi/common/include/linux/siphash.h
122
return __hsiphash_aligned(data, len, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
132
const hsiphash_key_t *key)
sys/compat/linuxkpi/common/include/linux/siphash.h
136
return __hsiphash_unaligned(data, len, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
137
return ___hsiphash_aligned(data, len, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
20
u64 key[2];
sys/compat/linuxkpi/common/include/linux/siphash.h
25
static inline bool siphash_key_is_zero(const siphash_key_t *key)
sys/compat/linuxkpi/common/include/linux/siphash.h
27
return !(key->key[0] | key->key[1]);
sys/compat/linuxkpi/common/include/linux/siphash.h
30
u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
31
u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
33
u64 siphash_1u64(const u64 a, const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
34
u64 siphash_2u64(const u64 a, const u64 b, const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
36
const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
38
const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
39
u64 siphash_1u32(const u32 a, const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
41
const siphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
44
const siphash_key_t *key)
sys/compat/linuxkpi/common/include/linux/siphash.h
46
return siphash_1u64((u64)b << 32 | a, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
49
const u32 d, const siphash_key_t *key)
sys/compat/linuxkpi/common/include/linux/siphash.h
51
return siphash_2u64((u64)b << 32 | a, (u64)d << 32 | c, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
56
const siphash_key_t *key)
sys/compat/linuxkpi/common/include/linux/siphash.h
59
return siphash_1u32(le32_to_cpup((const __le32 *)data), key);
sys/compat/linuxkpi/common/include/linux/siphash.h
61
return siphash_1u64(le64_to_cpu(data[0]), key);
sys/compat/linuxkpi/common/include/linux/siphash.h
64
key);
sys/compat/linuxkpi/common/include/linux/siphash.h
67
le64_to_cpu(data[2]), key);
sys/compat/linuxkpi/common/include/linux/siphash.h
71
key);
sys/compat/linuxkpi/common/include/linux/siphash.h
72
return __siphash_aligned(data, len, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
82
const siphash_key_t *key)
sys/compat/linuxkpi/common/include/linux/siphash.h
86
return __siphash_unaligned(data, len, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
87
return ___siphash_aligned(data, len, key);
sys/compat/linuxkpi/common/include/linux/siphash.h
92
unsigned long key[2];
sys/compat/linuxkpi/common/include/linux/siphash.h
96
const hsiphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/siphash.h
98
const hsiphash_key_t *key);
sys/compat/linuxkpi/common/include/linux/string.h
48
match_string(const char *const *table, int n, const char *key)
sys/compat/linuxkpi/common/include/linux/string.h
53
if (strcmp(table[i], key) == 0)
sys/compat/linuxkpi/common/include/net/cfg80211.h
537
const void *key;
sys/compat/linuxkpi/common/include/net/cfg80211.h
645
const uint8_t *key;
sys/compat/linuxkpi/common/include/net/mac80211.h
2418
ieee80211_key_mic_failure(struct ieee80211_key_conf *key)
sys/compat/linuxkpi/common/include/net/mac80211.h
2424
ieee80211_key_replay(struct ieee80211_key_conf *key)
sys/compat/linuxkpi/common/include/net/mac80211.h
2430
ieee80211_remove_key(struct ieee80211_key_conf *key)
sys/compat/linuxkpi/common/include/net/mac80211.h
2437
uint16_t keyidx, uint8_t *key, size_t keylen, int link_id)
sys/compat/linuxkpi/common/include/net/mac80211.h
2470
ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *key,
sys/compat/linuxkpi/common/include/net/mac80211.h
2478
struct sk_buff *skb_frag, u8 *key)
sys/compat/linuxkpi/common/include/net/mac80211.h
2540
ieee80211_set_key_rx_seq(struct ieee80211_key_conf *key, int tid,
sys/compat/linuxkpi/common/include/net/mac80211.h
549
uint8_t key[0]; /* Must stay last! */
sys/compat/linuxkpi/common/src/linux_80211.c
1642
memcpy(kc->key, k->wk_key, k->wk_keylen);
sys/compat/linuxkpi/common/src/linux_80211.c
1654
memcpy(kc->key + NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY, k->wk_txmic, k->wk_cipher->ic_miclen);
sys/compat/linuxkpi/common/src/linux_80211.c
1655
memcpy(kc->key + NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY, k->wk_rxmic, k->wk_cipher->ic_miclen);
sys/compat/linuxkpi/common/src/linux_compat.c
1001
linux_poll_wakeup_callback(wait_queue_t *wq, unsigned int wq_state, int flags, void *key)
sys/compat/linuxkpi/common/src/linux_rcu.c
446
srcu_read_unlock(struct srcu_struct *srcu, int key __unused)
sys/compat/linuxkpi/common/src/linux_schedule.c
185
void *key __unused)
sys/compat/linuxkpi/common/src/linux_schedule.c
198
void *key __unused)
sys/compat/linuxkpi/common/src/linux_schedule.c
248
int flags __unused, void *key __unused)
sys/compat/linuxkpi/common/src/linux_siphash.c
120
u64 siphash_1u64(const u64 first, const siphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
137
u64 siphash_2u64(const u64 first, const u64 second, const siphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
160
const siphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
188
const u64 forth, const siphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
211
u64 siphash_1u32(const u32 first, const siphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
220
const siphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
251
u32 __hsiphash_aligned(const void *_data, size_t len, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
285
const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
30
v3 ^= key->key[1]; \
sys/compat/linuxkpi/common/src/linux_siphash.c
31
v2 ^= key->key[0]; \
sys/compat/linuxkpi/common/src/linux_siphash.c
32
v1 ^= key->key[1]; \
sys/compat/linuxkpi/common/src/linux_siphash.c
322
u32 hsiphash_1u32(const u32 first, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
33
v0 ^= key->key[0];
sys/compat/linuxkpi/common/src/linux_siphash.c
336
u32 hsiphash_2u32(const u32 first, const u32 second, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
355
const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
376
const u32 forth, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
399
v3 ^= key->key[1]; \
sys/compat/linuxkpi/common/src/linux_siphash.c
400
v2 ^= key->key[0]; \
sys/compat/linuxkpi/common/src/linux_siphash.c
401
v1 ^= key->key[1]; \
sys/compat/linuxkpi/common/src/linux_siphash.c
402
v0 ^= key->key[0];
sys/compat/linuxkpi/common/src/linux_siphash.c
415
u32 __hsiphash_aligned(const void *_data, size_t len, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
439
const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
466
u32 hsiphash_1u32(const u32 first, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
48
u64 __siphash_aligned(const void *_data, size_t len, const siphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
482
u32 hsiphash_2u32(const u32 first, const u32 second, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
503
const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
528
const u32 forth, const hsiphash_key_t *key)
sys/compat/linuxkpi/common/src/linux_siphash.c
82
u64 __siphash_unaligned(const void *_data, size_t len, const siphash_key_t *key)
sys/crypto/aesni/aesni.c
779
const uint8_t *key;
sys/crypto/aesni/aesni.c
783
key = crp->crp_auth_key;
sys/crypto/aesni/aesni.c
785
key = csp->csp_auth_key;
sys/crypto/aesni/aesni.c
796
hmac_key[i] = key[i] ^ HMAC_IPAD_VAL;
sys/crypto/aesni/aesni.c
825
hmac_key[i] = key[i] ^ HMAC_OPAD_VAL;
sys/crypto/aesni/aesni.h
104
const unsigned char *key, int nr);
sys/crypto/aesni/aesni.h
108
const unsigned char *key, int nr);
sys/crypto/aesni/aesni.h
114
int tag_length, const unsigned char *key, int nr);
sys/crypto/aesni/aesni.h
118
int tag_length, const unsigned char *key, int nr);
sys/crypto/aesni/aesni.h
120
const struct crypto_session_params *csp, const uint8_t *key, int keylen);
sys/crypto/aesni/aesni_ccm.c
113
cbc_block = AESNI_ENC(cbc_block, key, nr);
sys/crypto/aesni/aesni_ccm.c
166
cbc_block = xor_and_encrypt(cbc_block, staging_block, key, nr);
sys/crypto/aesni/aesni_ccm.c
175
key, nr);
sys/crypto/aesni/aesni_ccm.c
193
int tag_length, const unsigned char *key, int nr)
sys/crypto/aesni/aesni_ccm.c
220
key, nr, nbytes, tag_length);
sys/crypto/aesni/aesni_ccm.c
245
key, nr);
sys/crypto/aesni/aesni_ccm.c
249
__m128i X = AESNI_ENC(s_x, key, nr);
sys/crypto/aesni/aesni_ccm.c
259
s0 = AESNI_ENC(s0, key, nr);
sys/crypto/aesni/aesni_ccm.c
293
const unsigned char *key, int nr)
sys/crypto/aesni/aesni_ccm.c
324
pad_block = AESNI_ENC(s_x, key, nr);
sys/crypto/aesni/aesni_ccm.c
341
key, nr);
sys/crypto/aesni/aesni_ccm.c
363
int tag_length, const unsigned char *key, int nr)
sys/crypto/aesni/aesni_ccm.c
386
key, nr, nbytes, tag_length);
sys/crypto/aesni/aesni_ccm.c
395
decrypt_loop(in, NULL, nbytes, s0, nlen, &rolling_mac, key, nr);
sys/crypto/aesni/aesni_ccm.c
400
staging_block = _mm_xor_si128(AESNI_ENC(s0, key, nr), rolling_mac);
sys/crypto/aesni/aesni_ccm.c
408
decrypt_loop(in, out, nbytes, s0, nlen, NULL, key, nr);
sys/crypto/aesni/aesni_ccm.c
93
const unsigned char *key, int nr,
sys/crypto/aesni/aesni_ghash.c
272
const unsigned char *key, int nr)
sys/crypto/aesni/aesni_ghash.c
278
const __m128i *KEY = (const __m128i *)key;
sys/crypto/aesni/aesni_ghash.c
533
const unsigned char *key, int nr)
sys/crypto/aesni/aesni_ghash.c
539
const __m128i *KEY = (const __m128i *)key;
sys/crypto/aesni/aesni_wrap.c
445
const struct crypto_session_params *csp, const uint8_t *key, int keylen)
sys/crypto/aesni/aesni_wrap.c
476
aesni_set_enckey(key, ses->enc_schedule, ses->rounds);
sys/crypto/aesni/aesni_wrap.c
482
aesni_set_enckey(key + keylen, ses->xts_schedule,
sys/crypto/armv8/armv8_crypto.c
217
const struct crypto_session_params *csp, const uint8_t *key, int keylen)
sys/crypto/armv8/armv8_crypto.c
235
aes_v8_set_encrypt_key(key,
sys/crypto/armv8/armv8_crypto.c
240
aes_v8_set_decrypt_key(key,
sys/crypto/armv8/armv8_crypto.c
244
aes_v8_set_encrypt_key(key + keylen, keylen * 8, &ses->xts_schedule);
sys/crypto/armv8/armv8_crypto.h
55
void aes_v8_encrypt(uint8_t *in, uint8_t *out, const AES_key_t *key);
sys/crypto/armv8/armv8_crypto.h
56
int aes_v8_set_encrypt_key(const unsigned char *userKey, const int bits, const AES_key_t *key);
sys/crypto/armv8/armv8_crypto.h
57
int aes_v8_set_decrypt_key(const unsigned char *userKey, const int bits, const AES_key_t *key);
sys/crypto/armv8/armv8_crypto.h
64
void armv8_aes_encrypt_cbc(const AES_key_t *key, size_t len,
sys/crypto/armv8/armv8_crypto_wrap.c
100
armv8_aes_encrypt_cbc(const AES_key_t *key, size_t len,
sys/crypto/armv8/armv8_crypto_wrap.c
120
tot = armv8_aes_enc(key->aes_rounds - 1,
sys/crypto/armv8/armv8_crypto_wrap.c
121
(const void *)key->aes_key, veorq_u8(tmp, ivreg));
sys/crypto/armv8/armv8_crypto_wrap.c
130
tot = armv8_aes_enc(key->aes_rounds - 1,
sys/crypto/armv8/armv8_crypto_wrap.c
131
(const void *)key->aes_key,
sys/crypto/armv8/armv8_crypto_wrap.c
148
armv8_aes_decrypt_cbc(const AES_key_t *key, size_t len,
sys/crypto/armv8/armv8_crypto_wrap.c
168
tmp = armv8_aes_dec(key->aes_rounds - 1,
sys/crypto/armv8/armv8_crypto_wrap.c
169
(const void *)key->aes_key, nextiv);
sys/crypto/armv8/armv8_crypto_wrap.c
178
tmp = armv8_aes_dec(key->aes_rounds - 1,
sys/crypto/armv8/armv8_crypto_wrap.c
179
(const void *)key->aes_key, nextiv);
sys/crypto/blake2/blake2-sw.c
10
const void *key, size_t keylen);
sys/crypto/blake2/blake2-sw.c
107
blake2s_xform_setkey(void *vctx, const uint8_t *key, u_int klen)
sys/crypto/blake2/blake2-sw.c
112
rc = blake2s_init_key_ref(&ctx->state, BLAKE2S_OUTBYTES, key,
sys/crypto/blake2/blake2-sw.c
14
extern int blake2b_ref(uint8_t *out, const void *in, const void *key,
sys/crypto/blake2/blake2-sw.c
20
const void *key, size_t keylen);
sys/crypto/blake2/blake2-sw.c
24
extern int blake2s_ref(uint8_t *out, const void *in, const void *key,
sys/crypto/blake2/blake2-sw.c
44
blake2b_xform_setkey(void *vctx, const uint8_t *key, u_int klen)
sys/crypto/blake2/blake2-sw.c
49
rc = blake2b_init_key_ref(&ctx->state, BLAKE2B_OUTBYTES, key,
sys/crypto/blake2/blake2_cryptodev.c
259
const void *key;
sys/crypto/blake2/blake2_cryptodev.c
265
key = crp->crp_auth_key;
sys/crypto/blake2/blake2_cryptodev.c
267
key = csp->csp_auth_key;
sys/crypto/blake2/blake2_cryptodev.c
275
rc = blake2b_init_key(&bctx.sb, ses->mlen, key, klen);
sys/crypto/blake2/blake2_cryptodev.c
292
rc = blake2s_init_key(&bctx.ss, ses->mlen, key, klen);
sys/crypto/camellia/camellia-api.c
37
camellia_set_key(camellia_ctx *ctx, const u_char *key, int bits)
sys/crypto/camellia/camellia-api.c
40
Camellia_Ekeygen(bits, key, ctx->subkey);
sys/crypto/camellia/camellia.c
437
camellia_setup128(const unsigned char *key, uint32_t *subkey)
sys/crypto/camellia/camellia.c
448
kll = GETU32(key );
sys/crypto/camellia/camellia.c
449
klr = GETU32(key + 4);
sys/crypto/camellia/camellia.c
450
krl = GETU32(key + 8);
sys/crypto/camellia/camellia.c
451
krr = GETU32(key + 12);
sys/crypto/camellia/camellia.c
643
camellia_setup256(const unsigned char *key, uint32_t *subkey)
sys/crypto/camellia/camellia.c
657
kll = GETU32(key );
sys/crypto/camellia/camellia.c
658
klr = GETU32(key + 4);
sys/crypto/camellia/camellia.c
659
krl = GETU32(key + 8);
sys/crypto/camellia/camellia.c
660
krr = GETU32(key + 12);
sys/crypto/camellia/camellia.c
661
krll = GETU32(key + 16);
sys/crypto/camellia/camellia.c
662
krlr = GETU32(key + 20);
sys/crypto/camellia/camellia.c
663
krrl = GETU32(key + 24);
sys/crypto/camellia/camellia.c
664
krrr = GETU32(key + 28);
sys/crypto/camellia/camellia.c
923
camellia_setup192(const unsigned char *key, uint32_t *subkey)
sys/crypto/camellia/camellia.c
928
memcpy(kk, key, 24);
sys/crypto/camellia/camellia.c
929
memcpy((unsigned char *)&krll, key+16,4);
sys/crypto/camellia/camellia.c
930
memcpy((unsigned char *)&krlr, key+20,4);
sys/crypto/camellia/camellia.h
58
void camellia_setup128(const unsigned char *key, uint32_t *subkey);
sys/crypto/camellia/camellia.h
59
void camellia_setup192(const unsigned char *key, uint32_t *subkey);
sys/crypto/camellia/camellia.h
60
void camellia_setup256(const unsigned char *key, uint32_t *subkey);
sys/crypto/ccp/ccp.c
232
ccp_init_hmac_digest(struct ccp_session *s, const char *key, int klen)
sys/crypto/ccp/ccp.c
245
axf->Update(&auth_ctx, key, klen);
sys/crypto/ccp/ccp.c
250
memcpy(s->hmac.ipad, key, klen);
sys/crypto/ccp/ccp.c
284
ccp_aes_setkey(struct ccp_session *s, int alg, const void *key, int klen)
sys/crypto/ccp/ccp.c
308
memcpy(s->blkcipher.enckey, key, s->blkcipher.key_len);
sys/crypto/chacha20/chacha-sw.c
14
chacha_keysetup(ctx, key, len * 8);
sys/crypto/chacha20/chacha-sw.c
8
chacha20_xform_setkey(void *ctx, const uint8_t *key, int len)
sys/crypto/chacha20_poly1305.c
104
exf->setkey(ctx, key, CHACHA20_POLY1305_KEY);
sys/crypto/chacha20_poly1305.c
143
const uint8_t *nonce, const uint8_t *key)
sys/crypto/chacha20_poly1305.c
152
exf->setkey(ctx, key, XCHACHA20_POLY1305_KEY);
sys/crypto/chacha20_poly1305.c
190
const uint8_t *nonce, const uint8_t *key)
sys/crypto/chacha20_poly1305.c
207
exf->setkey(ctx, key, XCHACHA20_POLY1305_KEY);
sys/crypto/chacha20_poly1305.c
40
const uint8_t *nonce, const size_t nonce_len, const uint8_t *key)
sys/crypto/chacha20_poly1305.c
49
exf->setkey(ctx, key, CHACHA20_POLY1305_KEY);
sys/crypto/chacha20_poly1305.c
87
const uint8_t *nonce, const size_t nonce_len, const uint8_t *key)
sys/crypto/chacha20_poly1305.h
40
const uint8_t *nonce, const size_t nonce_len, const uint8_t *key);
sys/crypto/chacha20_poly1305.h
44
const uint8_t *nonce, const size_t nonce_len, const uint8_t *key);
sys/crypto/chacha20_poly1305.h
48
const uint8_t *nonce, const uint8_t *key);
sys/crypto/chacha20_poly1305.h
52
const uint8_t *nonce, const uint8_t *key);
sys/crypto/des/des_setkey.c
117
int des_is_weak_key(const unsigned char *key)
sys/crypto/des/des_setkey.c
128
if (memcmp(weak_keys[i],key,sizeof(des_cblock)) == 0) return(1);
sys/crypto/des/des_setkey.c
142
int des_set_key(const unsigned char *key, des_key_schedule schedule)
sys/crypto/des/des_setkey.c
146
return des_set_key_checked(key, schedule);
sys/crypto/des/des_setkey.c
150
des_set_key_unchecked(key, schedule);
sys/crypto/des/des_setkey.c
159
int des_set_key_checked(const unsigned char *key, des_key_schedule schedule)
sys/crypto/des/des_setkey.c
161
if (!des_check_key_parity(key))
sys/crypto/des/des_setkey.c
163
if (des_is_weak_key(key))
sys/crypto/des/des_setkey.c
165
des_set_key_unchecked(key, schedule);
sys/crypto/des/des_setkey.c
169
void des_set_key_unchecked(const unsigned char *key, des_key_schedule schedule)
sys/crypto/des/des_setkey.c
178
in = key;
sys/crypto/des/des_setkey.c
225
int des_key_sched(const unsigned char *key, des_key_schedule schedule)
sys/crypto/des/des_setkey.c
227
return(des_set_key(key,schedule));
sys/crypto/des/des_setkey.c
230
void des_fixup_key_parity(unsigned char *key)
sys/crypto/des/des_setkey.c
232
des_set_odd_parity(key);
sys/crypto/des/des_setkey.c
67
void des_set_odd_parity(unsigned char *key)
sys/crypto/des/des_setkey.c
72
key[i]=odd_parity[key[i]];
sys/crypto/des/des_setkey.c
75
int des_check_key_parity(const unsigned char *key)
sys/crypto/des/des_setkey.c
81
if (key[i] != odd_parity[key[i]])
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
220
int ossl_aes_gcm_setkey_avx512(const unsigned char *key, int klen, void *_ctx);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
223
ossl_aes_gcm_setkey_avx512(const unsigned char *key, int klen,
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
230
gcm_init(ctx, key, klen);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
29
void aesni_set_encrypt_key(const void *key, int bits, void *ctx);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
32
gcm_init(struct ossl_gcm_context *ctx, const void *key, size_t keylen)
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
39
aesni_set_encrypt_key(key, keylen, &ctx->aes_ks);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
40
ctx->ops->init(ctx, key, keylen);
sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
65
gcm_init_avx512(struct ossl_gcm_context *ctx, const void *key, size_t keylen)
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
27
void AES_set_encrypt_key(const void *key, int keylen, void *ks);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
348
int ossl_aes_gcm_setkey(const unsigned char *key, int klen, void *_ctx);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
351
ossl_aes_gcm_setkey(const unsigned char *key, int klen, void *_ctx)
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
357
gcm_init(ctx, key, klen);
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
38
gcm_init(struct ossl_gcm_context *ctx, const void *key, size_t keylen)
sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
43
AES_set_encrypt_key(key, keylen, &ctx->aes_ks);
sys/crypto/openssl/ossl_aarch64.h
24
size_t length, const void *key, unsigned char *iv, int encrypt)
sys/crypto/openssl/ossl_aarch64.h
27
aes_v8_cbc_encrypt(in, out, length, key, iv, encrypt);
sys/crypto/openssl/ossl_aarch64.h
29
vpaes_cbc_encrypt(in, out, length, key, iv, encrypt);
sys/crypto/openssl/ossl_aes.c
101
8 * csp->csp_cipher_klen, &key);
sys/crypto/openssl/ossl_aes.c
104
8 * csp->csp_cipher_klen, &key);
sys/crypto/openssl/ossl_aes.c
109
key = s->enc_ctx;
sys/crypto/openssl/ossl_aes.c
111
key = s->dec_ctx;
sys/crypto/openssl/ossl_aes.c
146
AES_CBC_ENCRYPT(in, out, seglen, &key, iv, encrypt);
sys/crypto/openssl/ossl_aes.c
168
explicit_bzero(&key, sizeof(key));
sys/crypto/openssl/ossl_aes.c
85
struct ossl_cipher_context key;
sys/crypto/openssl/ossl_aes_gcm.c
119
s = encrypt ? ppc_aes_gcm_encrypt(in, out, len, key, ivec->c, Xi) :
sys/crypto/openssl/ossl_aes_gcm.c
120
ppc_aes_gcm_decrypt(in, out, len, key, ivec->c, Xi);
sys/crypto/openssl/ossl_aes_gcm.c
145
gcm_init(struct ossl_gcm_context *ctx, const void *key, size_t keylen)
sys/crypto/openssl/ossl_aes_gcm.c
152
AES_set_encrypt_key(key, keylen, &ctx->aes_ks);
sys/crypto/openssl/ossl_aes_gcm.c
153
ctx->ops->init(ctx, key, keylen);
sys/crypto/openssl/ossl_aes_gcm.c
164
gcm_init_op(struct ossl_gcm_context *ctx, const void *key, size_t keylen)
sys/crypto/openssl/ossl_aes_gcm.c
42
void AES_set_encrypt_key(const void *key, int bits, void *ctx);
sys/crypto/openssl/ossl_aes_gcm.c
44
const void *key, unsigned char ivec[16], uint64_t *Xi);
sys/crypto/openssl/ossl_aes_gcm.c
46
const void *key, unsigned char ivec[16], uint64_t *Xi);
sys/crypto/openssl/ossl_aes_gcm.c
603
int ossl_aes_gcm_setkey(const unsigned char *key, int klen, void *_ctx);
sys/crypto/openssl/ossl_aes_gcm.c
606
ossl_aes_gcm_setkey(const unsigned char *key, int klen,
sys/crypto/openssl/ossl_aes_gcm.c
613
gcm_init(ctx, key, klen);
sys/crypto/openssl/ossl_aes_gcm.c
67
const void *key, unsigned char ivec[16], uint64_t *Xi);
sys/crypto/openssl/ossl_aes_gcm.c
69
const void *key, unsigned char ivec[16], uint64_t *Xi);
sys/crypto/openssl/ossl_aes_gcm.c
71
void AES_set_encrypt_key(const void *key, int bits, void *ctx);
sys/crypto/openssl/ossl_aes_gcm.c
83
size_t len, const void *key, unsigned char ivec_[16], uint64_t *Xi,
sys/crypto/openssl/ossl_aes_gcm.h
35
void (*init)(struct ossl_gcm_context *ctx, const void *key,
sys/crypto/openssl/ossl_arm.h
53
size_t length, const void *key, unsigned char *iv, int encrypt)
sys/crypto/openssl/ossl_arm.h
66
memcpy(&bsks.ks, key, sizeof(bsks.ks));
sys/crypto/openssl/ossl_arm.h
84
AES_encrypt(scratch, out, key);
sys/crypto/openssl/ossl_chacha.h
27
size_t len, const unsigned int key[8],
sys/crypto/openssl/ossl_chacha20.c
118
ChaCha20_ctr32(out, in, todo, key, counter);
sys/crypto/openssl/ossl_chacha20.c
145
ChaCha20_ctr32(block, block, CHACHA_BLK_SIZE, key, counter);
sys/crypto/openssl/ossl_chacha20.c
151
explicit_bzero(key, sizeof(key));
sys/crypto/openssl/ossl_chacha20.c
159
_Alignas(8) unsigned int key[CHACHA_KEY_SIZE / 4];
sys/crypto/openssl/ossl_chacha20.c
175
for (i = 0; i < nitems(key); i++)
sys/crypto/openssl/ossl_chacha20.c
176
key[i] = CHACHA_U8TOU32(cipher_key + i * 4);
sys/crypto/openssl/ossl_chacha20.c
187
ChaCha20_ctr32(block, block, sizeof(block), key, counter);
sys/crypto/openssl/ossl_chacha20.c
246
ChaCha20_ctr32(out, in, todo, key, counter);
sys/crypto/openssl/ossl_chacha20.c
274
ChaCha20_ctr32(block, block, CHACHA_BLK_SIZE, key, counter);
sys/crypto/openssl/ossl_chacha20.c
296
explicit_bzero(key, sizeof(key));
sys/crypto/openssl/ossl_chacha20.c
305
_Alignas(8) unsigned int key[CHACHA_KEY_SIZE / 4];
sys/crypto/openssl/ossl_chacha20.c
322
for (i = 0; i < nitems(key); i++)
sys/crypto/openssl/ossl_chacha20.c
323
key[i] = CHACHA_U8TOU32(cipher_key + i * 4);
sys/crypto/openssl/ossl_chacha20.c
334
ChaCha20_ctr32(block, block, sizeof(block), key, counter);
sys/crypto/openssl/ossl_chacha20.c
415
ChaCha20_ctr32(out, in, todo, key, counter);
sys/crypto/openssl/ossl_chacha20.c
442
ChaCha20_ctr32(block, block, CHACHA_BLK_SIZE, key, counter);
sys/crypto/openssl/ossl_chacha20.c
452
explicit_bzero(key, sizeof(key));
sys/crypto/openssl/ossl_chacha20.c
59
_Alignas(8) unsigned int key[CHACHA_KEY_SIZE / 4];
sys/crypto/openssl/ossl_chacha20.c
73
for (i = 0; i < nitems(key); i++)
sys/crypto/openssl/ossl_chacha20.c
74
key[i] = CHACHA_U8TOU32(cipher_key + i * 4);
sys/crypto/openssl/ossl_poly1305.c
149
ossl_poly1305_setkey(void *vctx, const uint8_t *key, u_int klen)
sys/crypto/openssl/ossl_poly1305.c
152
Poly1305_Init(vctx, key);
sys/crypto/openssl/ossl_poly1305.c
43
int poly1305_init(void *ctx, const unsigned char key[16], void *func);
sys/crypto/openssl/ossl_poly1305.c
49
void Poly1305_Init(POLY1305 *ctx, const unsigned char key[32])
sys/crypto/openssl/ossl_poly1305.c
51
ctx->nonce[0] = U8TOU32(&key[16]);
sys/crypto/openssl/ossl_poly1305.c
52
ctx->nonce[1] = U8TOU32(&key[20]);
sys/crypto/openssl/ossl_poly1305.c
53
ctx->nonce[2] = U8TOU32(&key[24]);
sys/crypto/openssl/ossl_poly1305.c
54
ctx->nonce[3] = U8TOU32(&key[28]);
sys/crypto/openssl/ossl_poly1305.c
62
if (!poly1305_init(ctx->opaque, key, &ctx->func)) {
sys/crypto/openssl/ossl_poly1305.h
38
void Poly1305_Init(POLY1305 *ctx, const unsigned char key[32]);
sys/crypto/openssl/ossl_ppc.c
116
size_t len, const unsigned int key[8],
sys/crypto/openssl/ossl_ppc.c
119
size_t len, const unsigned int key[8],
sys/crypto/openssl/ossl_ppc.c
122
size_t len, const unsigned int key[8],
sys/crypto/openssl/ossl_ppc.c
125
size_t len, const unsigned int key[8],
sys/crypto/openssl/ossl_ppc.c
128
size_t len, const unsigned int key[8],
sys/crypto/openssl/ossl_ppc.c
132
? ChaCha20_ctr32_vsx(out, inp, len, key, counter)
sys/crypto/openssl/ossl_ppc.c
134
? ChaCha20_ctr32_vmx(out, inp, len, key, counter)
sys/crypto/openssl/ossl_ppc.c
135
: ChaCha20_ctr32_int(out, inp, len, key, counter);
sys/crypto/openssl/ossl_ppc.c
138
void poly1305_init_int(void *ctx, const unsigned char key[16]);
sys/crypto/openssl/ossl_ppc.c
143
void poly1305_init_fpu(void *ctx, const unsigned char key[16]);
sys/crypto/openssl/ossl_ppc.c
148
int poly1305_init(void *ctx, const unsigned char key[16], void *func[2]);
sys/crypto/openssl/ossl_ppc.c
149
int poly1305_init(void *ctx, const unsigned char key[16], void *func[2])
sys/crypto/openssl/ossl_ppc.c
152
poly1305_init_fpu(ctx, key);
sys/crypto/openssl/ossl_ppc.c
156
poly1305_init_int(ctx, key);
sys/crypto/openssl/ossl_ppc.h
38
size_t length, const void *key, unsigned char *iv, int encrypt)
sys/crypto/openssl/ossl_ppc.h
41
aes_p8_cbc_encrypt(in, out, length, key, iv, encrypt);
sys/crypto/openssl/ossl_ppc.h
43
vpaes_cbc_encrypt(in, out, length, key, iv, encrypt);
sys/crypto/rc4/rc4.c
58
rc4_init(struct rc4_state *const state, const u_char *key, int keylen)
sys/crypto/rc4/rc4.c
71
j += state->perm[i] + key[k];
sys/crypto/rc4/rc4.h
47
extern void rc4_init(struct rc4_state *state, const u_char *key, int keylen);
sys/crypto/rijndael/rijndael-api-fst.c
100
rijndaelEncrypt(key->rk, key->Nr, input, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
120
rijndaelEncrypt(key->rk, key->Nr, block, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
137
rijndaelEncrypt(key->rk, key->Nr, block, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
157
rijndaelEncrypt(key->ek, key->Nr, block,
sys/crypto/rijndael/rijndael-api-fst.c
197
int rijndael_padEncrypt(cipherInstance *cipher, keyInstance *key,
sys/crypto/rijndael/rijndael-api-fst.c
203
key == NULL ||
sys/crypto/rijndael/rijndael-api-fst.c
204
key->direction == DIR_DECRYPT) {
sys/crypto/rijndael/rijndael-api-fst.c
216
rijndaelEncrypt(key->rk, key->Nr, input, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
226
rijndaelEncrypt(key->rk, key->Nr, block, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
236
rijndaelEncrypt(key->rk, key->Nr, block, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
250
rijndaelEncrypt(key->rk, key->Nr, block, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
261
int rijndael_blockDecrypt(cipherInstance *cipher, keyInstance *key,
sys/crypto/rijndael/rijndael-api-fst.c
267
key == NULL ||
sys/crypto/rijndael/rijndael-api-fst.c
268
(cipher->mode != MODE_CFB1 && key->direction == DIR_ENCRYPT)) {
sys/crypto/rijndael/rijndael-api-fst.c
280
rijndaelDecrypt(key->rk, key->Nr, input, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
296
rijndaelDecrypt(key->rk, key->Nr, input, block);
sys/crypto/rijndael/rijndael-api-fst.c
330
rijndaelEncrypt(key->ek, key->Nr, block,
sys/crypto/rijndael/rijndael-api-fst.c
34
int rijndael_makeKey(keyInstance *key, BYTE direction, int keyLen,
sys/crypto/rijndael/rijndael-api-fst.c
361
int rijndael_padDecrypt(cipherInstance *cipher, keyInstance *key,
sys/crypto/rijndael/rijndael-api-fst.c
368
key == NULL ||
sys/crypto/rijndael/rijndael-api-fst.c
369
key->direction == DIR_ENCRYPT) {
sys/crypto/rijndael/rijndael-api-fst.c
37
if (key == NULL) {
sys/crypto/rijndael/rijndael-api-fst.c
385
rijndaelDecrypt(key->rk, key->Nr, input, outBuffer);
sys/crypto/rijndael/rijndael-api-fst.c
390
rijndaelDecrypt(key->rk, key->Nr, input, block);
sys/crypto/rijndael/rijndael-api-fst.c
409
rijndaelDecrypt(key->rk, key->Nr, input, block);
sys/crypto/rijndael/rijndael-api-fst.c
42
key->direction = direction;
sys/crypto/rijndael/rijndael-api-fst.c
420
rijndaelDecrypt(key->rk, key->Nr, input, block);
sys/crypto/rijndael/rijndael-api-fst.c
48
key->keyLen = keyLen;
sys/crypto/rijndael/rijndael-api-fst.c
54
memcpy(key->keyMaterial, keyMaterial, keyLen/8);
sys/crypto/rijndael/rijndael-api-fst.c
59
key->Nr = rijndaelKeySetupEnc(key->rk, key->keyMaterial, keyLen);
sys/crypto/rijndael/rijndael-api-fst.c
61
key->Nr = rijndaelKeySetupDec(key->rk, key->keyMaterial, keyLen);
sys/crypto/rijndael/rijndael-api-fst.c
63
rijndaelKeySetupEnc(key->ek, key->keyMaterial, keyLen);
sys/crypto/rijndael/rijndael-api-fst.c
81
int rijndael_blockEncrypt(cipherInstance *cipher, keyInstance *key,
sys/crypto/rijndael/rijndael-api-fst.c
87
key == NULL ||
sys/crypto/rijndael/rijndael-api-fst.c
88
key->direction == DIR_DECRYPT) {
sys/crypto/rijndael/rijndael-api.c
37
rijndael_set_key(rijndael_ctx *ctx, const u_char *key, int bits)
sys/crypto/rijndael/rijndael-api.c
40
ctx->Nr = rijndaelKeySetupEnc(ctx->ek, key, bits);
sys/crypto/rijndael/rijndael-api.c
41
rijndaelKeySetupDec(ctx->dk, key, bits);
sys/crypto/rijndael/test00.c
43
uint8_t key[16];
sys/crypto/rijndael/test00.c
50
key[i] = i;
sys/crypto/rijndael/test00.c
51
rijndael_makeKey(&ki, DIR_DECRYPT, 128, key);
sys/crypto/siphash/siphash.c
202
const uint8_t key[static SIPHASH_KEY_LENGTH], const void *src, size_t len)
sys/crypto/siphash/siphash.c
206
SipHash_SetKey(ctx, key);
sys/crypto/siphash/siphash.c
71
SipHash_SetKey(SIPHASH_CTX *ctx, const uint8_t key[static SIPHASH_KEY_LENGTH])
sys/crypto/siphash/siphash.c
79
k[0] = le64dec(&key[0]);
sys/crypto/siphash/siphash.c
80
k[1] = le64dec(&key[8]);
sys/crypto/skein/skein.c
106
Skein_256_Update(ctx,key,keyBytes); /* hash the key */
sys/crypto/skein/skein.c
126
Skein_Show_Key(256,&ctx->h,key,keyBytes);
sys/crypto/skein/skein.c
281
int Skein_512_InitExt(Skein_512_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes)
sys/crypto/skein/skein.c
290
Skein_Assert(keyBytes == 0 || key != NULL,SKEIN_FAIL);
sys/crypto/skein/skein.c
304
Skein_512_Update(ctx,key,keyBytes); /* hash the key */
sys/crypto/skein/skein.c
324
Skein_Show_Key(512,&ctx->h,key,keyBytes);
sys/crypto/skein/skein.c
478
int Skein1024_InitExt(Skein1024_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes)
sys/crypto/skein/skein.c
487
Skein_Assert(keyBytes == 0 || key != NULL,SKEIN_FAIL);
sys/crypto/skein/skein.c
501
Skein1024_Update(ctx,key,keyBytes); /* hash the key */
sys/crypto/skein/skein.c
521
Skein_Show_Key(1024,&ctx->h,key,keyBytes);
sys/crypto/skein/skein.c
83
int Skein_256_InitExt(Skein_256_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes)
sys/crypto/skein/skein.c
92
Skein_Assert(keyBytes == 0 || key != NULL,SKEIN_FAIL);
sys/crypto/skein/skein.h
121
int Skein_256_InitExt(Skein_256_Ctxt_t *ctx, size_t hashBitLen, u64b_t treeInfo, const u08b_t *key, size_t keyBytes);
sys/crypto/skein/skein.h
122
int Skein_512_InitExt(Skein_512_Ctxt_t *ctx, size_t hashBitLen, u64b_t treeInfo, const u08b_t *key, size_t keyBytes);
sys/crypto/skein/skein.h
123
int Skein1024_InitExt(Skein1024_Ctxt_t *ctx, size_t hashBitLen, u64b_t treeInfo, const u08b_t *key, size_t keyBytes);
sys/crypto/skein/skein.h
263
#define Skein_Show_Key(bits,ctx,key,keyBytes)
sys/crypto/skein/skein_debug.c
237
void Skein_Show_Key(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes)
sys/crypto/skein/skein_debug.c
244
Show08(keyBytes,key);
sys/crypto/skein/skein_debug.h
20
void Skein_Show_Key (uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes);
sys/crypto/via/padlock_cipher.c
105
rijndaelKeySetupEnc(ses->ses_ekey, key, klen * 8);
sys/crypto/via/padlock_cipher.c
106
rijndaelKeySetupDec(ses->ses_dkey, key, klen * 8);
sys/crypto/via/padlock_cipher.c
112
bcopy(key, ses->ses_ekey, klen);
sys/crypto/via/padlock_cipher.c
113
bcopy(key, ses->ses_dkey, klen);
sys/crypto/via/padlock_cipher.c
187
uint32_t *key;
sys/crypto/via/padlock_cipher.c
212
key = ses->ses_ekey;
sys/crypto/via/padlock_cipher.c
215
key = ses->ses_dkey;
sys/crypto/via/padlock_cipher.c
225
padlock_cbc(abuf, abuf, crp->crp_payload_length / AES_BLOCK_LEN, key,
sys/crypto/via/padlock_cipher.c
81
padlock_cbc(void *in, void *out, size_t count, void *key, union padlock_cw *cw,
sys/crypto/via/padlock_cipher.c
91
: "b" (key), "d" (cw)
sys/crypto/via/padlock_cipher.c
97
padlock_cipher_key_setup(struct padlock_session *ses, const void *key, int klen)
sys/crypto/via/padlock_hash.c
253
padlock_hash_key_setup(struct padlock_session *ses, const uint8_t *key,
sys/crypto/via/padlock_hash.c
268
hmac_init_ipad(axf, key, klen, ses->ses_ictx);
sys/crypto/via/padlock_hash.c
269
hmac_init_opad(axf, key, klen, ses->ses_octx);
sys/dev/aacraid/aacraid_cam.c
109
u_int8_t status, u_int8_t key, u_int8_t asc, u_int8_t ascq);
sys/dev/aacraid/aacraid_cam.c
141
u_int8_t key, u_int8_t asc, u_int8_t ascq)
sys/dev/aacraid/aacraid_cam.c
155
sense->flags = key;
sys/dev/acpi_support/acpi_asus_wmi.c
291
uint16_t key;
sys/dev/acpi_support/acpi_asus_wmi.c
625
if (acpi_asus_wmi_evdev_map[i].key != NO_KEY)
sys/dev/acpi_support/acpi_asus_wmi.c
627
acpi_asus_wmi_evdev_map[i].key);
sys/dev/acpi_support/acpi_asus_wmi.c
819
uint16_t key;
sys/dev/acpi_support/acpi_asus_wmi.c
823
acpi_asus_wmi_evdev_map[i].key != NO_KEY) {
sys/dev/acpi_support/acpi_asus_wmi.c
824
key = acpi_asus_wmi_evdev_map[i].key;
sys/dev/acpi_support/acpi_asus_wmi.c
825
evdev_push_key(evdev, key, 1);
sys/dev/acpi_support/acpi_asus_wmi.c
827
evdev_push_key(evdev, key, 0);
sys/dev/acpi_support/acpi_ibm.c
1540
uint16_t key;
sys/dev/acpi_support/acpi_ibm.c
1542
key = arg == IBM_EVENT_BRIGHTNESS_UP ?
sys/dev/acpi_support/acpi_ibm.c
1544
evdev_push_key(sc->evdev, key, 1);
sys/dev/acpi_support/acpi_ibm.c
1546
evdev_push_key(sc->evdev, key, 0);
sys/dev/acpi_support/acpi_ibm.c
752
int val = 0, key;
sys/dev/acpi_support/acpi_ibm.c
789
key = rtcin(IBM_RTC_HOTKEY1);
sys/dev/acpi_support/acpi_ibm.c
790
val = (IBM_RTC_MASK_HOME | IBM_RTC_MASK_SEARCH | IBM_RTC_MASK_MAIL | IBM_RTC_MASK_WLAN) & key;
sys/dev/acpi_support/acpi_ibm.c
791
key = rtcin(IBM_RTC_HOTKEY2);
sys/dev/acpi_support/acpi_ibm.c
792
val |= (IBM_RTC_MASK_THINKPAD | IBM_RTC_MASK_VIDEO | IBM_RTC_MASK_HIBERNATE) & key;
sys/dev/acpi_support/acpi_ibm.c
793
val |= (IBM_RTC_MASK_ZOOM & key) >> 1;
sys/dev/acpi_support/acpi_ibm.c
794
key = rtcin(IBM_RTC_THINKLIGHT);
sys/dev/acpi_support/acpi_ibm.c
795
val |= (IBM_RTC_MASK_THINKLIGHT & key) << 4;
sys/dev/acpi_support/acpi_ibm.c
796
key = rtcin(IBM_RTC_SCREENEXPAND);
sys/dev/acpi_support/acpi_ibm.c
797
val |= (IBM_RTC_MASK_THINKLIGHT & key) << 4;
sys/dev/acpi_support/acpi_ibm.c
798
key = rtcin(IBM_RTC_BRIGHTNESS);
sys/dev/acpi_support/acpi_ibm.c
799
val |= (IBM_RTC_MASK_BRIGHTNESS & key) << 5;
sys/dev/acpi_support/acpi_ibm.c
800
key = rtcin(IBM_RTC_VOLUME);
sys/dev/acpi_support/acpi_ibm.c
801
val |= (IBM_RTC_MASK_VOLUME & key) << 4;
sys/dev/acpi_support/acpi_panasonic.c
464
UINT32 key)
sys/dev/acpi_support/acpi_panasonic.c
472
switch (key) {
sys/dev/acpi_support/acpi_panasonic.c
517
UINT32 key = 0;
sys/dev/acpi_support/acpi_panasonic.c
524
if (acpi_panasonic_hkey_event(sc, h, &key) == 0) {
sys/dev/acpi_support/acpi_panasonic.c
525
acpi_panasonic_hkey_action(sc, h, key);
sys/dev/acpi_support/acpi_panasonic.c
526
acpi_UserNotify("Panasonic", h, (uint8_t)key);
sys/dev/acpi_support/acpi_panasonic.c
92
ACPI_HANDLE h, UINT32 key);
sys/dev/acpi_support/acpi_toshiba.c
146
UINT32 key);
sys/dev/acpi_support/acpi_toshiba.c
468
hci_key_action(struct acpi_toshiba_softc *sc, ACPI_HANDLE h, UINT32 key)
sys/dev/acpi_support/acpi_toshiba.c
473
switch (key) {
sys/dev/acpi_support/acpi_toshiba.c
515
UINT32 key;
sys/dev/acpi_support/acpi_toshiba.c
521
while (hci_call(h, HCI_GET, HCI_REG_SYSTEM_EVENT, &key) == 0) {
sys/dev/acpi_support/acpi_toshiba.c
522
hci_key_action(sc, h, key);
sys/dev/acpi_support/acpi_toshiba.c
523
acpi_UserNotify("TOSHIBA", h, (uint8_t)key);
sys/dev/acpica/acpi_button.c
269
uint16_t key;
sys/dev/acpica/acpi_button.c
288
key = (sc->button_type == ACPI_SLEEP_BUTTON) ? KEY_SLEEP : KEY_POWER;
sys/dev/acpica/acpi_button.c
289
evdev_push_key(sc->button_evdev, key, 1);
sys/dev/acpica/acpi_button.c
291
evdev_push_key(sc->button_evdev, key, 0);
sys/dev/acpica/acpi_video.c
211
uint16_t key;
sys/dev/acpica/acpi_video.c
229
uint16_t key;
sys/dev/acpica/acpi_video.c
236
key = acpi_video_evdev_map[i].key;
sys/dev/acpica/acpi_video.c
237
evdev_push_key(evdev, key, 1);
sys/dev/acpica/acpi_video.c
239
evdev_push_key(evdev, key, 0);
sys/dev/acpica/acpi_video.c
322
evdev_support_key(sc->evdev, acpi_video_evdev_map[i].key);
sys/dev/adb/adb_kbd.c
591
uint16_t key;
sys/dev/adb/adb_kbd.c
601
key = sc->at_buffered_char[0];
sys/dev/adb/adb_kbd.c
602
if (key & SCAN_PREFIX) {
sys/dev/adb/adb_kbd.c
603
sc->at_buffered_char[0] = key & ~SCAN_PREFIX;
sys/dev/adb/adb_kbd.c
604
key = (key & SCAN_PREFIX_E0) ? 0xe0 : 0xe1;
sys/dev/adb/adb_kbd.c
612
return (key);
sys/dev/adb/adb_kbd.c
632
key = adb_to_at_scancode_map[adb_code & 0x7f];
sys/dev/adb/adb_kbd.c
635
key |= adb_code & 0x80;
sys/dev/adb/adb_kbd.c
644
key = keycode2scancode(key,
sys/dev/adb/adb_kbd.c
647
if (key & SCAN_PREFIX) {
sys/dev/adb/adb_kbd.c
648
if (key & SCAN_PREFIX_CTL) {
sys/dev/adb/adb_kbd.c
650
0x1d | (key & SCAN_RELEASE);
sys/dev/adb/adb_kbd.c
652
key & ~SCAN_PREFIX;
sys/dev/adb/adb_kbd.c
653
} else if (key & SCAN_PREFIX_SHIFT) {
sys/dev/adb/adb_kbd.c
655
0x2a | (key & SCAN_RELEASE);
sys/dev/adb/adb_kbd.c
657
key & ~SCAN_PREFIX_SHIFT;
sys/dev/adb/adb_kbd.c
660
key & ~SCAN_PREFIX;
sys/dev/adb/adb_kbd.c
664
key = (key & SCAN_PREFIX_E0) ? 0xe0 : 0xe1;
sys/dev/adb/adb_kbd.c
668
key = adb_code;
sys/dev/adb/adb_kbd.c
673
return (key);
sys/dev/agp/agp.c
768
alloc->key = mem->am_id;
sys/dev/agp/agp.c
792
struct agp_memory *mem = agp_find_memory(dev, bind->key);
sys/dev/agp/agp.c
803
struct agp_memory *mem = agp_find_memory(dev, unbind->key);
sys/dev/agp/agp_nvidia.c
286
u_int8_t key;
sys/dev/agp/agp_nvidia.c
289
case (512 * 1024 * 1024): key = 0; break;
sys/dev/agp/agp_nvidia.c
290
case (256 * 1024 * 1024): key = 8; break;
sys/dev/agp/agp_nvidia.c
291
case (128 * 1024 * 1024): key = 12; break;
sys/dev/agp/agp_nvidia.c
292
case (64 * 1024 * 1024): key = 14; break;
sys/dev/agp/agp_nvidia.c
293
case (32 * 1024 * 1024): key = 15; break;
sys/dev/agp/agp_nvidia.c
300
pci_write_config(dev, AGP_NVIDIA_0_APSIZE, ((val & ~0x0f) | key), 1);
sys/dev/agp/agp_via.c
290
u_int32_t apsize, key, val;
sys/dev/agp/agp_via.c
308
key = 0x800;
sys/dev/agp/agp_via.c
311
key = 0xc00;
sys/dev/agp/agp_via.c
314
key = 0xe00;
sys/dev/agp/agp_via.c
317
key = 0xf00;
sys/dev/agp/agp_via.c
320
key = 0xf20;
sys/dev/agp/agp_via.c
323
key = 0xf30;
sys/dev/agp/agp_via.c
326
key = 0xf38;
sys/dev/agp/agp_via.c
329
key = 0xf3c;
sys/dev/agp/agp_via.c
332
key = 0xf3e;
sys/dev/agp/agp_via.c
335
key = 0xf3f;
sys/dev/agp/agp_via.c
344
((val & ~0xfff) | key), 2);
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
149
DBT key;
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
152
while (symtable->seq(symtable, &key, &data, R_FIRST) == 0) {
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
170
DBT key;
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
174
key.data = strdup(name);
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
175
key.size = strlen(name);
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
177
if ((retval = symtable->get(symtable, &key, &data, /*flags*/0)) != 0) {
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
189
if (symtable->put(symtable, &key, &data,
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
194
free(key.data);
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
203
free(key.data);
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
478
DBT key;
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
493
while (symtable->seq(symtable, &key, &data, flag) == 0) {
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
88
DBT key;
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
90
key.data = symbol->name;
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
91
key.size = strlen(symbol->name);
sys/dev/aic7xxx/aicasm/aicasm_symbol.c
92
symtable->del(symtable, &key, /*flags*/0);
sys/dev/asmc/asmc.c
1236
asmc_key_read(device_t dev, const char *key, uint8_t *buf, uint8_t len)
sys/dev/asmc/asmc.c
1248
ASMC_DATAPORT_WRITE(sc, key[i]);
sys/dev/asmc/asmc.c
1267
__func__, key, try);
sys/dev/asmc/asmc.c
1280
char key[ASMC_KEYLEN + 1] = { 0 };
sys/dev/asmc/asmc.c
1309
key[i] = ASMC_DATAPORT_READ(sc);
sys/dev/asmc/asmc.c
1317
ASMC_DATAPORT_WRITE(sc, key[i]);
sys/dev/asmc/asmc.c
1351
error = asmc_key_read(dev, key, v, maxlen);
sys/dev/asmc/asmc.c
1356
number, key, type, maxlen);
sys/dev/asmc/asmc.c
1371
asmc_key_getinfo(device_t dev, const char *key, uint8_t *len, char *type)
sys/dev/asmc/asmc.c
1384
ASMC_DATAPORT_WRITE(sc, key[i]);
sys/dev/asmc/asmc.c
1597
asmc_sensor_read(device_t dev, const char *key, int *millivalue)
sys/dev/asmc/asmc.c
1604
error = asmc_key_getinfo(dev, key, &len, type);
sys/dev/asmc/asmc.c
1612
__func__, key, len);
sys/dev/asmc/asmc.c
1616
error = asmc_key_read(dev, key, buf, sizeof(buf));
sys/dev/asmc/asmc.c
1640
__func__, type, key);
sys/dev/asmc/asmc.c
1660
const char *key = NULL;
sys/dev/asmc/asmc.c
1666
key = sc->sc_voltage_sensors[sensor_idx];
sys/dev/asmc/asmc.c
1670
key = sc->sc_current_sensors[sensor_idx];
sys/dev/asmc/asmc.c
1674
key = sc->sc_power_sensors[sensor_idx];
sys/dev/asmc/asmc.c
1678
key = sc->sc_light_sensors[sensor_idx];
sys/dev/asmc/asmc.c
1684
if (key == NULL)
sys/dev/asmc/asmc.c
1687
error = asmc_sensor_read(dev, key, &val);
sys/dev/asmc/asmc.c
1705
char key[ASMC_KEYLEN + 1];
sys/dev/asmc/asmc.c
1726
error = asmc_key_dump_by_index(dev, i, key, type, &len);
sys/dev/asmc/asmc.c
1733
if (key[0] == 'V' && (key[1] == 'C' || key[1] == 'D' ||
sys/dev/asmc/asmc.c
1734
key[1] == 'G' || key[1] == 'P' || key[1] == 'I') &&
sys/dev/asmc/asmc.c
1740
memcpy(sensor_key, key, ASMC_KEYLEN + 1);
sys/dev/asmc/asmc.c
1743
} else if (key[0] == 'I' && (key[1] == 'C' ||
sys/dev/asmc/asmc.c
1744
key[1] == 'D' || key[1] == 'G' || key[1] == 'M' ||
sys/dev/asmc/asmc.c
1745
key[1] == 'N' || key[1] == 'O' || key[1] == 'H' ||
sys/dev/asmc/asmc.c
1746
key[1] == 'P' || key[1] == 'B' || key[1] == 'A' ||
sys/dev/asmc/asmc.c
1747
key[1] == 'L') && len == 2) {
sys/dev/asmc/asmc.c
1753
memcpy(sensor_key, key, ASMC_KEYLEN + 1);
sys/dev/asmc/asmc.c
1756
} else if (key[0] == 'P' && (key[1] == 'C' ||
sys/dev/asmc/asmc.c
1757
key[1] == 'D' || key[1] == 'N' || key[1] == 'S' ||
sys/dev/asmc/asmc.c
1758
key[1] == 'T' || key[1] == 'H' || key[1] == 'F' ||
sys/dev/asmc/asmc.c
1759
key[1] == 'Z' || key[1] == 'z') && len == 2) {
sys/dev/asmc/asmc.c
1765
memcpy(sensor_key, key, ASMC_KEYLEN + 1);
sys/dev/asmc/asmc.c
1768
} else if (key[0] == 'A' && key[1] == 'L' &&
sys/dev/asmc/asmc.c
1769
(key[2] == 'V' || key[2] == 'S') && len == 2) {
sys/dev/asmc/asmc.c
1775
memcpy(sensor_key, key, ASMC_KEYLEN + 1);
sys/dev/asmc/asmc.c
1928
asmc_key_write(device_t dev, const char *key, uint8_t *buf, uint8_t len)
sys/dev/asmc/asmc.c
1942
ASMC_DATAPORT_WRITE(sc, key[i]);
sys/dev/asmc/asmc.c
1962
__func__, key, try);
sys/dev/asmc/asmc.c
1985
asmc_fan_getvalue(device_t dev, const char *key, int fan)
sys/dev/asmc/asmc.c
1991
snprintf(fankey, sizeof(fankey), key, fan);
sys/dev/asmc/asmc.c
2000
asmc_fan_getstring(device_t dev, const char *key, int fan, uint8_t *buf,
sys/dev/asmc/asmc.c
2006
snprintf(fankey, sizeof(fankey), key, fan);
sys/dev/asmc/asmc.c
2015
asmc_fan_setvalue(device_t dev, const char *key, int fan, int speed)
sys/dev/asmc/asmc.c
2025
snprintf(fankey, sizeof(fankey), key, fan);
sys/dev/asmc/asmc.c
2187
asmc_temp_getvalue(device_t dev, const char *key)
sys/dev/asmc/asmc.c
2194
if (asmc_key_read(dev, key, buf, sizeof(buf)) != 0)
sys/dev/asmc/asmc.c
2217
asmc_sms_read(device_t dev, const char *key, int16_t *val)
sys/dev/asmc/asmc.c
2223
switch (key[3]) {
sys/dev/asmc/asmc.c
2227
error = asmc_key_read(dev, key, buf, sizeof(buf));
sys/dev/asmc/asmc.c
2231
__func__, key);
sys/dev/asmc/asmc.c
88
static int asmc_key_write(device_t dev, const char *key, uint8_t *buf,
sys/dev/asmc/asmc.c
90
static int asmc_key_read(device_t dev, const char *key, uint8_t *buf,
sys/dev/asmc/asmc.c
93
static int asmc_fan_getvalue(device_t dev, const char *key, int fan);
sys/dev/asmc/asmc.c
94
static int asmc_fan_setvalue(device_t dev, const char *key, int fan, int speed);
sys/dev/asmc/asmc.c
95
static int asmc_temp_getvalue(device_t dev, const char *key);
sys/dev/asmc/asmc.c
96
static int asmc_sms_read(device_t, const char *key, int16_t *val);
sys/dev/ata/ata-all.c
441
switch (request->u.atapi.sense.key ?
sys/dev/axgbe/xgbe-dev.c
379
unsigned int *key = (unsigned int *)&pdata->rss_key;
sys/dev/axgbe/xgbe-dev.c
384
key_regs, *key++);
sys/dev/axgbe/xgbe-dev.c
409
xgbe_set_rss_hash_key(struct xgbe_prv_data *pdata, const uint8_t *key)
sys/dev/axgbe/xgbe-dev.c
411
memcpy(pdata->rss_key, key, sizeof(pdata->rss_key));
sys/dev/bhnd/nvram/bhnd_nvram_data_sprom_subr.c
207
bhnd_nvram_opcode_idx_vid_compare(const void *key, const void *rhs)
sys/dev/bhnd/nvram/bhnd_nvram_data_sprom_subr.c
212
vid = *(const size_t *)key;
sys/dev/bhnd/nvram/bhnd_nvram_data_sprom_subr.c
47
static int bhnd_nvram_opcode_idx_vid_compare(const void *key,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
172
const char *key, *value;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
209
error = bhnd_nvram_parse_env(data, data_len, '=', &key,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
219
strncmp(key, name, namelen) == 0)
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
553
bhnd_nvram_find_vardefn_compare(const void *key, const void *rhs)
sys/dev/bhnd/nvram/bhnd_nvram_subr.c
557
return (strcmp((const char *)key, r->name));
sys/dev/bnxt/bnxt_en/bnxt_mgmt.h
105
uint8_t key;
sys/dev/bnxt/bnxt_en/hsi_struct_def.h
73708
uint32_t key;
sys/dev/bnxt/bnxt_en/hsi_struct_def.h
73886
uint32_t key;
sys/dev/bnxt/bnxt_re/ib_verbs.c
3433
wqe->frmr.l_key = wr->key;
sys/dev/bnxt/bnxt_re/qplib_res.h
645
u32 key = 0;
sys/dev/bnxt/bnxt_re/qplib_res.h
647
key = info->hwq->cons | (CMPL_DOORBELL_IDX_VALID |
sys/dev/bnxt/bnxt_re/qplib_res.h
650
key |= CMPL_DOORBELL_MASK;
sys/dev/bnxt/bnxt_re/qplib_res.h
653
writel(key, info->db);
sys/dev/bnxt/bnxt_re/qplib_res.h
662
u64 key, void __iomem *db,
sys/dev/bnxt/bnxt_re/qplib_res.h
668
*shadow_key = key;
sys/dev/bnxt/bnxt_re/qplib_res.h
669
writeq(key, db);
sys/dev/bnxt/bnxt_re/qplib_res.h
673
static inline void __replay_writeq(u64 key, void __iomem *db)
sys/dev/bnxt/bnxt_re/qplib_res.h
676
if (key != BNXT_QPLIB_DBR_KEY_INVALID)
sys/dev/bnxt/bnxt_re/qplib_res.h
677
writeq(key, db);
sys/dev/bnxt/bnxt_re/qplib_res.h
698
u64 key = 0;
sys/dev/bnxt/bnxt_re/qplib_res.h
710
key = BNXT_QPLIB_INIT_DBHDR(info->xid, type, indx, toggle);
sys/dev/bnxt/bnxt_re/qplib_res.h
711
bnxt_qplib_write_db(info, key, info->db, &info->shadow_key);
sys/dev/bnxt/bnxt_re/qplib_res.h
717
u64 key = 0;
sys/dev/bnxt/bnxt_re/qplib_res.h
723
key = BNXT_QPLIB_INIT_DBHDR(info->xid, type, indx, 0);
sys/dev/bnxt/bnxt_re/qplib_res.h
724
bnxt_qplib_write_db(info, key, info->db, &info->shadow_key);
sys/dev/bnxt/bnxt_re/qplib_res.h
730
u64 key = 0;
sys/dev/bnxt/bnxt_re/qplib_res.h
736
key = BNXT_QPLIB_INIT_DBHDR(info->xid, type, 0, toggle);
sys/dev/bnxt/bnxt_re/qplib_res.h
737
bnxt_qplib_write_db(info, key, info->priv_db,
sys/dev/bnxt/bnxt_re/qplib_res.h
743
u64 key = 0;
sys/dev/bnxt/bnxt_re/qplib_res.h
746
key = BNXT_QPLIB_INIT_DBHDR(info->xid, DBC_DBC_TYPE_CQ_CUTOFF_ACK, 0, 0);
sys/dev/bnxt/bnxt_re/qplib_res.h
747
bnxt_qplib_write_db(info, key, info->priv_db, &info->shadow_key);
sys/dev/bnxt/bnxt_re/qplib_res.h
752
u64 key = 0;
sys/dev/bnxt/bnxt_re/qplib_res.h
755
key = BNXT_QPLIB_INIT_DBHDR(info->xid, DBC_DBC_TYPE_SRQ_ARM, 0, info->toggle);
sys/dev/bnxt/bnxt_re/qplib_res.h
756
bnxt_qplib_write_db(info, key, info->priv_db, &info->shadow_key);
sys/dev/bnxt/bnxt_re/qplib_sp.c
553
req.key = cpu_to_le32(mrw->rkey);
sys/dev/bnxt/bnxt_re/qplib_sp.c
555
req.key = cpu_to_le32(mrw->lkey);
sys/dev/bnxt/bnxt_re/qplib_sp.c
691
req.key = cpu_to_le32(mr->lkey);
sys/dev/bnxt/bnxt_re/qplib_sp.c
694
req.key = cpu_to_le32(mr->pd->id);
sys/dev/bwn/if_bwn.c
4699
const uint8_t *key, size_t key_len, const uint8_t *mac_addr)
sys/dev/bwn/if_bwn.c
4714
if (key)
sys/dev/bwn/if_bwn.c
4715
memcpy(buf, key, key_len);
sys/dev/bwn/if_bwn.c
4761
const uint8_t *key)
sys/dev/bwn/if_bwn.c
4773
value = key[i];
sys/dev/bwn/if_bwn.c
4774
value |= (uint16_t)(key[i + 1]) << 8;
sys/dev/cxgb/common/cxgb_t3_hw.c
3607
u32 addr, key[4], mask[4];
sys/dev/cxgb/common/cxgb_t3_hw.c
3609
key[0] = tp->sport | (tp->sip << 16);
sys/dev/cxgb/common/cxgb_t3_hw.c
3610
key[1] = (tp->sip >> 16) | (tp->dport << 16);
sys/dev/cxgb/common/cxgb_t3_hw.c
3611
key[2] = tp->dip;
sys/dev/cxgb/common/cxgb_t3_hw.c
3612
key[3] = tp->proto | (tp->vlan << 8) | (tp->intf << 20);
sys/dev/cxgb/common/cxgb_t3_hw.c
3620
key[3] |= (1 << 29);
sys/dev/cxgb/common/cxgb_t3_hw.c
3622
key[3] |= (1 << 28);
sys/dev/cxgb/common/cxgb_t3_hw.c
3625
tp_wr_indirect(adapter, addr++, key[0]);
sys/dev/cxgb/common/cxgb_t3_hw.c
3627
tp_wr_indirect(adapter, addr++, key[1]);
sys/dev/cxgb/common/cxgb_t3_hw.c
3629
tp_wr_indirect(adapter, addr++, key[2]);
sys/dev/cxgb/common/cxgb_t3_hw.c
3631
tp_wr_indirect(adapter, addr++, key[3]);
sys/dev/cxgb/common/cxgb_t3_hw.c
3649
u32 addr, key[4], mask[4];
sys/dev/cxgb/common/cxgb_t3_hw.c
3652
key[0] = tp_rd_indirect(adapter, addr++);
sys/dev/cxgb/common/cxgb_t3_hw.c
3654
key[1] = tp_rd_indirect(adapter, addr++);
sys/dev/cxgb/common/cxgb_t3_hw.c
3656
key[2] = tp_rd_indirect(adapter, addr++);
sys/dev/cxgb/common/cxgb_t3_hw.c
3658
key[3] = tp_rd_indirect(adapter, addr++);
sys/dev/cxgb/common/cxgb_t3_hw.c
3661
tp->sport = key[0] & 0xffff;
sys/dev/cxgb/common/cxgb_t3_hw.c
3662
tp->sip = (key[0] >> 16) | ((key[1] & 0xffff) << 16);
sys/dev/cxgb/common/cxgb_t3_hw.c
3663
tp->dport = key[1] >> 16;
sys/dev/cxgb/common/cxgb_t3_hw.c
3664
tp->dip = key[2];
sys/dev/cxgb/common/cxgb_t3_hw.c
3665
tp->proto = key[3] & 0xff;
sys/dev/cxgb/common/cxgb_t3_hw.c
3666
tp->vlan = key[3] >> 8;
sys/dev/cxgb/common/cxgb_t3_hw.c
3667
tp->intf = key[3] >> 20;
sys/dev/cxgb/common/cxgb_t3_hw.c
3677
*inverted = key[3] & (1 << 29);
sys/dev/cxgb/common/cxgb_t3_hw.c
3678
*enabled = key[3] & (1 << 28);
sys/dev/cxgb/common/jhash.h
39
static inline u32 jhash(const void *key, u32 length, u32 initval)
sys/dev/cxgb/common/jhash.h
42
const u8 *k = key;
sys/dev/cxgbe/common/common.h
745
void t4_read_rss_key(struct adapter *adapter, u32 *key, bool sleep_ok);
sys/dev/cxgbe/common/common.h
746
void t4_write_rss_key(struct adapter *adap, const u32 *key, int idx,
sys/dev/cxgbe/common/t4_hw.c
7597
void t4_read_rss_key(struct adapter *adap, u32 *key, bool sleep_ok)
sys/dev/cxgbe/common/t4_hw.c
7599
t4_tp_pio_read(adap, key, 10, A_TP_RSS_SECRET_KEY0, sleep_ok);
sys/dev/cxgbe/common/t4_hw.c
7613
void t4_write_rss_key(struct adapter *adap, const u32 *key, int idx,
sys/dev/cxgbe/common/t4_hw.c
7628
t4_tp_pio_write(adap, key, 10, A_TP_RSS_SECRET_KEY0, sleep_ok);
sys/dev/cxgbe/crypto/t4_crypto.c
1050
memcpy(crwr->key_ctx.key, s->cipher.enckey,
sys/dev/cxgbe/crypto/t4_crypto.c
1053
memcpy(crwr->key_ctx.key, s->cipher.deckey,
sys/dev/cxgbe/crypto/t4_crypto.c
1057
memcpy(crwr->key_ctx.key, s->cipher.enckey,
sys/dev/cxgbe/crypto/t4_crypto.c
1062
memcpy(crwr->key_ctx.key, s->cipher.enckey + key_half,
sys/dev/cxgbe/crypto/t4_crypto.c
1065
memcpy(crwr->key_ctx.key + key_half,
sys/dev/cxgbe/crypto/t4_crypto.c
1068
memcpy(crwr->key_ctx.key + key_half,
sys/dev/cxgbe/crypto/t4_crypto.c
1073
dst = crwr->key_ctx.key + roundup2(s->cipher.key_len, 16);
sys/dev/cxgbe/crypto/t4_crypto.c
1343
memcpy(crwr->key_ctx.key, s->cipher.enckey, s->cipher.key_len);
sys/dev/cxgbe/crypto/t4_crypto.c
1344
dst = crwr->key_ctx.key + roundup2(s->cipher.key_len, 16);
sys/dev/cxgbe/crypto/t4_crypto.c
1690
memcpy(crwr->key_ctx.key, s->cipher.enckey, s->cipher.key_len);
sys/dev/cxgbe/crypto/t4_crypto.c
1691
memcpy(crwr->key_ctx.key + roundup(s->cipher.key_len, 16),
sys/dev/cxgbe/crypto/t4_crypto.c
2089
ccr_aes_setkey(struct ccr_session *s, const void *key, int klen)
sys/dev/cxgbe/crypto/t4_crypto.c
2113
memcpy(s->cipher.enckey, key, s->cipher.key_len);
sys/dev/cxgbe/crypto/t4_crypto.c
2117
t4_aes_getdeckey(s->cipher.deckey, key, kbits);
sys/dev/cxgbe/crypto/t4_crypto.c
573
memcpy(crwr->key_ctx.key, s->hmac.pads, kctx_len);
sys/dev/cxgbe/crypto/t4_crypto.c
742
memcpy(crwr->key_ctx.key, s->cipher.enckey,
sys/dev/cxgbe/crypto/t4_crypto.c
745
memcpy(crwr->key_ctx.key, s->cipher.deckey,
sys/dev/cxgbe/crypto/t4_crypto.c
749
memcpy(crwr->key_ctx.key, s->cipher.enckey,
sys/dev/cxgbe/crypto/t4_crypto.c
754
memcpy(crwr->key_ctx.key, s->cipher.enckey + key_half,
sys/dev/cxgbe/crypto/t4_crypto.c
757
memcpy(crwr->key_ctx.key + key_half,
sys/dev/cxgbe/crypto/t4_crypto.c
760
memcpy(crwr->key_ctx.key + key_half,
sys/dev/cxgbe/crypto/t4_crypto.h
43
unsigned char key[0];
sys/dev/cxgbe/crypto/t4_keyctx.c
298
t4_init_gmac_hash(const char *key, int klen, char *ghash)
sys/dev/cxgbe/crypto/t4_keyctx.c
304
rounds = rijndaelKeySetupEnc(keysched, key, klen * 8);
sys/dev/cxgbe/crypto/t4_keyctx.c
350
const char *key, int klen, char *dst)
sys/dev/cxgbe/crypto/t4_keyctx.c
354
hmac_init_ipad(axf, key, klen, &auth_ctx);
sys/dev/cxgbe/crypto/t4_keyctx.c
359
hmac_init_opad(axf, key, klen, &auth_ctx);
sys/dev/cxgbe/crypto/t4_keyctx.c
658
if (sc->vres.key.size == 0)
sys/dev/cxgbe/cudbg/cudbg_entity.h
411
char *key;
sys/dev/cxgbe/firmware/t4fw_interface.h
4990
} key;
sys/dev/cxgbe/iw_cxgbe/cm.c
1374
memcpy(mpa->key, MPA_KEY_REQ, sizeof(mpa->key));
sys/dev/cxgbe/iw_cxgbe/cm.c
1475
memcpy(mpa->key, MPA_KEY_REP, sizeof(mpa->key));
sys/dev/cxgbe/iw_cxgbe/cm.c
1545
memcpy(mpa->key, MPA_KEY_REP, sizeof(mpa->key));
sys/dev/cxgbe/iw_cxgbe/cm.c
1951
if (memcmp(mpa->key, MPA_KEY_REP, sizeof(mpa->key))) {
sys/dev/cxgbe/iw_cxgbe/cm.c
2260
if (memcmp(mpa->key, MPA_KEY_REQ, sizeof(mpa->key)))
sys/dev/cxgbe/iw_cxgbe/cq.c
1002
mm->key = uresp.key;
sys/dev/cxgbe/iw_cxgbe/cq.c
1007
mm2->key = uresp.gts_key;
sys/dev/cxgbe/iw_cxgbe/cq.c
992
uresp.key = ucontext->key;
sys/dev/cxgbe/iw_cxgbe/cq.c
993
ucontext->key += PAGE_SIZE;
sys/dev/cxgbe/iw_cxgbe/cq.c
994
uresp.gts_key = ucontext->key;
sys/dev/cxgbe/iw_cxgbe/cq.c
995
ucontext->key += PAGE_SIZE;
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
507
u32 key;
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
520
u32 key;
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
525
u32 key, unsigned len)
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
534
if (mm->key == key && mm->len == len) {
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
538
__func__, key, (unsigned long long) mm->addr,
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
551
CTR4(KTR_IW_CXGBE, "%s key 0x%x addr 0x%llx len %d", __func__, mm->key,
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
694
u8 key[16];
sys/dev/cxgbe/iw_cxgbe/mem.c
196
static atomic_t key;
sys/dev/cxgbe/iw_cxgbe/mem.c
217
*stag = (stag_idx << 8) | (atomic_inc_return(&key) & 0xff);
sys/dev/cxgbe/iw_cxgbe/provider.c
140
uresp.status_page_key = context->key;
sys/dev/cxgbe/iw_cxgbe/provider.c
141
context->key += PAGE_SIZE;
sys/dev/cxgbe/iw_cxgbe/provider.c
149
mm->key = uresp.status_page_key;
sys/dev/cxgbe/iw_cxgbe/provider.c
164
u32 key = vma->vm_pgoff << PAGE_SHIFT;
sys/dev/cxgbe/iw_cxgbe/provider.c
175
vma->vm_pgoff, key, len);
sys/dev/cxgbe/iw_cxgbe/provider.c
186
mm = remove_mmap(ucontext, key, len);
sys/dev/cxgbe/iw_cxgbe/provider.c
189
ucontext, key, len);
sys/dev/cxgbe/iw_cxgbe/qp.c
1844
uresp.sq_key = ucontext->key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1845
ucontext->key += PAGE_SIZE;
sys/dev/cxgbe/iw_cxgbe/qp.c
1846
uresp.rq_key = ucontext->key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1847
ucontext->key += PAGE_SIZE;
sys/dev/cxgbe/iw_cxgbe/qp.c
1848
uresp.sq_db_gts_key = ucontext->key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1849
ucontext->key += PAGE_SIZE;
sys/dev/cxgbe/iw_cxgbe/qp.c
1850
uresp.rq_db_gts_key = ucontext->key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1851
ucontext->key += PAGE_SIZE;
sys/dev/cxgbe/iw_cxgbe/qp.c
1856
sq_key_mm->key = uresp.sq_key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1860
sq_key_mm->key, sq_key_mm->addr,
sys/dev/cxgbe/iw_cxgbe/qp.c
1863
rq_key_mm->key = uresp.rq_key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1867
rq_key_mm->key, rq_key_mm->addr,
sys/dev/cxgbe/iw_cxgbe/qp.c
1870
sq_db_key_mm->key = uresp.sq_db_gts_key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1874
sq_db_key_mm->key, sq_db_key_mm->addr,
sys/dev/cxgbe/iw_cxgbe/qp.c
1877
rq_db_key_mm->key = uresp.rq_db_gts_key;
sys/dev/cxgbe/iw_cxgbe/qp.c
1881
rq_db_key_mm->key, rq_db_key_mm->addr,
sys/dev/cxgbe/iw_cxgbe/qp.c
727
wqe->fr.stag = cpu_to_be32(wr->key);
sys/dev/cxgbe/iw_cxgbe/user.h
47
__u64 key;
sys/dev/cxgbe/offload.h
192
struct t4_range key;
sys/dev/cxgbe/t4_main.c
1664
if (sc->vres.key.size != 0)
sys/dev/cxgbe/t4_main.c
1665
sc->key_map = vmem_create("T4TLS key map", sc->vres.key.start,
sys/dev/cxgbe/t4_main.c
1666
sc->vres.key.size, 32, 0, M_FIRSTFIT | M_WAITOK);
sys/dev/cxgbe/t4_main.c
2419
COMPARE_PARAM(vres.key.start, key_start);
sys/dev/cxgbe/t4_main.c
2420
COMPARE_PARAM(vres.key.size, key_size);
sys/dev/cxgbe/t4_main.c
5991
sc->vres.key.start = val[0];
sys/dev/cxgbe/t4_main.c
5992
sc->vres.key.size = val[1] - val[0] + 1;
sys/dev/cxgbe/tom/t4_listen.c
395
listen_hashfn(void *key, u_long mask)
sys/dev/cxgbe/tom/t4_listen.c
398
return (fnv_32_buf(&key, sizeof(key), FNV1_32_INIT) & mask);
sys/dev/cxgbe/tom/t4_tls.c
1238
key_offset = toep->tls.rx_key_addr - sc->vres.key.start;
sys/dev/cxgbe/tom/t4_tom_l2t.c
75
const void *key;
sys/dev/cxgbe/tom/t4_tom_l2t.c
85
key = &sin->sin_addr;
sys/dev/cxgbe/tom/t4_tom_l2t.c
90
key = &sin6->sin6_addr;
sys/dev/cxgbe/tom/t4_tom_l2t.c
95
hash = fnv_32_buf(key, len, FNV1_32_INIT);
sys/dev/dpaa2/dpaa2_ni.c
3456
uint64_t key = 0;
sys/dev/dpaa2/dpaa2_ni.c
3465
key |= dist_fields[i].id;
sys/dev/dpaa2/dpaa2_ni.c
3469
return (dpaa2_ni_set_dist_key(dev, DPAA2_NI_DIST_MODE_HASH, key));
sys/dev/dpaa2/dpaa2_ni.c
3485
struct dpkg_extract *key;
sys/dev/dpaa2/dpaa2_ni.c
3499
key = &cls_cfg.extracts[cls_cfg.num_extracts];
sys/dev/dpaa2/dpaa2_ni.c
3511
key->type = DPKG_EXTRACT_FROM_HDR;
sys/dev/dpaa2/dpaa2_ni.c
3512
key->extract.from_hdr.prot = dist_fields[i].cls_prot;
sys/dev/dpaa2/dpaa2_ni.c
3513
key->extract.from_hdr.type = DPKG_FULL_FIELD;
sys/dev/dpaa2/dpaa2_ni.c
3514
key->extract.from_hdr.field = dist_fields[i].cls_field;
sys/dev/drm2/drm_auth.c
89
entry->hash_item.key = (unsigned long)magic;
sys/dev/drm2/drm_bufs.c
164
hash->key = user_token >> PAGE_SHIFT;
sys/dev/drm2/drm_bufs.c
444
list->user_token = list->hash.key << PAGE_SHIFT;
sys/dev/drm2/drm_gem.c
254
free_unr(mm->idxunr, list->key);
sys/dev/drm2/drm_gem.c
269
obj->map_list.key = alloc_unr(mm->idxunr);
sys/dev/drm2/drm_gem.c
273
free_unr(mm->idxunr, obj->map_list.key);
sys/dev/drm2/drm_hashtab.c
101
if (entry->key == key)
sys/dev/drm2/drm_hashtab.c
103
if (entry->key > key)
sys/dev/drm2/drm_hashtab.c
131
item->key = (unshifted_key << shift) + add;
sys/dev/drm2/drm_hashtab.c
145
int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key,
sys/dev/drm2/drm_hashtab.c
150
entry = drm_ht_find_key(ht, key);
sys/dev/drm2/drm_hashtab.c
159
int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key)
sys/dev/drm2/drm_hashtab.c
163
entry = drm_ht_find_key(ht, key);
sys/dev/drm2/drm_hashtab.c
57
void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key)
sys/dev/drm2/drm_hashtab.c
64
hashed_key = hash32_buf(&key, sizeof(key), ht->order);
sys/dev/drm2/drm_hashtab.c
65
DRM_DEBUG("Key is 0x%08lx, Hashed key is 0x%08x\n", key, hashed_key);
sys/dev/drm2/drm_hashtab.c
68
DRM_DEBUG("count %d, key: 0x%08lx\n", count++, entry->key);
sys/dev/drm2/drm_hashtab.c
72
unsigned long key)
sys/dev/drm2/drm_hashtab.c
78
hashed_key = hash32_buf(&key, sizeof(key), ht->order);
sys/dev/drm2/drm_hashtab.c
81
if (entry->key == key)
sys/dev/drm2/drm_hashtab.c
83
if (entry->key > key)
sys/dev/drm2/drm_hashtab.c
95
unsigned long key = item->key;
sys/dev/drm2/drm_hashtab.c
97
hashed_key = hash32_buf(&key, sizeof(key), ht->order);
sys/dev/drm2/drm_hashtab.h
44
unsigned long key;
sys/dev/drm2/drm_hashtab.h
59
extern int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **item);
sys/dev/drm2/drm_hashtab.h
61
extern void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key);
sys/dev/drm2/drm_hashtab.h
62
extern int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key);
sys/dev/drm2/ttm/ttm_lock.c
315
lock->base.hash.key, TTM_REF_USAGE);
sys/dev/drm2/ttm/ttm_object.c
224
uint32_t key)
sys/dev/drm2/ttm/ttm_object.c
232
ret = drm_ht_find_item(&tdev->object_hash, key, &hash);
sys/dev/drm2/ttm/ttm_object.c
270
ret = drm_ht_find_item(ht, base->hash.key, &hash);
sys/dev/drm2/ttm/ttm_object.c
285
ref->hash.key = base->hash.key;
sys/dev/drm2/ttm/ttm_object.c
335
unsigned long key, enum ttm_ref_type ref_type)
sys/dev/drm2/ttm/ttm_object.c
343
ret = drm_ht_find_item(ht, key, &hash);
sys/dev/drm2/ttm/ttm_object.h
169
*tfile, uint32_t key);
sys/dev/drm2/ttm/ttm_object.h
216
unsigned long key,
sys/dev/e1000/if_em.h
586
#define EM_RSSRK_VAL(key, i) (key[(i) * EM_RSSRK_SIZE] | \
sys/dev/e1000/if_em.h
587
key[(i) * EM_RSSRK_SIZE + 1] << 8 | \
sys/dev/e1000/if_em.h
588
key[(i) * EM_RSSRK_SIZE + 2] << 16 | \
sys/dev/e1000/if_em.h
589
key[(i) * EM_RSSRK_SIZE + 3] << 24)
sys/dev/ena/ena_rss.c
43
ena_rss_key_fill(void *key, size_t size)
sys/dev/ena/ena_rss.c
56
memcpy(key, default_key, size);
sys/dev/ena/ena_rss.c
63
ena_rss_reorder_hash_key(u8 *reordered_key, const u8 *key, size_t key_size)
sys/dev/ena/ena_rss.c
67
key = key + key_size - 1;
sys/dev/ena/ena_rss.c
70
*reordered_key++ = *key--;
sys/dev/ena/ena_rss.c
74
ena_rss_set_hash(struct ena_com_dev *ena_dev, const u8 *key)
sys/dev/ena/ena_rss.c
79
ena_rss_reorder_hash_key(hw_key, key, ENA_HASH_KEY_SIZE);
sys/dev/ena/ena_rss.c
86
ena_rss_get_hash_key(struct ena_com_dev *ena_dev, u8 *key)
sys/dev/ena/ena_rss.c
95
ena_rss_reorder_hash_key(key, hw_key, ENA_HASH_KEY_SIZE);
sys/dev/ena/ena_rss.h
50
int ena_rss_set_hash(struct ena_com_dev *ena_dev, const u8 *key);
sys/dev/ena/ena_rss.h
51
int ena_rss_get_hash_key(struct ena_com_dev *ena_dev, u8 *key);
sys/dev/enic/vnic_rss.h
14
} key[4];
sys/dev/evdev/evdev.c
1145
evdev_start_repeat(struct evdev_dev *evdev, uint16_t key)
sys/dev/evdev/evdev.c
1151
evdev->ev_rep_key = key;
sys/dev/firewire/firewire.c
1490
if ((reg[i].key & CSRTYPE_MASK) == CSRTYPE_D)
sys/dev/firewire/firewire.c
1492
else if ((reg[i].key & CSRTYPE_MASK) == CSRTYPE_L)
sys/dev/firewire/fwcrom.c
110
if ((reg->key & CSRTYPE_MASK) == CSRTYPE_D) {
sys/dev/firewire/fwcrom.c
143
crom_search_key(struct crom_context *cc, uint8_t key)
sys/dev/firewire/fwcrom.c
149
if (reg->key == key)
sys/dev/firewire/fwcrom.c
168
if (reg->key == CSRKEY_SPEC && reg->val == spec)
sys/dev/firewire/fwcrom.c
173
if (reg->key == CSRKEY_VER && reg->val == ver)
sys/dev/firewire/fwcrom.c
196
if (reg->key != CROM_TEXTLEAF ||
sys/dev/firewire/fwcrom.c
303
switch (reg->key & CSRTYPE_MASK) {
sys/dev/firewire/fwcrom.c
327
switch (reg->key) {
sys/dev/firewire/fwcrom.c
406
crom_add_entry(struct crom_chunk *chunk, int key, int val)
sys/dev/firewire/fwcrom.c
414
foo.reg.key = key;
sys/dev/firewire/fwcrom.c
421
struct crom_chunk *child, int key)
sys/dev/firewire/fwcrom.c
430
index = crom_add_entry(parent, key, 0);
sys/dev/firewire/fwohci.c
2385
int i, key;
sys/dev/firewire/fwohci.c
2408
key = cmd & OHCI_KEY_MASK;
sys/dev/firewire/fwohci.c
2435
if (key == OHCI_KEY_ST2) {
sys/dev/firewire/fwohci.c
2442
if (key == OHCI_KEY_DEVICE) {
sys/dev/firewire/fwohci.c
2457
if (key == OHCI_KEY_ST2) {
sys/dev/firewire/iec13213.h
128
uint32_t key:8,
sys/dev/firewire/iec13213.h
132
key:8;
sys/dev/glxsb/glxsb.c
556
uint32_t pdst, const void *key, int len, const void *iv)
sys/dev/glxsb/glxsb.c
583
bus_write_region_4(sc->sc_sr, SB_WKEY, key, 4);
sys/dev/glxsb/glxsb.c
626
const void *key;
sys/dev/glxsb/glxsb.c
662
key = crp->crp_cipher_key;
sys/dev/glxsb/glxsb.c
664
key = ses->ses_key;
sys/dev/glxsb/glxsb.c
674
error = glxsb_aes(sc, control, op_psrc, op_pdst, key, len,
sys/dev/glxsb/glxsb_hash.c
50
glxsb_hash_key_setup(struct glxsb_session *ses, const char *key, int klen)
sys/dev/glxsb/glxsb_hash.c
55
hmac_init_ipad(axf, key, klen, ses->ses_ictx);
sys/dev/glxsb/glxsb_hash.c
56
hmac_init_opad(axf, key, klen, ses->ses_octx);
sys/dev/gpio/gpiokeys.c
166
gpiokeys_put_key(struct gpiokeys_softc *sc, uint32_t key)
sys/dev/gpio/gpiokeys.c
172
sc->sc_input[sc->sc_inputtail] = key;
sys/dev/gpio/gpiokeys.c
184
gpiokeys_key_event(struct gpiokeys_softc *sc, struct gpiokey *key, int pressed)
sys/dev/gpio/gpiokeys.c
190
if (key->evcode != GPIOKEY_NONE &&
sys/dev/gpio/gpiokeys.c
192
evdev_push_key(sc->sc_evdev, key->evcode, pressed);
sys/dev/gpio/gpiokeys.c
200
if (key->keycode != GPIOKEY_NONE) {
sys/dev/gpio/gpiokeys.c
201
code = key->keycode & SCAN_KEYCODE_MASK;
sys/dev/gpio/gpiokeys.c
205
if (key->keycode & SCAN_PREFIX_E0)
sys/dev/gpio/gpiokeys.c
207
else if (key->keycode & SCAN_PREFIX_E1)
sys/dev/gpio/gpiokeys.c
214
if (key->keycode != GPIOKEY_NONE)
sys/dev/gpio/gpiokeys.c
221
struct gpiokey *key;
sys/dev/gpio/gpiokeys.c
223
key = arg;
sys/dev/gpio/gpiokeys.c
225
gpiokeys_key_event(key->parent_sc, key, 1);
sys/dev/gpio/gpiokeys.c
227
callout_reset(&key->repeat_callout, key->repeat,
sys/dev/gpio/gpiokeys.c
228
gpiokey_autorepeat, key);
sys/dev/gpio/gpiokeys.c
234
struct gpiokey *key;
sys/dev/gpio/gpiokeys.c
237
key = arg;
sys/dev/gpio/gpiokeys.c
239
gpio_pin_is_active(key->pin, &active);
sys/dev/gpio/gpiokeys.c
241
gpiokeys_key_event(key->parent_sc, key, 1);
sys/dev/gpio/gpiokeys.c
242
if (key->autorepeat) {
sys/dev/gpio/gpiokeys.c
243
callout_reset(&key->repeat_callout, key->repeat_delay,
sys/dev/gpio/gpiokeys.c
244
gpiokey_autorepeat, key);
sys/dev/gpio/gpiokeys.c
248
if (key->autorepeat &&
sys/dev/gpio/gpiokeys.c
249
callout_pending(&key->repeat_callout))
sys/dev/gpio/gpiokeys.c
250
callout_stop(&key->repeat_callout);
sys/dev/gpio/gpiokeys.c
251
gpiokeys_key_event(key->parent_sc, key, 0);
sys/dev/gpio/gpiokeys.c
258
struct gpiokey *key;
sys/dev/gpio/gpiokeys.c
261
key = arg;
sys/dev/gpio/gpiokeys.c
263
GPIOKEY_LOCK(key);
sys/dev/gpio/gpiokeys.c
264
debounce_ticks = (hz * key->debounce_interval) / 1000;
sys/dev/gpio/gpiokeys.c
267
if (!callout_pending(&key->debounce_callout))
sys/dev/gpio/gpiokeys.c
268
callout_reset(&key->debounce_callout, debounce_ticks,
sys/dev/gpio/gpiokeys.c
269
gpiokey_debounced_intr, key);
sys/dev/gpio/gpiokeys.c
270
GPIOKEY_UNLOCK(key);
sys/dev/gpio/gpiokeys.c
275
struct gpiokey *key)
sys/dev/gpio/gpiokeys.c
283
GPIOKEY_LOCK_INIT(key);
sys/dev/gpio/gpiokeys.c
284
key->parent_sc = sc;
sys/dev/gpio/gpiokeys.c
285
callout_init_mtx(&key->debounce_callout, &key->mtx, 0);
sys/dev/gpio/gpiokeys.c
286
callout_init_mtx(&key->repeat_callout, &key->mtx, 0);
sys/dev/gpio/gpiokeys.c
297
key->autorepeat = OF_hasprop(node, "autorepeat");
sys/dev/gpio/gpiokeys.c
299
key->repeat_delay = (hz * AUTOREPEAT_DELAY) / 1000;
sys/dev/gpio/gpiokeys.c
300
if (key->repeat_delay == 0)
sys/dev/gpio/gpiokeys.c
301
key->repeat_delay = 1;
sys/dev/gpio/gpiokeys.c
303
key->repeat = (hz * AUTOREPEAT_REPEAT) / 1000;
sys/dev/gpio/gpiokeys.c
304
if (key->repeat == 0)
sys/dev/gpio/gpiokeys.c
305
key->repeat = 1;
sys/dev/gpio/gpiokeys.c
308
key->debounce_interval = fdt32_to_cpu(prop);
sys/dev/gpio/gpiokeys.c
310
key->debounce_interval = 5;
sys/dev/gpio/gpiokeys.c
313
key->keycode = fdt32_to_cpu(prop);
sys/dev/gpio/gpiokeys.c
316
key->keycode = gpiokey_map_linux_code(code);
sys/dev/gpio/gpiokeys.c
317
if (key->keycode == GPIOKEY_NONE)
sys/dev/gpio/gpiokeys.c
321
key->evcode = code;
sys/dev/gpio/gpiokeys.c
329
err = gpio_pin_get_by_ofw_idx(sc->sc_dev, node, 0, &key->pin);
sys/dev/gpio/gpiokeys.c
337
key->irq_res = gpio_alloc_intr_resource(sc->sc_dev, key->irq_rid,
sys/dev/gpio/gpiokeys.c
338
RF_ACTIVE, key->pin, GPIO_INTR_EDGE_BOTH);
sys/dev/gpio/gpiokeys.c
339
if (!key->irq_res) {
sys/dev/gpio/gpiokeys.c
341
gpio_pin_release(key->pin);
sys/dev/gpio/gpiokeys.c
342
key->pin = NULL;
sys/dev/gpio/gpiokeys.c
348
if (bus_setup_intr(sc->sc_dev, key->irq_res, INTR_TYPE_MISC | INTR_MPSAFE,
sys/dev/gpio/gpiokeys.c
349
NULL, gpiokey_intr, key,
sys/dev/gpio/gpiokeys.c
350
&key->intr_hl) != 0) {
sys/dev/gpio/gpiokeys.c
352
bus_release_resource(sc->sc_dev, SYS_RES_IRQ, key->irq_rid,
sys/dev/gpio/gpiokeys.c
353
key->irq_res);
sys/dev/gpio/gpiokeys.c
354
gpio_pin_release(key->pin);
sys/dev/gpio/gpiokeys.c
355
key->pin = NULL;
sys/dev/gpio/gpiokeys.c
356
key->irq_res = NULL;
sys/dev/gpio/gpiokeys.c
364
"repeat=%d, repeat_delay=%d\n", key_name, key->keycode,
sys/dev/gpio/gpiokeys.c
365
key->autorepeat, key->repeat, key->repeat_delay);
sys/dev/gpio/gpiokeys.c
372
gpiokeys_detach_key(struct gpiokeys_softc *sc, struct gpiokey *key)
sys/dev/gpio/gpiokeys.c
375
GPIOKEY_LOCK(key);
sys/dev/gpio/gpiokeys.c
376
if (key->intr_hl)
sys/dev/gpio/gpiokeys.c
377
bus_teardown_intr(sc->sc_dev, key->irq_res, key->intr_hl);
sys/dev/gpio/gpiokeys.c
378
if (key->irq_res)
sys/dev/gpio/gpiokeys.c
380
key->irq_rid, key->irq_res);
sys/dev/gpio/gpiokeys.c
381
if (callout_pending(&key->repeat_callout))
sys/dev/gpio/gpiokeys.c
382
callout_drain(&key->repeat_callout);
sys/dev/gpio/gpiokeys.c
383
if (callout_pending(&key->debounce_callout))
sys/dev/gpio/gpiokeys.c
384
callout_drain(&key->debounce_callout);
sys/dev/gpio/gpiokeys.c
385
if (key->pin)
sys/dev/gpio/gpiokeys.c
386
gpio_pin_release(key->pin);
sys/dev/gpio/gpiokeys.c
387
GPIOKEY_UNLOCK(key);
sys/dev/gpio/gpiokeys.c
388
GPIOKEY_LOCK_DESTROY(key);
sys/dev/hid/appleir.c
115
uint16_t key; /* evdev KEY_* */
sys/dev/hid/appleir.c
137
return (generic_keymap[i].key);
sys/dev/hid/appleir.c
376
evdev_support_key(sc->sc_evdev, generic_keymap[i].key);
sys/dev/hid/hidmap.c
129
hidmap_support_key(struct hidmap *hm, uint16_t key)
sys/dev/hid/hidmap.c
135
hm->key_min = key;
sys/dev/hid/hidmap.c
136
hm->key_max = key;
sys/dev/hid/hidmap.c
138
hm->key_min = MIN(hm->key_min, key);
sys/dev/hid/hidmap.c
139
hm->key_max = MAX(hm->key_max, key);
sys/dev/hid/hidmap.c
140
if (isset(hm->key_press, key)) {
sys/dev/hid/hidmap.c
145
setbit(hm->key_press, key);
sys/dev/hid/hidmap.c
146
evdev_support_key(hm->evdev, key);
sys/dev/hid/hidmap.c
151
hidmap_push_key(struct hidmap *hm, uint16_t key, int32_t value)
sys/dev/hid/hidmap.c
154
setbit(value != 0 ? hm->key_press : hm->key_rel, key);
sys/dev/hid/hidmap.c
156
evdev_push_key(hm->evdev, key, value);
sys/dev/hid/hidmap.c
187
uint16_t key, uoff;
sys/dev/hid/hidmap.c
270
key = KEY_RESERVED;
sys/dev/hid/hidmap.c
282
key = hi->codes[data - hi->lmin];
sys/dev/hid/hidmap.c
283
if (key == KEY_RESERVED)
sys/dev/hid/hidmap.c
289
key = KEY_RESERVED;
sys/dev/hid/hidmap.c
307
key = mi->code;
sys/dev/hid/hidmap.c
316
if (key == HIDMAP_KEY_NULL || key == hi->last_key)
sys/dev/hid/hidmap.c
320
if (key != KEY_RESERVED)
sys/dev/hid/hidmap.c
321
hidmap_push_key(hm, key, 1);
sys/dev/hid/hidmap.c
322
hi->last_key = key;
sys/dev/hid/hidmap.h
251
void hidmap_support_key(struct hidmap *hm, uint16_t key);
sys/dev/hid/hidmap.h
252
void hidmap_push_key(struct hidmap *hm, uint16_t key, int32_t value);
sys/dev/hid/hkbd.c
123
#define HKBD_KEY_PRESSED(map, key) ({ \
sys/dev/hid/hkbd.c
124
CTASSERT((key) >= 0 && (key) < HKBD_NKEYCODE); \
sys/dev/hid/hkbd.c
125
bit_test(map, key); \
sys/dev/hid/hkbd.c
357
hkbd_is_modifier_key(uint32_t key)
sys/dev/hid/hkbd.c
360
return (key >= MOD_MIN && key <= MOD_MAX);
sys/dev/hid/hkbd.c
390
hkbd_put_key(struct hkbd_softc *sc, uint32_t key)
sys/dev/hid/hkbd.c
396
DPRINTF("0x%02x (%d) %s\n", key, key,
sys/dev/hid/hkbd.c
397
(key & KEY_RELEASE) ? "released" : "pressed");
sys/dev/hid/hkbd.c
402
evdev_hid2key(KEY_INDEX(key)), !(key & KEY_RELEASE));
sys/dev/hid/hkbd.c
409
sc->sc_input[sc->sc_inputtail] = key;
sys/dev/hid/hkbd.c
494
unsigned key;
sys/dev/hid/hkbd.c
508
bit_foreach(sc->sc_odata, HKBD_NKEYCODE, key) {
sys/dev/hid/hkbd.c
509
if (hkbd_is_modifier_key(key) || bit_test(sc->sc_ndata, key))
sys/dev/hid/hkbd.c
511
hkbd_put_key(sc, key | KEY_RELEASE);
sys/dev/hid/hkbd.c
514
if (sc->sc_repeat_key == key)
sys/dev/hid/hkbd.c
517
bit_foreach_at(sc->sc_odata, MOD_MIN, MOD_MAX + 1, key)
sys/dev/hid/hkbd.c
518
if (!bit_test(sc->sc_ndata, key))
sys/dev/hid/hkbd.c
519
hkbd_put_key(sc, key | KEY_RELEASE);
sys/dev/hid/hkbd.c
520
bit_foreach_at(sc->sc_ndata, MOD_MIN, MOD_MAX + 1, key)
sys/dev/hid/hkbd.c
521
if (!bit_test(sc->sc_odata, key))
sys/dev/hid/hkbd.c
522
hkbd_put_key(sc, key | KEY_PRESS);
sys/dev/hid/hkbd.c
523
bit_foreach(sc->sc_ndata, HKBD_NKEYCODE, key) {
sys/dev/hid/hkbd.c
524
if (hkbd_is_modifier_key(key) || bit_test(sc->sc_odata, key))
sys/dev/hid/hkbd.c
526
hkbd_put_key(sc, key | KEY_PRESS);
sys/dev/hid/hkbd.c
528
if (key != APPLE_FN_KEY) {
sys/dev/hid/hkbd.c
534
sc->sc_repeat_key = key;
sys/dev/hid/hkbd.c
752
uint32_t key =
sys/dev/hid/hkbd.c
756
if (key == KEY_ERROR) {
sys/dev/hid/hkbd.c
765
key = hkbd_apple_fn(key);
sys/dev/hid/hkbd.c
767
key = hkbd_apple_fn_media(key);
sys/dev/hid/hkbd.c
769
key = hkbd_apple_swap(key);
sys/dev/hid/hkbd.c
770
if (key == KEY_NONE || key >= HKBD_NKEYCODE)
sys/dev/hid/hkbd.c
773
bit_set(sc->sc_ndata, key);
sys/dev/hid/hkbd.c
774
bit_set(sc->sc_ndata0, key);
sys/dev/hid/hkbd.c
777
uint32_t key = i;
sys/dev/hid/hkbd.c
780
key = hkbd_apple_fn(key);
sys/dev/hid/hkbd.c
782
key = hkbd_apple_fn_media(key);
sys/dev/hid/hkbd.c
784
key = hkbd_apple_swap(key);
sys/dev/hid/hkbd.c
785
if (key == KEY_NONE || key == KEY_ERROR || key >= HKBD_NKEYCODE)
sys/dev/hid/hkbd.c
788
bit_set(sc->sc_ndata, key);
sys/dev/hid/hkbd.c
830
uint32_t key;
sys/dev/hid/hkbd.c
894
for (key = 1; key != HKBD_NKEYCODE; key++) {
sys/dev/hid/hkbd.c
896
HID_USAGE2(HUP_KEYBOARD, key),
sys/dev/hid/hkbd.c
897
hid_input, tlc_index, 0, &sc->sc_loc_key[key], &flags,
sys/dev/hid/hkbd.c
898
&sc->sc_id_loc_key[key], NULL)) {
sys/dev/hid/hkbd.c
900
bit_set(sc->sc_loc_key_valid, key);
sys/dev/hid/hkbd.c
901
DPRINTFN(1, "Found key 0x%02x\n", key);
sys/dev/hyperv/utilities/hv_kvp.c
412
umsg->body.kvp_set.data.key,
sys/dev/hyperv/utilities/hv_kvp.c
414
(uint16_t *)hmsg->body.kvp_set.data.key,
sys/dev/hyperv/utilities/hv_kvp.c
425
utf16_to_utf8(umsg->body.kvp_get.data.key,
sys/dev/hyperv/utilities/hv_kvp.c
427
(uint16_t *)hmsg->body.kvp_get.data.key,
sys/dev/hyperv/utilities/hv_kvp.c
437
utf16_to_utf8(umsg->body.kvp_delete.key,
sys/dev/hyperv/utilities/hv_kvp.c
439
(uint16_t *)hmsg->body.kvp_delete.key,
sys/dev/hyperv/utilities/hv_kvp.c
482
key_name = umsg->body.kvp_enum_data.data.key;
sys/dev/hyperv/utilities/hv_kvp.c
483
hkey_len = utf8_to_utf16((uint16_t *)host_exchg_data->key,
sys/dev/hyperv/utilities/hv_kvp.h
176
uint8_t key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
sys/dev/hyperv/utilities/hv_kvp.h
199
uint8_t key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
sys/dev/iavf/iavf_common.c
490
struct iavf_aqc_get_set_rss_key_data *key,
sys/dev/iavf/iavf_common.c
516
status = iavf_asq_send_command(hw, &desc, key, key_size, NULL);
sys/dev/iavf/iavf_common.c
530
struct iavf_aqc_get_set_rss_key_data *key)
sys/dev/iavf/iavf_common.c
532
return iavf_aq_get_set_rss_key(hw, vsi_id, key, false);
sys/dev/iavf/iavf_common.c
545
struct iavf_aqc_get_set_rss_key_data *key)
sys/dev/iavf/iavf_common.c
547
return iavf_aq_get_set_rss_key(hw, vsi_id, key, true);
sys/dev/iavf/iavf_lib.c
70
iavf_get_default_rss_key(u32 *key)
sys/dev/iavf/iavf_lib.c
72
MPASS(key != NULL);
sys/dev/iavf/iavf_lib.c
80
bcopy(rss_seed, key, IAVF_RSS_KEY_SIZE);
sys/dev/iavf/iavf_lib.h
432
void iavf_get_default_rss_key(u32 *key);
sys/dev/iavf/iavf_prototype.h
84
struct iavf_aqc_get_set_rss_key_data *key);
sys/dev/iavf/iavf_prototype.h
87
struct iavf_aqc_get_set_rss_key_data *key);
sys/dev/iavf/iavf_vc_common.c
715
bcopy(rss_seed, &rss_key_msg->key[0], key_length);
sys/dev/iavf/virtchnl.h
542
u8 key[1]; /* RSS hash key, packed bytes */
sys/dev/ice/ice_common.c
4510
struct ice_aqc_get_set_rss_keys *key,
sys/dev/ice/ice_common.c
4514
u16 key_size = sizeof(*key);
sys/dev/ice/ice_common.c
4531
return ice_aq_send_cmd(hw, &desc, key, key_size, NULL);
sys/dev/ice/ice_common.c
4544
struct ice_aqc_get_set_rss_keys *key)
sys/dev/ice/ice_common.c
4546
if (!ice_is_vsi_valid(hw, vsi_handle) || !key)
sys/dev/ice/ice_common.c
4550
key, false);
sys/dev/ice/ice_flex_pipe.c
197
ice_gen_key_word(u8 val, u8 valid, u8 dont_care, u8 nvr_mtch, u8 *key,
sys/dev/ice/ice_flex_pipe.c
200
u8 in_key = *key, in_key_inv = *key_inv;
sys/dev/ice/ice_flex_pipe.c
207
*key = 0;
sys/dev/ice/ice_flex_pipe.c
212
*key >>= 1;
sys/dev/ice/ice_flex_pipe.c
2150
u8 key[ICE_TCAM_KEY_SZ])
sys/dev/ice/ice_flex_pipe.c
216
*key |= (in_key & 0x1) << 7;
sys/dev/ice/ice_flex_pipe.c
2184
return ice_set_key(key, ICE_TCAM_KEY_SZ, (u8 *)&inkey, vl_msk, dc_msk,
sys/dev/ice/ice_flex_pipe.c
219
*key |= ICE_DC_KEY << 7;
sys/dev/ice/ice_flex_pipe.c
2213
dc_msk, nm_msk, hw->blk[blk].prof.t[idx].key);
sys/dev/ice/ice_flex_pipe.c
222
*key |= ICE_NM_KEY << 7;
sys/dev/ice/ice_flex_pipe.c
225
*key |= ICE_1_KEY << 7;
sys/dev/ice/ice_flex_pipe.c
228
*key |= ICE_0_KEY << 7;
sys/dev/ice/ice_flex_pipe.c
2345
ice_memcpy(p->entry[0].key,
sys/dev/ice/ice_flex_pipe.c
2346
&hw->blk[blk].prof.t[tmp->tcam_idx].key,
sys/dev/ice/ice_flex_pipe.c
2347
sizeof(hw->blk[blk].prof.t->key),
sys/dev/ice/ice_flex_pipe.c
299
ice_set_key(u8 *key, u16 size, u8 *val, u8 *upd, u8 *dc, u8 *nm, u16 off,
sys/dev/ice/ice_flex_pipe.c
324
key + off + i, key + half_size + off + i))
sys/dev/ice/ice_flex_pipe.c
516
ice_set_key((u8 *)§_rx->tcam[0].key, sizeof(sect_rx->tcam[0].key),
sys/dev/ice/ice_flex_pipe.c
519
sizeof(sect_rx->tcam[0].key.key.hv_dst_port_key));
sys/dev/ice/ice_flex_type.h
176
struct ice_boost_key_value key;
sys/dev/ice/ice_flex_type.h
185
struct ice_boost_key key;
sys/dev/ice/ice_flex_type.h
410
u8 key[ICE_TCAM_KEY_SZ];
sys/dev/ice/ice_iov.c
1102
memcpy(&keydata, vrk->key, vrk->key_len);
sys/dev/ice/virtchnl.h
1202
u8 key[1]; /* RSS hash key, packed bytes */
sys/dev/igc/if_igc.h
379
#define IGC_RSSRK_VAL(key, i) (key[(i) * IGC_RSSRK_SIZE] | \
sys/dev/igc/if_igc.h
380
key[(i) * IGC_RSSRK_SIZE + 1] << 8 | \
sys/dev/igc/if_igc.h
381
key[(i) * IGC_RSSRK_SIZE + 2] << 16 | \
sys/dev/igc/if_igc.h
382
key[(i) * IGC_RSSRK_SIZE + 3] << 24)
sys/dev/iommu/iommu_gas.c
939
struct iommu_map_entry *entry, *next, *prev, key = {};
sys/dev/iommu/iommu_gas.c
952
key.start = key.end = start;
sys/dev/iommu/iommu_gas.c
954
next = RB_NFIND(iommu_gas_entries_tree, &domain->rb_root, &key);
sys/dev/ipw/if_ipw.c
2024
memset(wepkey.key, 0, sizeof wepkey.key);
sys/dev/ipw/if_ipw.c
2025
memcpy(wepkey.key, ieee80211_crypto_get_key_data(wk),
sys/dev/ipw/if_ipwreg.h
171
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/dev/ipw/if_ipwreg.h
236
uint8_t key[13];
sys/dev/irdma/irdma_cm.c
1205
if (memcmp(mpa_frame->key, IEFT_MPA_KEY_REQ,
sys/dev/irdma/irdma_cm.c
1212
if (memcmp(mpa_frame->key, IEFT_MPA_KEY_REP,
sys/dev/irdma/irdma_cm.c
2078
u32 key = (rem_port << 16) | loc_port;
sys/dev/irdma/irdma_cm.c
2081
HASH_FOR_EACH_POSSIBLE_RCU(cm_core->cm_hash_tbl, cm_node, list, key) {
sys/dev/irdma/irdma_cm.c
2110
u32 key = (cm_node->rem_port << 16) | cm_node->loc_port;
sys/dev/irdma/irdma_cm.c
2113
HASH_ADD_RCU(cm_core->cm_hash_tbl, &cm_node->list, key);
sys/dev/irdma/irdma_cm.c
927
memcpy(mpa_frame->key, IEFT_MPA_KEY_REQ, IETF_MPA_KEY_SIZE);
sys/dev/irdma/irdma_cm.c
930
memcpy(mpa_frame->key, IEFT_MPA_KEY_REP, IETF_MPA_KEY_SIZE);
sys/dev/irdma/irdma_cm.h
195
u8 key[IETF_MPA_KEY_SIZE];
sys/dev/irdma/irdma_cm.h
208
u8 key[IETF_MPA_KEY_SIZE];
sys/dev/irdma/irdma_verbs.c
2559
stag_info.stag_key = reg_wr(ib_wr)->key & 0xff;
sys/dev/irdma/irdma_verbs.c
2560
stag_info.stag_idx = reg_wr(ib_wr)->key >> 8;
sys/dev/iser/iser_memory.c
185
fastreg_wr.key = mr->rkey;
sys/dev/iwi/if_iwi.c
2538
memset(wepkey.key, 0, sizeof wepkey.key);
sys/dev/iwi/if_iwi.c
2539
memcpy(wepkey.key, ieee80211_crypto_get_key_data(wk),
sys/dev/iwi/if_iwireg.h
533
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/dev/iwm/if_iwmreg.h
5001
uint8_t key[16];
sys/dev/iwm/if_iwmreg.h
6330
uint8_t key[16];
sys/dev/iwm/if_iwmreg.h
6502
uint8_t key[32];
sys/dev/iwm/if_iwmreg.h
6584
uint8_t key[16];
sys/dev/iwm/if_iwmreg.h
6662
uint32_t key;
sys/dev/iwn/if_iwnreg.h
721
uint8_t key[16];
sys/dev/iwn/if_iwnreg.h
757
uint8_t key[16];
sys/dev/iwn/if_iwnreg.h
810
uint8_t key[16];
sys/dev/iwx/if_iwx.c
11083
memcpy(cmd.common.key, ieee80211_crypto_get_key_data(k),
sys/dev/iwx/if_iwx.c
11084
MIN(sizeof(cmd.common.key), ieee80211_crypto_get_key_len(k)));
sys/dev/iwx/if_iwx.c
7935
memcpy(cmd.common.key, k->k_key, MIN(sizeof(cmd.common.key), k->k_len));
sys/dev/iwx/if_iwx.c
8015
memcpy(cmd.common.key, k->k_key, MIN(sizeof(cmd.common.key), k->k_len));
sys/dev/iwx/if_iwxreg.h
7389
uint8_t key[16];
sys/dev/iwx/if_iwxreg.h
7502
uint8_t key[32];
sys/dev/iwx/if_iwxreg.h
7584
uint8_t key[16];
sys/dev/iwx/if_iwxreg.h
7654
uint32_t key;
sys/dev/ixl/i40e_common.c
532
struct i40e_aqc_get_set_rss_key_data *key,
sys/dev/ixl/i40e_common.c
558
status = i40e_asq_send_command(hw, &desc, key, key_size, NULL);
sys/dev/ixl/i40e_common.c
572
struct i40e_aqc_get_set_rss_key_data *key)
sys/dev/ixl/i40e_common.c
574
return i40e_aq_get_set_rss_key(hw, vsi_id, key, FALSE);
sys/dev/ixl/i40e_common.c
587
struct i40e_aqc_get_set_rss_key_data *key)
sys/dev/ixl/i40e_common.c
589
return i40e_aq_get_set_rss_key(hw, vsi_id, key, TRUE);
sys/dev/ixl/i40e_prototype.h
86
struct i40e_aqc_get_set_rss_key_data *key);
sys/dev/ixl/i40e_prototype.h
89
struct i40e_aqc_get_set_rss_key_data *key);
sys/dev/ixl/ixl_pf_iov.c
1264
struct virtchnl_rss_key *key;
sys/dev/ixl/ixl_pf_iov.c
1270
key = msg;
sys/dev/ixl/ixl_pf_iov.c
1272
if (key->key_len > 52) {
sys/dev/ixl/ixl_pf_iov.c
1274
vf->vf_num, key->key_len, 52);
sys/dev/ixl/ixl_pf_iov.c
1280
if (key->vsi_id != vf->vsi.vsi_num) {
sys/dev/ixl/ixl_pf_iov.c
1282
vf->vf_num, key->vsi_id, vf->vsi.vsi_num);
sys/dev/ixl/ixl_pf_iov.c
1291
if (key->key_len <= 40)
sys/dev/ixl/ixl_pf_iov.c
1292
bcopy(key->key, key_data.standard_rss_key, key->key_len);
sys/dev/ixl/ixl_pf_iov.c
1294
bcopy(key->key, key_data.standard_rss_key, 40);
sys/dev/ixl/ixl_pf_iov.c
1295
bcopy(&key->key[40], key_data.extended_hash_key, key->key_len - 40);
sys/dev/ixl/ixl_pf_iov.c
1306
for (int i = 0; i < (key->key_len / 4); i++)
sys/dev/ixl/ixl_pf_iov.c
1307
i40e_write_rx_ctl(hw, I40E_VFQF_HKEY1(i, vf->vf_num), ((u32 *)key->key)[i]);
sys/dev/ixl/ixl_pf_iov.c
1311
vf->vf_num, key->key[0]);
sys/dev/ixl/ixl_txrx.c
103
bcopy(rss_seed, key, IXL_RSS_KEY_SIZE);
sys/dev/ixl/ixl_txrx.c
93
ixl_get_default_rss_key(u32 *key)
sys/dev/ixl/ixl_txrx.c
95
MPASS(key != NULL);
sys/dev/ixl/virtchnl.h
486
u8 key[1]; /* RSS hash key, packed bytes */
sys/dev/kbd/kbd.c
1011
#define RESTRICTED_KEY(key, i) \
sys/dev/kbd/kbd.c
1012
((key->spcl & (0x80 >> i)) && \
sys/dev/kbd/kbd.c
1013
(key->map[i] == RBT || key->map[i] == SUSP || \
sys/dev/kbd/kbd.c
1014
key->map[i] == STBY || key->map[i] == DBG || \
sys/dev/kbd/kbd.c
1015
key->map[i] == PNC || key->map[i] == HALT || \
sys/dev/kbd/kbd.c
1016
key->map[i] == PDWN))
sys/dev/kbd/kbd.c
1062
if ((error = key_change_ok(&oldmap->key[keycode],
sys/dev/kbd/kbd.c
1063
&newmap->key[keycode], td)) != 0)
sys/dev/kbd/kbd.c
1172
save_accent_key(keyboard_t *kbd, u_int key, int *accents)
sys/dev/kbd/kbd.c
1177
i = key - F_ACC + 1;
sys/dev/kbd/kbd.c
1190
key = kbd->kb_accentmap->acc[i - 1].accchar;
sys/dev/kbd/kbd.c
1192
return (key);
sys/dev/kbd/kbd.c
1231
struct keyent_t *key;
sys/dev/kbd/kbd.c
1241
key = &kbd->kb_keymap->key[i];
sys/dev/kbd/kbd.c
1245
if (((key->flgs & FLAG_LOCK_C) && (state & CLKED))
sys/dev/kbd/kbd.c
1246
|| ((key->flgs & FLAG_LOCK_N) && (state & NLKED)) )
sys/dev/kbd/kbd.c
1339
action = key->map[i];
sys/dev/kbd/kbd.c
1341
if (key->spcl & (0x80 >> i)) {
sys/dev/kbd/kbd.c
835
omapp->key[i].map[j] =
sys/dev/kbd/kbd.c
836
mapp->key[i].map[j];
sys/dev/kbd/kbd.c
837
omapp->key[i].spcl = mapp->key[i].spcl;
sys/dev/kbd/kbd.c
838
omapp->key[i].flgs = mapp->key[i].flgs;
sys/dev/kbd/kbd.c
854
mapp->key[i].map[j] =
sys/dev/kbd/kbd.c
855
omapp->key[i].map[j];
sys/dev/kbd/kbd.c
856
mapp->key[i].spcl = omapp->key[i].spcl;
sys/dev/kbd/kbd.c
857
mapp->key[i].flgs = omapp->key[i].flgs;
sys/dev/kbd/kbd.c
884
if (keyp->keynum >= sizeof(kbd->kb_keymap->key) /
sys/dev/kbd/kbd.c
885
sizeof(kbd->kb_keymap->key[0])) {
sys/dev/kbd/kbd.c
888
bcopy(&kbd->kb_keymap->key[keyp->keynum], &keyp->key,
sys/dev/kbd/kbd.c
889
sizeof(keyp->key));
sys/dev/kbd/kbd.c
894
if (keyp->keynum >= sizeof(kbd->kb_keymap->key) /
sys/dev/kbd/kbd.c
895
sizeof(kbd->kb_keymap->key[0])) {
sys/dev/kbd/kbd.c
898
error = key_change_ok(&kbd->kb_keymap->key[keyp->keynum],
sys/dev/kbd/kbd.c
899
&keyp->key, curthread);
sys/dev/kbd/kbd.c
903
bcopy(&keyp->key, &kbd->kb_keymap->key[keyp->keynum],
sys/dev/kbd/kbd.c
904
sizeof(keyp->key));
sys/dev/kbdmux/kbdmux.c
708
uint16_t key = evdev_scancode2key(&state->ks_evdev_state,
sys/dev/kbdmux/kbdmux.c
711
if (key != KEY_RESERVED) {
sys/dev/kbdmux/kbdmux.c
713
key, scancode & 0x80 ? 0 : 1);
sys/dev/liquidio/lio_rss.c
153
rss_getkey(lio->rss_set.key);
sys/dev/liquidio/lio_rss.c
155
memcpy(rss_param->key, (void *)lio->rss_set.key,
sys/dev/liquidio/lio_rss.h
66
uint8_t key[LIO_RSS_KEY_SZ];
sys/dev/liquidio/lio_rss.h
71
uint8_t key[LIO_RSS_KEY_SZ];
sys/dev/mfi/mfivar.h
586
int error, key, asc, ascq;
sys/dev/mfi/mfivar.h
589
&error, &key, &asc, &ascq);
sys/dev/mfi/mfivar.h
591
"asc %d, ascq %d\n", error, key, asc, ascq);
sys/dev/mlx4/device.h
685
u32 key;
sys/dev/mlx4/device.h
697
u32 key;
sys/dev/mlx4/mlx4_core/mlx4.h
306
__be32 key;
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1005
u32 key;
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1014
key = key_to_hw_index(fmr->mr.key);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1015
key += dev->caps.num_mpts;
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1016
*lkey = *rkey = fmr->mr.key = hw_index_to_key(key);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1032
fmr->mpt->key = cpu_to_be32(key);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1033
fmr->mpt->lkey = cpu_to_be32(key);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1102
key_to_hw_index(fmr->mr.key), NULL);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
1129
key_to_hw_index(fmr->mr.key) &
sys/dev/mlx4/mlx4_core/mlx4_mr.c
277
static u32 key_to_hw_index(u32 key)
sys/dev/mlx4/mlx4_core/mlx4_mr.c
279
return (key << 24) | (key >> 8);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
303
int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
309
err = mlx4_HW2SW_MPT(dev, NULL, key);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
321
key, NULL);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
327
err = mlx4_cmd_box(dev, 0, mailbox->dma, key,
sys/dev/mlx4/mlx4_core/mlx4_mr.c
366
int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
372
err = mlx4_SW2HW_MPT(dev, mailbox, key);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
431
mr->key = hw_index_to_key(mridx);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
557
key_to_hw_index(mr->key) &
sys/dev/mlx4/mlx4_core/mlx4_mr.c
580
mlx4_mpt_free_icm(dev, key_to_hw_index(mr->key));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
581
mlx4_mpt_release(dev, key_to_hw_index(mr->key));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
638
err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mr->key), GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
652
mpt_entry->key = cpu_to_be32(key_to_hw_index(mr->key));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
677
key_to_hw_index(mr->key) & (dev->caps.num_mpts - 1));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
692
mlx4_mpt_free_icm(dev, key_to_hw_index(mr->key));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
835
mw->key = hw_index_to_key(index);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
850
err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key), GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_mr.c
864
mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
873
key_to_hw_index(mw->key) &
sys/dev/mlx4/mlx4_core/mlx4_mr.c
889
mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
900
key_to_hw_index(mw->key) &
sys/dev/mlx4/mlx4_core/mlx4_mr.c
908
mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key));
sys/dev/mlx4/mlx4_core/mlx4_mr.c
909
mlx4_mpt_release(dev, key_to_hw_index(mw->key));
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
1031
static struct res_common *alloc_mpt_tr(int id, int key)
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
1041
ret->key = key;
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
157
int key;
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
1870
err = __mlx4_mpt_alloc_icm(dev, mpt->key, GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
2381
index = mpt->key;
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
2398
__mlx4_mpt_free_icm(dev, mpt->key);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
2843
mpt->key, NULL);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
4854
__mlx4_mpt_release(dev, mpt->key);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
4867
__mlx4_mpt_free_icm(dev, mpt->key);
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
1956
const u32 *key;
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
2096
key = mlx4_en_get_rss_key(priv, &ifrk->ifrk_keylen);
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
2100
memcpy(ifrk->ifrk_key, key, ifrk->ifrk_keylen);
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
1035
const u32 *key;
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
1088
key = mlx4_en_get_rss_key(priv, NULL);
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
1090
rss_context->rss_key[i] = key[i];
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
501
ring->rx_mr_key_be = cpu_to_be32(priv->mdev->mr.key);
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
58
rx_desc->data[0].lkey = cpu_to_be32(priv->mdev->mr.key);
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
873
dseg->lkey = cpu_to_be32(priv->mdev->mr.key);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mr.c
176
mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key;
sys/dev/mlx4/mlx4_ib/mlx4_ib_mr.c
363
mw->ibmw.rkey = mw->mmw.key;
sys/dev/mlx4/mlx4_ib/mlx4_ib_mr.c
415
mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key;
sys/dev/mlx4/mlx4_ib/mlx4_ib_mr.c
451
fmr->ibfmr.rkey = fmr->ibfmr.lkey = fmr->mfmr.mr.key;
sys/dev/mlx4/mlx4_ib/mlx4_ib_mr.c
79
mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key;
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2723
fseg->mem_key = cpu_to_be32(wr->key);
sys/dev/mlx5/driver.h
427
u32 key;
sys/dev/mlx5/driver.h
974
static inline u32 mlx5_base_mkey(const u32 key)
sys/dev/mlx5/driver.h
976
return key & 0xffffff00u;
sys/dev/mlx5/mlx5_accel/mlx5_ipsec.c
804
pipsec->mkey = priv->mr.key;
sys/dev/mlx5/mlx5_core/mlx5_crypto.c
51
encryption_key_object.key[4]), p_key, 128 / 8);
sys/dev/mlx5/mlx5_core/mlx5_crypto.c
60
encryption_key_object.key[0]), p_key, 256 / 8);
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
294
if (prio->key.level)
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
314
if (!pos->key.level)
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
330
if (!pos->key.level)
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
395
if (prio < p->key.prio || (prio == p->key.prio &&
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
396
level < p->key.level)) {
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
398
next_ft = p->key.level == 0 ? p->ft : p->next_ft;
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
430
prio_s->key.chain = chain;
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
431
prio_s->key.prio = prio;
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
432
prio_s->key.level = level;
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
513
if (chain == prio_s->key.chain &&
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
514
prio == prio_s->key.prio &&
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
515
level == prio_s->key.level)
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
548
if (chain == prio_s->key.chain &&
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
549
prio == prio_s->key.prio &&
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
550
level == prio_s->key.level)
sys/dev/mlx5/mlx5_core/mlx5_fs_chains.c
60
struct prio_key key;
sys/dev/mlx5/mlx5_core/mlx5_mr.c
102
err = radix_tree_insert(&table->tree, mlx5_mkey_to_idx(mkey->key), mkey);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
106
mkey->key, err);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
132
deleted_mr = radix_tree_delete(&table->tree, mlx5_mkey_to_idx(mkey->key));
sys/dev/mlx5/mlx5_core/mlx5_mr.c
135
mlx5_core_warn(dev, "failed radix tree delete of mr 0x%x\n", mkey->key);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
140
MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key));
sys/dev/mlx5/mlx5_core/mlx5_mr.c
153
MLX5_SET(query_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key));
sys/dev/mlx5/mlx5_core/mlx5_mr.c
65
u8 key;
sys/dev/mlx5/mlx5_core/mlx5_mr.c
68
key = dev->priv.mkey_key++;
sys/dev/mlx5/mlx5_core/mlx5_mr.c
72
MLX5_SET(mkc, mkc, mkey_7_0, key);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
94
mkey->key = mlx5_idx_to_mkey(mkey_index) | key;
sys/dev/mlx5/mlx5_core/mlx5_mr.c
98
mkey_index, key, mkey->key);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
347
MLX5_ADDR_OF(sw_tls_cntx, ptag->crypto_params, key.key_data),
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
348
MLX5_GET(sw_tls_cntx, ptag->crypto_params, key.key_len),
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
418
if (en->cipher_key_len <= MLX5_FLD_SZ_BYTES(sw_tls_cntx, key.key_data)) {
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
419
memcpy(MLX5_ADDR_OF(sw_tls_cntx, ctx, key.key_data),
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
421
MLX5_SET(sw_tls_cntx, ctx, key.key_len, en->cipher_key_len);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
72
} key;
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
576
MLX5_ADDR_OF(sw_tls_rx_cntx, ptag->crypto_params, key.key_data),
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
577
MLX5_GET(sw_tls_rx_cntx, ptag->crypto_params, key.key_len),
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
649
if (en->cipher_key_len <= MLX5_FLD_SZ_BYTES(sw_tls_rx_cntx, key.key_data)) {
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
650
memcpy(MLX5_ADDR_OF(sw_tls_rx_cntx, ctx, key.key_data),
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
652
MLX5_SET(sw_tls_rx_cntx, ctx, key.key_len, en->cipher_key_len);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
78
} key;
sys/dev/mlx5/mlx5_en/mlx5_en_iq.c
201
iq->mkey_be = cpu_to_be32(priv->mr.key);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1308
wqe->data[j].lkey = cpu_to_be32(priv->mr.key);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1739
sq->mkey_be = cpu_to_be32(priv->mr.key);
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
128
sq->mkey_be = cpu_to_be32(priv->mr.key);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_conn.c
1020
mlx5_fpga_dbg(fdev, "Created mkey 0x%x\n", fdev->conn_res.mkey.key);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_conn.c
116
data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key);
sys/dev/mlx5/mlx5_fpga/mlx5fpga_conn.c
156
data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key);
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
434
item->key = be32_to_cpu(cqe->mkey);
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
633
cq->mcq.cqn, mr->sig->err_item.key,
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1003
mlx5_ib_dbg(dev, "mkey 0x%x\n", mr->mmkey.key);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1034
prep_umr_unreg_wqe(dev, &umrwr, mr->mmkey.key);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1089
prep_umr_wqe_common(pd, &umrwr, &sg, dma, npages, mr->mmkey.key,
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
116
u8 key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1286
u32 key = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1292
key, err);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
133
key = dev->mdev->priv.mkey_key++;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
135
mr->mmkey.key = mlx5_idx_to_mkey(MLX5_GET(create_mkey_out, mr->out, mkey_index)) | key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1431
mr->ibmr.lkey = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1432
mr->ibmr.rkey = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
146
err = radix_tree_insert(&table->tree, mlx5_mkey_to_idx(mr->mmkey.key),
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1511
mw->ibmw.rkey = mw->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1568
if (ibmr->lkey == mmr->sig->err_item.key)
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1574
mr_status->sig_err.key = mmr->sig->err_item.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
1606
klms[i].key = cpu_to_be32(lkey);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
516
mr->ibmr.lkey = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
517
mr->ibmr.rkey = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
578
struct ib_sge *sg, u64 dma, int n, u32 key,
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
598
umrwr->mkey = key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
602
struct ib_sge *sg, u64 dma, int n, u32 key,
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
606
prep_umr_wqe_common(pd, umrwr, sg, dma, n, key, page_shift);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
617
struct mlx5_umr_wr *umrwr, u32 key)
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
621
umrwr->mkey = key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
706
prep_umr_reg_wqe(pd, &umrwr, &sg, dma, npages, mr->mmkey.key,
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
837
wr.mkey = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
932
mlx5_ib_dbg(dev, "mkey = 0x%x\n", mr->mmkey.key);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
951
mr->ibmr.lkey = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
952
mr->ibmr.rkey = mr->mmkey.key;
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3117
dseg->av.key.qkey.qkey = cpu_to_be32(ud_wr(wr)->remote_qkey);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3317
u32 key, int access)
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3330
seg->qpn_mkey7_0 = cpu_to_be32((key & 0xff) | 0xffffff00);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3583
data_klm->key = cpu_to_be32(data_key);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3624
data_sentry->key = cpu_to_be32(data_key);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3629
prot_sentry->key = cpu_to_be32(prot_key);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3782
set_reg_mkey_seg(*seg, mr, wr->key, wr->access);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3996
ctrl->imm = cpu_to_be32(reg_wr(wr)->key);
sys/dev/mlx5/mlx5_ifc.h
627
u8 key[0x20];
sys/dev/mlx5/mlx5_ifc.h
6897
u8 key[8][0x20];
sys/dev/mlx5/qp.h
278
} key;
sys/dev/mlx5/qp.h
422
__be32 key;
sys/dev/mlx5/qp.h
429
__be32 key;
sys/dev/mlx5/qp.h
580
static inline struct mlx5_core_mkey *__mlx5_mr_lookup(struct mlx5_core_dev *dev, u32 key)
sys/dev/mlx5/qp.h
582
return radix_tree_lookup(&dev->priv.mr_table.tree, key);
sys/dev/mthca/mthca_av.c
197
ah->key = pd->ntmr.ibmr.lkey;
sys/dev/mthca/mthca_mr.c
390
static inline u32 tavor_key_to_hw_index(u32 key)
sys/dev/mthca/mthca_mr.c
392
return key;
sys/dev/mthca/mthca_mr.c
400
static inline u32 arbel_key_to_hw_index(u32 key)
sys/dev/mthca/mthca_mr.c
402
return (key << 24) | (key >> 8);
sys/dev/mthca/mthca_mr.c
413
static inline u32 key_to_hw_index(struct mthca_dev *dev, u32 key)
sys/dev/mthca/mthca_mr.c
416
return arbel_key_to_hw_index(key);
sys/dev/mthca/mthca_mr.c
418
return tavor_key_to_hw_index(key);
sys/dev/mthca/mthca_mr.c
421
static inline u32 adjust_key(struct mthca_dev *dev, u32 key)
sys/dev/mthca/mthca_mr.c
424
return ((key << 20) & 0x800000) | (key & 0x7fffff);
sys/dev/mthca/mthca_mr.c
426
return key;
sys/dev/mthca/mthca_mr.c
434
u32 key;
sys/dev/mthca/mthca_mr.c
440
key = mthca_alloc(&dev->mr_table.mpt_alloc);
sys/dev/mthca/mthca_mr.c
441
if (key == -1)
sys/dev/mthca/mthca_mr.c
443
key = adjust_key(dev, key);
sys/dev/mthca/mthca_mr.c
444
mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key);
sys/dev/mthca/mthca_mr.c
447
err = mthca_table_get(dev, dev->mr_table.mpt_table, key);
sys/dev/mthca/mthca_mr.c
467
mpt_entry->key = cpu_to_be32(key);
sys/dev/mthca/mthca_mr.c
492
key & (dev->limits.num_mpts - 1));
sys/dev/mthca/mthca_mr.c
505
mthca_table_put(dev, dev->mr_table.mpt_table, key);
sys/dev/mthca/mthca_mr.c
508
mthca_free(&dev->mr_table.mpt_alloc, key);
sys/dev/mthca/mthca_mr.c
53
__be32 key;
sys/dev/mthca/mthca_mr.c
573
u32 key, idx;
sys/dev/mthca/mthca_mr.c
588
key = mthca_alloc(&dev->mr_table.mpt_alloc);
sys/dev/mthca/mthca_mr.c
589
if (key == -1)
sys/dev/mthca/mthca_mr.c
591
key = adjust_key(dev, key);
sys/dev/mthca/mthca_mr.c
593
idx = key & (dev->limits.num_mpts - 1);
sys/dev/mthca/mthca_mr.c
594
mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key);
sys/dev/mthca/mthca_mr.c
597
err = mthca_table_get(dev, dev->mr_table.mpt_table, key);
sys/dev/mthca/mthca_mr.c
601
mr->mem.arbel.mpt = mthca_table_find(dev->mr_table.mpt_table, key, NULL);
sys/dev/mthca/mthca_mr.c
637
mpt_entry->key = cpu_to_be32(key);
sys/dev/mthca/mthca_mr.c
655
key & (dev->limits.num_mpts - 1));
sys/dev/mthca/mthca_mr.c
671
mthca_table_put(dev, dev->mr_table.mpt_table, key);
sys/dev/mthca/mthca_mr.c
674
mthca_free(&dev->mr_table.mpt_alloc, key);
sys/dev/mthca/mthca_mr.c
722
u32 key;
sys/dev/mthca/mthca_mr.c
731
key = tavor_key_to_hw_index(fmr->ibmr.lkey);
sys/dev/mthca/mthca_mr.c
732
key += dev->limits.num_mpts;
sys/dev/mthca/mthca_mr.c
733
fmr->ibmr.lkey = fmr->ibmr.rkey = tavor_hw_index_to_key(key);
sys/dev/mthca/mthca_mr.c
743
mpt_entry.lkey = cpu_to_be32(key);
sys/dev/mthca/mthca_mr.c
747
__raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key);
sys/dev/mthca/mthca_mr.c
762
u32 key;
sys/dev/mthca/mthca_mr.c
771
key = arbel_key_to_hw_index(fmr->ibmr.lkey);
sys/dev/mthca/mthca_mr.c
773
key += SINAI_FMR_KEY_INC;
sys/dev/mthca/mthca_mr.c
775
key += dev->limits.num_mpts;
sys/dev/mthca/mthca_mr.c
776
fmr->ibmr.lkey = fmr->ibmr.rkey = arbel_hw_index_to_key(key);
sys/dev/mthca/mthca_mr.c
792
fmr->mem.arbel.mpt->key = cpu_to_be32(key);
sys/dev/mthca/mthca_mr.c
793
fmr->mem.arbel.mpt->lkey = cpu_to_be32(key);
sys/dev/mthca/mthca_provider.h
132
u32 key;
sys/dev/mthca/mthca_qp.c
1593
useg->lkey = cpu_to_be32(to_mah(wr->ah)->key);
sys/dev/mwl/if_mwl.c
1494
printf(" %02x", hk->key.aes[i]);
sys/dev/mwl/if_mwl.c
1498
for (i = 0; i < sizeof(hk->key.tkip.rxMic); i++)
sys/dev/mwl/if_mwl.c
1499
printf(" %02x", hk->key.tkip.rxMic[i]);
sys/dev/mwl/if_mwl.c
1501
for (i = 0; i < sizeof(hk->key.tkip.txMic); i++)
sys/dev/mwl/if_mwl.c
1502
printf(" %02x", hk->key.tkip.txMic[i]);
sys/dev/mwl/if_mwl.c
1648
memcpy(hk.key.aes, ieee80211_crypto_get_key_data(k),
sys/dev/mwl/if_mwl.c
1653
hk.key.tkip.tsc.high = (uint32_t)(k->wk_keytsc >> 16);
sys/dev/mwl/if_mwl.c
1654
hk.key.tkip.tsc.low = (uint16_t)k->wk_keytsc;
sys/dev/mwl/if_mwl.c
1662
memcpy(hk.key.aes, ieee80211_crypto_get_key_data(k),
sys/dev/mwl/if_mwl.c
1664
memcpy(hk.key.aes + IEEE80211_KEYBUF_SIZE,
sys/dev/mwl/if_mwl.c
1667
memcpy(hk.key.aes + IEEE80211_KEYBUF_SIZE + 8,
sys/dev/mwl/if_mwl.c
1676
memcpy(hk.key.aes, ieee80211_crypto_get_key_data(k),
sys/dev/mwl/mwlhal.c
1196
memcpy(&pCmd->KeyParam.Key, &kv->key, kv->keyLen);
sys/dev/mwl/mwlhal.c
1204
htole16(kv->key.tkip.rsc.low);
sys/dev/mwl/mwlhal.c
1206
htole32(kv->key.tkip.rsc.high);
sys/dev/mwl/mwlhal.c
1208
htole16(kv->key.tkip.tsc.low);
sys/dev/mwl/mwlhal.c
1210
htole32(kv->key.tkip.tsc.high);
sys/dev/mwl/mwlhal.h
446
}__packed key;
sys/dev/netmap/netmap_kloop.c
505
int wake_flags, void *key)
sys/dev/netmap/netmap_kloop.c
517
int wake_flags, void *key)
sys/dev/netmap/netmap_kloop.c
537
int wake_flags, void *key)
sys/dev/netmap/netmap_kloop.c
549
int wake_flags, void *key)
sys/dev/ocs_fc/ocs_vpd.h
122
ocs_find_vpd(uint8_t *vpddata, uint32_t vpddata_length, const char *key)
sys/dev/ocs_fc/ocs_vpd.h
126
uint8_t c0 = key[0];
sys/dev/ocs_fc/ocs_vpd.h
127
uint8_t c1 = key[1];
sys/dev/ofw/openfirm.c
156
xrefinfo_find(uintptr_t key, int find_by)
sys/dev/ofw/openfirm.c
163
if ((find_by == FIND_BY_XREF && (phandle_t)key == xi->xref) ||
sys/dev/ofw/openfirm.c
164
(find_by == FIND_BY_NODE && (phandle_t)key == xi->node) ||
sys/dev/ofw/openfirm.c
165
(find_by == FIND_BY_DEV && key == (uintptr_t)xi->dev)) {
sys/dev/otus/if_otus.c
2973
cmd.key = *k;
sys/dev/otus/if_otus.c
2983
struct ieee80211_key *k = &cmd->key;
sys/dev/otus/if_otus.c
2984
struct ar_cmd_ekey key;
sys/dev/otus/if_otus.c
2988
memset(&key, 0, sizeof key);
sys/dev/otus/if_otus.c
2990
key.uid = htole16(k->k_id);
sys/dev/otus/if_otus.c
2991
IEEE80211_ADDR_COPY(key.macaddr, sc->sc_ic.ic_myaddr);
sys/dev/otus/if_otus.c
2992
key.macaddr[0] |= 0x80;
sys/dev/otus/if_otus.c
2994
key.uid = htole16(OTUS_UID(cmd->associd));
sys/dev/otus/if_otus.c
2995
IEEE80211_ADDR_COPY(key.macaddr, ni->ni_macaddr);
sys/dev/otus/if_otus.c
2997
key.kix = htole16(0);
sys/dev/otus/if_otus.c
3015
key.cipher = htole16(cipher);
sys/dev/otus/if_otus.c
3016
memcpy(key.key, k->k_key, MIN(k->k_len, 16));
sys/dev/otus/if_otus.c
3017
error = otus_cmd(sc, AR_CMD_EKEY, &key, sizeof key, NULL, 0);
sys/dev/otus/if_otus.c
3022
key.kix = htole16(1);
sys/dev/otus/if_otus.c
3023
memcpy(key.key, k->k_key + 16, 16);
sys/dev/otus/if_otus.c
3024
(void)otus_cmd(sc, AR_CMD_EKEY, &key, sizeof key, NULL, 0);
sys/dev/otus/if_otus.c
3039
cmd.key = *k;
sys/dev/otus/if_otus.c
3048
struct ieee80211_key *k = &cmd->key;
sys/dev/otus/if_otusreg.h
346
uint8_t key[16];
sys/dev/pms/RefTisa/discovery/api/tddmapi.h
89
char *key,
sys/dev/pms/RefTisa/sat/api/tdsmapi.h
197
char *key,
sys/dev/pms/RefTisa/tisa/api/ostiapi.h
52
char *key,
sys/dev/pms/RefTisa/tisa/sassata/common/tddmcmnapi.c
1267
char *key,
sys/dev/pms/RefTisa/tisa/sassata/common/tddmcmnapi.c
1283
key,
sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c
3367
char *key = agNULL;
sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c
3388
key = key;
sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c
3435
char *key = agNULL;
sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c
3456
key = key;
sys/dev/pms/RefTisa/tisa/sassata/common/tdsmcmnapi.c
1379
char *key,
sys/dev/pms/RefTisa/tisa/sassata/common/tdsmcmnapi.c
1395
key,
sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdinit.c
249
char *key = agNULL;
sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdinit.c
273
key = key;
sys/dev/pms/RefTisa/tisa/sassata/sas/tgt/ttdinit.c
175
char *key = agNULL;
sys/dev/pms/RefTisa/tisa/sassata/sas/tgt/ttdinit.c
199
key = key;
sys/dev/pms/freebsd/driver/common/lxosapi.c
465
S08 *key,
sys/dev/pms/freebsd/driver/common/lxosapi.c
487
ostiMakeParamString( key, subkey1, subkey2, subkey3, subkey4, subkey5,
sys/dev/proto/proto_busdma.c
132
proto_busdma_tag_lookup(struct proto_busdma *busdma, u_long key)
sys/dev/proto/proto_busdma.c
137
if ((void *)tag == (void *)key)
sys/dev/proto/proto_busdma.c
339
proto_busdma_md_lookup(struct proto_busdma *busdma, u_long key)
sys/dev/proto/proto_busdma.c
344
if ((void *)md == (void *)key)
sys/dev/proto/proto_busdma.c
402
tag = proto_busdma_tag_lookup(busdma, ioc->key);
sys/dev/proto/proto_busdma.c
410
tag = proto_busdma_tag_lookup(busdma, ioc->key);
sys/dev/proto/proto_busdma.c
426
md = proto_busdma_md_lookup(busdma, ioc->key);
sys/dev/proto/proto_busdma.c
442
md = proto_busdma_md_lookup(busdma, ioc->key);
sys/dev/proto/proto_busdma.c
450
md = proto_busdma_md_lookup(busdma, ioc->key);
sys/dev/proto/proto_busdma.c
458
md = proto_busdma_md_lookup(busdma, ioc->key);
sys/dev/proto/proto_busdma.c
466
md = proto_busdma_md_lookup(busdma, ioc->key);
sys/dev/proto/proto_dev.h
53
unsigned long key;
sys/dev/qat/include/adf_fw_counters.h
16
char key[FW_COUNTERS_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/include/common/adf_cfg.h
14
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/include/common/adf_cfg.h
51
const char *key,
sys/dev/qat/include/common/adf_cfg.h
69
const char *key);
sys/dev/qat/include/common/adf_cfg_user.h
10
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/include/icp_qat_hw.h
319
uint8_t key[ICP_QAT_HW_AES_256_F8_KEY_SZ];
sys/dev/qat/qat_api/common/ctrl/sal_ctrl_services.c
365
SalCtrl_GetInstanceCount(icp_accel_dev_t *device, char *key, Cpa32U *pCount)
sys/dev/qat/qat_api/common/ctrl/sal_ctrl_services.c
373
key,
sys/dev/qat/qat_api/firmware/include/icp_qat_hw.h
1106
uint8_t key[ICP_QAT_HW_AES_256_F8_KEY_SZ];
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
845
CpaStatus qatUtilsAESEncrypt(uint8_t *key,
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
867
CpaStatus qatUtilsAESKeyExpansionForward(uint8_t *key,
sys/dev/qat/qat_api/qat_utils/src/QatUtilsCrypto.c
144
qatUtilsAESEncrypt(uint8_t *key,
sys/dev/qat/qat_api/qat_utils/src/QatUtilsCrypto.c
151
rijndael_set_key(&ctx, key, keyLenInBytes << BYTE_TO_BITS_SHIFT);
sys/dev/qat/qat_api/qat_utils/src/QatUtilsCrypto.c
158
qatUtilsAESKeyExpansionForward(uint8_t *key,
sys/dev/qat/qat_api/qat_utils/src/QatUtilsCrypto.c
175
rijndael_set_key(&ctx, key, keyLenInBytes << BYTE_TO_BITS_SHIFT);
sys/dev/qat/qat_common/adf_cfg.c
134
adf_cfg_keyval_remove(const char *key, struct adf_cfg_section *sec)
sys/dev/qat/qat_common/adf_cfg.c
144
if (strncmp(ptr->key, key, sizeof(ptr->key)) != 0)
sys/dev/qat/qat_common/adf_cfg.c
256
adf_cfg_key_value_find(struct adf_cfg_section *s, const char *key)
sys/dev/qat/qat_common/adf_cfg.c
264
if (!strncmp(ptr->key, key, sizeof(ptr->key)))
sys/dev/qat/qat_common/adf_cfg.c
321
const char *key,
sys/dev/qat/qat_common/adf_cfg.c
336
strlcpy(key_val->key, key, sizeof(key_val->key));
sys/dev/qat/qat_common/adf_cfg.c
364
if (adf_cfg_key_val_get(accel_dev, section_name, key, temp_val) == 0) {
sys/dev/qat/qat_common/adf_cfg.c
366
adf_cfg_keyval_remove(key, section);
sys/dev/qat/qat_common/adf_cfg.c
459
const char *key)
sys/dev/qat/qat_common/adf_cfg.c
468
adf_cfg_keyval_remove(key, section);
sys/dev/qat/qat_common/adf_cfg.c
526
const char *key,
sys/dev/qat/qat_common/adf_cfg.c
541
strlcpy(key_val->key, key, sizeof(key_val->key));
sys/dev/qat/qat_common/adf_cfg.c
564
accel_dev, section->name, ptr->key, ptr->val, ptr->type);
sys/dev/qat/qat_common/adf_cfg_device.c
1016
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_SERVICES_ENABLED);
sys/dev/qat/qat_common/adf_cfg_device.c
1027
accel_dev, ADF_GENERAL_SEC, key, (void *)value, ADF_STR);
sys/dev/qat/qat_common/adf_cfg_device.c
1030
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_CONFIG_VERSION);
sys/dev/qat/qat_common/adf_cfg_device.c
1032
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1035
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_AUTO_RESET_ON_ERROR);
sys/dev/qat/qat_common/adf_cfg_device.c
1037
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1065
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
1069
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1072
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
1076
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1079
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
1083
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1087
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_CY ADF_RING_ASYM_SIZE);
sys/dev/qat/qat_common/adf_cfg_device.c
1089
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1092
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_CY ADF_RING_SYM_SIZE);
sys/dev/qat/qat_common/adf_cfg_device.c
1094
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1097
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_INTER_BUF_SIZE);
sys/dev/qat/qat_common/adf_cfg_device.c
1099
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1102
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_DC);
sys/dev/qat/qat_common/adf_cfg_device.c
1104
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1107
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_DH);
sys/dev/qat/qat_common/adf_cfg_device.c
1109
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1112
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_DRBG);
sys/dev/qat/qat_common/adf_cfg_device.c
1114
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1117
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_DSA);
sys/dev/qat/qat_common/adf_cfg_device.c
1119
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1122
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_ECC);
sys/dev/qat/qat_common/adf_cfg_device.c
1124
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1127
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_ENABLED);
sys/dev/qat/qat_common/adf_cfg_device.c
1129
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1132
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_KEYGEN);
sys/dev/qat/qat_common/adf_cfg_device.c
1134
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1137
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_LN);
sys/dev/qat/qat_common/adf_cfg_device.c
1139
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1142
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_PRIME);
sys/dev/qat/qat_common/adf_cfg_device.c
1144
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1147
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_RSA);
sys/dev/qat/qat_common/adf_cfg_device.c
1149
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
1152
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, SAL_STATS_CFG_SYM);
sys/dev/qat/qat_common/adf_cfg_device.c
1154
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
290
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_cfg_device.c
299
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_common/adf_cfg_device.c
300
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_common/adf_cfg_device.c
437
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_cfg_device.c
448
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_common/adf_cfg_device.c
449
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_common/adf_cfg_device.c
490
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_cfg_device.c
496
snprintf(key, sizeof(key), "%s", adf_cfg_deprecated_params[i]);
sys/dev/qat/qat_common/adf_cfg_device.c
498
accel_dev, ADF_GENERAL_SEC, key, val)) {
sys/dev/qat/qat_common/adf_cfg_device.c
501
key);
sys/dev/qat/qat_common/adf_cfg_device.c
702
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_cfg_device.c
737
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_NUM_CY);
sys/dev/qat/qat_common/adf_cfg_device.c
739
accel_dev, ADF_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
742
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_NUM_DC);
sys/dev/qat/qat_common/adf_cfg_device.c
744
accel_dev, ADF_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
747
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_NUM_PROCESSES);
sys/dev/qat/qat_common/adf_cfg_device.c
749
accel_dev, ADF_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
753
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
758
accel_dev, ADF_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
761
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
766
accel_dev, ADF_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
769
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
774
accel_dev, ADF_SAL_SEC, key, (void *)value, ADF_STR);
sys/dev/qat/qat_common/adf_cfg_device.c
779
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
784
accel_dev, ADF_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
787
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
792
accel_dev, ADF_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
795
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
800
accel_dev, ADF_SAL_SEC, key, (void *)value, ADF_STR);
sys/dev/qat/qat_common/adf_cfg_device.c
813
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_cfg_device.c
867
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_NUM_CY);
sys/dev/qat/qat_common/adf_cfg_device.c
869
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
872
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_NUM_DC);
sys/dev/qat/qat_common/adf_cfg_device.c
874
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
878
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
883
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
886
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
891
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
894
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
899
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)value, ADF_STR);
sys/dev/qat/qat_common/adf_cfg_device.c
905
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
910
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
913
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
918
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
921
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
926
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)value, ADF_STR);
sys/dev/qat/qat_common/adf_cfg_device.c
931
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
936
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
939
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
944
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)&val, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_device.c
947
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_device.c
952
accel_dev, ADF_KERNEL_SAL_SEC, key, (void *)value, ADF_STR);
sys/dev/qat/qat_common/adf_cfg_device.c
963
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_cfg_section.c
1003
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
136
const char *key,
sys/dev/qat/qat_common/adf_cfg_section.c
144
if (adf_cfg_get_param_value(accel_dev, sec, key, val))
sys/dev/qat/qat_common/adf_cfg_section.c
163
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
169
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
171
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
177
accel_dev, derived_sec, key, (void *)&bank_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
179
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
185
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
187
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
193
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
195
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
201
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
203
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
209
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
211
strlcpy(key, ADF_CY_RING_ASYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
212
if (adf_cfg_set_value(accel_dev, ADF_GENERAL_SEC, key, &asym_req))
sys/dev/qat/qat_common/adf_cfg_section.c
215
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
220
accel_dev, derived_sec, key, (void *)&asym_req, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
222
strlcpy(key, ADF_CY_RING_SYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
223
if (adf_cfg_set_value(accel_dev, ADF_GENERAL_SEC, key, &sym_req))
sys/dev/qat/qat_common/adf_cfg_section.c
226
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
231
accel_dev, derived_sec, key, (void *)&sym_req, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
233
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
242
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
247
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
249
snprintf(key, ADF_CFG_MAX_STR_LEN, ADF_DC_BANK_NUM_FORMAT, inst_index);
sys/dev/qat/qat_common/adf_cfg_section.c
252
accel_dev, derived_sec, key, (void *)&bank_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
254
snprintf(key, ADF_CFG_MAX_STR_LEN, ADF_DC_TX_FORMAT, inst_index);
sys/dev/qat/qat_common/adf_cfg_section.c
257
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
259
snprintf(key, ADF_CFG_MAX_STR_LEN, ADF_DC_RX_FORMAT, inst_index);
sys/dev/qat/qat_common/adf_cfg_section.c
262
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
264
strlcpy(key, ADF_DC_RING_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
265
if (adf_cfg_set_value(accel_dev, ADF_GENERAL_SEC, key, &dc_req))
sys/dev/qat/qat_common/adf_cfg_section.c
268
snprintf(key, ADF_CFG_MAX_STR_LEN, ADF_DC_RING_SIZE_FORMAT, inst_index);
sys/dev/qat/qat_common/adf_cfg_section.c
270
accel_dev, derived_sec, key, (void *)&dc_req, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
272
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
281
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
286
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
289
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
294
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
300
accel_dev, derived_sec, key, (void *)&bank_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
302
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
308
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
310
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
316
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
318
strlcpy(key, ADF_CY_RING_ASYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
319
if (adf_cfg_set_value(accel_dev, ADF_GENERAL_SEC, key, &asym_req))
sys/dev/qat/qat_common/adf_cfg_section.c
322
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
327
accel_dev, derived_sec, key, (void *)&asym_req, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
329
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
338
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
343
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
346
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
351
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
358
accel_dev, derived_sec, key, (void *)&bank_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
360
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
366
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
368
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
374
accel_dev, derived_sec, key, (void *)&ring_number, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
376
strlcpy(key, ADF_CY_RING_SYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
377
if (adf_cfg_set_value(accel_dev, ADF_GENERAL_SEC, key, &sym_req))
sys/dev/qat/qat_common/adf_cfg_section.c
380
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
385
accel_dev, derived_sec, key, (void *)&sym_req, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
387
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
411
if (strstr(ptr->key, ADF_ETRMGR_CORE_AFFINITY) ||
sys/dev/qat/qat_common/adf_cfg_section.c
412
strstr(ptr->key, ADF_NUM_PROCESSES) ||
sys/dev/qat/qat_common/adf_cfg_section.c
413
strstr(ptr->key, ADF_LIMIT_DEV_ACCESS))
sys/dev/qat/qat_common/adf_cfg_section.c
420
ptr->key,
sys/dev/qat/qat_common/adf_cfg_section.c
426
ptr->key,
sys/dev/qat/qat_common/adf_cfg_section.c
433
ptr->key,
sys/dev/qat/qat_common/adf_cfg_section.c
455
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
458
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
462
snprintf(key, ADF_CFG_MAX_KEY_LEN_IN_BYTES, ADF_SERVICES_ENABLED);
sys/dev/qat/qat_common/adf_cfg_section.c
463
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_common/adf_cfg_section.c
468
strlcpy(key, ADF_NUM_DC, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
470
accel_dev, processed_sec, key, &num_dc_inst))
sys/dev/qat/qat_common/adf_cfg_section.c
481
strlcpy(key, ADF_NUM_CY, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
482
if (adf_cfg_set_value(accel_dev, processed_sec, key, &num_inst))
sys/dev/qat/qat_common/adf_cfg_section.c
490
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
496
key,
sys/dev/qat/qat_common/adf_cfg_section.c
505
key,
sys/dev/qat/qat_common/adf_cfg_section.c
509
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
513
if (adf_cfg_get_param_value(accel_dev, processed_sec, key, val))
sys/dev/qat/qat_common/adf_cfg_section.c
518
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
523
accel_dev, processed_sec, key, &polling_mode))
sys/dev/qat/qat_common/adf_cfg_section.c
565
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
587
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
590
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
596
snprintf(key, ADF_CFG_MAX_STR_LEN, ADF_SERVICES_ENABLED);
sys/dev/qat/qat_common/adf_cfg_section.c
597
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_common/adf_cfg_section.c
601
strlcpy(key, ADF_NUM_CY, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
603
accel_dev, processed_sec, key, &num_cy_inst))
sys/dev/qat/qat_common/adf_cfg_section.c
613
strlcpy(key, ADF_NUM_DC, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
614
if (adf_cfg_set_value(accel_dev, processed_sec, key, &num_inst))
sys/dev/qat/qat_common/adf_cfg_section.c
622
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
629
key,
sys/dev/qat/qat_common/adf_cfg_section.c
638
key,
sys/dev/qat/qat_common/adf_cfg_section.c
643
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
647
if (adf_cfg_get_param_value(accel_dev, processed_sec, key, val))
sys/dev/qat/qat_common/adf_cfg_section.c
652
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
657
accel_dev, processed_sec, key, &polling_mode))
sys/dev/qat/qat_common/adf_cfg_section.c
675
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
695
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
699
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
706
strlcpy(key, ADF_NUM_PROCESSES, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
707
if (adf_cfg_set_value(accel_dev, sec_name, key, &num_processes))
sys/dev/qat/qat_common/adf_cfg_section.c
710
strlcpy(key, ADF_LIMIT_DEV_ACCESS, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
711
if (adf_cfg_set_value(accel_dev, sec_name, key, &limit_dev_acc))
sys/dev/qat/qat_common/adf_cfg_section.c
775
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
806
if (!strcmp(ptr->key, ADF_LIMIT_DEV_ACCESS))
sys/dev/qat/qat_common/adf_cfg_section.c
828
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
831
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
836
strlcpy(key, ADF_CONFIG_VERSION, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
837
if (adf_cfg_remove_key_param(accel_dev, sec_name, key))
sys/dev/qat/qat_common/adf_cfg_section.c
840
strlcpy(key, ADF_CY ADF_RING_ASYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
841
if (adf_cfg_remove_key_param(accel_dev, sec_name, key))
sys/dev/qat/qat_common/adf_cfg_section.c
844
strlcpy(key, ADF_CY ADF_RING_SYM_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
845
if (adf_cfg_remove_key_param(accel_dev, sec_name, key))
sys/dev/qat/qat_common/adf_cfg_section.c
848
strlcpy(key, ADF_DC ADF_RING_DC_SIZE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
849
if (adf_cfg_remove_key_param(accel_dev, sec_name, key))
sys/dev/qat/qat_common/adf_cfg_section.c
854
strlcpy(key, ADF_FIRST_USER_BUNDLE, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
856
accel_dev, sec_name, key, (void *)&first_used_bundle, ADF_DEC))
sys/dev/qat/qat_common/adf_cfg_section.c
861
free(key, M_QAT);
sys/dev/qat/qat_common/adf_cfg_section.c
929
char *key = NULL;
sys/dev/qat/qat_common/adf_cfg_section.c
938
key = malloc(ADF_CFG_MAX_KEY_LEN_IN_BYTES, M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_cfg_section.c
942
strlcpy(key,
sys/dev/qat/qat_common/adf_cfg_section.c
945
if (adf_cfg_set_value(accel_dev, ADF_GENERAL_SEC, key, &accel_coales))
sys/dev/qat/qat_common/adf_cfg_section.c
948
strlcpy(key, ADF_ETRMGR_COALESCE_TIMER, ADF_CFG_MAX_KEY_LEN_IN_BYTES);
sys/dev/qat/qat_common/adf_cfg_section.c
950
accel_dev, ADF_GENERAL_SEC, key, &accel_coales_timer))
sys/dev/qat/qat_common/adf_cfg_section.c
953
strlcpy(key,
sys/dev/qat/qat_common/adf_cfg_section.c
957
accel_dev, ADF_GENERAL_SEC, key, &accel_coales_num_msg))
sys/dev/qat/qat_common/adf_cfg_section.c
961
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
966
accel_dev, sec_name, key, &accel_coales, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
970
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
975
accel_dev, sec_name, key, &accel_coales_timer, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
979
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
984
accel_dev, sec_name, key, &accel_coales_num_msg, ADF_DEC);
sys/dev/qat/qat_common/adf_cfg_section.c
990
snprintf(key,
sys/dev/qat/qat_common/adf_cfg_section.c
995
accel_dev, sec_name, key, &cpu, ADF_DEC);
sys/dev/qat/qat_common/adf_ctl_drv.c
110
accel_dev, section.name, key_val.key, val)) {
sys/dev/qat/qat_common/adf_freebsd_cfg_dev_dbg.c
36
sbuf_printf(&sb, "%s = %s\n", ptr->key, ptr->val);
sys/dev/qat/qat_common/adf_fw_counters.c
171
sbuf_printf(sbuf, "%s:%s\n", count->key, count->val);
sys/dev/qat/qat_common/adf_fw_counters.c
25
const char *key,
sys/dev/qat/qat_common/adf_fw_counters.c
321
const char *key,
sys/dev/qat/qat_common/adf_fw_counters.c
350
strlcpy(key_val->key, key, sizeof(key_val->key));
sys/dev/qat/qat_common/adf_init.c
101
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC))
sys/dev/qat/qat_common/adf_init.c
104
snprintf(key, sizeof(key), ADF_DEV_CAPABILITIES_MASK);
sys/dev/qat/qat_common/adf_init.c
107
accel_dev, ADF_GENERAL_SEC, key, (void *)val, ADF_HEX))
sys/dev/qat/qat_common/adf_init.c
110
snprintf(key, sizeof(key), ADF_DEV_PKG_ID);
sys/dev/qat/qat_common/adf_init.c
113
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC))
sys/dev/qat/qat_common/adf_init.c
116
snprintf(key, sizeof(key), ADF_DEV_NODE_ID);
sys/dev/qat/qat_common/adf_init.c
119
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC))
sys/dev/qat/qat_common/adf_init.c
122
snprintf(key, sizeof(key), ADF_DEV_MAX_RINGS_PER_BANK);
sys/dev/qat/qat_common/adf_init.c
125
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC))
sys/dev/qat/qat_common/adf_init.c
128
snprintf(key, sizeof(key), ADF_HW_REV_ID_KEY);
sys/dev/qat/qat_common/adf_init.c
134
accel_dev, ADF_GENERAL_SEC, key, (void *)hw_version, ADF_STR))
sys/dev/qat/qat_common/adf_init.c
137
snprintf(key, sizeof(key), ADF_MMP_VER_KEY);
sys/dev/qat/qat_common/adf_init.c
145
accel_dev, ADF_GENERAL_SEC, key, (void *)mmp_version, ADF_STR))
sys/dev/qat/qat_common/adf_init.c
158
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_init.c
161
snprintf(key, sizeof(key), ADF_UOF_VER_KEY);
sys/dev/qat/qat_common/adf_init.c
169
accel_dev, ADF_GENERAL_SEC, key, (void *)fw_version, ADF_STR))
sys/dev/qat/qat_common/adf_init.c
178
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_init.c
182
snprintf(key, sizeof(key), ADF_DC_EXTENDED_FEATURES);
sys/dev/qat/qat_common/adf_init.c
186
accel_dev, ADF_GENERAL_SEC, key, (void *)val, ADF_HEX))
sys/dev/qat/qat_common/adf_init.c
85
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_common/adf_init.c
98
snprintf(key, sizeof(key), ADF_DEV_MAX_BANKS);
sys/dev/qat/qat_common/adf_transport.c
525
u32 key,
sys/dev/qat/qat_common/adf_transport.c
531
snprintf(key_buf, ADF_CFG_MAX_KEY_LEN_IN_BYTES, format, key);
sys/dev/qat/qat_hw/qat_200xx/adf_200xx_hw_data.c
362
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_200xx/adf_200xx_hw_data.c
365
strlcpy(key, ADF_STORAGE_FIRMWARE_ENABLED, sizeof(key));
sys/dev/qat/qat_hw/qat_200xx/adf_200xx_hw_data.c
366
if (!adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val)) {
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
130
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
136
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
137
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
326
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES] = { 0 };
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
332
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
338
accel_dev, ADF_GENERAL_SEC, key, (void *)val_str, ADF_STR))
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
378
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
389
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
390
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_4xxxvf/adf_4xxxvf_hw_data.c
293
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_4xxxvf/adf_4xxxvf_hw_data.c
307
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_hw/qat_4xxxvf/adf_4xxxvf_hw_data.c
308
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_c3xxx/adf_c3xxx_hw_data.c
236
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_c3xxx/adf_c3xxx_hw_data.c
239
strlcpy(key, ADF_STORAGE_FIRMWARE_ENABLED, sizeof(key));
sys/dev/qat/qat_hw/qat_c3xxx/adf_c3xxx_hw_data.c
240
if (!adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val)) {
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1501
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1509
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1510
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1649
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1653
snprintf(key, sizeof(key), ADF_NUM_CY_ACCEL_UNITS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1654
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1658
snprintf(key, sizeof(key), ADF_NUM_DC_ACCEL_UNITS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1659
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1664
snprintf(key, sizeof(key), ADF_NUM_INLINE_ACCEL_UNITS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1665
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1682
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1691
snprintf(key, sizeof(key), ADF_INLINE_INGRESS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1692
if (adf_cfg_get_param_value(accel_dev, ADF_INLINE_SEC, key, val)) {
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1701
snprintf(key, sizeof(key), ADF_INLINE_EGRESS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1702
if (adf_cfg_get_param_value(accel_dev, ADF_INLINE_SEC, key, val)) {
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1779
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1786
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
1787
if (adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
796
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES] = { 0 };
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
807
snprintf(key, sizeof(key), ADF_SERVICES_ENABLED);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
825
accel_dev, ADF_GENERAL_SEC, key, (void *)val_str, ADF_STR))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
828
snprintf(key, sizeof(key), ADF_NUM_CY_ACCEL_UNITS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
831
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
834
snprintf(key, sizeof(key), ADF_NUM_DC_ACCEL_UNITS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
837
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC))
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
840
snprintf(key, sizeof(key), ADF_NUM_INLINE_ACCEL_UNITS);
sys/dev/qat/qat_hw/qat_c4xxx/adf_c4xxx_hw_data.c
843
accel_dev, ADF_GENERAL_SEC, key, (void *)&val, ADF_DEC))
sys/dev/qat/qat_hw/qat_c62x/adf_c62x_hw_data.c
240
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_c62x/adf_c62x_hw_data.c
243
strlcpy(key, ADF_STORAGE_FIRMWARE_ENABLED, sizeof(key));
sys/dev/qat/qat_hw/qat_c62x/adf_c62x_hw_data.c
244
if (!adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val)) {
sys/dev/qat/qat_hw/qat_dh895xcc/adf_dh895xcc_hw_data.c
259
char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
sys/dev/qat/qat_hw/qat_dh895xcc/adf_dh895xcc_hw_data.c
262
strlcpy(key, ADF_STORAGE_FIRMWARE_ENABLED, sizeof(key));
sys/dev/qat/qat_hw/qat_dh895xcc/adf_dh895xcc_hw_data.c
263
if (!adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, key, val)) {
sys/dev/qat_c2xxx/qat.c
1190
const uint8_t *key, int klen, const struct qat_sym_hash_def *hash_def,
sys/dev/qat_c2xxx/qat.c
1198
rounds = rijndaelKeySetupEnc(ks, key, klen * NBBY);
sys/dev/qat_c2xxx/qat.c
1205
const uint8_t *key, int klen, const struct qat_sym_hash_def *hash_def,
sys/dev/qat_c2xxx/qat.c
1214
hmac_init_ipad(sah, key, klen, &ctx);
sys/dev/qat_c2xxx/qat.c
1217
hmac_init_opad(sah, key, klen, &ctx);
sys/dev/qat_c2xxx/qat_hw15.c
551
const uint8_t *key;
sys/dev/qat_c2xxx/qat_hw15.c
559
key = crp->crp_cipher_key;
sys/dev/qat_c2xxx/qat_hw15.c
561
key = qs->qs_cipher_key;
sys/dev/qat_c2xxx/qat_hw15.c
562
memcpy(cipher_key, key, qs->qs_cipher_klen);
sys/dev/qat_c2xxx/qat_hw15.c
616
const uint8_t *key;
sys/dev/qat_c2xxx/qat_hw15.c
660
key = crp->crp_auth_key;
sys/dev/qat_c2xxx/qat_hw15.c
662
key = qs->qs_auth_key;
sys/dev/qat_c2xxx/qat_hw15.c
663
if (key != NULL) {
sys/dev/qat_c2xxx/qat_hw15.c
664
qat_crypto_hmac_precompute(desc, key,
sys/dev/qat_c2xxx/qatreg.h
1537
uint8_t key[HW_AES_256_F8_KEY_SZ];
sys/dev/qat_c2xxx/qatvar.h
1059
const uint8_t *key, int klen,
sys/dev/qlnx/qlnxe/ecore_hsi_rdma.h
145
u8 key /* byte2 */;
sys/dev/qlnx/qlnxe/ecore_hsi_rdma.h
307
u8 key /* byte2 */;
sys/dev/qlnx/qlnxe/ecore_hsi_rdma.h
378
u8 key /* byte2 */;
sys/dev/qlnx/qlnxe/ecore_hsi_rdma.h
670
u8 key;
sys/dev/qlnx/qlnxe/ecore_hsi_rdma.h
88
u8 key /* byte2 */;
sys/dev/qlnx/qlnxe/ecore_rdma.c
1889
p_ramrod->key = params->key;
sys/dev/qlnx/qlnxe/ecore_rdma_api.h
375
u8 key;
sys/dev/qlnx/qlnxe/ecore_roce_api.h
499
u8 key;
sys/dev/qlnx/qlnxr/qlnxr_def.h
716
} key;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
1018
mm->key.phy_addr, mm->key.len, uctx);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
1130
mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
1134
mr->ibmr.rkey = mr->hw_mr.itid << 8 | mr->hw_mr.key;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
1511
mr->hw_mr.key = 0;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
1537
mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
1540
mr->ibmr.rkey = mr->hw_mr.itid << 8 | mr->hw_mr.key;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
4143
fwqe1->l_key = wr->key;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
5395
mr->hw_mr.key = 0;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
5419
mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
883
mm->key.phy_addr = phy_addr;
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
892
mm->key.len = roundup(len, PAGE_SIZE);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
900
(unsigned long long)mm->key.phy_addr,
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
901
(unsigned long)mm->key.len, uctx);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
919
if (len != mm->key.len || phy_addr != mm->key.phy_addr)
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
929
mm->key.phy_addr, mm->key.len, uctx, found);
sys/dev/ral/rt2560reg.h
227
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/dev/ral/rt2560reg.h
254
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/dev/random/hash.c
121
rijndael_makeKey(&context->key, DIR_ENCRYPT, RANDOM_KEYSIZE*8, data);
sys/dev/random/hash.c
184
rijndael_blockEncrypt(&context->cipher, &context->key,
sys/dev/random/hash.c
208
*keyp = &context->key.keyMaterial;
sys/dev/random/hash.c
209
*szp = context->key.keyLen / 8;
sys/dev/random/hash.h
53
keyInstance key; /* Key schedule */
sys/dev/rtwn/if_rtwn_cam.c
263
const struct ieee80211_key *k = &data->key;
sys/dev/rtwn/if_rtwn_cam.c
291
struct ieee80211_key *k = &data->key;
sys/dev/rtwn/if_rtwnvar.h
85
struct ieee80211_key key;
sys/dev/safe/safe.c
623
safe_setup_enckey(struct safe_session *ses, const void *key)
sys/dev/safe/safe.c
627
bcopy(key, ses->ses_key, ses->ses_klen);
sys/dev/safe/safe.c
635
safe_setup_mackey(struct safe_session *ses, int algo, const uint8_t *key,
sys/dev/safe/safe.c
641
hmac_init_ipad(&auth_hash_hmac_sha1, key, klen, &sha1ctx);
sys/dev/safe/safe.c
644
hmac_init_opad(&auth_hash_hmac_sha1, key, klen, &sha1ctx);
sys/dev/safexcel/safexcel.c
1284
safexcel_setkey_ghash(const uint8_t *key, int klen, uint32_t *hashkey)
sys/dev/safexcel/safexcel.c
1292
rounds = rijndaelKeySetupEnc(ks, key, klen * NBBY);
sys/dev/safexcel/safexcel.c
1307
safexcel_setkey_xcbcmac(const uint8_t *key, int klen, uint32_t *hashkey)
sys/dev/safexcel/safexcel.c
1313
for (i = 0; i < klen / sizeof(uint32_t); i++, key += 4)
sys/dev/safexcel/safexcel.c
1314
hashkey[i + off] = htobe32(le32dec(key));
sys/dev/safexcel/safexcel.c
1357
const uint8_t *key, int klen, uint8_t *ipad, uint8_t *opad)
sys/dev/safexcel/safexcel.c
1363
hmac_init_ipad(ahash, key, klen, &ctx);
sys/dev/safexcel/safexcel.c
1365
hmac_init_opad(ahash, key, klen, &ctx);
sys/dev/safexcel/safexcel.c
1371
safexcel_setkey_xts(const uint8_t *key, int klen, uint8_t *tweakkey)
sys/dev/safexcel/safexcel.c
1373
memcpy(tweakkey, key + klen, klen);
sys/dev/sfxge/common/ef10_impl.h
1227
__in uint32_t key,
sys/dev/sfxge/common/ef10_impl.h
1233
__in uint32_t key,
sys/dev/sfxge/common/ef10_impl.h
974
__in_ecount(n) uint8_t *key,
sys/dev/sfxge/common/ef10_nic.c
2507
__in uint32_t key,
sys/dev/sfxge/common/ef10_nic.c
2521
MCDI_IN_SET_DWORD(req, GET_NIC_GLOBAL_IN_KEY, key);
sys/dev/sfxge/common/ef10_nic.c
2550
__in uint32_t key,
sys/dev/sfxge/common/ef10_nic.c
2563
MCDI_IN_SET_DWORD(req, SET_NIC_GLOBAL_IN_KEY, key);
sys/dev/sfxge/common/ef10_nvram.c
973
uint8_t *key;
sys/dev/sfxge/common/ef10_nvram.c
981
while ((key = tlv_item(&cursor)) != NULL) {
sys/dev/sfxge/common/ef10_rx.c
432
__in_ecount(n) uint8_t *key,
sys/dev/sfxge/common/ef10_rx.c
461
key, n);
sys/dev/sfxge/common/ef10_rx.c
670
__in_ecount(n) uint8_t *key,
sys/dev/sfxge/common/ef10_rx.c
686
if ((rc = efx_mcdi_rss_context_set_key(enp, rss_context, key, n)) != 0)
sys/dev/sfxge/common/efx.h
2468
__in_ecount(n) uint8_t *key,
sys/dev/sfxge/common/efx_filter.c
1046
uint32_t key;
sys/dev/sfxge/common/efx_filter.c
1115
key =
sys/dev/sfxge/common/efx_filter.c
1121
return (key);
sys/dev/sfxge/common/efx_filter.c
1201
__in uint32_t key,
sys/dev/sfxge/common/efx_filter.c
1208
hash = siena_filter_tbl_hash(key);
sys/dev/sfxge/common/efx_filter.c
1209
incr = siena_filter_tbl_increment(key);
sys/dev/sfxge/common/efx_filter.c
1415
uint32_t key;
sys/dev/sfxge/common/efx_filter.c
1429
if ((key = siena_filter_build(&filter, spec)) == 0) {
sys/dev/sfxge/common/efx_filter.c
1473
uint32_t key;
sys/dev/sfxge/common/efx_filter.c
1488
key = siena_filter_build(&filter, &sf_spec);
sys/dev/sfxge/common/efx_filter.c
1492
rc = siena_filter_search(sftp, &sf_spec, key, B_TRUE,
sys/dev/sfxge/common/efx_filter.c
1553
uint32_t key;
sys/dev/sfxge/common/efx_filter.c
1563
key = siena_filter_build(&filter, &sf_spec);
sys/dev/sfxge/common/efx_filter.c
1567
rc = siena_filter_search(sftp, &sf_spec, key, B_FALSE,
sys/dev/sfxge/common/efx_filter.c
827
__in uint32_t key)
sys/dev/sfxge/common/efx_filter.c
832
tmp = 0x1fff ^ (uint16_t)(key >> 16);
sys/dev/sfxge/common/efx_filter.c
837
tmp = tmp ^ tmp << 13 ^ (uint16_t)(key & 0xffff);
sys/dev/sfxge/common/efx_filter.c
850
__in uint32_t key)
sys/dev/sfxge/common/efx_filter.c
852
return ((uint16_t)(key * 2 - 1));
sys/dev/sfxge/common/efx_rx.c
1198
__in_ecount(n) uint8_t *key,
sys/dev/sfxge/common/efx_rx.c
1218
oword.eo_u8[offset - 1] = key[byte++];
sys/dev/sfxge/common/efx_rx.c
1229
if (oword.eo_u8[offset - 1] != key[byte++]) {
sys/dev/sfxge/common/efx_rx.c
1246
oword.eo_u8[offset - 1] = key[byte++];
sys/dev/sfxge/common/efx_rx.c
1256
oword.eo_u8[offset - 1] = key[byte++];
sys/dev/sfxge/common/efx_rx.c
1266
oword.eo_u8[offset - 1] = key[byte++];
sys/dev/sfxge/common/efx_rx.c
1278
if (oword.eo_u8[offset - 1] != key[byte++]) {
sys/dev/sfxge/common/efx_rx.c
1290
if (oword.eo_u8[offset - 1] != key[byte++]) {
sys/dev/sfxge/common/efx_rx.c
1302
if (oword.eo_u8[offset - 1] != key[byte++]) {
sys/dev/sfxge/common/efx_rx.c
660
__in_ecount(n) uint8_t *key,
sys/dev/sfxge/common/efx_rx.c
669
if ((rc = erxop->erxo_scale_key_set(enp, rss_context, key, n)) != 0)
sys/dev/sfxge/common/efx_rx.c
67
__in_ecount(n) uint8_t *key,
sys/dev/smartpqi/smartpqi_response.c
119
pqisrc_extract_sense_data(sense_data_u_t *sense_data, uint8_t *key, uint8_t *asc, uint8_t *ascq)
sys/dev/smartpqi/smartpqi_response.c
126
*key = fixed->sense_key;
sys/dev/smartpqi/smartpqi_response.c
135
*key = desc->sense_key;
sys/dev/smartpqi/smartpqi_response.c
141
*key = 0xFF;
sys/dev/smartpqi/smartpqi_response.c
169
uint8_t key, asc, ascq;
sys/dev/smartpqi/smartpqi_response.c
170
pqisrc_extract_sense_data(sense_data, &key, &asc, &ascq);
sys/dev/smartpqi/smartpqi_response.c
174
opcode, path, key, asc, ascq);
sys/dev/smartpqi/smartpqi_response.c
245
uint8_t key, asc, ascq;
sys/dev/smartpqi/smartpqi_response.c
255
pqisrc_extract_sense_data(&aio_err->sense_data, &key, &asc, &ascq);
sys/dev/smartpqi/smartpqi_response.c
262
key == 5 && asc == 0x24)
sys/dev/sound/pci/hda/hdaa.c
1303
hdaa_quirks_tab[k].key, len - inv) != 0)
sys/dev/sound/pci/hda/hdaa.c
1305
if (len - inv != strlen(hdaa_quirks_tab[k].key))
sys/dev/sound/pci/hda/hdaa.c
1333
n != 0 ? "," : "", hdaa_quirks_tab[i].key);
sys/dev/sound/pci/hda/hdaa.c
55
const char *key;
sys/dev/sound/pci/hda/hdaa.c
6241
printf(" %s", hdaa_quirks_tab[i].key);
sys/dev/sound/pci/hda/hdaa.c
849
char *key, *value, *rest, *bad;
sys/dev/sound/pci/hda/hdaa.c
854
while ((key = strsep(&rest, "=")) != NULL) {
sys/dev/sound/pci/hda/hdaa.c
859
if (strcmp(key, "seq") == 0) {
sys/dev/sound/pci/hda/hdaa.c
863
} else if (strcmp(key, "as") == 0) {
sys/dev/sound/pci/hda/hdaa.c
867
} else if (strcmp(key, "misc") == 0) {
sys/dev/sound/pci/hda/hdaa.c
871
} else if (strcmp(key, "color") == 0) {
sys/dev/sound/pci/hda/hdaa.c
883
} else if (strcmp(key, "ctype") == 0) {
sys/dev/sound/pci/hda/hdaa.c
895
} else if (strcmp(key, "device") == 0) {
sys/dev/sound/pci/hda/hdaa.c
908
} else if (strcmp(key, "loc") == 0) {
sys/dev/sound/pci/hda/hdaa.c
921
} else if (strcmp(key, "conn") == 0) {
sys/dev/sound/pci/hda/hdaa.c
943
char *key, *value, *rest;
sys/dev/sound/pci/hda/hdaa.c
948
while ((key = strsep(&rest, "=")) != NULL) {
sys/dev/sound/pci/hda/hdaa.c
952
ikey = strtol(key, NULL, 10);
sys/dev/sound/pci/hda/hdac.c
304
hdac_quirks_tab[k].key, len - inv) != 0)
sys/dev/sound/pci/hda/hdac.c
306
if (len - inv != strlen(hdac_quirks_tab[k].key))
sys/dev/sound/pci/hda/hdac.c
310
hdac_quirks_tab[k].key);
sys/dev/sound/pci/hda/hdac.c
63
const char *key;
sys/dev/syscons/syscons.c
726
keyarg_t key;
sys/dev/syscons/syscons.c
741
key.keynum = KEYCODE_BS;
sys/dev/syscons/syscons.c
742
(void)kbdd_ioctl(sc->kbd, GIO_KEYMAPENT, (caddr_t)&key);
sys/dev/syscons/syscons.c
743
tp->t_termios.c_cc[VERASE] = key.key.map[0];
sys/dev/thunderbolt/tb_debug.c
162
tb_get_string(uintmax_t key, tb_string_t *table)
sys/dev/thunderbolt/tb_debug.c
169
if (table->key == key)
sys/dev/thunderbolt/tb_debug.h
37
uintmax_t key;
sys/dev/usb/gadget/g_keyboard.c
283
int key;
sys/dev/usb/gadget/g_keyboard.c
292
key = sc->sc_pattern[index];
sys/dev/usb/gadget/g_keyboard.c
294
key = 'a';
sys/dev/usb/gadget/g_keyboard.c
296
if (key >= 'a' && key <= 'z')
sys/dev/usb/gadget/g_keyboard.c
297
return (key - 'a' + 0x04);
sys/dev/usb/input/ukbd.c
1096
uint32_t key;
sys/dev/usb/input/ukbd.c
1156
for (key = 1; key != UKBD_NKEYCODE; key++) {
sys/dev/usb/input/ukbd.c
1158
HID_USAGE2(HUP_KEYBOARD, key),
sys/dev/usb/input/ukbd.c
1159
hid_input, 0, &sc->sc_loc_key[key], &flags,
sys/dev/usb/input/ukbd.c
1160
&sc->sc_id_loc_key[key])) {
sys/dev/usb/input/ukbd.c
1162
sc->sc_loc_key_valid[key / 64] |=
sys/dev/usb/input/ukbd.c
1163
1ULL << (key % 64);
sys/dev/usb/input/ukbd.c
1164
DPRINTFN(1, "Found key 0x%02x\n", key);
sys/dev/usb/input/ukbd.c
123
#define UKBD_KEY_PRESSED(map, key) ({ \
sys/dev/usb/input/ukbd.c
124
CTASSERT((key) >= 0 && (key) < UKBD_NKEYCODE); \
sys/dev/usb/input/ukbd.c
125
((map)[(key) / 64] & (1ULL << ((key) % 64))); \
sys/dev/usb/input/ukbd.c
410
ukbd_is_modifier_key(uint32_t key)
sys/dev/usb/input/ukbd.c
413
return (key >= 0xe0 && key <= 0xe7);
sys/dev/usb/input/ukbd.c
442
ukbd_put_key(struct ukbd_softc *sc, uint32_t key)
sys/dev/usb/input/ukbd.c
447
DPRINTF("0x%02x (%d) %s\n", key, key,
sys/dev/usb/input/ukbd.c
448
(key & KEY_RELEASE) ? "released" : "pressed");
sys/dev/usb/input/ukbd.c
453
evdev_hid2key(KEY_INDEX(key)), !(key & KEY_RELEASE));
sys/dev/usb/input/ukbd.c
459
sc->sc_input[sc->sc_inputtail] = key;
sys/dev/usb/input/ukbd.c
555
unsigned key;
sys/dev/usb/input/ukbd.c
560
for (key = 0xe0; key != 0xe8; key++) {
sys/dev/usb/input/ukbd.c
561
const uint64_t mask = 1ULL << (key % 64);
sys/dev/usb/input/ukbd.c
563
sc->sc_odata.bitmap[key / 64] ^
sys/dev/usb/input/ukbd.c
564
sc->sc_ndata.bitmap[key / 64];
sys/dev/usb/input/ukbd.c
567
if (sc->sc_odata.bitmap[key / 64] & mask)
sys/dev/usb/input/ukbd.c
568
ukbd_put_key(sc, key | KEY_RELEASE);
sys/dev/usb/input/ukbd.c
570
ukbd_put_key(sc, key | KEY_PRESS);
sys/dev/usb/input/ukbd.c
575
for (key = 0; key != UKBD_NKEYCODE; key++) {
sys/dev/usb/input/ukbd.c
576
const uint64_t mask = 1ULL << (key % 64);
sys/dev/usb/input/ukbd.c
578
sc->sc_odata.bitmap[key / 64] ^
sys/dev/usb/input/ukbd.c
579
sc->sc_ndata.bitmap[key / 64];
sys/dev/usb/input/ukbd.c
582
key += 63;
sys/dev/usb/input/ukbd.c
584
} else if (ukbd_is_modifier_key(key)) {
sys/dev/usb/input/ukbd.c
587
if (sc->sc_odata.bitmap[key / 64] & mask) {
sys/dev/usb/input/ukbd.c
588
ukbd_put_key(sc, key | KEY_RELEASE);
sys/dev/usb/input/ukbd.c
591
if (sc->sc_repeat_key == key)
sys/dev/usb/input/ukbd.c
594
ukbd_put_key(sc, key | KEY_PRESS);
sys/dev/usb/input/ukbd.c
595
if (key != APPLE_FN_KEY) {
sys/dev/usb/input/ukbd.c
601
sc->sc_repeat_key = key;
sys/dev/usb/input/ukbd.c
829
uint32_t key =
sys/dev/usb/input/ukbd.c
833
if (key == KEY_ERROR) {
sys/dev/usb/input/ukbd.c
839
key = ukbd_apple_fn(key);
sys/dev/usb/input/ukbd.c
841
key = ukbd_apple_fn_media(key);
sys/dev/usb/input/ukbd.c
843
key = ukbd_apple_swap(key);
sys/dev/usb/input/ukbd.c
844
if (key == KEY_NONE || key >= UKBD_NKEYCODE)
sys/dev/usb/input/ukbd.c
847
sc->sc_ndata.bitmap[key / 64] |= 1ULL << (key % 64);
sys/dev/usb/input/ukbd.c
850
uint32_t key = i;
sys/dev/usb/input/ukbd.c
853
key = ukbd_apple_fn(key);
sys/dev/usb/input/ukbd.c
855
key = ukbd_apple_fn_media(key);
sys/dev/usb/input/ukbd.c
857
key = ukbd_apple_swap(key);
sys/dev/usb/input/ukbd.c
858
if (key == KEY_NONE || key == KEY_ERROR || key >= UKBD_NKEYCODE)
sys/dev/usb/input/ukbd.c
861
sc->sc_ndata.bitmap[key / 64] |= 1ULL << (key % 64);
sys/dev/usb/storage/umass.c
2633
int key, sense_len;
sys/dev/usb/storage/umass.c
2637
key = scsi_get_sense_key(&ccb->csio.sense_data, sense_len,
sys/dev/usb/storage/umass.c
2652
(key == SSD_KEY_UNIT_ATTENTION)) {
sys/dev/usb/storage/umass.c
2660
} else if (key == SSD_KEY_NO_SENSE) {
sys/dev/usb/storage/umass.c
2668
(key == SSD_KEY_UNIT_ATTENTION)) {
sys/dev/usb/storage/umass.c
2703
if (key >= 0) {
sys/dev/usb/wlan/if_mtw.c
2039
struct ieee80211_key *k = &cmdq->key;
sys/dev/usb/wlan/if_mtw.c
2089
k0 = &sc->cmdq[i].key;
sys/dev/usb/wlan/if_mtwvar.h
187
struct ieee80211_key key;
sys/dev/usb/wlan/if_mtwvar.h
248
struct ieee80211_key key;
sys/dev/usb/wlan/if_rsu.c
1720
struct r92s_fw_cmd_set_key key;
sys/dev/usb/wlan/if_rsu.c
1732
memset(&key, 0, sizeof(key));
sys/dev/usb/wlan/if_rsu.c
1733
key.algo = algo;
sys/dev/usb/wlan/if_rsu.c
1734
key.cam_id = k->wk_keyix;
sys/dev/usb/wlan/if_rsu.c
1735
key.grpkey = (k->wk_flags & IEEE80211_KEY_GROUP) != 0;
sys/dev/usb/wlan/if_rsu.c
1736
memcpy(key.key, ieee80211_crypto_get_key_data(k),
sys/dev/usb/wlan/if_rsu.c
1737
MIN(ieee80211_crypto_get_key_len(k), sizeof(key.key)));
sys/dev/usb/wlan/if_rsu.c
1741
"macaddr %s\n", __func__, key.cam_id, key.grpkey,
sys/dev/usb/wlan/if_rsu.c
1742
k->wk_cipher->ic_cipher, key.algo, k->wk_flags,
sys/dev/usb/wlan/if_rsu.c
1745
error = rsu_fw_cmd(sc, R92S_CMD_SET_KEY, &key, sizeof(key));
sys/dev/usb/wlan/if_rsu.c
1759
struct r92s_fw_cmd_set_key_mac key;
sys/dev/usb/wlan/if_rsu.c
1774
memset(&key, 0, sizeof(key));
sys/dev/usb/wlan/if_rsu.c
1775
key.algo = algo;
sys/dev/usb/wlan/if_rsu.c
1776
memcpy(key.macaddr, k->wk_macaddr, sizeof(key.macaddr));
sys/dev/usb/wlan/if_rsu.c
1777
memcpy(key.key, ieee80211_crypto_get_key_data(k),
sys/dev/usb/wlan/if_rsu.c
1778
MIN(ieee80211_crypto_get_key_len(k), sizeof(key.key)));
sys/dev/usb/wlan/if_rsu.c
1782
__func__, k->wk_keyix, k->wk_cipher->ic_cipher, key.algo,
sys/dev/usb/wlan/if_rsu.c
1784
ether_sprintf(key.macaddr));
sys/dev/usb/wlan/if_rsu.c
1786
error = rsu_fw_cmd(sc, R92S_CMD_SET_STA_KEY, &key, sizeof(key));
sys/dev/usb/wlan/if_rsu.c
1820
struct r92s_fw_cmd_set_key key;
sys/dev/usb/wlan/if_rsu.c
1838
memset(&key, 0, sizeof(key));
sys/dev/usb/wlan/if_rsu.c
1839
key.cam_id = keyix;
sys/dev/usb/wlan/if_rsu.c
1842
"%s: removing key %u\n", __func__, key.cam_id);
sys/dev/usb/wlan/if_rsu.c
1844
error = rsu_fw_cmd(sc, R92S_CMD_SET_KEY, &key, sizeof(key));
sys/dev/usb/wlan/if_rsureg.h
481
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/dev/usb/wlan/if_rsureg.h
488
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/dev/usb/wlan/if_rum.c
2885
struct ieee80211_key *k = &data->key;
sys/dev/usb/wlan/if_rum.c
2930
struct ieee80211_key *k = &data->key;
sys/dev/usb/wlan/if_rum.c
2945
struct ieee80211_key *k = &data->key;
sys/dev/usb/wlan/if_rum.c
2994
struct ieee80211_key *k = &data->key;
sys/dev/usb/wlan/if_rumvar.h
72
struct ieee80211_key key;
sys/dev/usb/wlan/if_run.c
2523
struct ieee80211_key *k = &cmdq->key;
sys/dev/usb/wlan/if_run.c
2572
k0 = &sc->cmdq[i].key;
sys/dev/usb/wlan/if_runvar.h
110
struct ieee80211_key key;
sys/dev/usb/wlan/if_uath.c
2120
crypto.key[i] = wk->wk_key[i] ^ 0xaa;
sys/dev/vnic/nic.h
192
uint64_t key[RSS_HASH_KEY_SIZE];
sys/dev/vnic/nicvf_main.c
1049
nicvf_reg_write(nic, key_addr, rss->key[idx]);
sys/dev/vnic/nicvf_main.c
1072
rss->key[0] = 0xFEED0BADFEED0BADUL;
sys/dev/vnic/nicvf_main.c
1073
rss->key[1] = 0xFEED0BADFEED0BADUL;
sys/dev/vnic/nicvf_main.c
1074
rss->key[2] = 0xFEED0BADFEED0BADUL;
sys/dev/vnic/nicvf_main.c
1075
rss->key[3] = 0xFEED0BADFEED0BADUL;
sys/dev/vnic/nicvf_main.c
1076
rss->key[4] = 0xFEED0BADFEED0BADUL;
sys/dev/wg/crypto.h
100
const uint8_t *key, const size_t keylen);
sys/dev/wg/crypto.h
106
static inline void blake2s(uint8_t *out, const uint8_t *in, const uint8_t *key,
sys/dev/wg/crypto.h
112
blake2s_init_key(&state, outlen, key, keylen);
sys/dev/wg/crypto.h
30
const uint8_t key[CHACHA20POLY1305_KEY_SIZE])
sys/dev/wg/crypto.h
36
nonce_bytes, sizeof(nonce_bytes), key);
sys/dev/wg/crypto.h
43
const uint8_t key[CHACHA20POLY1305_KEY_SIZE])
sys/dev/wg/crypto.h
49
nonce_bytes, sizeof(nonce_bytes), key));
sys/dev/wg/crypto.h
57
const uint8_t key[CHACHA20POLY1305_KEY_SIZE])
sys/dev/wg/crypto.h
59
xchacha20_poly1305_encrypt(dst, src, src_len, ad, ad_len, nonce, key);
sys/dev/wg/crypto.h
67
const uint8_t key[CHACHA20POLY1305_KEY_SIZE])
sys/dev/wg/crypto.h
69
return (xchacha20_poly1305_decrypt(dst, src, src_len, ad, ad_len, nonce, key));
sys/dev/wg/crypto.h
74
const uint8_t key[CHACHA20POLY1305_KEY_SIZE]);
sys/dev/wg/crypto.h
78
const uint8_t key[CHACHA20POLY1305_KEY_SIZE]);
sys/dev/wg/if_wg.c
2642
const void *key = nvlist_get_binary(nvl, "private-key", &size);
sys/dev/wg/if_wg.c
2649
timingsafe_bcmp(private, key, WG_KEY_SIZE) != 0) {
sys/dev/wg/if_wg.c
2652
if (curve25519_generate_public(public, key)) {
sys/dev/wg/if_wg.c
2668
noise_local_private(sc->sc_local, key);
sys/dev/wg/wg_cookie.c
128
const uint8_t key[COOKIE_INPUT_SIZE])
sys/dev/wg/wg_cookie.c
131
if (key) {
sys/dev/wg/wg_cookie.c
132
precompute_key(cc->cc_mac1_key, key, COOKIE_MAC1_KEY_LABEL);
sys/dev/wg/wg_cookie.c
133
precompute_key(cc->cc_cookie_key, key, COOKIE_COOKIE_KEY_LABEL);
sys/dev/wg/wg_cookie.c
160
cookie_maker_init(struct cookie_maker *cm, const uint8_t key[COOKIE_INPUT_SIZE])
sys/dev/wg/wg_cookie.c
163
precompute_key(cm->cm_mac1_key, key, COOKIE_MAC1_KEY_LABEL);
sys/dev/wg/wg_cookie.c
164
precompute_key(cm->cm_cookie_key, key, COOKIE_COOKIE_KEY_LABEL);
sys/dev/wg/wg_cookie.c
271
precompute_key(uint8_t *key, const uint8_t input[COOKIE_INPUT_SIZE],
sys/dev/wg/wg_cookie.c
278
blake2s_final(&blake, key);
sys/dev/wg/wg_cookie.c
283
const uint8_t key[COOKIE_KEY_SIZE])
sys/dev/wg/wg_cookie.c
286
blake2s_init_key(&state, COOKIE_MAC_SIZE, key, COOKIE_KEY_SIZE);
sys/dev/wg/wg_cookie.c
293
const uint8_t key[COOKIE_COOKIE_SIZE])
sys/dev/wg/wg_cookie.c
296
blake2s_init_key(&state, COOKIE_MAC_SIZE, key, COOKIE_COOKIE_SIZE);
sys/dev/wg/wg_cookie.c
426
struct ratelimit_key key = { .vnet = vnet };
sys/dev/wg/wg_cookie.c
427
size_t len = sizeof(key);
sys/dev/wg/wg_cookie.c
430
memcpy(key.ip, &satosin(sa)->sin_addr, IPV4_MASK_SIZE);
sys/dev/wg/wg_cookie.c
435
memcpy(key.ip, &satosin6(sa)->sin6_addr, IPV6_MASK_SIZE);
sys/dev/wg/wg_cookie.c
440
bucket = siphash13(rl->rl_secret, &key, len) & RATELIMIT_MASK;
sys/dev/wg/wg_cookie.c
444
if (bcmp(&r->r_key, &key, len) != 0)
sys/dev/wg/wg_cookie.c
485
r->r_key = key;
sys/dev/wg/wg_cookie.c
498
static uint64_t siphash13(const uint8_t key[SIPHASH_KEY_LENGTH], const void *src, size_t len)
sys/dev/wg/wg_cookie.c
501
return (SipHashX(&ctx, 1, 3, key, src, len));
sys/dev/wg/wg_crypto.c
101
memcpy(block, key, keylen);
sys/dev/wg/wg_crypto.c
215
const uint8_t key[CHACHA20POLY1305_KEY_SIZE])
sys/dev/wg/wg_crypto.c
230
crp.crp_cipher_key = key;
sys/dev/wg/wg_crypto.c
239
const uint8_t key[CHACHA20POLY1305_KEY_SIZE])
sys/dev/wg/wg_crypto.c
253
crp.crp_cipher_key = key;
sys/dev/wg/wg_crypto.c
95
const uint8_t *key, const size_t keylen)
sys/dev/wg/wg_noise.c
1007
uint8_t key[NOISE_SYMMETRIC_KEY_LEN];
sys/dev/wg/wg_noise.c
1021
if (noise_mix_dh(hs.hs_ck, key, l->l_private, ue) != 0)
sys/dev/wg/wg_noise.c
1026
NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN, key, hs.hs_hash) != 0)
sys/dev/wg/wg_noise.c
1034
if (noise_mix_ss(hs.hs_ck, key, r->r_ss) != 0)
sys/dev/wg/wg_noise.c
1039
NOISE_TIMESTAMP_LEN + NOISE_AUTHTAG_LEN, key, hs.hs_hash) != 0)
sys/dev/wg/wg_noise.c
1072
explicit_bzero(key, NOISE_SYMMETRIC_KEY_LEN);
sys/dev/wg/wg_noise.c
1085
uint8_t key[NOISE_SYMMETRIC_KEY_LEN];
sys/dev/wg/wg_noise.c
1110
noise_mix_psk(hs->hs_ck, hs->hs_hash, key, r->r_psk);
sys/dev/wg/wg_noise.c
1113
noise_msg_encrypt(en, NULL, 0, key, hs->hs_hash);
sys/dev/wg/wg_noise.c
1123
explicit_bzero(key, NOISE_SYMMETRIC_KEY_LEN);
sys/dev/wg/wg_noise.c
1135
uint8_t key[NOISE_SYMMETRIC_KEY_LEN];
sys/dev/wg/wg_noise.c
1168
noise_mix_psk(hs.hs_ck, hs.hs_hash, key, preshared_key);
sys/dev/wg/wg_noise.c
1172
0 + NOISE_AUTHTAG_LEN, key, hs.hs_hash) != 0)
sys/dev/wg/wg_noise.c
1186
explicit_bzero(key, NOISE_SYMMETRIC_KEY_LEN);
sys/dev/wg/wg_noise.c
1195
hmac(uint8_t *out, const uint8_t *in, const uint8_t *key, const size_t outlen,
sys/dev/wg/wg_noise.c
1205
blake2s_update(&state, key, keylen);
sys/dev/wg/wg_noise.c
1208
memcpy(x_key, key, keylen);
sys/dev/wg/wg_noise.c
1274
noise_mix_dh(uint8_t ck[NOISE_HASH_LEN], uint8_t key[NOISE_SYMMETRIC_KEY_LEN],
sys/dev/wg/wg_noise.c
1282
noise_kdf(ck, key, NULL, dh,
sys/dev/wg/wg_noise.c
1289
noise_mix_ss(uint8_t ck[NOISE_HASH_LEN], uint8_t key[NOISE_SYMMETRIC_KEY_LEN],
sys/dev/wg/wg_noise.c
1295
noise_kdf(ck, key, NULL, ss,
sys/dev/wg/wg_noise.c
1314
uint8_t key[NOISE_SYMMETRIC_KEY_LEN],
sys/dev/wg/wg_noise.c
1319
noise_kdf(ck, tmp, key, psk,
sys/dev/wg/wg_noise.c
1345
uint8_t key[NOISE_SYMMETRIC_KEY_LEN], uint8_t hash[NOISE_HASH_LEN])
sys/dev/wg/wg_noise.c
1349
hash, NOISE_HASH_LEN, 0, key);
sys/dev/wg/wg_noise.c
1355
uint8_t key[NOISE_SYMMETRIC_KEY_LEN], uint8_t hash[NOISE_HASH_LEN])
sys/dev/wg/wg_noise.c
1359
hash, NOISE_HASH_LEN, 0, key))
sys/dev/wg/wg_noise.c
1402
static uint64_t siphash24(const uint8_t key[SIPHASH_KEY_LENGTH], const void *src, size_t len)
sys/dev/wg/wg_noise.c
1405
return (SipHashX(&ctx, 2, 4, key, src, len));
sys/dev/wg/wg_noise.c
952
uint8_t key[NOISE_SYMMETRIC_KEY_LEN];
sys/dev/wg/wg_noise.c
970
if (noise_mix_dh(hs->hs_ck, key, hs->hs_e, r->r_public) != 0)
sys/dev/wg/wg_noise.c
975
NOISE_PUBLIC_KEY_LEN, key, hs->hs_hash);
sys/dev/wg/wg_noise.c
978
if (noise_mix_ss(hs->hs_ck, key, r->r_ss) != 0)
sys/dev/wg/wg_noise.c
984
NOISE_TIMESTAMP_LEN, key, hs->hs_hash);
sys/dev/wg/wg_noise.c
994
explicit_bzero(key, NOISE_SYMMETRIC_KEY_LEN);
sys/dev/wpi/if_wpi.c
2920
memcpy(tx->key, ieee80211_crypto_get_key_data(k),
sys/dev/wpi/if_wpi.c
3035
memcpy(tx->key, ieee80211_crypto_get_key_data(k),
sys/dev/wpi/if_wpi.c
4632
memcpy(node.key, ieee80211_crypto_get_key_data(k),
sys/dev/wpi/if_wpireg.h
469
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/dev/wpi/if_wpireg.h
517
uint8_t key[IEEE80211_KEYBUF_SIZE];
sys/fs/autofs/autofs.c
388
char *key, *path;
sys/fs/autofs/autofs.c
397
key = strndup(component, componentlen, M_AUTOFS);
sys/fs/autofs/autofs.c
402
key = strdup(firstanp->an_name, M_AUTOFS);
sys/fs/autofs/autofs.c
410
if (strcmp(ar->ar_key, key) != 0)
sys/fs/autofs/autofs.c
436
strlcpy(ar->ar_key, key, sizeof(ar->ar_key));
sys/fs/autofs/autofs.c
499
free(key, M_AUTOFS);
sys/fs/tarfs/tarfs_vfsops.c
588
char *eol, *key, *value, *sep;
sys/fs/tarfs/tarfs_vfsops.c
603
key = sep + 1;
sys/fs/tarfs/tarfs_vfsops.c
604
sep = strchr(key, '=');
sys/fs/tarfs/tarfs_vfsops.c
611
key, value);
sys/fs/tarfs/tarfs_vfsops.c
612
if (strcmp(key, "size") == 0) {
sys/fs/tarfs/tarfs_vfsops.c
617
} else if (strcmp(key, "path") == 0) {
sys/fs/tarfs/tarfs_vfsops.c
620
} else if (strcmp(key, "linkpath") == 0) {
sys/fs/tarfs/tarfs_vfsops.c
623
} else if (strcmp(key, "GNU.sparse.major") == 0) {
sys/fs/tarfs/tarfs_vfsops.c
629
} else if (strcmp(key, "GNU.sparse.minor") == 0) {
sys/fs/tarfs/tarfs_vfsops.c
635
} else if (strcmp(key, "GNU.sparse.name") == 0) {
sys/fs/tarfs/tarfs_vfsops.c
642
} else if (strcmp(key, "GNU.sparse.realsize") == 0) {
sys/fs/tarfs/tarfs_vfsops.c
648
} else if (strcmp(key, "SCHILY.fflags") == 0) {
sys/geom/eli/g_eli.c
1327
u_char key[G_ELI_USERKEYLEN], mkey[G_ELI_DATAIVKEYLEN];
sys/geom/eli/g_eli.c
1379
memcpy(key, keybuf->kb_ents[i].ke_data,
sys/geom/eli/g_eli.c
1380
sizeof(key));
sys/geom/eli/g_eli.c
1382
if (g_eli_mkey_decrypt_any(&md, key,
sys/geom/eli/g_eli.c
1384
explicit_bzero(key, sizeof(key));
sys/geom/eli/g_eli.c
1452
g_eli_crypto_hmac_final(&ctx, key, 0);
sys/geom/eli/g_eli.c
1457
error = g_eli_mkey_decrypt_any(&md, key, mkey, &nkey);
sys/geom/eli/g_eli.c
1458
explicit_bzero(key, sizeof(key));
sys/geom/eli/g_eli.c
537
void *key;
sys/geom/eli/g_eli.c
549
key = g_eli_key_hold(sc, 0,
sys/geom/eli/g_eli.c
551
csp.csp_cipher_key = key;
sys/geom/eli/g_eli.c
553
key = NULL;
sys/geom/eli/g_eli.c
595
g_eli_key_drop(sc, key);
sys/geom/eli/g_eli.c
597
wr->w_first_key = key;
sys/geom/eli/g_eli.h
713
void g_eli_mkey_hmac(unsigned char *mkey, const unsigned char *key);
sys/geom/eli/g_eli.h
715
const unsigned char *key, unsigned char *mkey, unsigned keyp);
sys/geom/eli/g_eli.h
717
const unsigned char *key, unsigned char *mkey, unsigned *nkeyp);
sys/geom/eli/g_eli.h
718
int g_eli_mkey_encrypt(unsigned algo, const unsigned char *key, unsigned keylen,
sys/geom/eli/g_eli.h
725
const u_char *key, size_t keysize);
sys/geom/eli/g_eli.h
727
const u_char *key, size_t keysize);
sys/geom/eli/g_eli.h
742
void g_eli_key_fill(struct g_eli_softc *sc, struct g_eli_key *key,
sys/geom/eli/g_eli_crypto.c
108
const u_char *key, size_t keysize)
sys/geom/eli/g_eli_crypto.c
165
EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, enc);
sys/geom/eli/g_eli_crypto.c
186
const u_char *key, size_t keysize)
sys/geom/eli/g_eli_crypto.c
193
return (g_eli_crypto_cipher(algo, 1, data, datasize, key, keysize));
sys/geom/eli/g_eli_crypto.c
198
const u_char *key, size_t keysize)
sys/geom/eli/g_eli_crypto.c
205
return (g_eli_crypto_cipher(algo, 0, data, datasize, key, keysize));
sys/geom/eli/g_eli_crypto.c
59
const u_char *key, size_t keysize)
sys/geom/eli/g_eli_crypto.c
73
csp.csp_cipher_key = key;
sys/geom/eli/g_eli_ctl.c
1020
error = g_eli_mkey_decrypt_any(&md, key, mkey, &nkey);
sys/geom/eli/g_eli_ctl.c
1021
explicit_bzero(key, keysize);
sys/geom/eli/g_eli_ctl.c
132
key = gctl_get_param(req, "key", &keysize);
sys/geom/eli/g_eli_ctl.c
133
if (key == NULL || keysize != G_ELI_USERKEYLEN) {
sys/geom/eli/g_eli_ctl.c
140
error = g_eli_mkey_decrypt_any(&md, key, mkey, &nkey);
sys/geom/eli/g_eli_ctl.c
142
error = g_eli_mkey_decrypt(&md, key, mkey, nkey);
sys/geom/eli/g_eli_ctl.c
143
explicit_bzero(key, keysize);
sys/geom/eli/g_eli_ctl.c
56
u_char *key, mkey[G_ELI_DATAIVKEYLEN];
sys/geom/eli/g_eli_ctl.c
646
u_char *key, *mkeydst, *sector;
sys/geom/eli/g_eli_ctl.c
657
key = gctl_get_param(req, "key", &keysize);
sys/geom/eli/g_eli_ctl.c
658
if (key == NULL || keysize != G_ELI_USERKEYLEN) {
sys/geom/eli/g_eli_ctl.c
723
error = g_eli_mkey_encrypt(md.md_ealgo, key, md.md_keylen, mkeydst);
sys/geom/eli/g_eli_ctl.c
724
explicit_bzero(key, keysize);
sys/geom/eli/g_eli_ctl.c
975
u_char *key, mkey[G_ELI_DATAIVKEYLEN];
sys/geom/eli/g_eli_ctl.c
996
key = gctl_get_param(req, "key", &keysize);
sys/geom/eli/g_eli_ctl.c
997
if (key == NULL || keysize != G_ELI_USERKEYLEN) {
sys/geom/eli/g_eli_hmac.c
49
u_char k_ipad[128], k_opad[128], key[128];
sys/geom/eli/g_eli_hmac.c
53
bzero(key, sizeof(key));
sys/geom/eli/g_eli_hmac.c
57
bcopy(hkey, key, hkeylen);
sys/geom/eli/g_eli_hmac.c
62
SHA512_Final(key, &lctx);
sys/geom/eli/g_eli_hmac.c
66
for (i = 0; i < sizeof(key); i++) {
sys/geom/eli/g_eli_hmac.c
67
k_ipad[i] = key[i] ^ 0x36;
sys/geom/eli/g_eli_hmac.c
68
k_opad[i] = key[i] ^ 0x5c;
sys/geom/eli/g_eli_hmac.c
70
explicit_bzero(key, sizeof(key));
sys/geom/eli/g_eli_integrity.c
110
g_eli_auth_keygen(struct g_eli_softc *sc, off_t offset, u_char *key)
sys/geom/eli/g_eli_integrity.c
117
SHA256_Final(key, &ctx);
sys/geom/eli/g_eli_key.c
107
g_eli_mkey_decrypt(const struct g_eli_metadata *md, const unsigned char *key,
sys/geom/eli/g_eli_key.c
121
g_eli_crypto_hmac(key, G_ELI_USERKEYLEN, "\x01", 1, enckey, 0);
sys/geom/eli/g_eli_key.c
135
if (g_eli_mkey_verify(tmpmkey, key)) {
sys/geom/eli/g_eli_key.c
154
const unsigned char *key, unsigned char *mkey, unsigned *nkeyp)
sys/geom/eli/g_eli_key.c
163
error = g_eli_mkey_decrypt(md, key, mkey, nkey);
sys/geom/eli/g_eli_key.c
181
g_eli_mkey_encrypt(unsigned algo, const unsigned char *key, unsigned keylen,
sys/geom/eli/g_eli_key.c
191
g_eli_mkey_hmac(mkey, key);
sys/geom/eli/g_eli_key.c
195
g_eli_crypto_hmac(key, G_ELI_USERKEYLEN, "\x01", 1, enckey, 0);
sys/geom/eli/g_eli_key.c
54
g_eli_mkey_verify(const unsigned char *mkey, const unsigned char *key)
sys/geom/eli/g_eli_key.c
63
g_eli_crypto_hmac(key, G_ELI_USERKEYLEN, "\x00", 1, hmkey, 0);
sys/geom/eli/g_eli_key.c
84
g_eli_mkey_hmac(unsigned char *mkey, const unsigned char *key)
sys/geom/eli/g_eli_key.c
92
g_eli_crypto_hmac(key, G_ELI_USERKEYLEN, "\x00", 1, hmkey, 0);
sys/geom/eli/g_eli_key_cache.c
103
struct g_eli_key *key, *ekey, keysearch;
sys/geom/eli/g_eli_key_cache.c
108
key = malloc(sizeof(*key), M_ELI, M_WAITOK);
sys/geom/eli/g_eli_key_cache.c
109
g_eli_key_fill(sc, key, keyno);
sys/geom/eli/g_eli_key_cache.c
118
zfree(key, M_ELI);
sys/geom/eli/g_eli_key_cache.c
119
key = ekey;
sys/geom/eli/g_eli_key_cache.c
120
TAILQ_REMOVE(&sc->sc_ekeys_queue, key, gek_next);
sys/geom/eli/g_eli_key_cache.c
122
RB_INSERT(g_eli_key_tree, &sc->sc_ekeys_tree, key);
sys/geom/eli/g_eli_key_cache.c
125
TAILQ_INSERT_TAIL(&sc->sc_ekeys_queue, key, gek_next);
sys/geom/eli/g_eli_key_cache.c
127
return (key);
sys/geom/eli/g_eli_key_cache.c
133
struct g_eli_key *key;
sys/geom/eli/g_eli_key_cache.c
137
TAILQ_FOREACH(key, &sc->sc_ekeys_queue, gek_next) {
sys/geom/eli/g_eli_key_cache.c
138
if (key->gek_count == 0)
sys/geom/eli/g_eli_key_cache.c
142
return (key);
sys/geom/eli/g_eli_key_cache.c
146
g_eli_key_replace(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)
sys/geom/eli/g_eli_key_cache.c
150
KASSERT(key->gek_magic == G_ELI_KEY_MAGIC, ("Invalid magic."));
sys/geom/eli/g_eli_key_cache.c
152
RB_REMOVE(g_eli_key_tree, &sc->sc_ekeys_tree, key);
sys/geom/eli/g_eli_key_cache.c
153
TAILQ_REMOVE(&sc->sc_ekeys_queue, key, gek_next);
sys/geom/eli/g_eli_key_cache.c
155
KASSERT(key->gek_count == 0, ("gek_count=%d", key->gek_count));
sys/geom/eli/g_eli_key_cache.c
157
g_eli_key_fill(sc, key, keyno);
sys/geom/eli/g_eli_key_cache.c
159
RB_INSERT(g_eli_key_tree, &sc->sc_ekeys_tree, key);
sys/geom/eli/g_eli_key_cache.c
160
TAILQ_INSERT_TAIL(&sc->sc_ekeys_queue, key, gek_next);
sys/geom/eli/g_eli_key_cache.c
164
g_eli_key_remove(struct g_eli_softc *sc, struct g_eli_key *key)
sys/geom/eli/g_eli_key_cache.c
168
KASSERT(key->gek_magic == G_ELI_KEY_MAGIC, ("Invalid magic."));
sys/geom/eli/g_eli_key_cache.c
169
KASSERT(key->gek_count == 0, ("gek_count=%d", key->gek_count));
sys/geom/eli/g_eli_key_cache.c
171
RB_REMOVE(g_eli_key_tree, &sc->sc_ekeys_tree, key);
sys/geom/eli/g_eli_key_cache.c
172
TAILQ_REMOVE(&sc->sc_ekeys_queue, key, gek_next);
sys/geom/eli/g_eli_key_cache.c
174
zfree(key, M_ELI);
sys/geom/eli/g_eli_key_cache.c
240
struct g_eli_key *key;
sys/geom/eli/g_eli_key_cache.c
242
while ((key = TAILQ_FIRST(&sc->sc_ekeys_queue)) != NULL)
sys/geom/eli/g_eli_key_cache.c
243
g_eli_key_remove(sc, key);
sys/geom/eli/g_eli_key_cache.c
304
struct g_eli_key *key, keysearch;
sys/geom/eli/g_eli_key_cache.c
321
key = RB_FIND(g_eli_key_tree, &sc->sc_ekeys_tree, &keysearch);
sys/geom/eli/g_eli_key_cache.c
322
KASSERT(key != NULL, ("No key %ju found.", (uintmax_t)keyno));
sys/geom/eli/g_eli_key_cache.c
323
KASSERT(key->gek_magic == G_ELI_KEY_MAGIC,
sys/geom/eli/g_eli_key_cache.c
325
return (key->gek_key);
sys/geom/eli/g_eli_key_cache.c
329
key = RB_FIND(g_eli_key_tree, &sc->sc_ekeys_tree, &keysearch);
sys/geom/eli/g_eli_key_cache.c
330
if (key != NULL) {
sys/geom/eli/g_eli_key_cache.c
332
TAILQ_REMOVE(&sc->sc_ekeys_queue, key, gek_next);
sys/geom/eli/g_eli_key_cache.c
333
TAILQ_INSERT_TAIL(&sc->sc_ekeys_queue, key, gek_next);
sys/geom/eli/g_eli_key_cache.c
340
key = g_eli_key_allocate(sc, keyno);
sys/geom/eli/g_eli_key_cache.c
343
key = g_eli_key_find_last(sc);
sys/geom/eli/g_eli_key_cache.c
344
if (key != NULL) {
sys/geom/eli/g_eli_key_cache.c
345
g_eli_key_replace(sc, key, keyno);
sys/geom/eli/g_eli_key_cache.c
348
key = g_eli_key_allocate(sc, keyno);
sys/geom/eli/g_eli_key_cache.c
352
key->gek_count++;
sys/geom/eli/g_eli_key_cache.c
355
KASSERT(key->gek_magic == G_ELI_KEY_MAGIC, ("Invalid key magic."));
sys/geom/eli/g_eli_key_cache.c
357
return (key->gek_key);
sys/geom/eli/g_eli_key_cache.c
363
struct g_eli_key *key = (struct g_eli_key *)rawkey;
sys/geom/eli/g_eli_key_cache.c
368
KASSERT(key->gek_magic == G_ELI_KEY_MAGIC, ("Invalid key magic."));
sys/geom/eli/g_eli_key_cache.c
374
KASSERT(key->gek_count > 0, ("key->gek_count=%d", key->gek_count));
sys/geom/eli/g_eli_key_cache.c
375
key->gek_count--;
sys/geom/eli/g_eli_key_cache.c
377
key = g_eli_key_find_last(sc);
sys/geom/eli/g_eli_key_cache.c
378
if (key == NULL)
sys/geom/eli/g_eli_key_cache.c
380
g_eli_key_remove(sc, key);
sys/geom/eli/g_eli_key_cache.c
74
g_eli_key_fill(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)
sys/geom/eli/g_eli_key_cache.c
90
sizeof(hmacdata), key->gek_key, 0);
sys/geom/eli/g_eli_key_cache.c
91
key->gek_keyno = keyno;
sys/geom/eli/g_eli_key_cache.c
92
key->gek_count = 0;
sys/geom/eli/g_eli_key_cache.c
93
key->gek_magic = G_ELI_KEY_MAGIC;
sys/geom/eli/pkcs5v2.c
105
uint8_t key[G_ELI_USERKEYLEN], salt[G_ELI_SALTLEN];
sys/geom/eli/pkcs5v2.c
111
pkcs5v2_genkey(key, sizeof(key), salt, sizeof(salt), passphrase,
sys/geom/eli/pkcs5v2.c
51
pkcs5v2_genkey(uint8_t *key, unsigned keylen, const uint8_t *salt,
sys/geom/eli/pkcs5v2.c
55
pkcs5v2_genkey_raw(key, keylen, salt, saltsize, passphrase,
sys/geom/eli/pkcs5v2.c
60
pkcs5v2_genkey_raw(uint8_t *key, unsigned keylen, const uint8_t *salt,
sys/geom/eli/pkcs5v2.c
70
bzero(key, keylen);
sys/geom/eli/pkcs5v2.c
74
keyp = key;
sys/geom/eli/pkcs5v2.h
31
void pkcs5v2_genkey(uint8_t *key, unsigned keylen, const uint8_t *salt,
sys/geom/eli/pkcs5v2.h
33
void pkcs5v2_genkey_raw(uint8_t *key, unsigned keylen, const uint8_t *salt,
sys/geom/linux_lvm/g_linux_lvm.c
848
#define GRAB_INT(key, tok1, tok2, v) \
sys/geom/linux_lvm/g_linux_lvm.c
849
if (tok1 && tok2 && strncmp(tok1, key, sizeof(key)) == 0) { \
sys/geom/linux_lvm/g_linux_lvm.c
857
#define GRAB_STR(key, tok1, tok2, v, len) \
sys/geom/linux_lvm/g_linux_lvm.c
858
if (tok1 && tok2 && strncmp(tok1, key, sizeof(key)) == 0) { \
sys/geom/linux_lvm/g_linux_lvm.c
869
#define SPLIT(key, value, str) \
sys/geom/linux_lvm/g_linux_lvm.c
870
key = strsep(&value, str); \
sys/geom/linux_lvm/g_linux_lvm.c
872
for (char *t = key; *t != '\0'; t++) \
sys/i386/linux/linux_machdep.c
115
a.key = args->arg1;
sys/i386/linux/linux_machdep.c
176
a.key = args->arg1;
sys/i386/linux/linux_machdep.c
213
a.key = args->arg1;
sys/i386/linux/linux_proto.h
1482
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/i386/linux/linux_proto.h
1493
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/i386/linux/linux_proto.h
1511
char key_l_[PADL_(l_key_t)]; l_key_t key; char key_r_[PADR_(l_key_t)];
sys/i386/linux/linux_systrace_args.c
2927
iarg[a++] = p->key; /* l_key_t */
sys/i386/linux/linux_systrace_args.c
2946
iarg[a++] = p->key; /* l_key_t */
sys/i386/linux/linux_systrace_args.c
2980
iarg[a++] = p->key; /* l_key_t */
sys/kern/kern_cpuset.c
1463
struct domainset key;
sys/kern/kern_cpuset.c
1483
memset(&key, 0, sizeof(key));
sys/kern/kern_cpuset.c
1484
p = &buf[bitset_strscan((struct bitset *)&key.ds_mask,
sys/kern/kern_cpuset.c
1490
key.ds_policy = policy;
sys/kern/kern_cpuset.c
1491
key.ds_prefer = prefer;
sys/kern/kern_cpuset.c
1494
dset = domainset_create(&key);
sys/kern/kern_jailmeta.c
172
jm_h_cut_occurrences(struct hunk *h, const char *key, size_t keylen)
sys/kern/kern_jailmeta.c
183
p = strnstr(p, key, h->len - (p - h->p));
sys/kern/kern_jailmeta.c
254
char *key;
sys/kern/kern_jailmeta.c
329
key = opt->name + strlen(meta->name) + 1;
sys/kern/kern_jailmeta.c
330
keylen = strlen(key);
sys/kern/kern_jailmeta.c
335
jm_h_cut_occurrences(h, key, keylen);
sys/kern/kern_jailmeta.c
342
memcpy(h->p, key, keylen);
sys/kern/kern_jailmeta.c
404
const char *key;
sys/kern/kern_jailmeta.c
437
key = opt->name + strlen(meta->name) + 1;
sys/kern/kern_jailmeta.c
438
keylen = strlen(key);
sys/kern/kern_jailmeta.c
439
while ((p = strstr(p, key)) != NULL) {
sys/kern/kern_proc.c
2627
key_t key;
sys/kern/kern_proc.c
2730
shmobjinfo(lobj, &key, &seq);
sys/kern/kern_proc.c
2731
kve->kve_vn_fileid = key;
sys/kern/kern_shutdown.c
1088
const uint8_t *key, uint32_t encryptedkeysize, const uint8_t *encryptedkey)
sys/kern/kern_shutdown.c
1102
if (rijndael_makeKey(&kdc->kdc_ki, DIR_ENCRYPT, 256, key) <= 0)
sys/kern/kern_shutdown.c
1106
chacha_keysetup(&kdc->kdc_chacha, key, 256);
sys/kern/kern_shutdown.c
1652
void *key;
sys/kern/kern_shutdown.c
1664
key = keysize > 0 ? kdc->kdc_dumpkey : NULL;
sys/kern/kern_shutdown.c
1668
key = NULL;
sys/kern/kern_shutdown.c
1672
error = di->dumper_start(di, key, keysize);
sys/kern/kern_sysctl.c
1187
struct sysctl_oid *oid, key;
sys/kern/kern_sysctl.c
1211
key.oid_number = *name;
sys/kern/kern_sysctl.c
1212
oid = RB_FIND(sysctl_oid_list, lsp, &key);
sys/kern/kern_sysctl.c
1340
struct sysctl_oid *oidp = NULL, key;
sys/kern/kern_sysctl.c
1350
key.oid_number = *name;
sys/kern/kern_sysctl.c
1351
oidp = RB_FIND(sysctl_oid_list, lsp, &key);
sys/kern/kern_sysctl.c
2288
struct sysctl_oid key;
sys/kern/kern_sysctl.c
2295
key.oid_number = name[indx];
sys/kern/kern_sysctl.c
2296
oid = RB_FIND(sysctl_oid_list, lsp, &key);
sys/kern/kern_sysctl.c
449
struct sysctl_oid *p, key;
sys/kern/kern_sysctl.c
498
key.oid_number = oid_number;
sys/kern/kern_sysctl.c
499
p = RB_NFIND(sysctl_oid_list, parent, &key);
sys/kern/kern_sysctl.c
509
key.oid_number = oid_number;
sys/kern/kern_sysctl.c
510
p = RB_NFIND(sysctl_oid_list, parent, &key);
sys/kern/kern_umtx.c
100
#define UMTXQ_ASSERT_LOCKED_BUSY(key) do {} while (0)
sys/kern/kern_umtx.c
1040
struct umtx_key key;
sys/kern/kern_umtx.c
1068
&key)) != 0)
sys/kern/kern_umtx.c
1071
umtxq_lock(&key);
sys/kern/kern_umtx.c
1072
umtxq_busy(&key);
sys/kern/kern_umtx.c
1073
count = umtxq_count(&key);
sys/kern/kern_umtx.c
1074
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1083
umtxq_lock(&key);
sys/kern/kern_umtx.c
1084
umtxq_signal(&key,1);
sys/kern/kern_umtx.c
1085
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
1086
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1087
umtx_key_release(&key);
sys/kern/kern_umtx.c
1221
struct umtx_key key;
sys/kern/kern_umtx.c
1249
&key)) != 0)
sys/kern/kern_umtx.c
1252
umtxq_lock(&key);
sys/kern/kern_umtx.c
1253
umtxq_busy(&key);
sys/kern/kern_umtx.c
1254
count = umtxq_count(&key);
sys/kern/kern_umtx.c
1255
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1264
umtxq_lock(&key);
sys/kern/kern_umtx.c
1265
umtxq_signal(&key,1);
sys/kern/kern_umtx.c
1266
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
1267
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1268
umtx_key_release(&key);
sys/kern/kern_umtx.c
1338
struct umtx_key key;
sys/kern/kern_umtx.c
1342
is_private ? THREAD_SHARE : AUTO_SHARE, &key)) != 0)
sys/kern/kern_umtx.c
1344
umtxq_lock(&key);
sys/kern/kern_umtx.c
1345
umtxq_signal(&key, n_wake);
sys/kern/kern_umtx.c
1346
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1347
umtx_key_release(&key);
sys/kern/kern_umtx.c
1532
struct umtx_key key;
sys/kern/kern_umtx.c
1566
&key)) != 0)
sys/kern/kern_umtx.c
1569
umtxq_lock(&key);
sys/kern/kern_umtx.c
1570
umtxq_busy(&key);
sys/kern/kern_umtx.c
1571
count = umtxq_count(&key);
sys/kern/kern_umtx.c
1572
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1582
umtxq_lock(&key);
sys/kern/kern_umtx.c
1583
umtxq_signal(&key, 1);
sys/kern/kern_umtx.c
1584
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
1585
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1586
umtx_key_release(&key);
sys/kern/kern_umtx.c
1607
struct umtx_key key;
sys/kern/kern_umtx.c
1628
&key)) != 0)
sys/kern/kern_umtx.c
1631
umtxq_lock(&key);
sys/kern/kern_umtx.c
1632
umtxq_busy(&key);
sys/kern/kern_umtx.c
1633
count = umtxq_count(&key);
sys/kern/kern_umtx.c
1634
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1643
umtxq_lock(&key);
sys/kern/kern_umtx.c
1644
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
1645
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1646
umtx_key_release(&key);
sys/kern/kern_umtx.c
1654
umtxq_lock(&key);
sys/kern/kern_umtx.c
1659
umtxq_signal(&key, 1);
sys/kern/kern_umtx.c
1661
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
1662
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1663
umtx_key_release(&key);
sys/kern/kern_umtx.c
1673
struct umtx_key key;
sys/kern/kern_umtx.c
1700
if ((error = umtx_key_get(m, type, GET_SHARE(flags), &key)) != 0)
sys/kern/kern_umtx.c
1704
umtxq_lock(&key);
sys/kern/kern_umtx.c
1705
umtxq_busy(&key);
sys/kern/kern_umtx.c
1706
count = umtxq_count(&key);
sys/kern/kern_umtx.c
1707
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1734
umtxq_lock(&key);
sys/kern/kern_umtx.c
1736
umtxq_signal(&key, INT_MAX);
sys/kern/kern_umtx.c
1739
umtxq_signal(&key, 1);
sys/kern/kern_umtx.c
1740
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
1741
umtxq_unlock(&key);
sys/kern/kern_umtx.c
1742
umtx_key_release(&key);
sys/kern/kern_umtx.c
179
static void umtxq_hash(struct umtx_key *key);
sys/kern/kern_umtx.c
185
#define umtxq_signal(key, nwake) umtxq_signal_queue((key), (nwake), UMTX_SHARED_QUEUE)
sys/kern/kern_umtx.c
2131
umtx_pi_lookup(struct umtx_key *key)
sys/kern/kern_umtx.c
2136
uc = umtxq_getchain(key);
sys/kern/kern_umtx.c
2140
if (umtx_key_match(&pi->pi_key, key)) {
sys/kern/kern_umtx.c
2164
umtx_pi_drop(struct thread *td, struct umtx_key *key, bool rb, int *count)
sys/kern/kern_umtx.c
2170
UMTXQ_ASSERT_LOCKED_BUSY(key);
sys/kern/kern_umtx.c
2171
*count = umtxq_count_pi(key, &uq_first);
sys/kern/kern_umtx.c
2205
pi = umtx_pi_lookup(key);
sys/kern/kern_umtx.c
2445
struct umtx_key key;
sys/kern/kern_umtx.c
2483
&key)) != 0)
sys/kern/kern_umtx.c
2486
umtxq_lock(&key);
sys/kern/kern_umtx.c
2487
umtxq_busy(&key);
sys/kern/kern_umtx.c
2488
error = umtx_pi_drop(td, &key, rb, &count);
sys/kern/kern_umtx.c
2490
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
2491
umtxq_unlock(&key);
sys/kern/kern_umtx.c
2492
umtx_key_release(&key);
sys/kern/kern_umtx.c
2496
umtxq_unlock(&key);
sys/kern/kern_umtx.c
2513
umtxq_unbusy_unlocked(&key);
sys/kern/kern_umtx.c
2514
umtx_key_release(&key);
sys/kern/kern_umtx.c
2697
struct umtx_key key;
sys/kern/kern_umtx.c
2733
&key)) != 0)
sys/kern/kern_umtx.c
2735
umtxq_busy_unlocked(&key);
sys/kern/kern_umtx.c
2746
umtxq_lock(&key);
sys/kern/kern_umtx.c
2748
umtxq_signal(&key, 1);
sys/kern/kern_umtx.c
2749
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
2750
umtxq_unlock(&key);
sys/kern/kern_umtx.c
2773
umtx_key_release(&key);
sys/kern/kern_umtx.c
3039
struct umtx_key key;
sys/kern/kern_umtx.c
3046
if ((error = umtx_key_get(cv, TYPE_CV, GET_SHARE(flags), &key)) != 0)
sys/kern/kern_umtx.c
3048
umtxq_lock(&key);
sys/kern/kern_umtx.c
3049
umtxq_busy(&key);
sys/kern/kern_umtx.c
3050
cnt = umtxq_count(&key);
sys/kern/kern_umtx.c
3051
nwake = umtxq_signal(&key, 1);
sys/kern/kern_umtx.c
3053
umtxq_unlock(&key);
sys/kern/kern_umtx.c
3057
umtxq_lock(&key);
sys/kern/kern_umtx.c
3059
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
3060
umtxq_unlock(&key);
sys/kern/kern_umtx.c
3061
umtx_key_release(&key);
sys/kern/kern_umtx.c
3068
struct umtx_key key;
sys/kern/kern_umtx.c
3075
if ((error = umtx_key_get(cv, TYPE_CV, GET_SHARE(flags), &key)) != 0)
sys/kern/kern_umtx.c
3078
umtxq_lock(&key);
sys/kern/kern_umtx.c
3079
umtxq_busy(&key);
sys/kern/kern_umtx.c
3080
umtxq_signal(&key, INT_MAX);
sys/kern/kern_umtx.c
3081
umtxq_unlock(&key);
sys/kern/kern_umtx.c
3087
umtxq_unbusy_unlocked(&key);
sys/kern/kern_umtx.c
3089
umtx_key_release(&key);
sys/kern/kern_umtx.c
3653
struct umtx_key key;
sys/kern/kern_umtx.c
3660
if ((error = umtx_key_get(sem, TYPE_SEM, GET_SHARE(flags), &key)) != 0)
sys/kern/kern_umtx.c
3662
umtxq_lock(&key);
sys/kern/kern_umtx.c
3663
umtxq_busy(&key);
sys/kern/kern_umtx.c
3664
cnt = umtxq_count(&key);
sys/kern/kern_umtx.c
3672
umtxq_unlock(&key);
sys/kern/kern_umtx.c
3674
umtxq_lock(&key);
sys/kern/kern_umtx.c
3678
umtxq_signal(&key, 1);
sys/kern/kern_umtx.c
3680
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
3681
umtxq_unlock(&key);
sys/kern/kern_umtx.c
3682
umtx_key_release(&key);
sys/kern/kern_umtx.c
3775
struct umtx_key key;
sys/kern/kern_umtx.c
378
umtxq_hash(struct umtx_key *key)
sys/kern/kern_umtx.c
3782
if ((error = umtx_key_get(sem, TYPE_SEM, GET_SHARE(flags), &key)) != 0)
sys/kern/kern_umtx.c
3784
umtxq_lock(&key);
sys/kern/kern_umtx.c
3785
umtxq_busy(&key);
sys/kern/kern_umtx.c
3786
cnt = umtxq_count(&key);
sys/kern/kern_umtx.c
3793
umtxq_unlock(&key);
sys/kern/kern_umtx.c
3809
umtxq_lock(&key);
sys/kern/kern_umtx.c
3812
umtxq_signal(&key, 1);
sys/kern/kern_umtx.c
3814
umtxq_unbusy(&key);
sys/kern/kern_umtx.c
3815
umtxq_unlock(&key);
sys/kern/kern_umtx.c
3816
umtx_key_release(&key);
sys/kern/kern_umtx.c
382
n = (uintptr_t)key->info.both.a + key->info.both.b;
sys/kern/kern_umtx.c
383
key->hash = ((n * GOLDEN_RATIO_PRIME) >> UMTX_SHIFTS) % UMTX_CHAINS;
sys/kern/kern_umtx.c
387
umtxq_getchain(struct umtx_key *key)
sys/kern/kern_umtx.c
390
if (key->type <= TYPE_SEM)
sys/kern/kern_umtx.c
391
return (&umtxq_chains[1][key->hash]);
sys/kern/kern_umtx.c
392
return (&umtxq_chains[0][key->hash]);
sys/kern/kern_umtx.c
400
umtxq_busy(struct umtx_key *key)
sys/kern/kern_umtx.c
404
uc = umtxq_getchain(key);
sys/kern/kern_umtx.c
411
umtxq_unlock(key);
sys/kern/kern_umtx.c
414
umtxq_lock(key);
sys/kern/kern_umtx.c
431
umtxq_unbusy(struct umtx_key *key)
sys/kern/kern_umtx.c
435
uc = umtxq_getchain(key);
sys/kern/kern_umtx.c
4354
umtx_shm_find_reg_locked(const struct umtx_key *key,
sys/kern/kern_umtx.c
4360
KASSERT(key->shared, ("umtx_p_find_rg: private key"));
sys/kern/kern_umtx.c
4362
reg_head = &umtx_shm_registry[key->hash];
sys/kern/kern_umtx.c
4367
key->info.shared.object &&
sys/kern/kern_umtx.c
4369
key->info.shared.offset) {
sys/kern/kern_umtx.c
4395
umtx_shm_find_reg(const struct umtx_key *key, struct umtx_shm_reg **const oreg)
sys/kern/kern_umtx.c
4400
error = umtx_shm_find_reg_locked(key, oreg);
sys/kern/kern_umtx.c
444
umtxq_busy_unlocked(struct umtx_key *key)
sys/kern/kern_umtx.c
446
umtxq_lock(key);
sys/kern/kern_umtx.c
447
umtxq_busy(key);
sys/kern/kern_umtx.c
448
umtxq_unlock(key);
sys/kern/kern_umtx.c
4495
umtx_shm_create_reg(struct thread *td, const struct umtx_key *key,
sys/kern/kern_umtx.c
4503
error = umtx_shm_find_reg(key, res);
sys/kern/kern_umtx.c
452
umtxq_unbusy_unlocked(struct umtx_key *key)
sys/kern/kern_umtx.c
4524
bcopy(key, ®->ushm_key, sizeof(*key));
sys/kern/kern_umtx.c
4534
error = umtx_shm_find_reg_locked(key, ®1);
sys/kern/kern_umtx.c
454
umtxq_lock(key);
sys/kern/kern_umtx.c
4548
TAILQ_INSERT_TAIL(&umtx_shm_registry[key->hash], reg, ushm_reg_link);
sys/kern/kern_umtx.c
4549
LIST_INSERT_HEAD(USHM_OBJ_UMTX(key->info.shared.object), reg,
sys/kern/kern_umtx.c
455
umtxq_unbusy(key);
sys/kern/kern_umtx.c
456
umtxq_unlock(key);
sys/kern/kern_umtx.c
460
umtxq_queue_lookup(struct umtx_key *key, int q)
sys/kern/kern_umtx.c
4603
struct umtx_key key;
sys/kern/kern_umtx.c
4613
error = umtx_key_get(addr, TYPE_SHM, PROCESS_SHARE, &key);
sys/kern/kern_umtx.c
4616
KASSERT(key.shared == 1, ("non-shared key"));
sys/kern/kern_umtx.c
4618
umtx_shm_create_reg(td, &key, ®) :
sys/kern/kern_umtx.c
4619
umtx_shm_find_reg(&key, ®);
sys/kern/kern_umtx.c
4620
umtx_key_release(&key);
sys/kern/kern_umtx.c
465
uc = umtxq_getchain(key);
sys/kern/kern_umtx.c
468
if (umtx_key_match(&uh->key, key))
sys/kern/kern_umtx.c
489
uh->key = uq->uq_key;
sys/kern/kern_umtx.c
543
umtxq_count(struct umtx_key *key)
sys/kern/kern_umtx.c
547
UMTXQ_LOCKED_ASSERT(umtxq_getchain(key));
sys/kern/kern_umtx.c
548
uh = umtxq_queue_lookup(key, UMTX_SHARED_QUEUE);
sys/kern/kern_umtx.c
559
umtxq_count_pi(struct umtx_key *key, struct umtx_q **first)
sys/kern/kern_umtx.c
564
UMTXQ_LOCKED_ASSERT(umtxq_getchain(key));
sys/kern/kern_umtx.c
565
uh = umtxq_queue_lookup(key, UMTX_SHARED_QUEUE);
sys/kern/kern_umtx.c
577
umtxq_signal_mask(struct umtx_key *key, int n_wake, u_int bitset)
sys/kern/kern_umtx.c
584
UMTXQ_LOCKED_ASSERT(umtxq_getchain(key));
sys/kern/kern_umtx.c
585
uh = umtxq_queue_lookup(key, UMTX_SHARED_QUEUE);
sys/kern/kern_umtx.c
604
umtxq_signal_queue(struct umtx_key *key, int n_wake, int q)
sys/kern/kern_umtx.c
611
UMTXQ_LOCKED_ASSERT(umtxq_getchain(key));
sys/kern/kern_umtx.c
612
uh = umtxq_queue_lookup(key, q);
sys/kern/kern_umtx.c
644
umtxq_requeue(struct umtx_key *key, int n_wake, struct umtx_key *key2,
sys/kern/kern_umtx.c
652
UMTXQ_LOCKED_ASSERT(umtxq_getchain(key));
sys/kern/kern_umtx.c
654
uh = umtxq_queue_lookup(key, UMTX_SHARED_QUEUE);
sys/kern/kern_umtx.c
863
umtx_key_get(const void *addr, int type, int share, struct umtx_key *key)
sys/kern/kern_umtx.c
872
key->type = type;
sys/kern/kern_umtx.c
874
key->shared = 0;
sys/kern/kern_umtx.c
875
key->info.private.vs = td->td_proc->p_vmspace;
sys/kern/kern_umtx.c
876
key->info.private.addr = (uintptr_t)addr;
sys/kern/kern_umtx.c
881
&entry, &key->info.shared.object, &pindex, &prot,
sys/kern/kern_umtx.c
889
key->shared = 1;
sys/kern/kern_umtx.c
890
key->info.shared.offset = (vm_offset_t)addr -
sys/kern/kern_umtx.c
892
vm_object_reference(key->info.shared.object);
sys/kern/kern_umtx.c
894
key->shared = 0;
sys/kern/kern_umtx.c
895
key->info.private.vs = td->td_proc->p_vmspace;
sys/kern/kern_umtx.c
896
key->info.private.addr = (uintptr_t)addr;
sys/kern/kern_umtx.c
901
umtxq_hash(key);
sys/kern/kern_umtx.c
909
umtx_key_release(struct umtx_key *key)
sys/kern/kern_umtx.c
911
if (key->shared)
sys/kern/kern_umtx.c
912
vm_object_deallocate(key->info.shared.object);
sys/kern/kern_umtx.c
92
#define UMTXQ_ASSERT_LOCKED_BUSY(key) do { \
sys/kern/kern_umtx.c
95
uc = umtxq_getchain(key); \
sys/kern/kern_vnodedumper.c
154
vnode_dumper_start(struct dumperinfo *di, void *key, uint32_t keysize)
sys/kern/subr_bus_dma.c
639
switch (pkv->key) {
sys/kern/subr_bus_dma.c
678
KASSERT(0, ("Invalid key %d\n", pkv->key));
sys/kern/subr_disk.c
250
uoff_t key;
sys/kern/subr_disk.c
280
key = bioq_bio_key(head, bp);
sys/kern/subr_disk.c
288
while (cur != NULL && key >= bioq_bio_key(head, cur)) {
sys/kern/subr_kdb.c
351
kdb_alt_break_state(int key, int *state)
sys/kern/subr_kdb.c
356
if (key == KEY_CR) {
sys/kern/subr_kdb.c
365
if (key == KEY_TILDE)
sys/kern/subr_kdb.c
370
if (key == KEY_CRTLB)
sys/kern/subr_kdb.c
372
else if (key == KEY_CRTLP)
sys/kern/subr_kdb.c
374
else if (key == KEY_CRTLR)
sys/kern/subr_kdb.c
386
kdb_alt_break_internal(int key, int *state, int force_gdb)
sys/kern/subr_kdb.c
392
brk = kdb_alt_break_state(key, state);
sys/kern/subr_kdb.c
414
kdb_alt_break(int key, int *state)
sys/kern/subr_kdb.c
417
return (kdb_alt_break_internal(key, state, 0));
sys/kern/subr_kdb.c
426
kdb_alt_break_gdb(int key, int *state)
sys/kern/subr_kdb.c
429
return (kdb_alt_break_internal(key, state, 1));
sys/kern/subr_witness.c
3267
witness_hash_djb2(const uint8_t *key, uint32_t size)
sys/kern/subr_witness.c
3275
hash = ((hash << 5) + hash) + (unsigned int)key[i];
sys/kern/subr_witness.c
3277
for (i = 0; key[i] != 0; i++)
sys/kern/subr_witness.c
3278
hash = ((hash << 5) + hash) + (unsigned int)key[i];
sys/kern/subr_witness.c
3315
witness_hash_get(const char *key)
sys/kern/subr_witness.c
3320
MPASS(key != NULL);
sys/kern/subr_witness.c
3323
hash = witness_hash_djb2(key, 0) % w_hash.wh_size;
sys/kern/subr_witness.c
3326
if (strcmp(w->w_name, key) == 0)
sys/kern/subr_witness.c
3359
struct witness_lock_order_key key;
sys/kern/subr_witness.c
336
static uint32_t witness_hash_djb2(const uint8_t *key, uint32_t size);
sys/kern/subr_witness.c
3363
key.from = parent->w_index;
sys/kern/subr_witness.c
3364
key.to = child->w_index;
sys/kern/subr_witness.c
3365
WITNESS_INDEX_ASSERT(key.from);
sys/kern/subr_witness.c
3366
WITNESS_INDEX_ASSERT(key.to);
sys/kern/subr_witness.c
337
static struct witness *witness_hash_get(const char *key);
sys/kern/subr_witness.c
3371
hash = witness_hash_djb2((const char *)&key,
sys/kern/subr_witness.c
3372
sizeof(key)) % w_lohash.wloh_size;
sys/kern/subr_witness.c
3375
if (witness_lock_order_key_equal(&data->wlod_key, &key))
sys/kern/subr_witness.c
3405
struct witness_lock_order_key key;
sys/kern/subr_witness.c
3409
key.from = parent->w_index;
sys/kern/subr_witness.c
3410
key.to = child->w_index;
sys/kern/subr_witness.c
3411
WITNESS_INDEX_ASSERT(key.from);
sys/kern/subr_witness.c
3412
WITNESS_INDEX_ASSERT(key.to);
sys/kern/subr_witness.c
3417
hash = witness_hash_djb2((const char *)&key,
sys/kern/subr_witness.c
3418
sizeof(key)) % w_lohash.wloh_size;
sys/kern/subr_witness.c
3425
data->wlod_key = key;
sys/kern/systrace_args.c
1051
iarg[a++] = p->key; /* key_t */
sys/kern/systrace_args.c
1069
iarg[a++] = p->key; /* key_t */
sys/kern/systrace_args.c
1114
iarg[a++] = p->key; /* key_t */
sys/kern/sysv_ipc.c
171
new->key = old->key;
sys/kern/sysv_ipc.c
185
old->key = new->key;
sys/kern/sysv_ipc.c
211
CP(*ip32, *ip, key);
sys/kern/sysv_ipc.c
224
CP(*ip, *ip32, key);
sys/kern/sysv_ipc.c
238
CP(*ip32, *ip, key);
sys/kern/sysv_ipc.c
251
CP(*ip, *ip32, key);
sys/kern/sysv_ipc.c
53
void (*shmobjinfo_hook)(struct vm_object *, key_t *key,
sys/kern/sysv_ipc.c
73
shmobjinfo(struct vm_object *obj, key_t *key, unsigned short *seq)
sys/kern/sysv_ipc.c
75
*key = 0; /* For non-present sysvshm.ko */
sys/kern/sysv_ipc.c
78
shmobjinfo_hook(obj, key, seq);
sys/kern/sysv_msg.c
1436
tmsqk.u.msg_perm.key = IPC_PRIVATE;
sys/kern/sysv_msg.c
1502
pmsqk->u.msg_perm.key = IPC_PRIVATE;
sys/kern/sysv_msg.c
611
msqbuf->msg_perm.key = IPC_PRIVATE;
sys/kern/sysv_msg.c
636
key_t key;
sys/kern/sysv_msg.c
645
int key = uap->key;
sys/kern/sysv_msg.c
650
DPRINTF(("msgget(0x%x, 0%o)\n", key, msgflg));
sys/kern/sysv_msg.c
656
if (key != IPC_PRIVATE) {
sys/kern/sysv_msg.c
662
msqkptr->u.msg_perm.key == key)
sys/kern/sysv_msg.c
690
if (key == IPC_PRIVATE || (msgflg & IPC_CREAT)) {
sys/kern/sysv_msg.c
720
msqkptr->u.msg_perm.key = key;
sys/kern/sysv_sem.c
1015
if (key == IPC_PRIVATE || (semflg & IPC_CREAT)) {
sys/kern/sysv_sem.c
1053
sema[semid].u.sem_perm.key = key;
sys/kern/sysv_sem.c
1545
tsemak.u.sem_perm.key = IPC_PRIVATE;
sys/kern/sysv_sem.c
1599
psemak->u.sem_perm.key = IPC_PRIVATE;
sys/kern/sysv_sem.c
741
arg->buf->sem_perm.key = IPC_PRIVATE;
sys/kern/sysv_sem.c
796
arg->buf->sem_perm.key = IPC_PRIVATE;
sys/kern/sysv_sem.c
958
key_t key;
sys/kern/sysv_sem.c
967
int key = uap->key;
sys/kern/sysv_sem.c
972
DPRINTF(("semget(0x%x, %d, 0%o)\n", key, nsems, semflg));
sys/kern/sysv_sem.c
980
if (key != IPC_PRIVATE) {
sys/kern/sysv_sem.c
985
sema[semid].u.sem_perm.key == key)
sys/kern/sysv_shm.c
1088
tshmseg.u.shm_perm.key = IPC_PRIVATE;
sys/kern/sysv_shm.c
1147
pshmseg->u.shm_perm.key = IPC_PRIVATE;
sys/kern/sysv_shm.c
125
static int shmget_allocate_segment(struct thread *td, key_t key, size_t size,
sys/kern/sysv_shm.c
136
static void shmobjinfo_myhook(vm_object_t obj, key_t *key,
sys/kern/sysv_shm.c
1459
ap.key = uap->a2;
sys/kern/sysv_shm.c
207
shm_find_segment_by_key(struct prison *pr, key_t key)
sys/kern/sysv_shm.c
215
shmsegs[i].u.shm_perm.key == key)
sys/kern/sysv_shm.c
296
shmseg->u.shm_perm.key = IPC_PRIVATE;
sys/kern/sysv_shm.c
558
shmidp->shm_perm.key = IPC_PRIVATE;
sys/kern/sysv_shm.c
682
shmget_allocate_segment(struct thread *td, key_t key, size_t size, int mode)
sys/kern/sysv_shm.c
755
shmseg->u.shm_perm.key = key;
sys/kern/sysv_shm.c
775
key_t key;
sys/kern/sysv_shm.c
790
if (uap->key == IPC_PRIVATE) {
sys/kern/sysv_shm.c
791
error = shmget_allocate_segment(td, uap->key, uap->size, mode);
sys/kern/sysv_shm.c
794
uap->key);
sys/kern/sysv_shm.c
801
error = shmget_allocate_segment(td, uap->key,
sys/kern/sysv_shm.c
863
shmobjinfo(vm_object_t obj, key_t *key, unsigned short *seq)
sys/kern/sysv_shm.c
866
shmobjinfo_myhook(vm_object_t obj, key_t *key, unsigned short *seq)
sys/kern/sysv_shm.c
871
*key = 0; /* For statically compiled-in sysv_shm.c */
sys/kern/sysv_shm.c
876
*key = shmsegs[i].u.shm_perm.key;
sys/kern/vfs_inotify.c
1009
struct inotify_watch key, *watch;
sys/kern/vfs_inotify.c
1026
key.wd = wd;
sys/kern/vfs_inotify.c
1028
watch = RB_FIND(inotify_watch_tree, &sc->watches, &key);
sys/kern/vfs_inotify.c
614
struct inotify_watch key;
sys/kern/vfs_inotify.c
651
key.wd = watch->wd;
sys/kern/vfs_inotify.c
652
if (RB_FIND(inotify_watch_tree, &sc->watches, &key) != NULL) {
sys/kern/vfs_inotify.c
867
struct inotify_watch key;
sys/kern/vfs_inotify.c
874
key.wd = wd = sc->nextwatch++;
sys/kern/vfs_inotify.c
875
watch1 = RB_FIND(inotify_watch_tree, &sc->watches, &key);
sys/kgssapi/krb5/krb5_mech.c
1028
struct krb5_key_state *key = kc->kc_send_sign_Kc;
sys/kgssapi/krb5/krb5_mech.c
1036
cklen = key->ks_class->ec_checksumlen;
sys/kgssapi/krb5/krb5_mech.c
1081
krb5_checksum(key, 0, m, 0, mlen + 16, cklen);
sys/kgssapi/krb5/krb5_mech.c
1221
struct krb5_key_state *key = kc->kc_recv_sign_Kc;
sys/kgssapi/krb5/krb5_mech.c
1229
cklen = key->ks_class->ec_checksumlen;
sys/kgssapi/krb5/krb5_mech.c
1288
krb5_checksum(key, 0, m, 0, mlen + 16, cklen);
sys/kgssapi/krb5/krb5_mech.c
277
struct krb5_key_state *key;
sys/kgssapi/krb5/krb5_mech.c
313
key = krb5_create_key(ec);
sys/kgssapi/krb5/krb5_mech.c
314
krb5_set_key(key, keydata->kk_key.kd_data);
sys/kgssapi/krb5/krb5_mech.c
315
kc->kc_tokenkey = key;
sys/kgssapi/krb5/krb5_mech.c
332
kp = key->ks_key;
sys/kgssapi/krb5/krb5_mech.c
337
refcount_acquire(&key->ks_refs);
sys/kgssapi/krb5/krb5_mech.c
338
kc->kc_checksumkey = key;
sys/kgssapi/krb5/krb5_mech.c
349
kc->kc_checksumkey = krb5_get_checksum_key(key, KG_USAGE_SIGN);
sys/kgssapi/krb5/krb5_mech.c
350
refcount_acquire(&key->ks_refs);
sys/kgssapi/krb5/krb5_mech.c
351
kc->kc_encryptkey = key;
sys/kgssapi/krb5/krb5_mech.c
363
kc->kc_send_seal_Ke = krb5_get_encryption_key(key,
sys/kgssapi/krb5/krb5_mech.c
365
kc->kc_send_seal_Ki = krb5_get_integrity_key(key,
sys/kgssapi/krb5/krb5_mech.c
367
kc->kc_send_seal_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
369
kc->kc_send_sign_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
372
kc->kc_recv_seal_Ke = krb5_get_encryption_key(key,
sys/kgssapi/krb5/krb5_mech.c
374
kc->kc_recv_seal_Ki = krb5_get_integrity_key(key,
sys/kgssapi/krb5/krb5_mech.c
376
kc->kc_recv_seal_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
378
kc->kc_recv_sign_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
384
kc->kc_send_seal_Ke = krb5_get_encryption_key(key,
sys/kgssapi/krb5/krb5_mech.c
386
kc->kc_send_seal_Ki = krb5_get_integrity_key(key,
sys/kgssapi/krb5/krb5_mech.c
388
kc->kc_send_seal_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
390
kc->kc_send_sign_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
393
kc->kc_recv_seal_Ke = krb5_get_encryption_key(key,
sys/kgssapi/krb5/krb5_mech.c
395
kc->kc_recv_seal_Ki = krb5_get_integrity_key(key,
sys/kgssapi/krb5/krb5_mech.c
397
kc->kc_recv_seal_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
399
kc->kc_recv_sign_Kc = krb5_get_checksum_key(key,
sys/kgssapi/krb5/krb5_mech.c
931
token_length(struct krb5_key_state *key)
sys/kgssapi/krb5/krb5_mech.c
934
return (16 + key->ks_class->ec_checksumlen);
sys/libkern/arc4random.c
113
kmsan_mark(key, sizeof(key), KMSAN_STATE_INITED);
sys/libkern/arc4random.c
118
SHA256_Update(&ctx, key, sizeof(key));
sys/libkern/arc4random.c
122
_Static_assert(sizeof(key) == SHA256_DIGEST_LENGTH,
sys/libkern/arc4random.c
124
SHA256_Final(key, &ctx);
sys/libkern/arc4random.c
128
read_random_key(key, CHACHA20_KEYBYTES, &seed_version);
sys/libkern/arc4random.c
139
read_random(key, CHACHA20_KEYBYTES);
sys/libkern/arc4random.c
144
chacha_keysetup(&chacha20->ctx, key, CHACHA20_KEYBYTES*8);
sys/libkern/arc4random.c
87
uint8_t key[CHACHA20_KEYBYTES];
sys/libkern/bsearch.c
52
bsearch(const void *key, const void *base0, size_t nmemb, size_t size,
sys/libkern/bsearch.c
62
cmp = (*compar)(key, p);
sys/libkern/jenkins_hash.c
212
uint32_t jenkins_hash( const void *key, size_t length, uint32_t initval)
sys/libkern/jenkins_hash.c
220
u.ptr = key;
sys/libkern/jenkins_hash.c
222
const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
sys/libkern/jenkins_hash.c
264
const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */
sys/libkern/jenkins_hash.c
311
const uint8_t *k = (const uint8_t *)key;
sys/libkern/jenkins_hash.c
365
uint32_t jenkins_hash( const void *key, size_t length, uint32_t initval)
sys/libkern/jenkins_hash.c
373
u.ptr = key;
sys/libkern/jenkins_hash.c
375
const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
sys/libkern/jenkins_hash.c
417
const uint8_t *k = (const uint8_t *)key;
sys/net/ieee8023ad_lacp.c
1129
uint16_t key;
sys/net/ieee8023ad_lacp.c
1139
key = lp->lp_ifp->if_index;
sys/net/ieee8023ad_lacp.c
1141
key |= 0x8000;
sys/net/ieee8023ad_lacp.c
1155
key = IFM_10_T;
sys/net/ieee8023ad_lacp.c
1165
key = IFM_100_TX;
sys/net/ieee8023ad_lacp.c
1175
key = IFM_1000_SX;
sys/net/ieee8023ad_lacp.c
1190
key = IFM_10G_LR;
sys/net/ieee8023ad_lacp.c
1193
key = IFM_20G_KR2;
sys/net/ieee8023ad_lacp.c
1198
key = IFM_2500_KX;
sys/net/ieee8023ad_lacp.c
1204
key = IFM_5000_T;
sys/net/ieee8023ad_lacp.c
1223
key = IFM_50G_PCIE;
sys/net/ieee8023ad_lacp.c
1226
key = IFM_56G_R4;
sys/net/ieee8023ad_lacp.c
1241
key = IFM_25G_PCIE;
sys/net/ieee8023ad_lacp.c
1252
key = IFM_40G_CR4;
sys/net/ieee8023ad_lacp.c
1272
key = IFM_100G_CR4;
sys/net/ieee8023ad_lacp.c
1284
key = IFM_200G_CR4_PAM4;
sys/net/ieee8023ad_lacp.c
1293
key = IFM_400G_FR8;
sys/net/ieee8023ad_lacp.c
1296
key = subtype;
sys/net/ieee8023ad_lacp.c
1300
key |= 0x7fe0 & ((sc->sc_ifp->if_index) << 5);
sys/net/ieee8023ad_lacp.c
1303
return (htons(key));
sys/net/if_epair.c
652
uint32_t key[3];
sys/net/if_epair.c
684
key[0] = (uint32_t)next_index;
sys/net/if_epair.c
686
key[1] = (uint32_t)(hostid & 0xffffffff);
sys/net/if_epair.c
687
key[2] = (uint32_t)((hostid >> 32) & 0xfffffffff);
sys/net/if_epair.c
688
hash = jenkins_hash32(key, 3, 0);
sys/net/if_gre.c
1106
gre_set_key_nl(struct gre_softc *sc, struct nl_pstate *npt, uint32_t key)
sys/net/if_gre.c
1111
error = gre_set_key(sc, key);
sys/net/if_gre.c
1115
nlmsg_report_err_msg(npt, "gre key is invalid: %u", key);
sys/net/if_gre.c
417
gre_set_key(struct gre_softc *sc, uint32_t key)
sys/net/if_gre.c
423
if (sc->gre_key == key)
sys/net/if_gre.c
425
error = gre_setopts(sc, GRESKEY, key);
sys/net/if_gre.c
740
uint32_t key;
sys/net/if_gre.c
776
key = ntohl(*opts);
sys/net/if_gre.c
783
key = 0;
sys/net/if_gre.c
785
if (sc->gre_key != 0 && (key != sc->gre_key || key != 0))
sys/net/if_llatbl.h
230
#define LLATBL_HASH(key, mask) \
sys/net/if_llatbl.h
231
(((((((key >> 8) ^ key) >> 8) ^ key) >> 8) ^ key) & mask)
sys/net/if_ovpn.c
1699
struct ovpn_kpeer *peer, struct ovpn_kkey *key, uint32_t seq,
sys/net/if_ovpn.c
1709
if (V_replay_protection && ! ovpn_check_replay(key->decrypt, seq)) {
sys/net/if_ovpn.c
1800
struct ovpn_kkey *key = NULL;
sys/net/if_ovpn.c
1808
key = &peer->keys[0];
sys/net/if_ovpn.c
1810
key = &peer->keys[1];
sys/net/if_ovpn.c
1812
return (key);
sys/net/if_ovpn.c
1821
struct ovpn_kkey *key;
sys/net/if_ovpn.c
1860
key = ovpn_find_key(sc, peer, ohdr);
sys/net/if_ovpn.c
1861
if (key == NULL) {
sys/net/if_ovpn.c
1881
ovpn_finish_rx(sc, m, peer, key, ntohl(ohdr->seq), _ovpn_lock_trackerp);
sys/net/if_ovpn.c
2053
struct ovpn_kkey *key;
sys/net/if_ovpn.c
2068
key = &peer->keys[OVPN_KEY_SLOT_PRIMARY];
sys/net/if_ovpn.c
2069
if (key->encrypt == NULL) {
sys/net/if_ovpn.c
2094
if (key->encrypt->cipher == OVPN_CIPHER_ALG_NONE)
sys/net/if_ovpn.c
2106
ohdr->opcode = (OVPN_OP_DATA_V2 << OVPN_OP_SHIFT) | key->keyid;
sys/net/if_ovpn.c
2108
ohdr->opcode |= key->peerid;
sys/net/if_ovpn.c
2135
if (key->encrypt->cipher == OVPN_CIPHER_ALG_NONE) {
sys/net/if_ovpn.c
2148
crp = crypto_getreq(key->encrypt->cryptoid, M_NOWAIT);
sys/net/if_ovpn.c
2175
memcpy(crp->crp_iv + sizeof(seq), key->encrypt->nonce,
sys/net/if_ovpn.c
2176
key->encrypt->noncelen);
sys/net/if_ovpn.c
2404
ovpn_check_replay(struct ovpn_kkey_dir *key, uint32_t seq)
sys/net/if_ovpn.c
2408
mtx_lock(&key->replay_mtx);
sys/net/if_ovpn.c
2411
if (seq <= key->rx_seq) {
sys/net/if_ovpn.c
2412
mtx_unlock(&key->replay_mtx);
sys/net/if_ovpn.c
2417
if (seq > (key->rx_seq + (sizeof(key->rx_window) * 8))) {
sys/net/if_ovpn.c
2418
key->rx_seq = seq;
sys/net/if_ovpn.c
2419
key->rx_window = 0;
sys/net/if_ovpn.c
2420
mtx_unlock(&key->replay_mtx);
sys/net/if_ovpn.c
2425
if ((seq == key->rx_seq + 1) && key->rx_window == 0) {
sys/net/if_ovpn.c
2426
key->rx_seq++;
sys/net/if_ovpn.c
2427
mtx_unlock(&key->replay_mtx);
sys/net/if_ovpn.c
2431
d = seq - key->rx_seq - 1;
sys/net/if_ovpn.c
2433
if (key->rx_window & ((uint64_t)1 << d)) {
sys/net/if_ovpn.c
2435
mtx_unlock(&key->replay_mtx);
sys/net/if_ovpn.c
2439
key->rx_window |= (uint64_t)1 << d;
sys/net/if_ovpn.c
2441
while (key->rx_window & 1) {
sys/net/if_ovpn.c
2442
key->rx_seq++;
sys/net/if_ovpn.c
2443
key->rx_window >>= 1;
sys/net/if_ovpn.c
2446
mtx_unlock(&key->replay_mtx);
sys/net/if_ovpn.c
2478
struct ovpn_kkey *key;
sys/net/if_ovpn.c
2542
key = ovpn_find_key(sc, peer, ohdr);
sys/net/if_ovpn.c
2543
if (key == NULL || key->decrypt == NULL) {
sys/net/if_ovpn.c
2574
if (key->decrypt->cipher == OVPN_CIPHER_ALG_NONE) {
sys/net/if_ovpn.c
2580
ovpn_finish_rx(sc, m, peer, key, ntohl(ohdr->seq),
sys/net/if_ovpn.c
2599
crp = crypto_getreq(key->decrypt->cryptoid, M_NOWAIT);
sys/net/if_ovpn.c
2623
memcpy(crp->crp_iv + sizeof(ohdr->seq), key->decrypt->nonce,
sys/net/if_ovpn.c
2624
key->decrypt->noncelen);
sys/net/if_ovpn.c
84
uint8_t key[32];
sys/net/if_ovpn.c
878
const void *key, *iv;
sys/net/if_ovpn.c
900
key = nvlist_get_binary(nvl, "key", &keylen);
sys/net/if_ovpn.c
901
if (keylen > sizeof(kdir->key))
sys/net/if_ovpn.c
918
memcpy(kdir->key, key, keylen);
sys/net/if_ovpn.c
936
csp.csp_cipher_key = kdir->key;
sys/net/pfvar.h
1033
(((state)->key[PF_SK_WIRE]->af != (state)->key[PF_SK_STACK]->af) && \
sys/net/pfvar.h
1034
((state)->key[PF_SK_WIRE]->af != (family)) && \
sys/net/pfvar.h
1077
struct pf_state_key_export key[2];
sys/net/pfvar.h
1191
struct pf_state_key *key[2]; /* addresses stack and wire */
sys/net/pfvar.h
1482
struct pfsync_state_key key[2];
sys/net/pfvar.h
1509
struct pfsync_state_key key[2];
sys/net/pfvar.h
1548
struct pfsync_state_key key[2];
sys/net/pfvar.h
660
struct pf_poolhashkey key;
sys/net/route/fib_algo.c
1542
dummy_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid)
sys/net/route/nhgrp.c
126
const unsigned char *key;
sys/net/route/nhgrp.c
128
key = (const unsigned char *)obj->nhg_nh_weights;
sys/net/route/nhgrp.c
130
return (djb_hash(key, sizeof(struct weightened_nhop) * obj->nhg_nh_count));
sys/net/route/nhgrp.c
137
find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key)
sys/net/route/nhgrp.c
142
CHT_SLIST_FIND_BYOBJ(&ctl->gr_head, mpath, key, priv_ret);
sys/net/route/nhgrp.c
189
unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key)
sys/net/route/nhgrp.c
196
CHT_SLIST_REMOVE(&ctl->gr_head, mpath, key, nhg_priv_ret);
sys/net/route/nhgrp_ctl.c
519
struct nhgrp_priv *nhg_priv, *key = NHGRP_PRIV(nhg);
sys/net/route/nhgrp_ctl.c
520
struct nh_control *ctl = key->nh_control;
sys/net/route/nhgrp_ctl.c
522
nhg_priv = find_nhgrp(ctl, key);
sys/net/route/nhgrp_ctl.c
529
destroy_nhgrp_int(key);
sys/net/route/nhgrp_ctl.c
534
if (!ref_nhgrp_nhops(key)) {
sys/net/route/nhgrp_ctl.c
540
destroy_nhgrp_int(key);
sys/net/route/nhgrp_ctl.c
544
if (link_nhgrp(ctl, key) == 0) {
sys/net/route/nhgrp_ctl.c
547
free_nhgrp_nhops(key);
sys/net/route/nhgrp_ctl.c
548
destroy_nhgrp_int(key);
sys/net/route/nhgrp_var.h
67
struct nhgrp_priv *find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key);
sys/net/route/nhgrp_var.h
69
struct nhgrp_priv *unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key);
sys/net/route/nhop.c
211
struct _hash_data key = {
sys/net/route/nhop.c
220
return (uint32_t)(djb_hash((const unsigned char *)&key, sizeof(key)));
sys/net/rss_config.c
280
rss_naive_hash(u_int keylen, const uint8_t *key, u_int datalen,
sys/net/rss_config.c
288
v += key[i];
sys/net/rss_config.c
320
rss_getkey(uint8_t *key)
sys/net/rss_config.c
323
bcopy(rss_key, key, sizeof(rss_key));
sys/net/rss_config.c
541
SYSCTL_PROC(_net_inet_rss, OID_AUTO, key,
sys/net/rss_config.h
130
void rss_getkey(uint8_t *key);
sys/net/toeplitz.c
35
toeplitz_hash(u_int keylen, const uint8_t *key, u_int datalen,
sys/net/toeplitz.c
43
v = (key[0]<<24) + (key[1]<<16) + (key[2] <<8) + key[3];
sys/net/toeplitz.c
50
(key[i+4] & (1<<(7-b))))
sys/net/toeplitz.h
35
uint32_t toeplitz_hash(u_int keylen, const uint8_t *key,
sys/net80211/ieee80211.c
2707
const struct ieee80211_key *key)
sys/net80211/ieee80211.c
2709
return (&vap->iv_nw_keys[0] <= key &&
sys/net80211/ieee80211.c
2710
key < &vap->iv_nw_keys[IEEE80211_WEP_NKID]);
sys/net80211/ieee80211.c
2733
const struct ieee80211_key *key)
sys/net80211/ieee80211.c
2740
return (!ieee80211_is_key_global(vap, key));
sys/net80211/ieee80211_adhoc.c
310
struct ieee80211_key *key;
sys/net80211/ieee80211_adhoc.c
503
if (ieee80211_crypto_decap(ni, m, hdrspace, &key) == 0) {
sys/net80211/ieee80211_adhoc.c
513
key = NULL;
sys/net80211/ieee80211_adhoc.c
539
if (!ieee80211_crypto_demic(vap, key, m, 0)) {
sys/net80211/ieee80211_crypto.c
102
cipher_detach(struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
104
key->wk_cipher->ic_detach(key);
sys/net80211/ieee80211_crypto.c
108
cipher_attach(struct ieee80211vap *vap, struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
110
return key->wk_cipher->ic_attach(vap, key);
sys/net80211/ieee80211_crypto.c
118
struct ieee80211_key *key,
sys/net80211/ieee80211_crypto.c
121
return vap->iv_key_alloc(vap, key, keyix, rxkeyix);
sys/net80211/ieee80211_crypto.c
126
const struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
128
return vap->iv_key_delete(vap, key);
sys/net80211/ieee80211_crypto.c
132
dev_key_set(struct ieee80211vap *vap, const struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
134
return vap->iv_key_set(vap, key);
sys/net80211/ieee80211_crypto.c
338
int cipher, int flags, struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
348
__func__, cipher, flags, key->wk_keyix);
sys/net80211/ieee80211_crypto.c
386
oflags = key->wk_flags;
sys/net80211/ieee80211_crypto.c
434
if (key->wk_cipher != cip || key->wk_flags != flags) {
sys/net80211/ieee80211_crypto.c
441
key->wk_flags = flags;
sys/net80211/ieee80211_crypto.c
442
keyctx = cip->ic_attach(vap, key);
sys/net80211/ieee80211_crypto.c
447
key->wk_flags = oflags; /* restore old flags */
sys/net80211/ieee80211_crypto.c
451
cipher_detach(key);
sys/net80211/ieee80211_crypto.c
452
key->wk_cipher = cip; /* XXX refcnt? */
sys/net80211/ieee80211_crypto.c
453
key->wk_private = keyctx;
sys/net80211/ieee80211_crypto.c
464
if ((key->wk_flags & IEEE80211_KEY_DEVKEY) == 0) {
sys/net80211/ieee80211_crypto.c
465
if (!dev_key_alloc(vap, key, &keyix, &rxkeyix)) {
sys/net80211/ieee80211_crypto.c
475
if (key->wk_flags != flags) {
sys/net80211/ieee80211_crypto.c
486
key->wk_flags, IEEE80211_KEY_BITS);
sys/net80211/ieee80211_crypto.c
487
keyctx = cip->ic_attach(vap, key);
sys/net80211/ieee80211_crypto.c
492
key->wk_flags, IEEE80211_KEY_BITS);
sys/net80211/ieee80211_crypto.c
493
key->wk_flags = oflags; /* restore old flags */
sys/net80211/ieee80211_crypto.c
497
cipher_detach(key);
sys/net80211/ieee80211_crypto.c
498
key->wk_cipher = cip; /* XXX refcnt? */
sys/net80211/ieee80211_crypto.c
499
key->wk_private = keyctx;
sys/net80211/ieee80211_crypto.c
501
key->wk_keyix = keyix;
sys/net80211/ieee80211_crypto.c
502
key->wk_rxkeyix = rxkeyix;
sys/net80211/ieee80211_crypto.c
503
key->wk_flags |= IEEE80211_KEY_DEVKEY;
sys/net80211/ieee80211_crypto.c
512
_ieee80211_crypto_delkey(struct ieee80211vap *vap, struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
514
KASSERT(key->wk_cipher != NULL, ("No cipher!"));
sys/net80211/ieee80211_crypto.c
518
__func__, key->wk_cipher->ic_name,
sys/net80211/ieee80211_crypto.c
519
key->wk_keyix, key->wk_flags, IEEE80211_KEY_BITS,
sys/net80211/ieee80211_crypto.c
520
key->wk_keyrsc[IEEE80211_NONQOS_TID], key->wk_keytsc,
sys/net80211/ieee80211_crypto.c
521
key->wk_keylen);
sys/net80211/ieee80211_crypto.c
523
if (key->wk_flags & IEEE80211_KEY_DEVKEY) {
sys/net80211/ieee80211_crypto.c
528
if (!dev_key_delete(vap, key)) {
sys/net80211/ieee80211_crypto.c
531
__func__, key->wk_keyix);
sys/net80211/ieee80211_crypto.c
536
cipher_detach(key);
sys/net80211/ieee80211_crypto.c
537
memset(key, 0, sizeof(*key));
sys/net80211/ieee80211_crypto.c
538
ieee80211_crypto_resetkey(vap, key, IEEE80211_KEYIX_NONE);
sys/net80211/ieee80211_crypto.c
546
ieee80211_crypto_delkey(struct ieee80211vap *vap, struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
551
status = _ieee80211_crypto_delkey(vap, key);
sys/net80211/ieee80211_crypto.c
578
ieee80211_crypto_setkey(struct ieee80211vap *vap, struct ieee80211_key *key)
sys/net80211/ieee80211_crypto.c
580
const struct ieee80211_cipher *cip = key->wk_cipher;
sys/net80211/ieee80211_crypto.c
586
__func__, cip->ic_name, key->wk_keyix,
sys/net80211/ieee80211_crypto.c
587
key->wk_flags, IEEE80211_KEY_BITS, ether_sprintf(key->wk_macaddr),
sys/net80211/ieee80211_crypto.c
588
key->wk_keyrsc[IEEE80211_NONQOS_TID], key->wk_keytsc,
sys/net80211/ieee80211_crypto.c
589
key->wk_keylen);
sys/net80211/ieee80211_crypto.c
591
if ((key->wk_flags & IEEE80211_KEY_DEVKEY) == 0) {
sys/net80211/ieee80211_crypto.c
603
if (!cip->ic_setkey(key)) {
sys/net80211/ieee80211_crypto.c
606
__func__, cip->ic_name, key->wk_keyix,
sys/net80211/ieee80211_crypto.c
607
key->wk_keylen, key->wk_flags, IEEE80211_KEY_BITS);
sys/net80211/ieee80211_crypto.c
611
return dev_key_set(vap, key);
sys/net80211/ieee80211_crypto.c
771
struct ieee80211_key **key)
sys/net80211/ieee80211_crypto.c
799
*key = NULL;
sys/net80211/ieee80211_crypto.c
810
*key = NULL;
sys/net80211/ieee80211_crypto.c
838
*key = NULL;
sys/net80211/ieee80211_crypto.c
850
*key = k;
sys/net80211/ieee80211_crypto.c
855
*key = NULL;
sys/net80211/ieee80211_crypto_ccmp.c
558
ccmp_encrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen)
sys/net80211/ieee80211_crypto_ccmp.c
560
struct ccmp_ctx *ctx = key->wk_private;
sys/net80211/ieee80211_crypto_ccmp.c
571
data_len = m->m_pkthdr.len - (hdrlen + ccmp_get_header_len(key));
sys/net80211/ieee80211_crypto_ccmp.c
572
ccmp_init_blocks(&ctx->cc_aes, wh, ccmp_get_ccm_m(key),
sys/net80211/ieee80211_crypto_ccmp.c
573
key->wk_keytsc, data_len, b0, aad, b, s0);
sys/net80211/ieee80211_crypto_ccmp.c
576
pos = mtod(m, uint8_t *) + hdrlen + ccmp_get_header_len(key);
sys/net80211/ieee80211_crypto_ccmp.c
578
space = m->m_len - (hdrlen + ccmp_get_header_len(key));
sys/net80211/ieee80211_crypto_ccmp.c
686
xor_block(b, s0, ccmp_get_trailer_len(key));
sys/net80211/ieee80211_crypto_ccmp.c
687
return m_append(m0, ccmp_get_trailer_len(key), b);
sys/net80211/ieee80211_crypto_ccmp.c
703
ccmp_decrypt(struct ieee80211_key *key, u_int64_t pn, struct mbuf *m, int hdrlen)
sys/net80211/ieee80211_crypto_ccmp.c
706
struct ccmp_ctx *ctx = key->wk_private;
sys/net80211/ieee80211_crypto_ccmp.c
725
(hdrlen + ccmp_get_header_len(key) + ccmp_get_trailer_len(key));
sys/net80211/ieee80211_crypto_ccmp.c
726
ccmp_init_blocks(&ctx->cc_aes, wh, ccmp_get_ccm_m(key), pn,
sys/net80211/ieee80211_crypto_ccmp.c
728
m_copydata(m, m->m_pkthdr.len - ccmp_get_trailer_len(key),
sys/net80211/ieee80211_crypto_ccmp.c
729
ccmp_get_trailer_len(key), mic);
sys/net80211/ieee80211_crypto_ccmp.c
730
xor_block(mic, b, ccmp_get_trailer_len(key));
sys/net80211/ieee80211_crypto_ccmp.c
733
pos = mtod(m, uint8_t *) + hdrlen + ccmp_get_header_len(key);
sys/net80211/ieee80211_crypto_ccmp.c
734
space = m->m_len - (hdrlen + ccmp_get_header_len(key));
sys/net80211/ieee80211_crypto_ccmp.c
793
if (memcmp(mic, a, ccmp_get_trailer_len(key)) != 0) {
sys/net80211/ieee80211_crypto_gcmp.c
419
gcmp_encrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen)
sys/net80211/ieee80211_crypto_gcmp.c
421
struct gcmp_ctx *ctx = key->wk_private;
sys/net80211/ieee80211_crypto_gcmp.c
432
data_len = m->m_pkthdr.len - (hdrlen + gcmp_get_header_len(key));
sys/net80211/ieee80211_crypto_gcmp.c
461
iv_len = gcmp_init_iv(iv, wh, key->wk_keytsc);
sys/net80211/ieee80211_crypto_gcmp.c
464
m_copydata(m0, hdrlen + gcmp_get_header_len(key), data_len,
sys/net80211/ieee80211_crypto_gcmp.c
476
m_copyback(m0, hdrlen + gcmp_get_header_len(key), data_len,
sys/net80211/ieee80211_crypto_gcmp.c
480
ret = m_append(m0, gcmp_get_trailer_len(key), T);
sys/net80211/ieee80211_crypto_gcmp.c
508
gcmp_decrypt(struct ieee80211_key *key, u_int64_t pn, struct mbuf *m,
sys/net80211/ieee80211_crypto_gcmp.c
512
struct gcmp_ctx *ctx = key->wk_private;
sys/net80211/ieee80211_crypto_gcmp.c
529
(hdrlen + gcmp_get_header_len(key) + GCMP_MIC_LEN);
sys/net80211/ieee80211_crypto_gcmp.c
554
m_copydata(m, hdrlen + gcmp_get_header_len(key), data_len,
sys/net80211/ieee80211_crypto_gcmp.c
558
m_copydata(m, hdrlen + gcmp_get_header_len(key) + data_len,
sys/net80211/ieee80211_crypto_gcmp.c
585
m_copyback(m, hdrlen + gcmp_get_header_len(key), data_len,
sys/net80211/ieee80211_crypto_tkip.c
1001
tkip_encrypt(struct tkip_ctx *ctx, struct ieee80211_key *key,
sys/net80211/ieee80211_crypto_tkip.c
1010
if ((u16)(key->wk_keytsc) == 0 || key->wk_keytsc == 1) {
sys/net80211/ieee80211_crypto_tkip.c
1011
tkip_mixing_phase1(ctx->tx_ttak, key->wk_key, wh->i_addr2,
sys/net80211/ieee80211_crypto_tkip.c
1012
(u32)(key->wk_keytsc >> 16));
sys/net80211/ieee80211_crypto_tkip.c
1014
tkip_mixing_phase2(ctx->tx_rc4key, key->wk_key, ctx->tx_ttak,
sys/net80211/ieee80211_crypto_tkip.c
1015
(u16) key->wk_keytsc);
sys/net80211/ieee80211_crypto_tkip.c
1027
tkip_decrypt(struct tkip_ctx *ctx, struct ieee80211_key *key,
sys/net80211/ieee80211_crypto_tkip.c
1044
if (iv32 != (u32)(key->wk_keyrsc[tid] >> 16) || !ctx->rx_phase1_done) {
sys/net80211/ieee80211_crypto_tkip.c
1045
tkip_mixing_phase1(ctx->rx_ttak, key->wk_key,
sys/net80211/ieee80211_crypto_tkip.c
1049
tkip_mixing_phase2(ctx->rx_rc4key, key->wk_key, ctx->rx_ttak, iv16);
sys/net80211/ieee80211_crypto_tkip.c
1055
if (iv32 != (u32)(key->wk_keyrsc[tid] >> 16)) {
sys/net80211/ieee80211_crypto_tkip.c
667
wep_encrypt(u8 *key, struct mbuf *m0, u_int off, size_t data_len,
sys/net80211/ieee80211_crypto_tkip.c
682
j = (j + S[i] + key[i & 0x0f]) & 0xff;
sys/net80211/ieee80211_crypto_tkip.c
728
wep_decrypt(u8 *key, struct mbuf *m, u_int off, size_t data_len)
sys/net80211/ieee80211_crypto_tkip.c
740
j = (j + S[i] + key[i & 0x0f]) & 0xff;
sys/net80211/ieee80211_crypto_tkip.c
875
michael_mic(struct tkip_ctx *ctx, const u8 *key,
sys/net80211/ieee80211_crypto_tkip.c
886
l = get_le32(key);
sys/net80211/ieee80211_crypto_tkip.c
887
r = get_le32(key + 4);
sys/net80211/ieee80211_crypto_tkip.c
97
static void michael_mic(struct tkip_ctx *, const u8 *key,
sys/net80211/ieee80211_crypto_wep.c
345
wep_encrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen)
sys/net80211/ieee80211_crypto_wep.c
348
struct wep_ctx *ctx = key->wk_private;
sys/net80211/ieee80211_crypto_wep.c
363
memcpy(rc4key + IEEE80211_WEP_IVLEN, key->wk_key, key->wk_keylen);
sys/net80211/ieee80211_crypto_wep.c
369
keylen = key->wk_keylen + IEEE80211_WEP_IVLEN;
sys/net80211/ieee80211_crypto_wep.c
428
wep_decrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen)
sys/net80211/ieee80211_crypto_wep.c
431
struct wep_ctx *ctx = key->wk_private;
sys/net80211/ieee80211_crypto_wep.c
446
memcpy(rc4key + IEEE80211_WEP_IVLEN, key->wk_key, key->wk_keylen);
sys/net80211/ieee80211_crypto_wep.c
452
keylen = key->wk_keylen + IEEE80211_WEP_IVLEN;
sys/net80211/ieee80211_hostap.c
475
struct ieee80211_key *key;
sys/net80211/ieee80211_hostap.c
690
if (ieee80211_crypto_decap(ni, m, hdrspace, &key) == 0) {
sys/net80211/ieee80211_hostap.c
700
key = NULL;
sys/net80211/ieee80211_hostap.c
726
if (key != NULL && !ieee80211_crypto_demic(vap, key, m, 0)) {
sys/net80211/ieee80211_hostap.c
868
if (ieee80211_crypto_decap(ni, m, hdrspace, &key) == 0) {
sys/net80211/ieee80211_output.c
1338
struct ieee80211_key *key, struct mbuf *m)
sys/net80211/ieee80211_output.c
1343
if (key != NULL) {
sys/net80211/ieee80211_output.c
1345
needed_space += key->wk_cipher->ic_header;
sys/net80211/ieee80211_output.c
1353
if (key->wk_flags & (IEEE80211_KEY_SWENCRYPT|IEEE80211_KEY_SWENMIC)) {
sys/net80211/ieee80211_output.c
1471
struct ieee80211_key *key;
sys/net80211/ieee80211_output.c
1507
key = ieee80211_crypto_getucastkey(vap, ni);
sys/net80211/ieee80211_output.c
1523
key = ieee80211_crypto_getucastkey(vap, ni);
sys/net80211/ieee80211_output.c
1525
key = ieee80211_crypto_getmcastkey(vap, ni);
sys/net80211/ieee80211_output.c
1527
if (key == NULL && (m->m_flags & M_EAPOL) == 0) {
sys/net80211/ieee80211_output.c
1536
key = NULL;
sys/net80211/ieee80211_output.c
1641
m = ieee80211_mbuf_adjust(vap, hdrspace + meshhdrsize, key, m);
sys/net80211/ieee80211_output.c
1666
m = ieee80211_amsdu_encap(vap, m, hdrspace + meshhdrsize, key);
sys/net80211/ieee80211_output.c
1669
m = ieee80211_ff_encap(vap, m, hdrspace + meshhdrsize, key);
sys/net80211/ieee80211_output.c
1869
if (key != NULL) {
sys/net80211/ieee80211_output.c
1877
!IEEE80211_KEY_UNDEFINED(key) :
sys/net80211/ieee80211_output.c
1880
if (!ieee80211_crypto_enmic(vap, key, m, txfrag)) {
sys/net80211/ieee80211_output.c
1890
key != NULL ? key->wk_cipher->ic_header : 0, vap->iv_fragthreshold))
sys/net80211/ieee80211_sta.c
539
struct ieee80211_key *key;
sys/net80211/ieee80211_sta.c
772
if (ieee80211_crypto_decap(ni, m, hdrspace, &key) == 0) {
sys/net80211/ieee80211_sta.c
782
key = NULL;
sys/net80211/ieee80211_sta.c
813
if (!ieee80211_crypto_demic(vap, key, m, 0)) {
sys/net80211/ieee80211_sta.c
961
if (ieee80211_crypto_decap(ni, m, hdrspace, &key) == 0) {
sys/net80211/ieee80211_superg.c
362
struct ieee80211_key *key)
sys/net80211/ieee80211_superg.c
383
m1 = ieee80211_mbuf_adjust(vap, hdrspace, key, m1);
sys/net80211/ieee80211_superg.c
495
struct ieee80211_key *key)
sys/net80211/ieee80211_superg.c
518
key, m1);
sys/net80211/ieee80211_superg.h
143
int hdrspace, struct ieee80211_key *key);
sys/net80211/ieee80211_var.h
847
const struct ieee80211_key *key);
sys/net80211/ieee80211_var.h
849
const struct ieee80211_key *key);
sys/net80211/ieee80211_wds.c
413
struct ieee80211_key *key;
sys/net80211/ieee80211_wds.c
565
if (ieee80211_crypto_decap(ni, m, hdrspace, &key) == 0) {
sys/net80211/ieee80211_wds.c
575
key = NULL;
sys/net80211/ieee80211_wds.c
601
if (!ieee80211_crypto_demic(vap, key, m, 0)) {
sys/netgraph/bluetooth/include/ng_hci.h
1755
u_int8_t key[NG_HCI_128BIT];
sys/netgraph/bluetooth/include/ng_hci.h
2038
u_int8_t key[NG_HCI_KEY_SIZE]; /* link key */
sys/netgraph/bluetooth/include/ng_hci.h
766
u_int8_t key[NG_HCI_KEY_SIZE]; /* key */
sys/netgraph/ng_mppc.c
149
u_char key[MPPE_KEY_LEN]; /* session key */
sys/netgraph/ng_mppc.c
178
u_char *key0, u_char *key, struct rc4_state *rc4);
sys/netgraph/ng_mppc.c
331
bcopy(cfg->startkey, d->key, keylen);
sys/netgraph/ng_mppc.c
332
ng_mppc_getkey(cfg->startkey, d->key, keylen);
sys/netgraph/ng_mppc.c
334
bcopy(&ng_mppe_weakenkey, d->key, 3);
sys/netgraph/ng_mppc.c
336
bcopy(&ng_mppe_weakenkey, d->key, 1);
sys/netgraph/ng_mppc.c
337
rc4_init(&d->rc4, d->key, keylen);
sys/netgraph/ng_mppc.c
591
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph/ng_mppc.c
595
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/ng_mppc.c
688
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph/ng_mppc.c
695
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/ng_mppc.c
724
d->cfg.startkey, d->key, &d->rc4);
sys/netgraph/ng_mppc.c
852
rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits));
sys/netgraph/ng_mppc.c
891
u_char *key0, u_char *key, struct rc4_state *rc4)
sys/netgraph/ng_mppc.c
895
ng_mppc_getkey(key0, key, keylen);
sys/netgraph/ng_mppc.c
896
rc4_init(rc4, key, keylen);
sys/netgraph/ng_mppc.c
897
rc4_crypt(rc4, key, key, keylen);
sys/netgraph/ng_mppc.c
899
bcopy(&ng_mppe_weakenkey, key, 3);
sys/netgraph/ng_mppc.c
901
bcopy(&ng_mppe_weakenkey, key, 1);
sys/netgraph/ng_mppc.c
902
rc4_init(rc4, key, keylen);
sys/netinet/in_fib.c
114
struct flm_lookup_key key = {.addr4 = dst };
sys/netinet/in_fib.c
116
nh = dp->f(dp->arg, key, scopeid);
sys/netinet/in_fib.c
255
struct flm_lookup_key key = {.addr4 = dst };
sys/netinet/in_fib.c
257
nh = dp->f(dp->arg, key, scopeid);
sys/netinet/in_fib_algo.c
526
lradix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid)
sys/netinet/in_fib_algo.c
532
.sin_addr = key.addr4,
sys/netinet/in_fib_algo.c
677
radix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid)
sys/netinet/in_fib_algo.c
688
.sin_addr = key.addr4,
sys/netinet/in_fib_algo.c
95
bsearch4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid)
sys/netinet/in_fib_algo.c
99
uint32_t addr4 = ntohl(key.addr4.s_addr);
sys/netinet/in_fib_dxr.c
1079
dxr_fib_lookup(void *algo_data, const struct flm_lookup_key key,
sys/netinet/in_fib_dxr.c
1084
return (dxr->nh_tbl[dxr_lookup(dxr, ntohl(key.addr4.s_addr))]);
sys/netinet/in_fib_dxr.c
308
const struct flm_lookup_key key, uint32_t scopeid __unused) \
sys/netinet/in_fib_dxr.c
313
ntohl(key.addr4.s_addr))]); \
sys/netinet/ip_carp.c
2540
char key[CARP_KEY_LEN];
sys/netinet/ip_carp.c
2554
{ .type = CARP_NL_KEY, .off = _OUT(key), .cb = nlattr_get_carp_key },
sys/netinet/ip_carp.c
2748
if (attrs.key[0] != '\0') {
sys/netinet/ip_carp.c
2749
bcopy(attrs.key, sc->sc_key, sizeof(sc->sc_key));
sys/netinet/ip_fw.h
1034
uint32_t key; /* uid/gid/port */
sys/netinet/netdump/netdump_client.c
286
netdump_start(struct dumperinfo *di, void *key, uint32_t keysize)
sys/netinet/netdump/netdump_client.c
345
memcpy(nd_buf, key, keysize);
sys/netinet/netdump/netdump_client.c
97
static int netdump_start(struct dumperinfo *di, void *key,
sys/netinet/sctp_auth.c
1001
key = temp;
sys/netinet/sctp_auth.c
1006
memcpy(ipad, key, keylen);
sys/netinet/sctp_auth.c
1007
memcpy(opad, key, keylen);
sys/netinet/sctp_auth.c
1054
sctp_compute_hmac(uint16_t hmac_algo, sctp_key_t *key, uint8_t *text,
sys/netinet/sctp_auth.c
1063
if ((key == NULL) || (text == NULL) || (textlen == 0) ||
sys/netinet/sctp_auth.c
1075
if (key->keylen > blocklen) {
sys/netinet/sctp_auth.c
1077
sctp_hmac_update(hmac_algo, &ctx, key->key, key->keylen);
sys/netinet/sctp_auth.c
1080
key->keylen = digestlen;
sys/netinet/sctp_auth.c
1081
memcpy(key->key, temp, key->keylen);
sys/netinet/sctp_auth.c
1083
return (sctp_hmac(hmac_algo, key->key, key->keylen, text, textlen,
sys/netinet/sctp_auth.c
1089
sctp_compute_hmac_m(uint16_t hmac_algo, sctp_key_t *key, struct mbuf *m,
sys/netinet/sctp_auth.c
1098
if ((key == NULL) || (m == NULL) || (digest == NULL)) {
sys/netinet/sctp_auth.c
1109
if (key->keylen > blocklen) {
sys/netinet/sctp_auth.c
1111
sctp_hmac_update(hmac_algo, &ctx, key->key, key->keylen);
sys/netinet/sctp_auth.c
1114
key->keylen = digestlen;
sys/netinet/sctp_auth.c
1115
memcpy(key->key, temp, key->keylen);
sys/netinet/sctp_auth.c
1117
return (sctp_hmac_m(hmac_algo, key->key, key->keylen, m, m_offset, digest, 0));
sys/netinet/sctp_auth.c
1460
memcpy(new_key->key, p_random, keylen);
sys/netinet/sctp_auth.c
1466
memcpy(new_key->key + keylen, chunks,
sys/netinet/sctp_auth.c
1472
memcpy(new_key->key + keylen, hmacs,
sys/netinet/sctp_auth.c
1504
sctp_key_t *key;
sys/netinet/sctp_auth.c
1523
key = skey->key;
sys/netinet/sctp_auth.c
1525
key = NULL;
sys/netinet/sctp_auth.c
1529
stcb->asoc.authinfo.peer_random, key);
sys/netinet/sctp_auth.c
1666
stcb->asoc.authinfo.peer_random, skey->key);
sys/netinet/sctp_auth.c
1950
ph = (struct sctp_paramhdr *)new_key->key;
sys/netinet/sctp_auth.c
1954
SCTP_READ_RANDOM(new_key->key + sizeof(*ph), random_len);
sys/netinet/sctp_auth.c
1959
ph = (struct sctp_paramhdr *)(new_key->key + keylen);
sys/netinet/sctp_auth.c
1969
new_key->key[keylen++] = i;
sys/netinet/sctp_auth.c
1974
ph = (struct sctp_paramhdr *)(new_key->key + keylen);
sys/netinet/sctp_auth.c
1980
new_key->key + keylen);
sys/netinet/sctp_auth.c
256
sctp_free_key(sctp_key_t *key)
sys/netinet/sctp_auth.c
258
if (key != NULL)
sys/netinet/sctp_auth.c
259
SCTP_FREE(key, SCTP_M_AUTH_KY);
sys/netinet/sctp_auth.c
263
sctp_print_key(sctp_key_t *key, const char *str)
sys/netinet/sctp_auth.c
267
if (key == NULL) {
sys/netinet/sctp_auth.c
271
SCTP_PRINTF("%s: len %u, ", str, key->keylen);
sys/netinet/sctp_auth.c
272
if (key->keylen) {
sys/netinet/sctp_auth.c
273
for (i = 0; i < key->keylen; i++)
sys/netinet/sctp_auth.c
274
SCTP_PRINTF("%02x", key->key[i]);
sys/netinet/sctp_auth.c
282
sctp_show_key(sctp_key_t *key, const char *str)
sys/netinet/sctp_auth.c
286
if (key == NULL) {
sys/netinet/sctp_auth.c
290
SCTP_PRINTF("%s: len %u, ", str, key->keylen);
sys/netinet/sctp_auth.c
291
if (key->keylen) {
sys/netinet/sctp_auth.c
292
for (i = 0; i < key->keylen; i++)
sys/netinet/sctp_auth.c
293
SCTP_PRINTF("%02x", key->key[i]);
sys/netinet/sctp_auth.c
301
sctp_get_keylen(sctp_key_t *key)
sys/netinet/sctp_auth.c
303
if (key != NULL)
sys/netinet/sctp_auth.c
304
return (key->keylen);
sys/netinet/sctp_auth.c
322
SCTP_READ_RANDOM(new_key->key, keylen);
sys/netinet/sctp_auth.c
328
sctp_set_key(uint8_t *key, uint32_t keylen)
sys/netinet/sctp_auth.c
337
memcpy(new_key->key, key, keylen);
sys/netinet/sctp_auth.c
371
key_1 = key1->key;
sys/netinet/sctp_auth.c
372
key_2 = key2->key;
sys/netinet/sctp_auth.c
416
key_ptr = new_key->key;
sys/netinet/sctp_auth.c
426
memcpy(key_ptr, shared->key, shared->keylen);
sys/netinet/sctp_auth.c
430
memcpy(key_ptr, key1->key, key1->keylen);
sys/netinet/sctp_auth.c
434
memcpy(key_ptr, key2->key, key2->keylen);
sys/netinet/sctp_auth.c
439
memcpy(key_ptr, shared->key, shared->keylen);
sys/netinet/sctp_auth.c
443
memcpy(key_ptr, key2->key, key2->keylen);
sys/netinet/sctp_auth.c
447
memcpy(key_ptr, key1->key, key1->keylen);
sys/netinet/sctp_auth.c
465
new_key->key = NULL;
sys/netinet/sctp_auth.c
478
if (skey->key != NULL)
sys/netinet/sctp_auth.c
479
sctp_free_key(skey->key);
sys/netinet/sctp_auth.c
597
if (skey->key != NULL)
sys/netinet/sctp_auth.c
598
new_skey->key = sctp_set_key(skey->key->key, skey->key->keylen);
sys/netinet/sctp_auth.c
600
new_skey->key = NULL;
sys/netinet/sctp_auth.c
912
sctp_hmac(uint16_t hmac_algo, uint8_t *key, uint32_t keylen,
sys/netinet/sctp_auth.c
923
if ((key == NULL) || (keylen == 0) || (text == NULL) ||
sys/netinet/sctp_auth.c
937
sctp_hmac_update(hmac_algo, &ctx, key, keylen);
sys/netinet/sctp_auth.c
941
key = temp;
sys/netinet/sctp_auth.c
946
memcpy(ipad, key, keylen);
sys/netinet/sctp_auth.c
947
memcpy(opad, key, keylen);
sys/netinet/sctp_auth.c
972
sctp_hmac_m(uint16_t hmac_algo, uint8_t *key, uint32_t keylen,
sys/netinet/sctp_auth.c
984
if ((key == NULL) || (keylen == 0) || (m == NULL) || (digest == NULL)) {
sys/netinet/sctp_auth.c
997
sctp_hmac_update(hmac_algo, &ctx, key, keylen);
sys/netinet/sctp_auth.h
124
extern void sctp_free_key(sctp_key_t *key);
sys/netinet/sctp_auth.h
125
extern void sctp_print_key(sctp_key_t *key, const char *str);
sys/netinet/sctp_auth.h
126
extern void sctp_show_key(sctp_key_t *key, const char *str);
sys/netinet/sctp_auth.h
128
extern sctp_key_t *sctp_set_key(uint8_t *key, uint32_t keylen);
sys/netinet/sctp_auth.h
173
sctp_hmac(uint16_t hmac_algo, uint8_t *key, uint32_t keylen,
sys/netinet/sctp_auth.h
176
sctp_compute_hmac(uint16_t hmac_algo, sctp_key_t *key,
sys/netinet/sctp_auth.h
182
sctp_hmac_m(uint16_t hmac_algo, uint8_t *key, uint32_t keylen,
sys/netinet/sctp_auth.h
185
sctp_compute_hmac_m(uint16_t hmac_algo, sctp_key_t *key,
sys/netinet/sctp_auth.h
57
uint8_t key[];
sys/netinet/sctp_auth.h
62
sctp_key_t *key; /* key text */
sys/netinet/sctp_output.c
4786
memcpy(randp, stcb->asoc.authinfo.random->key, parameter_len);
sys/netinet/sctp_pcb.c
6536
memcpy(new_key->key, p_random, keylen);
sys/netinet/sctp_pcb.c
6542
memcpy(new_key->key + keylen, chunks,
sys/netinet/sctp_pcb.c
6548
memcpy(new_key->key + keylen, hmacs,
sys/netinet/sctp_usrreq.c
4267
sctp_key_t *key = NULL;
sys/netinet/sctp_usrreq.c
4293
key = sctp_set_key(sca->sca_key, (uint32_t)size);
sys/netinet/sctp_usrreq.c
4294
if (key == NULL) {
sys/netinet/sctp_usrreq.c
4303
sctp_free_key(key);
sys/netinet/sctp_usrreq.c
4309
shared_key->key = key;
sys/netinet/sctp_usrreq.c
4331
key = sctp_set_key(sca->sca_key, (uint32_t)size);
sys/netinet/sctp_usrreq.c
4332
if (key == NULL) {
sys/netinet/sctp_usrreq.c
4341
sctp_free_key(key);
sys/netinet/sctp_usrreq.c
4347
shared_key->key = key;
sys/netinet/sctp_usrreq.c
4369
key = sctp_set_key(sca->sca_key, (uint32_t)size);
sys/netinet/sctp_usrreq.c
4370
if (key == NULL) {
sys/netinet/sctp_usrreq.c
4377
sctp_free_key(key);
sys/netinet/sctp_usrreq.c
4381
shared_key->key = key;
sys/netinet/siftr.c
229
uint32_t key; /* flowid of the connection */
sys/netinet/siftr.c
337
if (hash_node->const_info.key == id) {
sys/netinet/siftr.c
353
counter_list = counter_hash + (info.key & siftr_hashmask);
sys/netinet/siftr.c
829
info.key = hash_id;
sys/netinet/siftr.c
978
info.key = hash_id;
sys/netinet/tcp_fastopen.c
235
uint8_t key[TCP_FASTOPEN_MAX_KEYS][TCP_FASTOPEN_KEY_LEN];
sys/netinet/tcp_fastopen.c
486
tcp_fastopen_addkey_locked(uint8_t *key)
sys/netinet/tcp_fastopen.c
492
memcpy(V_tcp_fastopen_keys.key[V_tcp_fastopen_keys.newest], key,
sys/netinet/tcp_fastopen.c
533
tcp_fastopen_make_cookie(uint8_t key[SIPHASH_KEY_LENGTH], struct in_conninfo *inc)
sys/netinet/tcp_fastopen.c
539
SipHash_SetKey(&ctx, key);
sys/netinet/tcp_fastopen.c
626
V_tcp_fastopen_keys.key[V_tcp_fastopen_keys.newest],
sys/netinet/tcp_fastopen.c
640
tcp_fastopen_make_cookie(V_tcp_fastopen_keys.key[key_index],
sys/netinet/tcp_subr.c
3421
tcp_keyed_hash(struct in_conninfo *inc, u_char *key, u_int len)
sys/netinet/tcp_subr.c
3429
SipHash_SetKey(&ctx, (uint8_t *)key);
sys/netinet/tcp_syncache.c
2298
secbits = V_tcp_syncache.secret.key[secbit];
sys/netinet/tcp_syncache.c
2340
secbits = V_tcp_syncache.secret.key[cookie.flags.odd_even];
sys/netinet/tcp_syncache.c
2466
secbits = sc->secret.key[secbit];
sys/netinet/tcp_syncache.c
301
arc4rand(V_tcp_syncache.secret.key[0], SYNCOOKIE_SECRET_SIZE, 0);
sys/netinet/tcp_syncache.c
302
arc4rand(V_tcp_syncache.secret.key[1], SYNCOOKIE_SECRET_SIZE, 0);
sys/netinet/tcp_syncache.h
114
uint8_t key[2][SYNCOOKIE_SECRET_SIZE];
sys/netinet6/in6_fib.c
122
struct flm_lookup_key key = {.addr6 = dst6 };
sys/netinet6/in6_fib.c
124
nh = dp->f(dp->arg, key, scopeid);
sys/netinet6/in6_fib.c
269
struct flm_lookup_key key = {.addr6 = dst6 };
sys/netinet6/in6_fib.c
271
nh = dp->f(dp->arg, key, scopeid);
sys/netinet6/in6_fib_algo.c
103
.sin6_addr = *key.addr6,
sys/netinet6/in6_fib_algo.c
105
if (IN6_IS_SCOPE_LINKLOCAL(key.addr6))
sys/netinet6/in6_fib_algo.c
247
radix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid)
sys/netinet6/in6_fib_algo.c
258
.sin6_addr = *key.addr6,
sys/netinet6/in6_fib_algo.c
260
if (IN6_IS_SCOPE_LINKLOCAL(key.addr6))
sys/netinet6/in6_fib_algo.c
277
const struct flm_lookup_key key = { .addr6 = dst6 };
sys/netinet6/in6_fib_algo.c
282
return (radix6_lookup(rh, key, scopeid));
sys/netinet6/in6_fib_algo.c
97
lradix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid)
sys/netinet6/in6_src.c
1038
delete_addrsel_policyent(struct in6_addrpolicy *key)
sys/netinet6/in6_src.c
1047
if (IN6_ARE_ADDR_EQUAL(&key->addr.sin6_addr,
sys/netinet6/in6_src.c
1049
IN6_ARE_ADDR_EQUAL(&key->addrmask.sin6_addr,
sys/netinet6/in6_src.c
1097
match_addrsel_policy(struct sockaddr_in6 *key)
sys/netinet6/in6_src.c
1110
k = (u_char *)&key->sin6_addr;
sys/netinet6/in6_src.c
907
lookup_addrsel_policy(struct sockaddr_in6 *key)
sys/netinet6/in6_src.c
912
match = match_addrsel_policy(key);
sys/netinet6/nd6_rtr.c
1355
nd6_prefix_lookup_locked(struct nd_prefixctl *key)
sys/netinet6/nd6_rtr.c
1362
if (key->ndpr_ifp == search->ndpr_ifp &&
sys/netinet6/nd6_rtr.c
1363
key->ndpr_plen == search->ndpr_plen &&
sys/netinet6/nd6_rtr.c
1364
in6_are_prefix_equal(&key->ndpr_prefix.sin6_addr,
sys/netinet6/nd6_rtr.c
1365
&search->ndpr_prefix.sin6_addr, key->ndpr_plen)) {
sys/netinet6/nd6_rtr.c
1374
nd6_prefix_lookup(struct nd_prefixctl *key)
sys/netinet6/nd6_rtr.c
1379
search = nd6_prefix_lookup_locked(key);
sys/netinet6/nd6_rtr.c
2258
nd6_route_rtrequest(struct nd_routectl *key)
sys/netinet6/nd6_rtr.c
2271
ifp = key->ndrt_ifp;
sys/netinet6/nd6_rtr.c
2272
dst = (struct sockaddr *)&key->ndrt_prefix;
sys/netinet6/nd6_rtr.c
2273
gw = (struct sockaddr *)&key->ndrt_gateway;
sys/netinet6/nd6_rtr.c
2274
mask = (struct sockaddr *)&key->ndrt_mask;
sys/netinet6/nd6_rtr.c
2276
if (key->ndrt_plen == 128) {
sys/netinet6/nd6_rtr.c
2281
rnh = rt_tables_get_rnh_safe(key->ndrt_ifp->if_fib, AF_INET6);
sys/netinet6/nd6_rtr.c
2289
expire = time_second + key->ndrt_lifetime;
sys/netinet6/nd6_rtr.c
2315
error = rib_add_route_px(ifp->if_fib, dst, key->ndrt_plen, &rnd,
sys/netinet6/nd6_rtr.c
2332
nd6_route_rtupdate(struct nd_routectl *key)
sys/netinet6/nd6_rtr.c
2337
expire = time_second + key->ndrt_lifetime;
sys/netinet6/nd6_rtr.c
2342
.rti_info[RTAX_DST] = (struct sockaddr *)&key->ndrt_prefix,
sys/netinet6/nd6_rtr.c
2346
if (key->ndrt_plen != 128)
sys/netinet6/nd6_rtr.c
2347
info.rti_info[RTAX_NETMASK] = (struct sockaddr *)&key->ndrt_mask;
sys/netinet6/nd6_rtr.c
2348
return (rib_change_route(key->ndrt_ifp->if_fib, &info, &rc));
sys/netinet6/nd6_rtr.c
2355
nd6_route_rtdelete(struct nd_routectl *key)
sys/netinet6/nd6_rtr.c
2363
ifp = key->ndrt_ifp;
sys/netinet6/nd6_rtr.c
2364
dst = (struct sockaddr *)&key->ndrt_prefix;
sys/netinet6/nd6_rtr.c
2365
gw = (struct sockaddr *)&key->ndrt_gateway;
sys/netinet6/nd6_rtr.c
2366
error = rib_del_route_px(ifp->if_fib, dst, key->ndrt_plen,
sys/netinet6/nd6_rtr.c
2381
nd6_route_rtlookup(struct nd_routectl *key)
sys/netinet6/nd6_rtr.c
2388
dst = (struct sockaddr *)&key->ndrt_prefix;
sys/netinet6/nd6_rtr.c
2389
gw = (struct sockaddr *)&key->ndrt_gateway;
sys/netinet6/nd6_rtr.c
2390
rnh = rt_tables_get_rnh_safe(key->ndrt_ifp->if_fib, AF_INET6);
sys/netinet6/nd6_rtr.c
2395
rib_lookup_prefix_plen(rnh, dst, key->ndrt_plen, &rnd);
sys/netipsec/key_debug.c
447
struct sadb_key *key = (struct sadb_key *)ext;
sys/netipsec/key_debug.c
454
key->sadb_key_bits, key->sadb_key_reserved);
sys/netipsec/key_debug.c
458
if ((key->sadb_key_bits >> 3) >
sys/netipsec/key_debug.c
459
(PFKEY_UNUNIT64(key->sadb_key_len) - sizeof(struct sadb_key))) {
sys/netipsec/key_debug.c
462
key->sadb_key_bits >> 3,
sys/netipsec/key_debug.c
463
(long)PFKEY_UNUNIT64(key->sadb_key_len) - sizeof(struct sadb_key));
sys/netipsec/key_debug.c
466
ipsec_hexdump((caddr_t)key + sizeof(struct sadb_key),
sys/netipsec/key_debug.c
467
key->sadb_key_bits >> 3);
sys/netipsec/key_var.h
53
#define _KEYLEN(key) ((u_int)((key)->bits >> 3))
sys/netipsec/key_var.h
54
#define _KEYBITS(key) ((u_int)((key)->bits))
sys/netipsec/key_var.h
55
#define _KEYBUF(key) ((caddr_t)((caddr_t)(key) + sizeof(struct sadb_key)))
sys/netipsec/keysock.c
333
SYSCTL_NODE(_net, PF_KEY, key, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
sys/netipsec/keysock.c
354
DOMAIN_SET(key);
sys/netlink/netlink_message_parser.c
100
search_states(const struct nlattr_parser *ps, u_int pslen, int key)
sys/netlink/netlink_message_parser.c
104
if (key < ps[0].type || key > ps[pslen - 1].type)
sys/netlink/netlink_message_parser.c
109
if (key < ps[mid_i].type)
sys/netlink/netlink_message_parser.c
111
else if (key > ps[mid_i].type)
sys/netlink/netlink_message_parser.c
116
if (ps[left_i].type == key)
sys/netlink/netlink_message_parser.c
118
else if (ps[right_i].type == key)
sys/netlink/netlink_snl.h
433
find_parser(const struct snl_attr_parser *ps, int pslen, int key)
sys/netlink/netlink_snl.h
437
if (key < ps[0].type || key > ps[pslen - 1].type)
sys/netlink/netlink_snl.h
442
if (key < ps[mid_i].type)
sys/netlink/netlink_snl.h
444
else if (key > ps[mid_i].type)
sys/netlink/netlink_snl.h
449
if (ps[left_i].type == key)
sys/netlink/netlink_snl.h
451
else if (ps[right_i].type == key)
sys/netlink/route/nexthop.c
1023
struct user_nhop key = { .un_idx = attrs.nha_id };
sys/netlink/route/nexthop.c
1030
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop);
sys/netlink/route/nexthop.c
161
struct user_nhop key= {
sys/netlink/route/nexthop.c
173
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop);
sys/netlink/route/nexthop.c
185
key.un_fibfam = 0;
sys/netlink/route/nexthop.c
186
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop);
sys/netlink/route/nexthop.c
217
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop);
sys/netlink/route/nexthop.c
255
struct user_nhop key= { .un_idx = uidx };
sys/netlink/route/nexthop.c
260
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop);
sys/netlink/route/nexthop.c
354
struct user_nhop *unhop, key = {};
sys/netlink/route/nexthop.c
361
key.un_idx = (arc4random() % 65536) + 65536 * 4;
sys/netlink/route/nexthop.c
362
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop);
sys/netlink/route/nexthop.c
364
uidx = key.un_idx;
sys/netlink/route/nexthop.c
506
struct user_nhop key = { .un_idx = uidx };
sys/netlink/route/nexthop.c
510
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop_base);
sys/netpfil/ipfilter/netinet/fil.c
9656
ipf_ht_node_make_key(host_track_t *htp, host_node_t *key, int family,
sys/netpfil/ipfilter/netinet/fil.c
9659
key->hn_addr.adf_family = family;
sys/netpfil/ipfilter/netinet/fil.c
9664
key->hn_addr.adf_len = sizeof(key->hn_addr.adf_addr.in4);
sys/netpfil/ipfilter/netinet/fil.c
9671
key->hn_addr.adf_addr.in4.s_addr = addr->in4.s_addr & mask;
sys/netpfil/ipfilter/netinet/fil.c
9676
key->hn_addr.adf_len = sizeof(key->hn_addr.adf_addr.in6);
sys/netpfil/ipfilter/netinet/fil.c
9678
key->hn_addr.adf_addr.i6[3] = addr->i6[3] &
sys/netpfil/ipfilter/netinet/fil.c
9680
key->hn_addr.adf_addr.i6[2] = addr->i6[2];
sys/netpfil/ipfilter/netinet/fil.c
9681
key->hn_addr.adf_addr.i6[1] = addr->i6[2];
sys/netpfil/ipfilter/netinet/fil.c
9682
key->hn_addr.adf_addr.i6[0] = addr->i6[2];
sys/netpfil/ipfilter/netinet/fil.c
9684
key->hn_addr.adf_addr.i6[3] = 0;
sys/netpfil/ipfilter/netinet/fil.c
9685
key->hn_addr.adf_addr.i6[2] = addr->i6[2] &
sys/netpfil/ipfilter/netinet/fil.c
9687
key->hn_addr.adf_addr.i6[1] = addr->i6[1];
sys/netpfil/ipfilter/netinet/fil.c
9688
key->hn_addr.adf_addr.i6[0] = addr->i6[0];
sys/netpfil/ipfilter/netinet/fil.c
9690
key->hn_addr.adf_addr.i6[3] = 0;
sys/netpfil/ipfilter/netinet/fil.c
9691
key->hn_addr.adf_addr.i6[2] = 0;
sys/netpfil/ipfilter/netinet/fil.c
9692
key->hn_addr.adf_addr.i6[1] = addr->i6[1] &
sys/netpfil/ipfilter/netinet/fil.c
9694
key->hn_addr.adf_addr.i6[0] = addr->i6[0];
sys/netpfil/ipfilter/netinet/fil.c
9696
key->hn_addr.adf_addr.i6[3] = 0;
sys/netpfil/ipfilter/netinet/fil.c
9697
key->hn_addr.adf_addr.i6[2] = 0;
sys/netpfil/ipfilter/netinet/fil.c
9698
key->hn_addr.adf_addr.i6[1] = 0;
sys/netpfil/ipfilter/netinet/fil.c
9699
key->hn_addr.adf_addr.i6[0] = addr->i6[0] &
sys/netpfil/ipfilter/netinet/ip_lookup.c
725
iplookupiterkey_t key;
sys/netpfil/ipfilter/netinet/ip_lookup.c
728
key.ilik_key = type;
sys/netpfil/ipfilter/netinet/ip_lookup.c
729
lkey = &key.ilik_unstr;
sys/netpfil/ipfilter/netinet/ip_lookup.c
765
int error, key;
sys/netpfil/ipfilter/netinet/ip_lookup.c
769
error = BCOPYIN(data, &key, sizeof(key));
sys/netpfil/ipfilter/netinet/ip_lookup.c
771
error = ipf_token_del(softc, key, uid, ctx);
sys/netpfil/ipfilter/netinet/ipf_rb.h
336
_n##_rb_search(struct _n##_rb_head *head, void *key) \
sys/netpfil/ipfilter/netinet/ipf_rb.h
342
match = _cmp(key, node); \
sys/netpfil/ipfilter/netinet/radix_ipf.c
185
u_32_t *key;
sys/netpfil/ipfilter/netinet/radix_ipf.c
201
key = (u_32_t *)addr + i;
sys/netpfil/ipfilter/netinet/radix_ipf.c
202
for (; key < end; data++, key++, mask++)
sys/netpfil/ipfilter/netinet/radix_ipf.c
203
if ((*key & *mask) != *data)
sys/netpfil/ipfilter/netinet/radix_ipf.c
205
if ((end == key) && (cur->root == 0))
sys/netpfil/ipfilter/netinet/radix_ipf.c
209
key = (u_32_t *)addr;
sys/netpfil/ipfilter/netinet/radix_ipf.c
223
if ((key[i] & masknode->mask[i]) ==
sys/netpfil/ipfilter/netinet/radix_ipf.c
332
u_32_t *key;
sys/netpfil/ipfilter/netinet/radix_ipf.c
344
key = (u_32_t *)&((addrfamily_t *)addr)->adf_addr;
sys/netpfil/ipfilter/netinet/radix_ipf.c
347
for (nlen = 0; key < end; data++, key++, nlen += 32)
sys/netpfil/ipfilter/netinet/radix_ipf.c
348
if (*key != *data)
sys/netpfil/ipfilter/netinet/radix_ipf.c
356
bits = (ntohl(*data) ^ ntohl(*key));
sys/netpfil/ipfilter/netinet/radix_ipf.c
377
key = nodes[0].addrkey;
sys/netpfil/ipfilter/netinet/radix_ipf.c
380
if (key[cur->offset] & cur->bitmask) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
387
if ((key[prev->offset] & prev->bitmask) == 0) {
sys/netpfil/ipfilter/netinet/radix_ipf.c
394
if ((key[nodes[1].offset] & nodes[1].bitmask) == 0) {
sys/netpfil/ipfw/dn_heap.c
155
h->p[son].key = key1;
sys/netpfil/ipfw/dn_heap.c
163
if (DN_KEY_LT( h->p[father].key, h->p[son].key ) )
sys/netpfil/ipfw/dn_heap.c
209
DN_KEY_LT(h->p[child+1].key, h->p[child].key) )
sys/netpfil/ipfw/dn_heap.c
244
if (DN_KEY_LT(new_key, p[i].key) ) { /* must move up */
sys/netpfil/ipfw/dn_heap.c
245
p[i].key = new_key;
sys/netpfil/ipfw/dn_heap.c
247
DN_KEY_LT(new_key, p[(temp = HEAP_FATHER(i))].key);
sys/netpfil/ipfw/dn_heap.c
253
p[i].key = new_key;
sys/netpfil/ipfw/dn_heap.c
257
DN_KEY_LT(p[temp+1].key, p[temp].key))
sys/netpfil/ipfw/dn_heap.c
259
if (DN_KEY_LT(>p[temp].key, new_key)) {
sys/netpfil/ipfw/dn_heap.c
327
int (*match)(void *_el, uintptr_t key, int, void *);
sys/netpfil/ipfw/dn_heap.c
451
dn_ht_find(struct dn_ht *ht, uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/dn_heap.c
459
(ht->hash(key, flags, arg) & ht->buckets);
sys/netpfil/ipfw/dn_heap.c
463
if (key == (uintptr_t)p)
sys/netpfil/ipfw/dn_heap.c
465
} else if (ht->match(p, key, flags, arg)) /* found match */
sys/netpfil/ipfw/dn_heap.c
478
p = ht->newh ? ht->newh(key, flags, arg) : (void *)key;
sys/netpfil/ipfw/dn_heap.h
57
uint64_t key; /* sorting key, smallest comes first */
sys/netpfil/ipfw/dn_sched_wf2q.c
120
(force || DN_KEY_LT(HEAP_TOP(h)->key, si->V))) {
sys/netpfil/ipfw/dn_sched_wf2q.c
231
si->V = MAX64(si->V, HEAP_TOP(neh)->key);
sys/netpfil/ipfw/dn_sched_wf2q.c
234
DN_KEY_LEQ(HEAP_TOP(neh)->key, si->V)) {
sys/netpfil/ipfw/ip_dn_io.c
744
DN_KEY_LT(V_dn_cfg.curr_time, HEAP_TOP(&V_dn_cfg.evheap)->key))
sys/netpfil/ipfw/ip_dummynet.c
324
q_hash(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
328
&((struct dn_queue *)key)->ni.fid :
sys/netpfil/ipfw/ip_dummynet.c
329
(struct ipfw_flow_id *)key;
sys/netpfil/ipfw/ip_dummynet.c
335
q_match(void *obj, uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
342
id2 = &((struct dn_queue *)key)->ni.fid;
sys/netpfil/ipfw/ip_dummynet.c
344
id2 = (struct ipfw_flow_id *)key;
sys/netpfil/ipfw/ip_dummynet.c
353
q_new(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
367
q->ni.fid = *(struct ipfw_flow_id *)key;
sys/netpfil/ipfw/ip_dummynet.c
490
si_hash(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
494
&((struct dn_sch_inst *)key)->ni.fid :
sys/netpfil/ipfw/ip_dummynet.c
495
(struct ipfw_flow_id *)key;
sys/netpfil/ipfw/ip_dummynet.c
501
si_match(void *obj, uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
507
&((struct dn_sch_inst *)key)->ni.fid :
sys/netpfil/ipfw/ip_dummynet.c
508
(struct ipfw_flow_id *)key;
sys/netpfil/ipfw/ip_dummynet.c
517
si_new(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
542
si->ni.fid = *(struct ipfw_flow_id *)key;
sys/netpfil/ipfw/ip_dummynet.c
652
fsk_hash(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
654
uint32_t i = !(flags & DNHT_KEY_IS_OBJ) ? key :
sys/netpfil/ipfw/ip_dummynet.c
655
((struct dn_fsk *)key)->fs.fs_nr;
sys/netpfil/ipfw/ip_dummynet.c
661
fsk_match(void *obj, uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
664
int i = !(flags & DNHT_KEY_IS_OBJ) ? key :
sys/netpfil/ipfw/ip_dummynet.c
665
((struct dn_fsk *)key)->fs.fs_nr;
sys/netpfil/ipfw/ip_dummynet.c
671
fsk_new(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_dummynet.c
844
schk_hash(uintptr_t key, int flags, void *_arg)
sys/netpfil/ipfw/ip_dummynet.c
846
uint32_t i = !(flags & DNHT_KEY_IS_OBJ) ? key :
sys/netpfil/ipfw/ip_dummynet.c
847
((struct dn_schk *)key)->sch.sched_nr;
sys/netpfil/ipfw/ip_dummynet.c
852
schk_match(void *obj, uintptr_t key, int flags, void *_arg)
sys/netpfil/ipfw/ip_dummynet.c
855
int i = !(flags & DNHT_KEY_IS_OBJ) ? key :
sys/netpfil/ipfw/ip_dummynet.c
856
((struct dn_schk *)key)->sch.sched_nr;
sys/netpfil/ipfw/ip_dummynet.c
866
schk_new(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/ip_fw2.c
2155
ipfw_insn_lookup key;
sys/netpfil/ipfw/ip_fw2.c
2167
key.ip4 = dst_ip;
sys/netpfil/ipfw/ip_fw2.c
2177
key.ip6 = args->f_id.dst_ip6;
sys/netpfil/ipfw/ip_fw2.c
2183
key.ip4 = src_ip;
sys/netpfil/ipfw/ip_fw2.c
2193
key.ip6 = args->f_id.src_ip6;
sys/netpfil/ipfw/ip_fw2.c
2197
key.u32 = ip->ip_tos >> 2;
sys/netpfil/ipfw/ip_fw2.c
2199
key.u32 = IPV6_DSCP(
sys/netpfil/ipfw/ip_fw2.c
2204
keylen = sizeof(key.u32);
sys/netpfil/ipfw/ip_fw2.c
2205
key.u32 &= 0x3f;
sys/netpfil/ipfw/ip_fw2.c
2224
key.u32 = dst_port;
sys/netpfil/ipfw/ip_fw2.c
2226
key.u32 = src_port;
sys/netpfil/ipfw/ip_fw2.c
2227
keylen = sizeof(key.u32);
sys/netpfil/ipfw/ip_fw2.c
2234
memcpy(key.mac, eh->ether_dhost,
sys/netpfil/ipfw/ip_fw2.c
2235
sizeof(key.mac));
sys/netpfil/ipfw/ip_fw2.c
2242
memcpy(key.mac, eh->ether_shost,
sys/netpfil/ipfw/ip_fw2.c
2243
sizeof(key.mac));
sys/netpfil/ipfw/ip_fw2.c
2253
key.u32 = ucred_cache->cr_uid;
sys/netpfil/ipfw/ip_fw2.c
2255
key.u32 = ucred_cache->cr_prison->pr_id;
sys/netpfil/ipfw/ip_fw2.c
2259
key.u32 = ucred_cache.uid;
sys/netpfil/ipfw/ip_fw2.c
2261
key.u32 = ucred_cache.xid;
sys/netpfil/ipfw/ip_fw2.c
2263
keylen = sizeof(key.u32);
sys/netpfil/ipfw/ip_fw2.c
2267
key.u32 = args->rule.pkt_mark;
sys/netpfil/ipfw/ip_fw2.c
2268
keylen = sizeof(key.u32);
sys/netpfil/ipfw/ip_fw2.c
2271
key.u32 = f->rulenum;
sys/netpfil/ipfw/ip_fw2.c
2272
keylen = sizeof(key.u32);
sys/netpfil/ipfw/ip_fw2.c
2287
key.u32 &= insntod(cmd, table)->value;
sys/netpfil/ipfw/ip_fw2.c
2289
key.__mask64[0] &=
sys/netpfil/ipfw/ip_fw2.c
2291
key.__mask64[1] &=
sys/netpfil/ipfw/ip_fw2.c
2297
key.__mask64, &vidx);
sys/netpfil/ipfw/ip_fw_bpf.c
104
struct ipfw_tap *tap, key = { .rule = rule };
sys/netpfil/ipfw/ip_fw_bpf.c
109
tap = RB_FIND(tap_tree, &ch->taps, &key);
sys/netpfil/ipfw/ip_fw_bpf.c
127
struct ipfw_tap key = { .rule = rulenum };
sys/netpfil/ipfw/ip_fw_bpf.c
129
tap = RB_FIND(tap_tree, &ch->taps, &key);
sys/netpfil/ipfw/ip_fw_bpf.c
78
struct ipfw_tap *tap, key = { .rule = rule };
sys/netpfil/ipfw/ip_fw_bpf.c
84
tap = RB_FIND(tap_tree, &ch->taps, &key);
sys/netpfil/ipfw/ip_fw_compat.c
143
uint32_t key; /* uid/gid/port */
sys/netpfil/ipfw/ip_fw_sockopt.c
107
const void *key, uint32_t kopt);
sys/netpfil/ipfw/ip_fw_sockopt.c
222
ipfw_find_rule(struct ip_fw_chain *chain, uint32_t key, uint32_t id)
sys/netpfil/ipfw/ip_fw_sockopt.c
230
if (r->rulenum < key)
sys/netpfil/ipfw/ip_fw_sockopt.c
232
else if (r->rulenum > key)
sys/netpfil/ipfw/ip_fw_table_algo.c
1037
hash_ip6_slow(struct in6_addr *addr6, void *key, int mask, int hsize)
sys/netpfil/ipfw/ip_fw_table_algo.c
1042
memcpy(addr6, key, sizeof(struct in6_addr));
sys/netpfil/ipfw/ip_fw_table_algo.c
1048
hash_ip6_al(struct in6_addr *addr6, void *key, int mask, int hsize)
sys/netpfil/ipfw/ip_fw_table_algo.c
1055
memcpy(addr6, key, mask);
sys/netpfil/ipfw/ip_fw_table_algo.c
1061
ta_lookup_chash_slow(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
1075
a = ntohl(*((in_addr_t *)key));
sys/netpfil/ipfw/ip_fw_table_algo.c
1092
hash = hash_ip6_slow(&addr6, key, imask, hsize);
sys/netpfil/ipfw/ip_fw_table_algo.c
1106
ta_lookup_chash_aligned(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
1120
a = ntohl(*((in_addr_t *)key));
sys/netpfil/ipfw/ip_fw_table_algo.c
1139
hash = hash_ip6_al(&addr6, key, imask, hsize);
sys/netpfil/ipfw/ip_fw_table_algo.c
1155
ta_lookup_chash_64(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
1169
a = ntohl(*((in_addr_t *)key));
sys/netpfil/ipfw/ip_fw_table_algo.c
1184
paddr = (uint64_t *)key;
sys/netpfil/ipfw/ip_fw_table_algo.c
1187
hash = hash_ip64((struct in6_addr *)key, hsize);
sys/netpfil/ipfw/ip_fw_table_algo.c
1943
static struct ifidx * ifidx_find(struct table_info *ti, void *key);
sys/netpfil/ipfw/ip_fw_table_algo.c
1944
static int ta_lookup_ifidx(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
1986
uint16_t key;
sys/netpfil/ipfw/ip_fw_table_algo.c
1988
key = *((const uint16_t *)k);
sys/netpfil/ipfw/ip_fw_table_algo.c
1991
if (key < ifidx->kidx)
sys/netpfil/ipfw/ip_fw_table_algo.c
1993
else if (key > ifidx->kidx)
sys/netpfil/ipfw/ip_fw_table_algo.c
2006
badd(const void *key, void *item, void *base, size_t nmemb,
sys/netpfil/ipfw/ip_fw_table_algo.c
2023
res = compar(key, (const void *)((caddr_t)base + mid * size));
sys/netpfil/ipfw/ip_fw_table_algo.c
2034
res = compar(key, (const void *)((caddr_t)base + mid * size));
sys/netpfil/ipfw/ip_fw_table_algo.c
2055
bdel(const void *key, void *base, size_t nmemb, size_t size,
sys/netpfil/ipfw/ip_fw_table_algo.c
2061
item = (caddr_t)bsearch(key, base, nmemb, size, compar);
sys/netpfil/ipfw/ip_fw_table_algo.c
2075
ifidx_find(struct table_info *ti, void *key)
sys/netpfil/ipfw/ip_fw_table_algo.c
2079
ifi = bsearch(key, ti->state, ti->data, sizeof(struct ifidx),
sys/netpfil/ipfw/ip_fw_table_algo.c
2086
ta_lookup_ifidx(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
2091
ifi = ifidx_find(ti, key);
sys/netpfil/ipfw/ip_fw_table_algo.c
2644
static struct numarray *numarray_find(struct table_info *ti, void *key);
sys/netpfil/ipfw/ip_fw_table_algo.c
2645
static int ta_lookup_numarray(struct table_info *ti, void *key,
sys/netpfil/ipfw/ip_fw_table_algo.c
2679
uint32_t key;
sys/netpfil/ipfw/ip_fw_table_algo.c
2681
key = *((const uint32_t *)k);
sys/netpfil/ipfw/ip_fw_table_algo.c
2684
if (key < na->number)
sys/netpfil/ipfw/ip_fw_table_algo.c
2686
else if (key > na->number)
sys/netpfil/ipfw/ip_fw_table_algo.c
2693
numarray_find(struct table_info *ti, void *key)
sys/netpfil/ipfw/ip_fw_table_algo.c
2697
ri = bsearch(key, ti->state, ti->data, sizeof(struct numarray),
sys/netpfil/ipfw/ip_fw_table_algo.c
2704
ta_lookup_numarray(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
2709
ri = numarray_find(ti, key);
sys/netpfil/ipfw/ip_fw_table_algo.c
298
static int badd(const void *key, void *item, void *base, size_t nmemb,
sys/netpfil/ipfw/ip_fw_table_algo.c
2983
tent->k.key = na->number;
sys/netpfil/ipfw/ip_fw_table_algo.c
2995
ri = numarray_find(ti, &tent->k.key);
sys/netpfil/ipfw/ip_fw_table_algo.c
300
static int bdel(const void *key, void *base, size_t nmemb, size_t size,
sys/netpfil/ipfw/ip_fw_table_algo.c
3107
static int ta_lookup_fhash(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
3193
ta_lookup_fhash(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
3202
id = (struct ipfw_flow_id *)key;
sys/netpfil/ipfw/ip_fw_table_algo.c
3777
static int ta_lookup_kfib(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
3797
ta_lookup_kfib(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
3808
in.s_addr = *(in_addr_t *)key;
sys/netpfil/ipfw/ip_fw_table_algo.c
3815
error = fib6_lookup(ti->data, (struct in6_addr *)key,
sys/netpfil/ipfw/ip_fw_table_algo.c
383
static int ta_lookup_addr_radix(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
4033
ta_lookup_mac_radix(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
4042
memcpy(sa.mac_addr.octet, key, ETHER_ADDR_LEN);
sys/netpfil/ipfw/ip_fw_table_algo.c
413
ta_lookup_addr_radix(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
422
sa.sin_addr.s_addr = *((in_addr_t *)key);
sys/netpfil/ipfw/ip_fw_table_algo.c
433
memcpy(&sa6.sin6_addr, key, sizeof(struct in6_addr));
sys/netpfil/ipfw/ip_fw_table_algo.c
957
static __inline uint32_t hash_ip6_slow(struct in6_addr *addr6, void *key,
sys/netpfil/ipfw/ip_fw_table_algo.c
959
static __inline uint32_t hash_ip6_al(struct in6_addr *addr6, void *key, int mask,
sys/netpfil/ipfw/ip_fw_table_algo.c
962
static int ta_lookup_chash_slow(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_algo.c
964
static int ta_lookup_chash_aligned(struct table_info *ti, void *key,
sys/netpfil/ipfw/ip_fw_table_algo.c
966
static int ta_lookup_chash_64(struct table_info *ti, void *key, uint32_t keylen,
sys/netpfil/ipfw/ip_fw_table_value.c
101
return (memcmp(((struct table_val_link *)no)->pval, key, 56));
sys/netpfil/ipfw/ip_fw_table_value.c
61
static uint32_t hash_table_value(struct namedobj_instance *ni, const void *key,
sys/netpfil/ipfw/ip_fw_table_value.c
63
static int cmp_table_value(struct named_object *no, const void *key,
sys/netpfil/ipfw/ip_fw_table_value.c
91
hash_table_value(struct namedobj_instance *ni, const void *key, uint32_t kopt)
sys/netpfil/ipfw/ip_fw_table_value.c
94
return (hash32_buf(key, 56, 0));
sys/netpfil/ipfw/ip_fw_table_value.c
98
cmp_table_value(struct named_object *no, const void *key, uint32_t kopt)
sys/netpfil/ipfw/test/main.c
263
getnum(const char *s, char **next, const char *key)
sys/netpfil/ipfw/test/main.c
271
DX(3, "token is <%s> %s", s, key ? key : "-");
sys/netpfil/ipfw/test/main.c
278
DX(2, "invalid %s for %s", s ? s : "NULL", (key ? key : "") );
sys/netpfil/ipfw/test/main.c
296
D("suffix %s for %s, next %p", end, key, next);
sys/netpfil/ipfw/test/main.c
300
DX(3, "suffix now %s for %s, next %p", end, key, next);
sys/netpfil/ipfw/test/main.c
302
DX(3, "setting next to %s for %s", end, key);
sys/netpfil/ipfw/test/test_dn_heap.c
150
uint64_t k = h.p[0].key;
sys/netpfil/ipfw/test/test_dn_heap.c
156
i, h.p[0].key, h.p[0].object);
sys/netpfil/ipfw/test/test_dn_heap.c
50
uint32_t hf(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/test/test_dn_heap.c
53
((struct x *)key)->buf[0] : *(char *)key;
sys/netpfil/ipfw/test/test_dn_heap.c
56
int matchf(void *obj, uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/test/test_dn_heap.c
59
((struct x *)key)->buf : (char *)key;
sys/netpfil/ipfw/test/test_dn_heap.c
63
void *newfn(uintptr_t key, int flags, void *arg)
sys/netpfil/ipfw/test/test_dn_heap.c
65
char *s = (char *)key;
sys/netpfil/pf/if_pfsync.c
1394
if (st->key[PF_SK_WIRE]->proto == IPPROTO_TCP)
sys/netpfil/pf/if_pfsync.c
1481
if (st->key[PF_SK_WIRE]->proto == IPPROTO_TCP)
sys/netpfil/pf/if_pfsync.c
2198
st->key[PF_SK_WIRE]->proto == IPPROTO_PFSYNC) {
sys/netpfil/pf/if_pfsync.c
2401
if (st->key[PF_SK_WIRE]->proto == IPPROTO_TCP) {
sys/netpfil/pf/if_pfsync.c
531
struct pfsync_state_key key[2];
sys/netpfil/pf/if_pfsync.c
725
bcopy(&sp->pfs_1301.key, key, sizeof(struct pfsync_state_key) * 2);
sys/netpfil/pf/if_pfsync.c
726
kw = &key[PF_SK_WIRE];
sys/netpfil/pf/if_pfsync.c
727
ks = &key[PF_SK_STACK];
sys/netpfil/pf/if_pfsync.c
729
kw = &sp->pfs_1301.key[PF_SK_WIRE];
sys/netpfil/pf/if_pfsync.c
730
ks = &sp->pfs_1301.key[PF_SK_STACK];
sys/netpfil/pf/pf.c
10522
af = s->key[PF_SK_STACK]->af;
sys/netpfil/pf/pf.c
10529
s->key[PF_SK_STACK]->addr[pd->sidx].v4.s_addr);
sys/netpfil/pf/pf.c
1053
s->key[PF_SK_STACK] != NULL &&
sys/netpfil/pf/pf.c
10531
s->key[PF_SK_STACK]->addr[pd->didx].v4.s_addr);
sys/netpfil/pf/pf.c
1054
s->key[PF_SK_STACK]->proto == IPPROTO_TCP &&
sys/netpfil/pf/pf.c
10542
s->key[PF_SK_STACK]->addr[pd->sidx].v6;
sys/netpfil/pf/pf.c
10544
s->key[PF_SK_STACK]->addr[pd->didx].v6;
sys/netpfil/pf/pf.c
1122
pfoe->af = state->key[PF_SK_WIRE]->af;
sys/netpfil/pf/pf.c
11416
struct pf_state_key *key;
sys/netpfil/pf/pf.c
11500
key = s->key[(s->direction == PF_OUT)];
sys/netpfil/pf/pf.c
11501
src_host = &(key->addr[s_dir_out]);
sys/netpfil/pf/pf.c
11502
dst_host = &(key->addr[s_dir_in]);
sys/netpfil/pf/pf.c
11503
af = key->af;
sys/netpfil/pf/pf.c
11513
key = s->key[s_dir_in];
sys/netpfil/pf/pf.c
11514
src_host = &(key->addr[s_dir_out]);
sys/netpfil/pf/pf.c
11515
dst_host = &(key->addr[s_dir_in]);
sys/netpfil/pf/pf.c
11516
af = key->af;
sys/netpfil/pf/pf.c
11526
key = s->key[s_dir_in];
sys/netpfil/pf/pf.c
11527
src_host = &(key->addr[s_dir_out]);
sys/netpfil/pf/pf.c
11528
dst_host = &(key->addr[s_dir_in]);
sys/netpfil/pf/pf.c
11529
af = key->af;
sys/netpfil/pf/pf.c
1206
sk = s->key[PF_SK_WIRE];
sys/netpfil/pf/pf.c
1654
KASSERT(s->key[PF_SK_WIRE] == NULL, ("%s: state has key", __func__));
sys/netpfil/pf/pf.c
1655
KASSERT(s->key[PF_SK_STACK] == NULL, ("%s: state has key", __func__));
sys/netpfil/pf/pf.c
1713
((si->key[PF_SK_WIRE]->af == sk->af &&
sys/netpfil/pf/pf.c
1715
(si->key[PF_SK_WIRE]->af !=
sys/netpfil/pf/pf.c
1716
si->key[PF_SK_STACK]->af &&
sys/netpfil/pf/pf.c
1717
sk->af == si->key[PF_SK_STACK]->af &&
sys/netpfil/pf/pf.c
1793
s->key[idx] = cur;
sys/netpfil/pf/pf.c
1796
s->key[idx] = sk;
sys/netpfil/pf/pf.c
1802
TAILQ_INSERT_TAIL(&s->key[idx]->states[idx], s, key_list[idx]);
sys/netpfil/pf/pf.c
1804
TAILQ_INSERT_HEAD(&s->key[idx]->states[idx], s, key_list[idx]);
sys/netpfil/pf/pf.c
1807
TAILQ_REMOVE(&s->key[idx]->states[idx], olds, key_list[idx]);
sys/netpfil/pf/pf.c
1808
TAILQ_INSERT_TAIL(&s->key[idx]->states[idx], olds,
sys/netpfil/pf/pf.c
1818
s->key[PF_SK_STACK] = s->key[PF_SK_WIRE];
sys/netpfil/pf/pf.c
1836
KASSERT(s->key[PF_SK_WIRE] != NULL && s->key[PF_SK_STACK] != NULL,
sys/netpfil/pf/pf.c
1846
struct pf_state_key *sks = s->key[PF_SK_STACK];
sys/netpfil/pf/pf.c
1860
if (s->key[PF_SK_STACK] != NULL)
sys/netpfil/pf/pf.c
1865
if (sks == s->key[PF_SK_WIRE]) {
sys/netpfil/pf/pf.c
1873
if (s->key[PF_SK_WIRE] != NULL) {
sys/netpfil/pf/pf.c
1874
kh = &V_pf_keyhash[pf_hashkey(s->key[PF_SK_WIRE])];
sys/netpfil/pf/pf.c
1876
if (s->key[PF_SK_WIRE] != NULL)
sys/netpfil/pf/pf.c
1885
struct pf_state_key *sk = s->key[idx];
sys/netpfil/pf/pf.c
1892
s->key[idx] = NULL;
sys/netpfil/pf/pf.c
1914
struct pf_state_key_cmp *key, int multi)
sys/netpfil/pf/pf.c
1944
key->addr[pd->didx].addr32[0] = 0;
sys/netpfil/pf/pf.c
1945
key->addr[pd->didx].addr32[1] = 0;
sys/netpfil/pf/pf.c
1946
key->addr[pd->didx].addr32[2] = 0;
sys/netpfil/pf/pf.c
1947
key->addr[pd->didx].addr32[3] = 0;
sys/netpfil/pf/pf.c
1953
key->addr[pd->sidx].addr32[0] = IPV6_ADDR_INT32_MLL;
sys/netpfil/pf/pf.c
1954
key->addr[pd->sidx].addr32[1] = 0;
sys/netpfil/pf/pf.c
1955
key->addr[pd->sidx].addr32[2] = 0;
sys/netpfil/pf/pf.c
1956
key->addr[pd->sidx].addr32[3] = IPV6_ADDR_INT32_ONE;
sys/netpfil/pf/pf.c
1963
pf_addrcpy(&key->addr[pd->sidx], saddr, pd->af);
sys/netpfil/pf/pf.c
1965
pf_addrcpy(&key->addr[pd->didx], daddr, pd->af);
sys/netpfil/pf/pf.c
2143
pf_find_state(struct pf_pdesc *pd, const struct pf_state_key_cmp *key,
sys/netpfil/pf/pf.c
2155
kh = &V_pf_keyhash[pf_hashkey((const struct pf_state_key *)key)];
sys/netpfil/pf/pf.c
2159
if (bcmp(sk, key, sizeof(struct pf_state_key_cmp)) == 0)
sys/netpfil/pf/pf.c
2182
key, (pd->dir), pd, *state);
sys/netpfil/pf/pf.c
2192
s->key[PF_SK_WIRE]->af == s->key[PF_SK_STACK]->af)
sys/netpfil/pf/pf.c
2207
key, (pd->dir), pd, NULL);
sys/netpfil/pf/pf.c
2217
SDT_PROBE5(pf, ip, state, lookup, pd->kif, key, (pd->dir), pd, *state);
sys/netpfil/pf/pf.c
2245
pf_find_state_all(const struct pf_state_key_cmp *key, u_int dir, int *more)
sys/netpfil/pf/pf.c
2257
kh = &V_pf_keyhash[pf_hashkey((const struct pf_state_key *)key)];
sys/netpfil/pf/pf.c
2261
if (bcmp(sk, key, sizeof(struct pf_state_key_cmp)) == 0)
sys/netpfil/pf/pf.c
2314
pf_find_state_all_exists(const struct pf_state_key_cmp *key, u_int dir)
sys/netpfil/pf/pf.c
2318
s = pf_find_state_all(key, dir, NULL);
sys/netpfil/pf/pf.c
2459
pf_udp_mapping_find(struct pf_udp_endpoint_cmp *key)
sys/netpfil/pf/pf.c
2464
uh = &V_pf_udpendpointhash[pf_hashudpendpoint((struct pf_udp_endpoint*)key)];
sys/netpfil/pf/pf.c
2468
if (bcmp(endpoint, key, sizeof(struct pf_udp_endpoint_cmp)) == 0 &&
sys/netpfil/pf/pf.c
3086
pf_send_tcp(s->rule, s->key[PF_SK_WIRE]->af,
sys/netpfil/pf/pf.c
3087
&s->key[PF_SK_WIRE]->addr[1],
sys/netpfil/pf/pf.c
3088
&s->key[PF_SK_WIRE]->addr[0],
sys/netpfil/pf/pf.c
3089
s->key[PF_SK_WIRE]->port[1],
sys/netpfil/pf/pf.c
3090
s->key[PF_SK_WIRE]->port[0],
sys/netpfil/pf/pf.c
3107
if (s->key[PF_SK_STACK] != NULL &&
sys/netpfil/pf/pf.c
3108
s->key[PF_SK_STACK]->proto == IPPROTO_TCP)
sys/netpfil/pf/pf.c
3135
struct pf_source key, *sr;
sys/netpfil/pf/pf.c
3142
pf_source_key(srlim, &key, s->key[PF_SK_WIRE]->af,
sys/netpfil/pf/pf.c
3143
&s->key[PF_SK_WIRE]->addr[0 /* XXX or 1? */]);
sys/netpfil/pf/pf.c
3145
sr = pf_source_find(srlim, &key);
sys/netpfil/pf/pf.c
3398
skw = skwp ? skwp : (s ? s->key[PF_SK_WIRE] : NULL);
sys/netpfil/pf/pf.c
3399
sks = sksp ? sksp : (s ? s->key[PF_SK_STACK] : NULL);
sys/netpfil/pf/pf.c
539
struct pf_statelim key;
sys/netpfil/pf/pf.c
542
key.pfstlim_id = id;
sys/netpfil/pf/pf.c
545
&V_pf_statelim_id_tree_active, &key));
sys/netpfil/pf/pf.c
551
struct pf_sourcelim key;
sys/netpfil/pf/pf.c
554
key.pfsrlim_id = id;
sys/netpfil/pf/pf.c
557
&V_pf_sourcelim_id_tree_active, &key));
sys/netpfil/pf/pf.c
6131
struct pf_source key;
sys/netpfil/pf/pf.c
6142
pf_source_key(srlim, &key, ctx->pd->af,
sys/netpfil/pf/pf.c
6144
sr = pf_source_find(srlim, &key);
sys/netpfil/pf/pf.c
656
pf_source_key(struct pf_sourcelim *srlim, struct pf_source *key,
sys/netpfil/pf/pf.c
6562
ctx.sk = (*sm)->key[pd->dir == PF_IN ? PF_SK_STACK : PF_SK_WIRE];
sys/netpfil/pf/pf.c
6564
ctx.nk = (*sm)->key[pd->dir == PF_IN ? PF_SK_WIRE : PF_SK_STACK];
sys/netpfil/pf/pf.c
662
key->pfsr_af = af;
sys/netpfil/pf/pf.c
663
key->pfsr_rdomain = 0;
sys/netpfil/pf/pf.c
666
key->pfsr_addr.addr32[0] =
sys/netpfil/pf/pf.c
670
for (i = 1; i < nitems(key->pfsr_addr.addr32); i++)
sys/netpfil/pf/pf.c
671
key->pfsr_addr.addr32[i] = htonl(0);
sys/netpfil/pf/pf.c
675
for (i = 0; i < nitems(key->pfsr_addr.addr32); i++) {
sys/netpfil/pf/pf.c
676
key->pfsr_addr.addr32[i] =
sys/netpfil/pf/pf.c
689
pf_source_find(struct pf_sourcelim *srlim, struct pf_source *key)
sys/netpfil/pf/pf.c
691
return (RB_FIND(pf_source_tree, &srlim->pfsrlim_sources, key));
sys/netpfil/pf/pf.c
703
nk = (_s)->key[PF_SK_STACK]; \
sys/netpfil/pf/pf.c
705
nk = (_s)->key[PF_SK_WIRE]; \
sys/netpfil/pf/pf.c
7675
struct pf_state_key *sk = state->key[pd->didx];
sys/netpfil/pf/pf.c
7805
struct pf_state_key_cmp key;
sys/netpfil/pf/pf.c
7811
bzero(&key, sizeof(key));
sys/netpfil/pf/pf.c
7812
key.af = pd->af;
sys/netpfil/pf/pf.c
7813
key.proto = pd->virtual_proto;
sys/netpfil/pf/pf.c
7814
pf_addrcpy(&key.addr[pd->sidx], pd->src, key.af);
sys/netpfil/pf/pf.c
7815
pf_addrcpy(&key.addr[pd->didx], pd->dst, key.af);
sys/netpfil/pf/pf.c
7816
key.port[pd->sidx] = pd->osport;
sys/netpfil/pf/pf.c
7817
key.port[pd->didx] = pd->odport;
sys/netpfil/pf/pf.c
7819
action = pf_find_state(pd, &key, state);
sys/netpfil/pf/pf.c
7986
if ((*state)->key[PF_SK_WIRE] != (*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
7991
nk = (*state)->key[pd->sidx];
sys/netpfil/pf/pf.c
7993
nk = (*state)->key[pd->didx];
sys/netpfil/pf/pf.c
8065
struct pf_sctp_endpoint key;
sys/netpfil/pf/pf.c
8067
struct pf_state_key *sks = s->key[PF_SK_STACK];
sys/netpfil/pf/pf.c
8075
key.v_tag = s->dst.scrub->pfss_v_tag;
sys/netpfil/pf/pf.c
8076
ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
sys/netpfil/pf/pf.c
8080
&s->key[PF_SK_WIRE]->addr[s->direction == PF_OUT],
sys/netpfil/pf/pf.c
8081
s->key[PF_SK_WIRE]->af) == 0) {
sys/netpfil/pf/pf.c
8083
key.v_tag, s, i);
sys/netpfil/pf/pf.c
8097
key.v_tag = s->src.scrub->pfss_v_tag;
sys/netpfil/pf/pf.c
8098
ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
sys/netpfil/pf/pf.c
8102
&s->key[PF_SK_WIRE]->addr[s->direction == PF_IN],
sys/netpfil/pf/pf.c
8103
s->key[PF_SK_WIRE]->af) == 0) {
sys/netpfil/pf/pf.c
8105
key.v_tag, s, i);
sys/netpfil/pf/pf.c
8124
struct pf_sctp_endpoint key = {
sys/netpfil/pf/pf.c
8133
ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
sys/netpfil/pf/pf.c
8264
struct pf_sctp_endpoint key = {
sys/netpfil/pf/pf.c
8270
ep = RB_FIND(pf_sctp_endpoints, &V_pf_sctp_endpoints, &key);
sys/netpfil/pf/pf.c
8305
struct pf_state_key_cmp key;
sys/netpfil/pf/pf.c
8309
bzero(&key, sizeof(key));
sys/netpfil/pf/pf.c
8310
key.af = j->pd.af;
sys/netpfil/pf/pf.c
8311
key.proto = IPPROTO_SCTP;
sys/netpfil/pf/pf.c
8313
pf_addrcpy(&key.addr[0], j->pd.src, key.af);
sys/netpfil/pf/pf.c
8314
pf_addrcpy(&key.addr[1], j->pd.dst, key.af);
sys/netpfil/pf/pf.c
8315
key.port[0] = j->pd.hdr.sctp.src_port;
sys/netpfil/pf/pf.c
8316
key.port[1] = j->pd.hdr.sctp.dest_port;
sys/netpfil/pf/pf.c
8318
pf_addrcpy(&key.addr[1], j->pd.src, key.af);
sys/netpfil/pf/pf.c
8319
pf_addrcpy(&key.addr[0], j->pd.dst, key.af);
sys/netpfil/pf/pf.c
8320
key.port[1] = j->pd.hdr.sctp.src_port;
sys/netpfil/pf/pf.c
8321
key.port[0] = j->pd.hdr.sctp.dest_port;
sys/netpfil/pf/pf.c
8324
action = pf_find_state(&j->pd, &key, &sm);
sys/netpfil/pf/pf.c
8514
pf_icmp_state_lookup(struct pf_state_key_cmp *key, struct pf_pdesc *pd,
sys/netpfil/pf/pf.c
8520
key->af = pd->af;
sys/netpfil/pf/pf.c
8521
key->proto = pd->proto;
sys/netpfil/pf/pf.c
8524
key->port[pd->sidx] = icmpid;
sys/netpfil/pf/pf.c
8525
key->port[pd->didx] = type;
sys/netpfil/pf/pf.c
8528
key->port[pd->sidx] = type;
sys/netpfil/pf/pf.c
8529
key->port[pd->didx] = icmpid;
sys/netpfil/pf/pf.c
8531
if (pf_state_key_addr_setup(pd, key, multi))
sys/netpfil/pf/pf.c
8534
action = pf_find_state(pd, key, state);
sys/netpfil/pf/pf.c
8542
if ((*state)->key[PF_SK_WIRE]->af != (*state)->key[PF_SK_STACK]->af)
sys/netpfil/pf/pf.c
8543
direction = (pd->af == (*state)->key[PF_SK_WIRE]->af) ?
sys/netpfil/pf/pf.c
8572
struct pf_state_key_cmp key;
sys/netpfil/pf/pf.c
8579
bzero(&key, sizeof(key));
sys/netpfil/pf/pf.c
8609
ret = pf_icmp_state_lookup(&key, pd, state, virtual_id,
sys/netpfil/pf/pf.c
8614
ret = pf_icmp_state_lookup(&key, pd, state,
sys/netpfil/pf/pf.c
8627
if ((*state)->key[PF_SK_WIRE] != (*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
8632
nk = (*state)->key[pd->sidx];
sys/netpfil/pf/pf.c
8634
nk = (*state)->key[pd->didx];
sys/netpfil/pf/pf.c
8852
key.af = pd2.af;
sys/netpfil/pf/pf.c
8853
key.proto = IPPROTO_TCP;
sys/netpfil/pf/pf.c
8854
pf_addrcpy(&key.addr[pd2.sidx], pd2.src, key.af);
sys/netpfil/pf/pf.c
8855
pf_addrcpy(&key.addr[pd2.didx], pd2.dst, key.af);
sys/netpfil/pf/pf.c
8856
key.port[pd2.sidx] = th->th_sport;
sys/netpfil/pf/pf.c
8857
key.port[pd2.didx] = th->th_dport;
sys/netpfil/pf/pf.c
8859
action = pf_find_state(&pd2, &key, state);
sys/netpfil/pf/pf.c
8923
if ((*state)->key[PF_SK_WIRE] !=
sys/netpfil/pf/pf.c
8924
(*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
8929
nk = (*state)->key[pd->sidx];
sys/netpfil/pf/pf.c
8931
nk = (*state)->key[pd->didx];
sys/netpfil/pf/pf.c
9047
key.af = pd2.af;
sys/netpfil/pf/pf.c
9048
key.proto = IPPROTO_UDP;
sys/netpfil/pf/pf.c
9049
pf_addrcpy(&key.addr[pd2.sidx], pd2.src, key.af);
sys/netpfil/pf/pf.c
9050
pf_addrcpy(&key.addr[pd2.didx], pd2.dst, key.af);
sys/netpfil/pf/pf.c
9051
key.port[pd2.sidx] = uh->uh_sport;
sys/netpfil/pf/pf.c
9052
key.port[pd2.didx] = uh->uh_dport;
sys/netpfil/pf/pf.c
9054
action = pf_find_state(&pd2, &key, state);
sys/netpfil/pf/pf.c
9059
if ((*state)->key[PF_SK_WIRE] !=
sys/netpfil/pf/pf.c
9060
(*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
9064
nk = (*state)->key[pd->sidx];
sys/netpfil/pf/pf.c
9066
nk = (*state)->key[pd->didx];
sys/netpfil/pf/pf.c
9179
key.af = pd2.af;
sys/netpfil/pf/pf.c
9180
key.proto = IPPROTO_SCTP;
sys/netpfil/pf/pf.c
9181
pf_addrcpy(&key.addr[pd2.sidx], pd2.src, key.af);
sys/netpfil/pf/pf.c
9182
pf_addrcpy(&key.addr[pd2.didx], pd2.dst, key.af);
sys/netpfil/pf/pf.c
9183
key.port[pd2.sidx] = sh->src_port;
sys/netpfil/pf/pf.c
9184
key.port[pd2.didx] = sh->dest_port;
sys/netpfil/pf/pf.c
9186
action = pf_find_state(&pd2, &key, state);
sys/netpfil/pf/pf.c
9210
if ((*state)->key[PF_SK_WIRE] !=
sys/netpfil/pf/pf.c
9211
(*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
9216
nk = (*state)->key[pd->sidx];
sys/netpfil/pf/pf.c
9218
nk = (*state)->key[pd->didx];
sys/netpfil/pf/pf.c
9338
ret = pf_icmp_state_lookup(&key, &pd2, state,
sys/netpfil/pf/pf.c
9346
if ((*state)->key[PF_SK_WIRE] !=
sys/netpfil/pf/pf.c
9347
(*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
9351
nk = (*state)->key[pd->sidx];
sys/netpfil/pf/pf.c
9353
nk = (*state)->key[pd->didx];
sys/netpfil/pf/pf.c
9457
ret = pf_icmp_state_lookup(&key, &pd2, state,
sys/netpfil/pf/pf.c
9463
ret = pf_icmp_state_lookup(&key, &pd2,
sys/netpfil/pf/pf.c
9473
if ((*state)->key[PF_SK_WIRE] !=
sys/netpfil/pf/pf.c
9474
(*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
9478
nk = (*state)->key[pd->sidx];
sys/netpfil/pf/pf.c
9480
nk = (*state)->key[pd->didx];
sys/netpfil/pf/pf.c
9566
key.af = pd2.af;
sys/netpfil/pf/pf.c
9567
key.proto = pd2.proto;
sys/netpfil/pf/pf.c
9568
pf_addrcpy(&key.addr[pd2.sidx], pd2.src, key.af);
sys/netpfil/pf/pf.c
9569
pf_addrcpy(&key.addr[pd2.didx], pd2.dst, key.af);
sys/netpfil/pf/pf.c
9570
key.port[0] = key.port[1] = 0;
sys/netpfil/pf/pf.c
9572
action = pf_find_state(&pd2, &key, state);
sys/netpfil/pf/pf.c
9577
if ((*state)->key[PF_SK_WIRE] !=
sys/netpfil/pf/pf.c
9578
(*state)->key[PF_SK_STACK]) {
sys/netpfil/pf/pf.c
9580
(*state)->key[pd->didx];
sys/netpfil/pf/pf.h
391
struct pf_poolhashkey key;
sys/netpfil/pf/pf_if.c
865
struct pfi_kif_cmp key;
sys/netpfil/pf/pf_if.c
875
strlcpy(key.pfik_name, name, sizeof(key.pfik_name));
sys/netpfil/pf/pf_if.c
876
p = RB_FIND(pfi_ifhead, &V_pfi_ifs, (struct pfi_kkif *)&key);
sys/netpfil/pf/pf_ioctl.c
1393
PF_MD5_UPD(pool, key);
sys/netpfil/pf/pf_ioctl.c
2068
pf_statelim_rb_find(struct pf_statelim_id_tree *tree, struct pf_statelim *key)
sys/netpfil/pf/pf_ioctl.c
2072
return (RB_FIND(pf_statelim_id_tree, tree, key));
sys/netpfil/pf/pf_ioctl.c
2076
pf_statelim_rb_nfind(struct pf_statelim_id_tree *tree, struct pf_statelim *key)
sys/netpfil/pf/pf_ioctl.c
2080
return (RB_NFIND(pf_statelim_id_tree, tree, key));
sys/netpfil/pf/pf_ioctl.c
2088
struct pf_statelim key = { .pfstlim_id = ioc->id };
sys/netpfil/pf/pf_ioctl.c
2095
pfstlim = (*rbt_op)(&V_pf_statelim_id_tree_active, &key);
sys/netpfil/pf/pf_ioctl.c
2287
struct pf_sourcelim *key)
sys/netpfil/pf/pf_ioctl.c
2290
return (RB_FIND(pf_sourcelim_id_tree, tree, key));
sys/netpfil/pf/pf_ioctl.c
2295
struct pf_sourcelim *key)
sys/netpfil/pf/pf_ioctl.c
2298
return (RB_NFIND(pf_sourcelim_id_tree, tree, key));
sys/netpfil/pf/pf_ioctl.c
2306
struct pf_sourcelim key = { .pfsrlim_id = ioc->id };
sys/netpfil/pf/pf_ioctl.c
2313
pfsrlim = (*rbt_op)(&V_pf_sourcelim_id_tree_active, &key);
sys/netpfil/pf/pf_ioctl.c
2356
struct pf_source *key)
sys/netpfil/pf/pf_ioctl.c
2360
return (RB_FIND(pf_source_ioc_tree, tree, key));
sys/netpfil/pf/pf_ioctl.c
2365
struct pf_source *key)
sys/netpfil/pf/pf_ioctl.c
2369
return (RB_NFIND(pf_source_ioc_tree, tree, key));
sys/netpfil/pf/pf_ioctl.c
2808
_Static_assert(sizeof(pool->key) == sizeof(kpool->key), "");
sys/netpfil/pf/pf_ioctl.c
2811
bcopy(&pool->key, &kpool->key, sizeof(kpool->key));
sys/netpfil/pf/pf_ioctl.c
3270
pf_kill_matching_state(struct pf_state_key_cmp *key, int dir)
sys/netpfil/pf/pf_ioctl.c
3275
s = pf_find_state_all(key, dir, &more);
sys/netpfil/pf/pf_ioctl.c
3306
sk = s->key[psk->psk_nat ? PF_SK_STACK : PF_SK_WIRE];
sys/netpfil/pf/pf_ioctl.c
3373
match_key.af = s->key[idx]->af;
sys/netpfil/pf/pf_ioctl.c
3374
match_key.proto = s->key[idx]->proto;
sys/netpfil/pf/pf_ioctl.c
3376
&s->key[idx]->addr[1], match_key.af);
sys/netpfil/pf/pf_ioctl.c
3377
match_key.port[0] = s->key[idx]->port[1];
sys/netpfil/pf/pf_ioctl.c
3379
&s->key[idx]->addr[0], match_key.af);
sys/netpfil/pf/pf_ioctl.c
3380
match_key.port[1] = s->key[idx]->port[0];
sys/netpfil/pf/pf_ioctl.c
3774
struct pf_state_key_cmp key;
sys/netpfil/pf/pf_ioctl.c
3812
bzero(&key, sizeof(key));
sys/netpfil/pf/pf_ioctl.c
3813
key.af = pnl->af;
sys/netpfil/pf/pf_ioctl.c
3814
key.proto = pnl->proto;
sys/netpfil/pf/pf_ioctl.c
3815
pf_addrcpy(&key.addr[sidx], &pnl->saddr, pnl->af);
sys/netpfil/pf/pf_ioctl.c
3816
key.port[sidx] = pnl->sport;
sys/netpfil/pf/pf_ioctl.c
3817
pf_addrcpy(&key.addr[didx], &pnl->daddr, pnl->af);
sys/netpfil/pf/pf_ioctl.c
3818
key.port[didx] = pnl->dport;
sys/netpfil/pf/pf_ioctl.c
3820
state = pf_find_state_all(&key, direction, &m);
sys/netpfil/pf/pf_ioctl.c
3829
sk = state->key[sidx];
sys/netpfil/pf/pf_ioctl.c
6668
sp->pfs_1301.key[PF_SK_WIRE].addr[0] = st->key[PF_SK_WIRE]->addr[0];
sys/netpfil/pf/pf_ioctl.c
6669
sp->pfs_1301.key[PF_SK_WIRE].addr[1] = st->key[PF_SK_WIRE]->addr[1];
sys/netpfil/pf/pf_ioctl.c
6670
sp->pfs_1301.key[PF_SK_WIRE].port[0] = st->key[PF_SK_WIRE]->port[0];
sys/netpfil/pf/pf_ioctl.c
6671
sp->pfs_1301.key[PF_SK_WIRE].port[1] = st->key[PF_SK_WIRE]->port[1];
sys/netpfil/pf/pf_ioctl.c
6672
sp->pfs_1301.key[PF_SK_STACK].addr[0] = st->key[PF_SK_STACK]->addr[0];
sys/netpfil/pf/pf_ioctl.c
6673
sp->pfs_1301.key[PF_SK_STACK].addr[1] = st->key[PF_SK_STACK]->addr[1];
sys/netpfil/pf/pf_ioctl.c
6674
sp->pfs_1301.key[PF_SK_STACK].port[0] = st->key[PF_SK_STACK]->port[0];
sys/netpfil/pf/pf_ioctl.c
6675
sp->pfs_1301.key[PF_SK_STACK].port[1] = st->key[PF_SK_STACK]->port[1];
sys/netpfil/pf/pf_ioctl.c
6693
sp->pfs_1301.proto = st->key[PF_SK_WIRE]->proto;
sys/netpfil/pf/pf_ioctl.c
6694
sp->pfs_1301.af = st->key[PF_SK_WIRE]->af;
sys/netpfil/pf/pf_ioctl.c
6710
sp->pfs_1400.proto = st->key[PF_SK_WIRE]->proto;
sys/netpfil/pf/pf_ioctl.c
6711
sp->pfs_1400.af = st->key[PF_SK_WIRE]->af;
sys/netpfil/pf/pf_ioctl.c
6742
sp->pfs_1500.wire_proto = st->key[PF_SK_WIRE]->proto;
sys/netpfil/pf/pf_ioctl.c
6743
sp->pfs_1500.wire_af = st->key[PF_SK_WIRE]->af;
sys/netpfil/pf/pf_ioctl.c
6744
sp->pfs_1500.stack_proto = st->key[PF_SK_STACK]->proto;
sys/netpfil/pf/pf_ioctl.c
6745
sp->pfs_1500.stack_af = st->key[PF_SK_STACK]->af;
sys/netpfil/pf/pf_ioctl.c
6830
sp->key[PF_SK_WIRE].addr[0] = st->key[PF_SK_WIRE]->addr[0];
sys/netpfil/pf/pf_ioctl.c
6831
sp->key[PF_SK_WIRE].addr[1] = st->key[PF_SK_WIRE]->addr[1];
sys/netpfil/pf/pf_ioctl.c
6832
sp->key[PF_SK_WIRE].port[0] = st->key[PF_SK_WIRE]->port[0];
sys/netpfil/pf/pf_ioctl.c
6833
sp->key[PF_SK_WIRE].port[1] = st->key[PF_SK_WIRE]->port[1];
sys/netpfil/pf/pf_ioctl.c
6834
sp->key[PF_SK_STACK].addr[0] = st->key[PF_SK_STACK]->addr[0];
sys/netpfil/pf/pf_ioctl.c
6835
sp->key[PF_SK_STACK].addr[1] = st->key[PF_SK_STACK]->addr[1];
sys/netpfil/pf/pf_ioctl.c
6836
sp->key[PF_SK_STACK].port[0] = st->key[PF_SK_STACK]->port[0];
sys/netpfil/pf/pf_ioctl.c
6837
sp->key[PF_SK_STACK].port[1] = st->key[PF_SK_STACK]->port[1];
sys/netpfil/pf/pf_ioctl.c
6838
sp->proto = st->key[PF_SK_WIRE]->proto;
sys/netpfil/pf/pf_ioctl.c
6839
sp->af = st->key[PF_SK_WIRE]->af;
sys/netpfil/pf/pf_ioctl.c
7216
match_key.af = s->key[idx]->af;
sys/netpfil/pf/pf_ioctl.c
7217
match_key.proto = s->key[idx]->proto;
sys/netpfil/pf/pf_ioctl.c
7219
&s->key[idx]->addr[1], match_key.af);
sys/netpfil/pf/pf_ioctl.c
7220
match_key.port[0] = s->key[idx]->port[1];
sys/netpfil/pf/pf_ioctl.c
7222
&s->key[idx]->addr[0], match_key.af);
sys/netpfil/pf/pf_ioctl.c
7223
match_key.port[1] = s->key[idx]->port[0];
sys/netpfil/pf/pf_lb.c
103
res = SipHash24(&ctx, (const uint8_t *)key,
sys/netpfil/pf/pf_lb.c
110
res = SipHash24(&ctx, (const uint8_t *)key,
sys/netpfil/pf/pf_lb.c
1229
struct pf_state_key_cmp key;
sys/netpfil/pf/pf_lb.c
1276
bzero(&key, sizeof(key));
sys/netpfil/pf/pf_lb.c
1277
key.af = pd->af;
sys/netpfil/pf/pf_lb.c
1278
key.proto = pd->proto;
sys/netpfil/pf/pf_lb.c
1279
key.port[0] = pd->nsport;
sys/netpfil/pf/pf_lb.c
1280
pf_addrcpy(&key.addr[0], &pd->nsaddr, key.af);
sys/netpfil/pf/pf_lb.c
1281
key.port[1] = nport;
sys/netpfil/pf/pf_lb.c
1282
pf_addrcpy(&key.addr[1], naddr, key.af);
sys/netpfil/pf/pf_lb.c
1284
if (!pf_find_state_all_exists(&key, PF_OUT))
sys/netpfil/pf/pf_lb.c
1296
key.port[0] = htons(tmp);
sys/netpfil/pf/pf_lb.c
1297
if (!pf_find_state_all_exists(&key, PF_OUT)) {
sys/netpfil/pf/pf_lb.c
1306
key.port[0] = htons(tmp);
sys/netpfil/pf/pf_lb.c
1307
if (!pf_find_state_all_exists(&key, PF_OUT)) {
sys/netpfil/pf/pf_lb.c
296
struct pf_state_key_cmp key;
sys/netpfil/pf/pf_lb.c
375
bzero(&key, sizeof(key));
sys/netpfil/pf/pf_lb.c
376
key.af = pd->naf;
sys/netpfil/pf/pf_lb.c
377
key.proto = pd->proto;
sys/netpfil/pf/pf_lb.c
380
pf_addrcpy(&key.addr[didx], &pd->ndaddr, key.af);
sys/netpfil/pf/pf_lb.c
381
pf_addrcpy(&key.addr[sidx], naddr, key.af);
sys/netpfil/pf/pf_lb.c
382
key.port[didx] = pd->ndport;
sys/netpfil/pf/pf_lb.c
393
key.port[sidx] = pd->nsport;
sys/netpfil/pf/pf_lb.c
396
if (!pf_find_state_all_exists(&key, dir)) {
sys/netpfil/pf/pf_lb.c
408
key.port[sidx] = pd->nsport;
sys/netpfil/pf/pf_lb.c
409
if (!pf_find_state_all_exists(&key, dir)) {
sys/netpfil/pf/pf_lb.c
424
key.port[sidx] = htons(low);
sys/netpfil/pf/pf_lb.c
425
if (!pf_find_state_all_exists(&key, dir)) {
sys/netpfil/pf/pf_lb.c
459
key.port[sidx] = htons(tmp);
sys/netpfil/pf/pf_lb.c
460
if (!pf_find_state_all_exists(&key, dir)) {
sys/netpfil/pf/pf_lb.c
479
key.port[sidx] = htons(tmp);
sys/netpfil/pf/pf_lb.c
480
if (!pf_find_state_all_exists(&key, dir)) {
sys/netpfil/pf/pf_lb.c
805
pf_hash(saddr, (struct pf_addr *)&hash, &rpool->key,
sys/netpfil/pf/pf_lb.c
87
struct pf_poolhashkey *key, sa_family_t af)
sys/netpfil/pf/pf_lb.c
98
_Static_assert(sizeof(*key) >= SIPHASH_KEY_LENGTH, "");
sys/netpfil/pf/pf_nl.c
130
dump_state_key(struct nl_writer *nw, int attr, const struct pf_state_key *key)
sys/netpfil/pf/pf_nl.c
137
dump_addr(nw, PF_STK_ADDR0, &key->addr[0], key->af);
sys/netpfil/pf/pf_nl.c
138
dump_addr(nw, PF_STK_ADDR1, &key->addr[1], key->af);
sys/netpfil/pf/pf_nl.c
139
nlattr_add_u16(nw, PF_STK_PORT0, key->port[0]);
sys/netpfil/pf/pf_nl.c
140
nlattr_add_u16(nw, PF_STK_PORT1, key->port[1]);
sys/netpfil/pf/pf_nl.c
141
nlattr_add_u8(nw, PF_STK_AF, key->af);
sys/netpfil/pf/pf_nl.c
142
nlattr_add_u16(nw, PF_STK_PROTO, key->proto);
sys/netpfil/pf/pf_nl.c
156
struct pf_state_key *key;
sys/netpfil/pf/pf_nl.c
168
key = s->key[PF_SK_WIRE];
sys/netpfil/pf/pf_nl.c
169
if (!dump_state_key(nw, PF_ST_KEY_WIRE, key))
sys/netpfil/pf/pf_nl.c
171
key = s->key[PF_SK_STACK];
sys/netpfil/pf/pf_nl.c
172
if (!dump_state_key(nw, PF_ST_KEY_STACK, key))
sys/netpfil/pf/pf_nl.c
175
af = s->key[PF_SK_WIRE]->af;
sys/netpfil/pf/pf_nl.c
176
nlattr_add_u8(nw, PF_ST_PROTO, s->key[PF_SK_WIRE]->proto);
sys/netpfil/pf/pf_nl.c
260
sa_family_t af = s->key[PF_SK_WIRE]->af;
sys/netpfil/pf/pf_nl.c
271
if (attrs->proto != 0 && s->key[PF_SK_WIRE]->proto != attrs->proto)
sys/netpfil/pf/pf_nl.c
2730
struct pf_source key;
sys/netpfil/pf/pf_nl.c
275
if (pf_match_addr(1, &s->key[PF_SK_WIRE]->addr[0],
sys/netpfil/pf/pf_nl.c
2752
key.pfsr_af = attrs.af;
sys/netpfil/pf/pf_nl.c
2753
key.pfsr_rdomain = attrs.rdomain;
sys/netpfil/pf/pf_nl.c
2754
key.pfsr_addr = attrs.addr;
sys/netpfil/pf/pf_nl.c
2757
pf_source_rb_nfind)(&pfsrlim->pfsrlim_ioc_sources, &key);
sys/netpfil/pf/pf_nl.c
277
pf_match_addr(1, &s->key[PF_SK_WIRE]->addr[1],
sys/netpfil/pf/pf_nl.c
279
pf_match_addr(1, &s->key[PF_SK_STACK]->addr[0],
sys/netpfil/pf/pf_nl.c
281
pf_match_addr(1, &s->key[PF_SK_STACK]->addr[1],
sys/netpfil/pf/pf_nl.c
585
{ .type = PF_PT_KEY, .off = _OUT(key), .arg = (void *)sizeof(struct pf_poolhashkey), .cb = nlattr_get_bytes },
sys/netpfil/pf/pf_nl.c
604
nlattr_add(nw, PF_PT_KEY, sizeof(struct pf_poolhashkey), &pool->key);
sys/netpfil/pf/pf_norm.c
167
pf_ip2key(struct ip *ip, struct pf_frnode *key)
sys/netpfil/pf/pf_norm.c
170
key->fn_src.v4 = ip->ip_src;
sys/netpfil/pf/pf_norm.c
171
key->fn_dst.v4 = ip->ip_dst;
sys/netpfil/pf/pf_norm.c
172
key->fn_af = AF_INET;
sys/netpfil/pf/pf_norm.c
173
key->fn_proto = ip->ip_p;
sys/netpfil/pf/pf_norm.c
333
pf_find_fragment(struct pf_frnode *key, uint32_t id)
sys/netpfil/pf/pf_norm.c
340
frnode = RB_FIND(pf_frnode_tree, &V_pf_frnode_tree, key);
sys/netpfil/pf/pf_norm.c
570
pf_fillup_fragment(struct pf_frnode *key, uint32_t id,
sys/netpfil/pf/pf_norm.c
600
if (key->fn_af == AF_INET)
sys/netpfil/pf/pf_norm.c
608
frag = pf_find_fragment(key, id);
sys/netpfil/pf/pf_norm.c
622
frnode = RB_FIND(pf_frnode_tree, &V_pf_frnode_tree, key);
sys/netpfil/pf/pf_norm.c
634
*frnode = *key;
sys/netpfil/pf/pf_norm.c
818
struct pf_frnode key;
sys/netpfil/pf/pf_norm.c
834
pf_ip2key(ip, &key);
sys/netpfil/pf/pf_norm.c
836
if ((frag = pf_fillup_fragment(&key, ip->ip_id, frent, reason)) == NULL)
sys/netpfil/pf/pf_norm.c
911
struct pf_frnode key;
sys/netpfil/pf/pf_norm.c
934
key.fn_src.v6 = ip6->ip6_src;
sys/netpfil/pf/pf_norm.c
935
key.fn_dst.v6 = ip6->ip6_dst;
sys/netpfil/pf/pf_norm.c
936
key.fn_af = AF_INET6;
sys/netpfil/pf/pf_norm.c
938
key.fn_proto = 0;
sys/netpfil/pf/pf_norm.c
940
if ((frag = pf_fillup_fragment(&key, fraghdr->ip6f_ident, frent, reason)) == NULL) {
sys/netpfil/pf/pf_nv.c
224
PFNV_CHK(pf_nvbinary(nvl, "key", &kpool->key, sizeof(kpool->key)));
sys/netpfil/pf/pf_nv.c
255
nvlist_add_binary(nvl, "key", &pool->key, sizeof(pool->key));
sys/netpfil/pf/pf_nv.c
889
pf_state_key_to_nvstate_key(const struct pf_state_key *key)
sys/netpfil/pf/pf_nv.c
898
tmp = pf_addr_to_nvaddr(&key->addr[i]);
sys/netpfil/pf/pf_nv.c
903
nvlist_append_number_array(nvl, "port", key->port[i]);
sys/netpfil/pf/pf_nv.c
905
nvlist_add_number(nvl, "af", key->af);
sys/netpfil/pf/pf_nv.c
906
nvlist_add_number(nvl, "proto", key->proto);
sys/netpfil/pf/pf_nv.c
947
tmp = pf_state_key_to_nvstate_key(s->key[PF_SK_STACK]);
sys/netpfil/pf/pf_nv.c
953
tmp = pf_state_key_to_nvstate_key(s->key[PF_SK_WIRE]);
sys/netpfil/pf/pf_ruleset.c
134
struct pf_kanchor *key, *found;
sys/netpfil/pf/pf_ruleset.c
136
key = (struct pf_kanchor *)rs_malloc(sizeof(*key));
sys/netpfil/pf/pf_ruleset.c
137
if (key == NULL)
sys/netpfil/pf/pf_ruleset.c
139
strlcpy(key->path, path, sizeof(key->path));
sys/netpfil/pf/pf_ruleset.c
140
found = RB_FIND(pf_kanchor_global, &V_pf_anchors, key);
sys/netpfil/pf/pf_ruleset.c
141
rs_free(key);
sys/netpfil/pf/pf_ruleset.c
562
struct pf_keth_anchor *key, *found;
sys/netpfil/pf/pf_ruleset.c
564
key = (struct pf_keth_anchor *)rs_malloc(sizeof(*key));
sys/netpfil/pf/pf_ruleset.c
565
if (key == NULL)
sys/netpfil/pf/pf_ruleset.c
567
strlcpy(key->path, path, sizeof(key->path));
sys/netpfil/pf/pf_ruleset.c
568
found = RB_FIND(pf_keth_anchor_global, &V_pf_keth_anchors, key);
sys/netpfil/pf/pf_ruleset.c
569
rs_free(key);
sys/netpfil/pf/pf_syncookies.c
108
uint8_t key[2][SIPHASH_KEY_LENGTH];
sys/netpfil/pf/pf_syncookies.c
375
memset(V_pf_syncookie_status.key[0], 0,
sys/netpfil/pf/pf_syncookies.c
377
memset(V_pf_syncookie_status.key[1], 0,
sys/netpfil/pf/pf_syncookies.c
399
arc4random_buf(V_pf_syncookie_status.key[V_pf_syncookie_status.oddeven],
sys/netpfil/pf/pf_syncookies.c
433
SipHash_SetKey(&ctx, V_pf_syncookie_status.key[cookie.flags.oddeven]);
sys/netpfil/pf/pf_table.c
1235
struct pfr_ktable *p, *q, *r, key;
sys/netpfil/pf/pf_table.c
1243
bcopy(tbl+i, &key.pfrkt_t, sizeof(key.pfrkt_t));
sys/netpfil/pf/pf_table.c
1244
if (pfr_validate_table(&key.pfrkt_t, PFR_TFLAG_USRMASK,
sys/netpfil/pf/pf_table.c
1247
key.pfrkt_flags |= PFR_TFLAG_ACTIVE;
sys/netpfil/pf/pf_table.c
1248
p = RB_FIND(pfr_ktablehead, &V_pfr_ktables, &key);
sys/netpfil/pf/pf_table.c
1250
p = pfr_create_ktable(&key.pfrkt_t, tzero, 1);
sys/netpfil/pf/pf_table.c
1261
if (!key.pfrkt_anchor[0])
sys/netpfil/pf/pf_table.c
1265
bzero(key.pfrkt_anchor, sizeof(key.pfrkt_anchor));
sys/netpfil/pf/pf_table.c
1266
r = RB_FIND(pfr_ktablehead, &V_pfr_ktables, &key);
sys/netpfil/pf/pf_table.c
1272
if (!pfr_ktable_compare(&key, q)) {
sys/netpfil/pf/pf_table.c
1277
key.pfrkt_flags = 0;
sys/netpfil/pf/pf_table.c
1278
r = pfr_create_ktable(&key.pfrkt_t, 0, 1);
sys/netpfil/pf/pf_table.c
1285
if (!pfr_ktable_compare(&key, q))
sys/netpfil/pf/pf_table.c
1288
~PFR_TFLAG_USRMASK) | key.pfrkt_flags;
sys/netpfil/pf/pf_table.c
1312
struct pfr_ktable *p, *q, key;
sys/netpfil/pf/pf_table.c
1318
bcopy(tbl+i, &key.pfrkt_t, sizeof(key.pfrkt_t));
sys/netpfil/pf/pf_table.c
1319
if (pfr_validate_table(&key.pfrkt_t, 0,
sys/netpfil/pf/pf_table.c
1322
p = RB_FIND(pfr_ktablehead, &V_pfr_ktables, &key);
sys/netpfil/pf/pf_table.c
1437
struct pfr_ktable *p, key;
sys/netpfil/pf/pf_table.c
1444
bcopy(tbl + i, &key.pfrkt_t, sizeof(key.pfrkt_t));
sys/netpfil/pf/pf_table.c
1445
if (pfr_validate_table(&key.pfrkt_t, 0, 0))
sys/netpfil/pf/pf_table.c
1447
p = RB_FIND(pfr_ktablehead, &V_pfr_ktables, &key);
sys/netpfil/pf/pf_table.c
1465
struct pfr_ktable *p, *q, key;
sys/netpfil/pf/pf_table.c
1475
bcopy(tbl + i, &key.pfrkt_t, sizeof(key.pfrkt_t));
sys/netpfil/pf/pf_table.c
1476
if (pfr_validate_table(&key.pfrkt_t, 0,
sys/netpfil/pf/pf_table.c
1479
p = RB_FIND(pfr_ktablehead, &V_pfr_ktables, &key);
sys/netpfil/pf/pf_table.c
1547
struct pfr_ktable *kt, *rt, *shadow, key;
sys/netpfil/pf/pf_table.c
1577
bzero(&key, sizeof(key));
sys/netpfil/pf/pf_table.c
1578
strlcpy(key.pfrkt_name, tbl->pfrt_name, sizeof(key.pfrkt_name));
sys/netpfil/pf/pf_table.c
1579
rt = RB_FIND(pfr_ktablehead, &V_pfr_ktables, &key);
sys/netpfil/pf/pf_table.c
1584
rt = pfr_create_ktable(&key.pfrkt_t, 0, 1);
sys/netpfil/pf/pflow.c
742
nat1->src_ip = nat2->dest_ip = st->key[PF_SK_STACK]->addr[src].v4.s_addr;
sys/netpfil/pf/pflow.c
743
nat1->src_port = nat2->dest_port = st->key[PF_SK_STACK]->port[src];
sys/netpfil/pf/pflow.c
744
nat1->dest_ip = nat2->src_ip = st->key[PF_SK_STACK]->addr[dst].v4.s_addr;
sys/netpfil/pf/pflow.c
745
nat1->dest_port = nat2->src_port = st->key[PF_SK_STACK]->port[dst];
sys/netpfil/pf/pflow.c
746
nat1->postnat_src_ip = nat2->postnat_dest_ip = st->key[PF_SK_WIRE]->addr[src].v4.s_addr;
sys/netpfil/pf/pflow.c
747
nat1->postnat_src_port = nat2->postnat_dest_port = st->key[PF_SK_WIRE]->port[src];
sys/netpfil/pf/pflow.c
748
nat1->postnat_dest_ip = nat2->postnat_src_ip = st->key[PF_SK_WIRE]->addr[dst].v4.s_addr;
sys/netpfil/pf/pflow.c
749
nat1->postnat_dest_port = nat2->postnat_src_port = st->key[PF_SK_WIRE]->port[dst];
sys/netpfil/pf/pflow.c
768
if (st->key[PF_SK_STACK] == NULL || st->key[PF_SK_WIRE] == NULL)
sys/netpfil/pf/pflow.c
771
sk = st->key[st->direction == PF_IN ? PF_SK_WIRE : PF_SK_STACK];
sys/netpfil/pf/pflow.c
985
return (memcmp(st->key[PF_SK_WIRE], st->key[PF_SK_STACK],
sys/netsmb/smb_crypt.c
68
smb_E(const u_char *key, u_char *data, u_char *dest)
sys/netsmb/smb_crypt.c
73
kk[0] = key[0] & 0xfe;
sys/netsmb/smb_crypt.c
74
kk[1] = key[0] << 7 | (key[1] >> 1 & 0xfe);
sys/netsmb/smb_crypt.c
75
kk[2] = key[1] << 6 | (key[2] >> 2 & 0xfe);
sys/netsmb/smb_crypt.c
76
kk[3] = key[2] << 5 | (key[3] >> 3 & 0xfe);
sys/netsmb/smb_crypt.c
77
kk[4] = key[3] << 4 | (key[4] >> 4 & 0xfe);
sys/netsmb/smb_crypt.c
78
kk[5] = key[4] << 3 | (key[5] >> 5 & 0xfe);
sys/netsmb/smb_crypt.c
79
kk[6] = key[5] << 2 | (key[6] >> 6 & 0xfe);
sys/netsmb/smb_crypt.c
80
kk[7] = key[6] << 1;
sys/ofed/drivers/infiniband/core/ib_sa_query.c
357
{ SERVICE_REC_FIELD(key),
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
16
static void *uapi_add_elm(struct uverbs_api *uapi, u32 key, size_t alloc_size)
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
21
if (key == UVERBS_API_KEY_ERR)
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
27
rc = radix_tree_insert(&uapi->radix, key, elm);
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
36
static void *uapi_add_get_elm(struct uverbs_api *uapi, u32 key,
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
41
elm = uapi_add_elm(uapi, key, alloc_size);
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
50
elm = radix_tree_lookup(&uapi->radix, key);
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
509
static void uapi_key_okay(u32 key)
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
513
if (uapi_key_is_object(key))
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
515
if (uapi_key_is_ioctl_method(key))
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
517
if (uapi_key_is_write_method(key))
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
519
if (uapi_key_is_write_ex_method(key))
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
521
if (uapi_key_is_attr(key))
sys/ofed/drivers/infiniband/core/ib_uverbs_uapi.c
523
WARN(count != 1, "Bad count %d key=%x", count, key);
sys/ofed/drivers/infiniband/core/rdma_core.h
146
char *uapi_key_format(char *S, unsigned int key);
sys/ofed/include/rdma/ib_mad.h
374
__be32 key;
sys/ofed/include/rdma/ib_sa.h
278
u8 key[16];
sys/ofed/include/rdma/ib_verbs.h
1301
u32 key;
sys/ofed/include/rdma/ib_verbs.h
1826
__be32 key;
sys/ofed/include/rdma/rdma_vt.h
492
int rvt_fast_reg_mr(struct rvt_qp *qp, struct ib_mr *ibmr, u32 key,
sys/ofed/include/rdma/signature.h
121
u32 key;
sys/ofed/include/rdma/uverbs_ioctl.h
200
static inline __attribute_const__ bool uapi_key_is_object(u32 key)
sys/ofed/include/rdma/uverbs_ioctl.h
202
return (key & ~UVERBS_API_OBJ_KEY_MASK) == 0;
sys/ofed/include/rdma/uverbs_ioctl.h
242
static inline __attribute_const__ bool uapi_key_is_ioctl_method(u32 key)
sys/ofed/include/rdma/uverbs_ioctl.h
244
unsigned int method = key & UVERBS_API_METHOD_KEY_MASK;
sys/ofed/include/rdma/uverbs_ioctl.h
247
(key & UVERBS_API_ATTR_KEY_MASK) == 0;
sys/ofed/include/rdma/uverbs_ioctl.h
250
static inline __attribute_const__ bool uapi_key_is_write_method(u32 key)
sys/ofed/include/rdma/uverbs_ioctl.h
252
return (key & UVERBS_API_METHOD_KEY_MASK) == UVERBS_API_METHOD_IS_WRITE;
sys/ofed/include/rdma/uverbs_ioctl.h
255
static inline __attribute_const__ bool uapi_key_is_write_ex_method(u32 key)
sys/ofed/include/rdma/uverbs_ioctl.h
257
return (key & UVERBS_API_METHOD_KEY_MASK) ==
sys/ofed/include/rdma/uverbs_ioctl.h
291
static inline __attribute_const__ bool uapi_key_is_attr(u32 key)
sys/ofed/include/rdma/uverbs_ioctl.h
293
unsigned int method = key & UVERBS_API_METHOD_KEY_MASK;
sys/ofed/include/rdma/uverbs_ioctl.h
296
(key & UVERBS_API_ATTR_KEY_MASK) != 0;
sys/ofed/include/uapi/rdma/ib_user_verbs.h
1095
__be32 key;
sys/opencrypto/cbc_mac.c
62
AES_CBC_MAC_Setkey(void *vctx, const uint8_t *key, u_int klen)
sys/opencrypto/cbc_mac.c
67
ctx->rounds = rijndaelKeySetupEnc(ctx->keysched, key, klen * 8);
sys/opencrypto/crypto.c
383
hmac_init_pad(const struct auth_hash *axf, const char *key, int klen,
sys/opencrypto/crypto.c
399
axf->Update(auth_ctx, key, klen);
sys/opencrypto/crypto.c
403
memcpy(hmac_key, key, klen);
sys/opencrypto/crypto.c
414
hmac_init_ipad(const struct auth_hash *axf, const char *key, int klen,
sys/opencrypto/crypto.c
418
hmac_init_pad(axf, key, klen, auth_ctx, HMAC_IPAD_VAL);
sys/opencrypto/crypto.c
422
hmac_init_opad(const struct auth_hash *axf, const char *key, int klen,
sys/opencrypto/crypto.c
426
hmac_init_pad(axf, key, klen, auth_ctx, HMAC_OPAD_VAL);
sys/opencrypto/cryptodev.c
145
PTRIN_CP(*from, *to, key);
sys/opencrypto/cryptodev.c
169
PTROUT_CP(*from, *to, key);
sys/opencrypto/cryptodev.c
273
void *key;
sys/opencrypto/cryptodev.c
338
void *key = NULL;
sys/opencrypto/cryptodev.c
425
key = malloc(csp.csp_cipher_klen, M_CRYPTODEV, M_WAITOK);
sys/opencrypto/cryptodev.c
426
error = copyin(sop->key, key, csp.csp_cipher_klen);
sys/opencrypto/cryptodev.c
432
csp.csp_cipher_key = key;
sys/opencrypto/cryptodev.c
499
cse->key = key;
sys/opencrypto/cryptodev.c
531
free(key, M_CRYPTODEV);
sys/opencrypto/cryptodev.c
562
if (cse->key)
sys/opencrypto/cryptodev.c
563
free(cse->key, M_CRYPTODEV);
sys/opencrypto/cryptodev.c
88
uint32_t key;
sys/opencrypto/cryptodev.c
98
uint32_t key;
sys/opencrypto/cryptodev.h
229
const void *key;
sys/opencrypto/cryptodev.h
246
const void *key;
sys/opencrypto/cryptodev.h
650
void hmac_init_ipad(const struct auth_hash *axf, const char *key, int klen,
sys/opencrypto/cryptodev.h
652
void hmac_init_opad(const struct auth_hash *axf, const char *key, int klen,
sys/opencrypto/gmac.c
45
AES_GMAC_Setkey(void *ctx, const uint8_t *key, u_int klen)
sys/opencrypto/gmac.c
53
agc->rounds = rijndaelKeySetupEnc(agc->keysched, key, klen * 8);
sys/opencrypto/xform_aes_cbc.c
104
rijndael_decrypt(&ctx->key, in, out);
sys/opencrypto/xform_aes_cbc.c
120
rijndael_encrypt(&ctx->key, out, out);
sys/opencrypto/xform_aes_cbc.c
137
rijndael_decrypt(&ctx->key, in, out);
sys/opencrypto/xform_aes_cbc.c
149
aes_cbc_setkey(void *vctx, const uint8_t *key, int len)
sys/opencrypto/xform_aes_cbc.c
156
rijndael_set_key(&ctx->key, key, len * 8);
sys/opencrypto/xform_aes_cbc.c
55
rijndael_ctx key;
sys/opencrypto/xform_aes_cbc.c
93
rijndael_encrypt(&ctx->key, out, out);
sys/opencrypto/xform_aes_icm.c
146
aes_icm_reinit(void *key, const uint8_t *iv, size_t ivlen)
sys/opencrypto/xform_aes_icm.c
150
ctx = key;
sys/opencrypto/xform_aes_icm.c
190
aes_icm_crypt(void *key, const uint8_t *in, uint8_t *out)
sys/opencrypto/xform_aes_icm.c
195
ctx = key;
sys/opencrypto/xform_aes_icm.c
196
aes_icm_crypt_last(key, in, out, AESICM_BLOCKSIZE);
sys/opencrypto/xform_aes_icm.c
206
aes_icm_crypt_multi(void *key, const uint8_t *in, uint8_t *out, size_t len)
sys/opencrypto/xform_aes_icm.c
208
struct aes_icm_ctx *ctx = key;
sys/opencrypto/xform_aes_icm.c
231
aes_icm_crypt_last(void *key, const uint8_t *in, uint8_t *out, size_t len)
sys/opencrypto/xform_aes_icm.c
237
ctx = key;
sys/opencrypto/xform_aes_icm.c
245
aes_icm_setkey(void *sched, const uint8_t *key, int len)
sys/opencrypto/xform_aes_icm.c
253
ctx->ac_nr = rijndaelKeySetupEnc(ctx->ac_ek, key, len * 8);
sys/opencrypto/xform_aes_icm.c
258
aes_gcm_setkey(void *vctx, const uint8_t *key, int len)
sys/opencrypto/xform_aes_icm.c
263
error = aes_icm_setkey(&ctx->cipher, key, len);
sys/opencrypto/xform_aes_icm.c
267
AES_GMAC_Setkey(&ctx->gmac, key, len);
sys/opencrypto/xform_aes_icm.c
272
aes_ccm_setkey(void *vctx, const uint8_t *key, int len)
sys/opencrypto/xform_aes_icm.c
277
error = aes_icm_setkey(&ctx->cipher, key, len);
sys/opencrypto/xform_aes_icm.c
281
AES_CBC_MAC_Setkey(&ctx->cbc_mac, key, len);
sys/opencrypto/xform_aes_xts.c
144
aes_xts_encrypt(void *key, const uint8_t *in, uint8_t *out)
sys/opencrypto/xform_aes_xts.c
146
aes_xts_crypt(key, in, out, AES_XTS_BLOCKSIZE, true);
sys/opencrypto/xform_aes_xts.c
150
aes_xts_decrypt(void *key, const uint8_t *in, uint8_t *out)
sys/opencrypto/xform_aes_xts.c
152
aes_xts_crypt(key, in, out, AES_XTS_BLOCKSIZE, false);
sys/opencrypto/xform_aes_xts.c
168
aes_xts_setkey(void *sched, const uint8_t *key, int len)
sys/opencrypto/xform_aes_xts.c
177
rijndael_set_key(&ctx->key1, key, len * 4);
sys/opencrypto/xform_aes_xts.c
178
rijndael_set_key(&ctx->key2, key + (len / 2), len * 4);
sys/opencrypto/xform_aes_xts.c
82
aes_xts_reinit(void *key, const uint8_t *iv, size_t ivlen)
sys/opencrypto/xform_aes_xts.c
84
struct aes_xts_ctx *ctx = key;
sys/opencrypto/xform_chacha20_poly1305.c
111
ctx->nonce, ctx->ic, ctx->key);
sys/opencrypto/xform_chacha20_poly1305.c
114
ctx->ic, ctx->key);
sys/opencrypto/xform_chacha20_poly1305.c
129
ctx->nonce, ctx->ic, ctx->key);
sys/opencrypto/xform_chacha20_poly1305.c
132
ctx->ic, ctx->key);
sys/opencrypto/xform_chacha20_poly1305.c
176
xchacha20_poly1305_setkey(void *vctx, const uint8_t *key, int len)
sys/opencrypto/xform_chacha20_poly1305.c
183
ctx->key = key;
sys/opencrypto/xform_chacha20_poly1305.c
184
ctx->base_ctx.key = ctx->derived_key;
sys/opencrypto/xform_chacha20_poly1305.c
201
crypto_core_hchacha20(ctx->derived_key, iv, ctx->key, NULL);
sys/opencrypto/xform_chacha20_poly1305.c
37
const void *key;
sys/opencrypto/xform_chacha20_poly1305.c
45
const void *key;
sys/opencrypto/xform_chacha20_poly1305.c
50
chacha20_poly1305_setkey(void *vctx, const uint8_t *key, int len)
sys/opencrypto/xform_chacha20_poly1305.c
57
ctx->key = key;
sys/opencrypto/xform_chacha20_poly1305.c
75
crypto_stream_chacha20_ietf(block, sizeof(block), iv, ctx->key);
sys/opencrypto/xform_chacha20_poly1305.c
77
crypto_stream_chacha20(block, sizeof(block), iv, ctx->key);
sys/opencrypto/xform_chacha20_poly1305.c
93
CHACHA20_NATIVE_BLOCK_LEN, ctx->nonce, ctx->ic, ctx->key);
sys/opencrypto/xform_chacha20_poly1305.c
96
CHACHA20_NATIVE_BLOCK_LEN, ctx->nonce, ctx->ic, ctx->key);
sys/opencrypto/xform_cml.c
151
cml_setkey(void *vctx, const uint8_t *key, int len)
sys/opencrypto/xform_cml.c
158
camellia_set_key(&ctx->state, key, len * 8);
sys/opencrypto/xform_null.c
105
null_crypt_multi(void *key, const uint8_t *in, uint8_t *out, size_t len)
sys/opencrypto/xform_null.c
112
null_setkey(void *sched, const uint8_t *key, int len)
sys/opencrypto/xform_null.c
98
null_crypt(void *key, const uint8_t *in, uint8_t *out)
sys/opencrypto/xform_poly1305.c
24
xform_Poly1305_Setkey(void *ctx, const uint8_t *key, u_int klen)
sys/opencrypto/xform_poly1305.c
32
rc = crypto_onetimeauth_poly1305_init(&polyctx->state, key);
sys/powerpc/aim/mmu_oea.c
1036
struct pvo_entry key, *pvo;
sys/powerpc/aim/mmu_oea.c
1039
key.pvo_vaddr = sva;
sys/powerpc/aim/mmu_oea.c
1040
for (pvo = RB_NFIND(pvo_tree, &pm->pmap_pvo, &key);
sys/powerpc/aim/mmu_oea.c
1802
struct pvo_entry *pvo, *tpvo, key;
sys/powerpc/aim/mmu_oea.c
1815
key.pvo_vaddr = sva;
sys/powerpc/aim/mmu_oea.c
1816
for (pvo = RB_NFIND(pvo_tree, &pm->pmap_pvo, &key);
sys/powerpc/aim/mmu_oea.c
1902
struct pvo_entry *pvo, *tpvo, key;
sys/powerpc/aim/mmu_oea.c
1906
key.pvo_vaddr = sva;
sys/powerpc/aim/mmu_oea.c
1907
for (pvo = RB_NFIND(pvo_tree, &pm->pmap_pvo, &key);
sys/powerpc/aim/mmu_oea64.c
1316
struct pvo_entry key, *pvo;
sys/powerpc/aim/mmu_oea64.c
1320
key.pvo_vaddr = sva;
sys/powerpc/aim/mmu_oea64.c
1322
for (pvo = RB_NFIND(pvo_tree, &pm->pmap_pvo, &key);
sys/powerpc/aim/mmu_oea64.c
2567
struct pvo_entry *pvo, key;
sys/powerpc/aim/mmu_oea64.c
2581
key.pvo_vaddr = sva;
sys/powerpc/aim/mmu_oea64.c
2582
for (pvo = RB_NFIND(pvo_tree, &pm->pmap_pvo, &key);
sys/powerpc/aim/mmu_oea64.c
2698
struct pvo_entry *pvo, *tpvo, key;
sys/powerpc/aim/mmu_oea64.c
2702
key.pvo_vaddr = sva;
sys/powerpc/aim/mmu_oea64.c
2703
for (pvo = RB_NFIND(pvo_tree, &pm->pmap_pvo, &key);
sys/powerpc/aim/mmu_oea64.c
3000
struct pvo_entry key;
sys/powerpc/aim/mmu_oea64.c
3004
key.pvo_vaddr = va & ~ADDR_POFF;
sys/powerpc/aim/mmu_oea64.c
3005
return (RB_FIND(pvo_tree, &pm->pmap_pvo, &key));
sys/powerpc/aim/mmu_oea64.c
3120
struct pvo_entry *pvo, key;
sys/powerpc/aim/mmu_oea64.c
3129
key.pvo_vaddr = DMAP_BASE_ADDRESS + ppa;
sys/powerpc/aim/mmu_oea64.c
3130
for (pvo = RB_FIND(pvo_tree, &kernel_pmap->pmap_pvo, &key);
sys/powerpc/include/bat.h
157
#define BATU601(va, wim, key, pp) \
sys/powerpc/include/bat.h
158
(((va) & BAT601_BLPI) | (wim) | (key) | (pp))
sys/powerpc/powermac/dbdma.c
286
cmd.key = stream;
sys/powerpc/powermac/dbdmavar.h
36
uint8_t key:3; /* Stream number, or 6 for KEY_SYSTEM */
sys/powerpc/powernv/opal_sensor.c
101
rv = opal_call(OPAL_SENSOR_READ, key, token, vtophys(&val32));
sys/powerpc/powernv/opal_sensor.c
93
opal_sensor_get_val(struct opal_sensor_softc *sc, uint32_t key, uint64_t *val)
sys/rpc/auth.h
155
} key;
sys/security/audit/audit_bsm.c
1703
perm.key = 0;
sys/security/audit/audit_bsm.c
1738
perm.key = 0;
sys/security/audit/bsm_token.c
527
ADD_U_INT32(dptr, perm->key);
sys/sys/agpio.h
131
int key; /* tag of allocation */
sys/sys/agpio.h
141
int key; /* tag of allocation */
sys/sys/agpio.h
146
int key; /* tag of allocation */
sys/sys/ata.h
607
u_int8_t key; /* sense key */
sys/sys/bus_dma.h
229
bus_dma_param_key_t key;
sys/sys/conf.h
133
typedef int dumper_start_t(struct dumperinfo *di, void *key, uint32_t keysize);
sys/sys/ipc.h
141
extern void (*shmobjinfo_hook)(struct vm_object *obj, key_t *key,
sys/sys/ipc.h
81
key_t key; /* user specified msg/sem/shm key */
sys/sys/ipc.h
92
key_t key; /* user specified msg/sem/shm key */
sys/sys/kbio.h
125
struct keyent_t key[NUM_KEYS];
sys/sys/kbio.h
138
struct okeyent_t key[NUM_KEYS];
sys/sys/kbio.h
233
struct keyent_t key;
sys/sys/ktr.h
214
#define KTR_START0(m, egroup, ident, key) \
sys/sys/ktr.h
215
KTR_EVENT0(m, egroup, ident, "start:0x%jX", (uintmax_t)key)
sys/sys/ktr.h
216
#define KTR_START1(m, egroup, ident, key, a0, v0) \
sys/sys/ktr.h
217
KTR_EVENT1(m, egroup, ident, "start:0x%jX", (uintmax_t)key, a0, (v0))
sys/sys/ktr.h
218
#define KTR_START2(m, egroup, ident, key, a0, v0, a1, v1) \
sys/sys/ktr.h
219
KTR_EVENT2(m, egroup, ident, "start:0x%jX", (uintmax_t)key, \
sys/sys/ktr.h
221
#define KTR_START3(m, egroup, ident, key, a0, v0, a1, v1, a2, v2)\
sys/sys/ktr.h
222
KTR_EVENT3(m, egroup, ident, "start:0x%jX", (uintmax_t)key, \
sys/sys/ktr.h
224
#define KTR_START4(m, egroup, ident, key, \
sys/sys/ktr.h
226
KTR_EVENT4(m, egroup, ident, "start:0x%jX", (uintmax_t)key, \
sys/sys/ktr.h
234
#define KTR_STOP0(m, egroup, ident, key) \
sys/sys/ktr.h
235
KTR_EVENT0(m, egroup, ident, "stop:0x%jX", (uintmax_t)key)
sys/sys/ktr.h
236
#define KTR_STOP1(m, egroup, ident, key, a0, v0) \
sys/sys/ktr.h
237
KTR_EVENT1(m, egroup, ident, "stop:0x%jX", (uintmax_t)key, a0, (v0))
sys/sys/ktr.h
238
#define KTR_STOP2(m, egroup, ident, key, a0, v0, a1, v1) \
sys/sys/ktr.h
239
KTR_EVENT2(m, egroup, ident, "stop:0x%jX", (uintmax_t)key, \
sys/sys/ktr.h
241
#define KTR_STOP3(m, egroup, ident, key, a0, v0, a1, v1, a2, v2)\
sys/sys/ktr.h
242
KTR_EVENT3(m, egroup, ident, "stop:0x%jX", (uintmax_t)key, \
sys/sys/ktr.h
245
key, a0, v0, a1, v1, a2, v2, a3, v3) \
sys/sys/ktr.h
246
KTR_EVENT4(m, egroup, ident, "stop:0x%jX", (uintmax_t)key, \
sys/sys/pctrie.h
213
name##_PCTRIE_LOOKUP(struct pctrie *ptree, uint64_t key) \
sys/sys/pctrie.h
216
return name##_PCTRIE_VAL2PTR(pctrie_lookup(ptree, key)); \
sys/sys/pctrie.h
220
name##_PCTRIE_LOOKUP_RANGE(struct pctrie *ptree, uint64_t key, \
sys/sys/pctrie.h
225
count = pctrie_lookup_range(ptree, key, data, count); \
sys/sys/pctrie.h
232
name##_PCTRIE_ITER_LOOKUP_RANGE(struct pctrie_iter *it, uint64_t key, \
sys/sys/pctrie.h
237
count = pctrie_iter_lookup_range(it, key, data, count); \
sys/sys/pctrie.h
244
name##_PCTRIE_LOOKUP_LE(struct pctrie *ptree, uint64_t key) \
sys/sys/pctrie.h
247
return name##_PCTRIE_VAL2PTR(pctrie_lookup_le(ptree, key)); \
sys/sys/pctrie.h
251
name##_PCTRIE_LOOKUP_GE(struct pctrie *ptree, uint64_t key) \
sys/sys/pctrie.h
254
return name##_PCTRIE_VAL2PTR(pctrie_lookup_ge(ptree, key)); \
sys/sys/pctrie.h
379
name##_PCTRIE_REMOVE(struct pctrie *ptree, uint64_t key) \
sys/sys/pctrie.h
384
val = pctrie_remove_lookup(ptree, key, &freenode); \
sys/sys/pctrie.h
391
name##_PCTRIE_REMOVE_LOOKUP(struct pctrie *ptree, uint64_t key) \
sys/sys/pctrie.h
396
val = pctrie_remove_lookup(ptree, key, &freenode); \
sys/sys/pctrie.h
408
uint64_t *pctrie_lookup(struct pctrie *ptree, uint64_t key);
sys/sys/pctrie.h
409
uint64_t *pctrie_lookup_unlocked(struct pctrie *ptree, uint64_t key,
sys/sys/pctrie.h
423
uint64_t *pctrie_lookup_ge(struct pctrie *ptree, uint64_t key);
sys/sys/pctrie.h
426
uint64_t *pctrie_lookup_le(struct pctrie *ptree, uint64_t key);
sys/sys/pctrie.h
428
struct pctrie_node *node, uint64_t key);
sys/sys/pctrie.h
80
name##_PCTRIE_LOOKUP_UNLOCKED(struct pctrie *ptree, uint64_t key) \
sys/sys/pctrie.h
84
key, (smr))); \
sys/sys/pctrie.h
88
name##_PCTRIE_LOOKUP_RANGE_UNLOCKED(struct pctrie *ptree, uint64_t key, \
sys/sys/pctrie.h
93
count = pctrie_lookup_range_unlocked(ptree, key, data, count, \
sys/sys/shm.h
162
void shmobjinfo(struct vm_object *obj, key_t *key, unsigned short *seq);
sys/sys/soundcard.h
1474
#define SEQ_ECHO_BACK(key) _TIMER_EVENT(TMR_ECHO, key)
sys/sys/soundcard.h
382
short key; /* Use GUS_PATCH here */
sys/sys/soundcard.h
463
short key; /* Use GUS_PATCH here */
sys/sys/soundcard.h
498
u_long key; /* Don't worry. Reserved for communication
sys/sys/soundcard.h
717
u_short key; /* FM_PATCH or OPL3_PATCH */
sys/sys/sysproto.h
572
char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
sys/sys/sysproto.h
582
char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
sys/sys/sysproto.h
607
char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
sys/sys/umtxvar.h
158
struct umtx_key key;
sys/sys/umtxvar.h
246
#define umtxq_lock(key) do { \
sys/sys/umtxvar.h
247
struct umtx_key *_key = (key); \
sys/sys/umtxvar.h
258
umtxq_unlock(struct umtx_key *key)
sys/sys/umtxvar.h
262
uc = umtxq_getchain(key);
sys/tests/fib_lookup/fib_lookup.c
781
struct in_addr key;
sys/tests/fib_lookup/fib_lookup.c
839
key.s_addr = keys[pos++] ^ ((acc >> 10) & 0xff);
sys/tests/fib_lookup/fib_lookup.c
840
nh_fib = fib4_lookup(fibnum, key, 0, NHR_NONE, 0);
sys/ufs/ffs/ffs_alloc.c
2429
#define TRIMLIST_HASH(ump, key) \
sys/ufs/ffs/ffs_alloc.c
2430
(&(ump)->um_trimhash[(key) & (ump)->um_trimlisthashsize])
sys/ufs/ffs/ffs_alloc.c
2456
long key;
sys/ufs/ffs/ffs_alloc.c
2515
uint64_t key,
sys/ufs/ffs/ffs_alloc.c
2523
KASSERT(key >= FIRST_VALID_KEY, ("trim_lookup: invalid key"));
sys/ufs/ffs/ffs_alloc.c
2525
tphashhead = TRIMLIST_HASH(ump, key);
sys/ufs/ffs/ffs_alloc.c
2527
if (key == tp->key)
sys/ufs/ffs/ffs_alloc.c
2558
ntp->key = key;
sys/ufs/ffs/ffs_alloc.c
2610
uint64_t key;
sys/ufs/ffs/ffs_alloc.c
2615
key = atomic_fetchadd_long(&masterkey, 1);
sys/ufs/ffs/ffs_alloc.c
2616
} while (key < FIRST_VALID_KEY);
sys/ufs/ffs/ffs_alloc.c
2617
(void) trim_lookup(ump, devvp, 0, 0, inum, key, NEW);
sys/ufs/ffs/ffs_alloc.c
2618
return (key);
sys/ufs/ffs/ffs_alloc.c
2625
ffs_blkrelease_finish(struct ufsmount *ump, uint64_t key)
sys/ufs/ffs/ffs_alloc.c
2641
if (key == SINGLETON_KEY) {
sys/ufs/ffs/ffs_alloc.c
2656
tp = trim_lookup(ump, NULL, 0, 0, 0, key, DONE);
sys/ufs/ffs/ffs_alloc.c
2679
uint64_t key)
sys/ufs/ffs/ffs_alloc.c
2699
if (key == NOTRIM_KEY || ((ump->um_flags & UM_CANDELETE) == 0) ||
sys/ufs/ffs/ffs_alloc.c
2714
if (key == SINGLETON_KEY) {
sys/ufs/ffs/ffs_alloc.c
2720
tp = trim_lookup(ump, devvp, bno, size, inum, key, SINGLE);
sys/ufs/ffs/ffs_alloc.c
2734
tp = trim_lookup(ump, devvp, bno, size, inum, key, OLD);
sys/ufs/ffs/ffs_alloc.c
2767
ntp = trim_lookup(ump, devvp, bno, size, inum, key, REPLACE);
sys/ufs/ffs/ffs_alloc.c
3291
uint64_t key;
sys/ufs/ffs/ffs_alloc.c
3462
key = ffs_blkrelease_start(ump, ump->um_devvp, UFS_ROOTINO);
sys/ufs/ffs/ffs_alloc.c
3468
VDIR, NULL, key);
sys/ufs/ffs/ffs_alloc.c
3473
ffs_blkrelease_finish(ump, key);
sys/ufs/ffs/ffs_inode.c
251
uint64_t key;
sys/ufs/ffs/ffs_inode.c
597
key = ffs_blkrelease_start(ump, ump->um_devvp, ip->i_number);
sys/ufs/ffs/ffs_inode.c
607
vp->v_type, NULL, key);
sys/ufs/ffs/ffs_inode.c
610
ffs_blkrelease_finish(ump, key);
sys/ufs/ffs/ffs_inode.c
709
uint64_t key;
sys/ufs/ffs/ffs_inode.c
774
key = ffs_blkrelease_start(ump, ITODEVVP(ip), ip->i_number);
sys/ufs/ffs/ffs_inode.c
787
ip->i_number, vp->v_type, NULL, key);
sys/ufs/ffs/ffs_inode.c
790
ffs_blkrelease_finish(ump, key);
sys/ufs/ffs/ffs_softdep.c
5809
uint64_t key)
sys/ufs/ffs/ffs_softdep.c
5830
freefrag->ff_key = key;
sys/ufs/ffs/ffs_softdep.c
7968
freework_freeblock(struct freework *freework, uint64_t key)
sys/ufs/ffs/ffs_softdep.c
8025
freeblks->fb_inum, freeblks->fb_vtype, &wkhd, key);
sys/ufs/ffs/ffs_softdep.c
8132
uint64_t key;
sys/ufs/ffs/ffs_softdep.c
8137
key = ffs_blkrelease_start(ump, freeblks->fb_devvp, freeblks->fb_inum);
sys/ufs/ffs/ffs_softdep.c
8175
freework_freeblock(freework, key);
sys/ufs/ffs/ffs_softdep.c
8188
ffs_blkrelease_finish(ump, key);
sys/ufs/ffs/ffs_softdep.c
8320
uint64_t key;
sys/ufs/ffs/ffs_softdep.c
8423
key = ffs_blkrelease_start(ump, freeblks->fb_devvp, freeblks->fb_inum);
sys/ufs/ffs/ffs_softdep.c
8466
freeblks->fb_vtype, &wkhd, key);
sys/ufs/ffs/ffs_softdep.c
8469
ffs_blkrelease_finish(ump, key);
sys/vm/vm_object.c
2524
key_t key;
sys/vm/vm_object.c
2619
shmobjinfo(obj, &key, &seq);
sys/vm/vm_object.c
2620
kvo->kvo_vn_fileid = key;
tests/sys/capsicum/fcntl.cc
46
std::string key = ii->first + " cap";
tests/sys/capsicum/fcntl.cc
47
caps[key] = dup(ii->second);
tests/sys/capsicum/fcntl.cc
48
EXPECT_OK(cap_rights_limit(caps[key], &rights));
tests/sys/capsicum/fcntl.cc
49
EXPECT_OK(caps[key]) << " on " << ii->first;
tests/sys/kern/ktls_test.c
306
cbc_crypt(const EVP_CIPHER *cipher, const char *key, const char *iv,
tests/sys/kern/ktls_test.c
318
if (EVP_CipherInit_ex(ctx, cipher, NULL, (const u_char *)key,
tests/sys/kern/ktls_test.c
351
cbc_encrypt(const EVP_CIPHER *cipher, const char *key, const char *iv,
tests/sys/kern/ktls_test.c
354
return (cbc_crypt(cipher, key, iv, input, output, size, 1));
tests/sys/kern/ktls_test.c
358
cbc_decrypt(const EVP_CIPHER *cipher, const char *key, const char *iv,
tests/sys/kern/ktls_test.c
361
return (cbc_crypt(cipher, key, iv, input, output, size, 0));
tests/sys/kern/ktls_test.c
365
compute_hash(const EVP_MD *md, const void *key, size_t key_len, const void *aad,
tests/sys/kern/ktls_test.c
377
if (HMAC_Init_ex(ctx, key, key_len, md, NULL) != 1) {
tests/sys/kern/ktls_test.c
406
verify_hash(const EVP_MD *md, const void *key, size_t key_len, const void *aad,
tests/sys/kern/ktls_test.c
412
if (!compute_hash(md, key, key_len, aad, aad_len, buffer, len, digest2,
tests/sys/kern/ktls_test.c
423
aead_encrypt(const EVP_CIPHER *cipher, const char *key, const char *nonce,
tests/sys/kern/ktls_test.c
436
if (EVP_EncryptInit_ex(ctx, cipher, NULL, (const u_char *)key,
tests/sys/kern/ktls_test.c
485
aead_decrypt(const EVP_CIPHER *cipher, const char *key, const char *nonce,
tests/sys/kern/ktls_test.c
499
if (EVP_DecryptInit_ex(ctx, cipher, NULL, (const u_char *)key,
tests/sys/net/routing/rtsock_config.h
100
key = atf_tc_get_config_var_wd(tc, "rtsock.v6prefix", "2001:DB8::/32");
tests/sys/net/routing/rtsock_config.h
101
strlcpy(buf, key, sizeof(buf));
tests/sys/net/routing/rtsock_config.h
65
const char *key;
tests/sys/net/routing/rtsock_config.h
77
key = atf_tc_get_config_var_wd(tc, "rtsock.v4prefix", "192.0.2.0/24");
tests/sys/net/routing/rtsock_config.h
78
strlcpy(buf, key, sizeof(buf));
tests/sys/net/routing/rtsock_print.h
402
char *key = (family == AF_INET) ? "4" : "6";
tests/sys/net/routing/rtsock_print.h
404
snprintf(cmdbuf, sizeof(cmdbuf), "/usr/bin/netstat -%srnW", key);
tests/sys/net/routing/rtsock_print.h
407
snprintf(cmdbuf, sizeof(cmdbuf), "/usr/bin/netstat -%sonW", key);
tests/sys/opencrypto/blake2_test.c
104
sop.mackey = key;
tests/sys/opencrypto/blake2_test.c
97
create_session(int fd, int alg, int crid, const void *key, size_t klen)
tests/sys/opencrypto/poly1305_test.c
292
uint8_t key[__min_size(POLY1305_KEY_LEN)], char *msg,
tests/sys/opencrypto/poly1305_test.c
295
parse_hex(kat, kat->test_key_hex, key, POLY1305_KEY_LEN);
tests/sys/opencrypto/poly1305_test.c
311
create_session(int fd, int alg, int crid, const void *key, size_t klen)
tests/sys/opencrypto/poly1305_test.c
318
sop.mackey = key;
tests/sys/opencrypto/poly1305_test.c
356
key[POLY1305_KEY_LEN], msg[512];
tests/sys/opencrypto/poly1305_test.c
366
parse_vector(kat, key, msg, exptag);
tests/sys/opencrypto/poly1305_test.c
368
ses = create_session(fd, CRYPTO_POLY1305, crid, key, sizeof(key));
tests/sys/sys/arb_test.c
39
int key;
tests/sys/sys/arb_test.c
47
if (a->key < b->key) return (-1);
tests/sys/sys/arb_test.c
48
else if (a->key > b->key) return (1);
tests/sys/sys/arb_test.c
76
tmp->key = arc4random_uniform(MAX-MIN);
tests/sys/sys/arb_test.c
77
tmp->key += MIN;
tests/sys/sys/arb_test.c
80
max = min = tmp->key;
tests/sys/sys/arb_test.c
82
if (tmp->key > max)
tests/sys/sys/arb_test.c
83
max = tmp->key;
tests/sys/sys/arb_test.c
84
if (tmp->key < min)
tests/sys/sys/arb_test.c
85
min = tmp->key;
tests/sys/sys/arb_test.c
92
ATF_CHECK_EQ(min, ins->key);
tests/sys/sys/arb_test.c
96
ATF_CHECK_EQ(max, ins->key);
tests/sys/sys/rb_test.c
38
int key;
tests/sys/sys/rb_test.c
46
if (a->key < b->key) return (-1);
tests/sys/sys/rb_test.c
47
else if (a->key > b->key) return (1);
tests/sys/sys/rb_test.c
70
store[i].key = i;
tests/sys/sys/rb_test.c
75
k = store[j].key;
tests/sys/sys/rb_test.c
76
store[j].key = store[i].key;
tests/sys/sys/rb_test.c
77
store[i].key = k;
tests/sys/sys/rb_test.c
86
if (tmp->key > max)
tests/sys/sys/rb_test.c
87
max = tmp->key;
tests/sys/sys/rb_test.c
88
if (tmp->key < min)
tests/sys/sys/rb_test.c
89
min = tmp->key;
tests/sys/sys/rb_test.c
93
ATF_CHECK_EQ(min, ins->key);
tests/sys/sys/rb_test.c
96
ATF_CHECK_EQ(max, ins->key);
tests/sys/sys/splay_test.c
37
int key;
tests/sys/sys/splay_test.c
45
if (a->key < b->key) return (-1);
tests/sys/sys/splay_test.c
46
else if (a->key > b->key) return (1);
tests/sys/sys/splay_test.c
72
tmp->key = arc4random_uniform(MAX-MIN);
tests/sys/sys/splay_test.c
73
tmp->key += MIN;
tests/sys/sys/splay_test.c
76
max = min = tmp->key;
tests/sys/sys/splay_test.c
78
if (tmp->key > max)
tests/sys/sys/splay_test.c
79
max = tmp->key;
tests/sys/sys/splay_test.c
80
if (tmp->key < min)
tests/sys/sys/splay_test.c
81
min = tmp->key;
tests/sys/sys/splay_test.c
88
ATF_CHECK_EQ(min, ins->key);
tests/sys/sys/splay_test.c
92
ATF_CHECK_EQ(max, ins->key);
tools/bus_space/busdma.c
154
ioc.key = (ptag != NULL) ? ptag->key : 0;
tools/bus_space/busdma.c
170
tag->key = ioc.result;
tools/bus_space/busdma.c
239
ioc.key = tag->key;
tools/bus_space/busdma.c
299
ioc.u.md.tag = tag->key;
tools/bus_space/busdma.c
310
md->key = ioc.result;
tools/bus_space/busdma.c
326
ioc.key = md->key;
tools/bus_space/busdma.c
348
ioc.key = md->key;
tools/bus_space/busdma.c
374
ioc.key = md->key;
tools/bus_space/busdma.c
402
ioc.u.md.tag = tag->key;
tools/bus_space/busdma.c
413
md->key = ioc.result;
tools/bus_space/busdma.c
434
ioc.key = md->key;
tools/bus_space/busdma.c
453
ioc.key = md->key;
tools/bus_space/busdma.c
53
u_long key;
tools/bus_space/busdma.c
548
ioc.key = md->key;
tools/regression/geom/ConfCmp/ConfCmp.c
120
sbuf_cat(np->key, name);
tools/regression/geom/ConfCmp/ConfCmp.c
121
sbuf_cat(np->key, "::");
tools/regression/geom/ConfCmp/ConfCmp.c
142
sbuf_cat(mt->cur->key, sbuf_data(np->cont));
tools/regression/geom/ConfCmp/ConfCmp.c
145
sbuf_finish(mt->cur->key);
tools/regression/geom/ConfCmp/ConfCmp.c
184
sbuf_finish(mt->top->key);
tools/regression/geom/ConfCmp/ConfCmp.c
210
printf("\"%s\" -- \"%s\" -- \"%s\"", np->name, sbuf_data(np->cont), sbuf_data(np->key));
tools/regression/geom/ConfCmp/ConfCmp.c
245
if (strcmp(sbuf_data(np1->key), sbuf_data(np2->key)) > 0) {
tools/regression/geom/ConfCmp/ConfCmp.c
57
struct sbuf *key;
tools/regression/geom/ConfCmp/ConfCmp.c
85
np->key = sbuf_new_auto();
tools/regression/geom/ConfCmp/ConfCmp.c
86
sbuf_clear(np->key);
tools/regression/net80211/ccmp/test_ccmp.c
536
const u_int8_t *key;
tools/regression/net80211/ccmp/test_ccmp.c
595
struct ieee80211_key *key = &vap->iv_nw_keys[t->keyix];
tools/regression/net80211/ccmp/test_ccmp.c
605
memset(key, 0, sizeof(*key));
tools/regression/net80211/ccmp/test_ccmp.c
606
key->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV;
tools/regression/net80211/ccmp/test_ccmp.c
607
key->wk_cipher = &ieee80211_cipher_none;
tools/regression/net80211/ccmp/test_ccmp.c
609
IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV, key)) {
tools/regression/net80211/ccmp/test_ccmp.c
614
memcpy(key->wk_key, t->key, t->key_len);
tools/regression/net80211/ccmp/test_ccmp.c
615
key->wk_keylen = t->key_len;
tools/regression/net80211/ccmp/test_ccmp.c
616
memset(key->wk_keyrsc, 0, sizeof(key->wk_keyrsc));
tools/regression/net80211/ccmp/test_ccmp.c
617
key->wk_keytsc = t->pn-1; /* PN-1 since we do encap */
tools/regression/net80211/ccmp/test_ccmp.c
618
if (!ieee80211_crypto_setkey(vap, key)) {
tools/regression/net80211/ccmp/test_ccmp.c
626
cip = key->wk_cipher;
tools/regression/net80211/ccmp/test_ccmp.c
637
if (!cip->ic_encap(key, m)) {
tools/regression/net80211/ccmp/test_ccmp.c
663
if (!cip->ic_decap(key, m, hdrlen)) {
tools/regression/net80211/ccmp/test_ccmp.c
687
ieee80211_crypto_delkey(vap, key);
tools/regression/net80211/ccmp/test_ccmp.c
693
ieee80211_crypto_delkey(vap, key);
tools/regression/net80211/tkip/test_tkip.c
125
const u_int8_t *key;
tools/regression/net80211/tkip/test_tkip.c
183
struct ieee80211_key *key = &vap->iv_nw_keys[t->keyix];
tools/regression/net80211/tkip/test_tkip.c
194
memset(key, 0, sizeof(*key));
tools/regression/net80211/tkip/test_tkip.c
195
key->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV;
tools/regression/net80211/tkip/test_tkip.c
196
key->wk_cipher = &ieee80211_cipher_none;
tools/regression/net80211/tkip/test_tkip.c
198
IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV, key)) {
tools/regression/net80211/tkip/test_tkip.c
203
memcpy(key->wk_key, t->key, t->key_len);
tools/regression/net80211/tkip/test_tkip.c
204
key->wk_keylen = 128/NBBY;
tools/regression/net80211/tkip/test_tkip.c
205
memset(key->wk_keyrsc, 0, sizeof(key->wk_keyrsc));
tools/regression/net80211/tkip/test_tkip.c
206
key->wk_keytsc = t->pn;
tools/regression/net80211/tkip/test_tkip.c
207
if (!ieee80211_crypto_setkey(vap, key)) {
tools/regression/net80211/tkip/test_tkip.c
215
cip = key->wk_cipher;
tools/regression/net80211/tkip/test_tkip.c
227
if (!ieee80211_crypto_enmic(vap, key, m, 1)) {
tools/regression/net80211/tkip/test_tkip.c
249
if (!cip->ic_encap(key, m)) {
tools/regression/net80211/tkip/test_tkip.c
256
ctx = key->wk_private;
tools/regression/net80211/tkip/test_tkip.c
283
if (!cip->ic_decap(key, m, hdrlen)) {
tools/regression/net80211/tkip/test_tkip.c
321
if (!ieee80211_crypto_demic(vap, key, m, 1)) {
tools/regression/net80211/tkip/test_tkip.c
327
ieee80211_crypto_delkey(vap, key);
tools/regression/net80211/tkip/test_tkip.c
333
ieee80211_crypto_delkey(vap, key);
tools/regression/net80211/wep/test_wep.c
141
const u_int8_t *key;
tools/regression/net80211/wep/test_wep.c
188
struct ieee80211_key *key = &vap->iv_nw_keys[t->keyix];
tools/regression/net80211/wep/test_wep.c
199
memset(key, 0, sizeof(*key));
tools/regression/net80211/wep/test_wep.c
200
key->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV;
tools/regression/net80211/wep/test_wep.c
201
key->wk_cipher = &ieee80211_cipher_none;
tools/regression/net80211/wep/test_wep.c
203
IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV, key)) {
tools/regression/net80211/wep/test_wep.c
208
memcpy(key->wk_key, t->key, t->key_len);
tools/regression/net80211/wep/test_wep.c
209
key->wk_keylen = t->key_len;
tools/regression/net80211/wep/test_wep.c
210
if (!ieee80211_crypto_setkey(vap, key)) {
tools/regression/net80211/wep/test_wep.c
218
cip = key->wk_cipher;
tools/regression/net80211/wep/test_wep.c
228
if (!cip->ic_decap(key, m, hdrlen)) {
tools/regression/net80211/wep/test_wep.c
252
ctx = (struct wep_ctx_hw *) key->wk_private;
tools/regression/net80211/wep/test_wep.c
256
if (!cip->ic_encap(key, m)) {
tools/regression/net80211/wep/test_wep.c
276
ieee80211_crypto_delkey(vap, key);
tools/regression/net80211/wep/test_wep.c
282
ieee80211_crypto_delkey(vap, key);
tools/tools/crypto/cryptocheck.c
1108
openssl_gmac(const struct alg *alg, const EVP_CIPHER *cipher, const char *key,
tools/tools/crypto/cryptocheck.c
1120
if (EVP_EncryptInit_ex(ctx, cipher, NULL, (const u_char *)key,
tools/tools/crypto/cryptocheck.c
1153
ocf_mac(const struct alg *alg, const char *input, size_t size, const char *key,
tools/tools/crypto/cryptocheck.c
1162
sop.mackey = key;
tools/tools/crypto/cryptocheck.c
1190
char *iv, *key, *buffer;
tools/tools/crypto/cryptocheck.c
1203
key = alloc_buffer(key_len);
tools/tools/crypto/cryptocheck.c
1208
if (!openssl_gmac(alg, cipher, key, iv, buffer, size, control_tag))
tools/tools/crypto/cryptocheck.c
1212
if (!ocf_mac(alg, buffer, size, key, key_len, iv, test_tag, &crid))
tools/tools/crypto/cryptocheck.c
1230
free(key);
tools/tools/crypto/cryptocheck.c
1234
openssl_digest(const struct alg *alg, const char *key, u_int key_len,
tools/tools/crypto/cryptocheck.c
1241
pkey = EVP_PKEY_new_raw_private_key(alg->pkey, NULL, key, key_len);
tools/tools/crypto/cryptocheck.c
1283
char *key, *buffer;
tools/tools/crypto/cryptocheck.c
1293
key = alloc_buffer(key_len);
tools/tools/crypto/cryptocheck.c
1297
if (!openssl_digest(alg, key, key_len, buffer, size, control_tag,
tools/tools/crypto/cryptocheck.c
1302
if (!ocf_mac(alg, buffer, size, key, key_len, NULL, test_tag, &crid))
tools/tools/crypto/cryptocheck.c
1319
free(key);
tools/tools/crypto/cryptocheck.c
1324
const char *key, const char *iv, size_t iv_len, const char *aad,
tools/tools/crypto/cryptocheck.c
1347
if (EVP_EncryptInit_ex(ctx, NULL, NULL, (const u_char *)key,
tools/tools/crypto/cryptocheck.c
1398
const char *key, const char *iv, const char *aad, size_t aad_len,
tools/tools/crypto/cryptocheck.c
1409
if (EVP_DecryptInit_ex(ctx, cipher, NULL, (const u_char *)key,
tools/tools/crypto/cryptocheck.c
1442
const char *key, const char *iv, size_t iv_len, const char *aad,
tools/tools/crypto/cryptocheck.c
1475
if (EVP_EncryptInit_ex(ctx, NULL, NULL, (const u_char *)key,
tools/tools/crypto/cryptocheck.c
1534
ocf_init_aead_session(const struct alg *alg, const char *key, size_t key_len,
tools/tools/crypto/cryptocheck.c
1541
sop.key = key;
tools/tools/crypto/cryptocheck.c
1608
char *iv, *key;
tools/tools/crypto/cryptocheck.c
1637
key = alloc_buffer(key_len);
tools/tools/crypto/cryptocheck.c
1649
ok = openssl_ccm_encrypt(alg, cipher, key, iv, iv_len, aad,
tools/tools/crypto/cryptocheck.c
1652
ok = openssl_aead_encrypt(alg, cipher, key, iv, iv_len, aad,
tools/tools/crypto/cryptocheck.c
1657
if (!ocf_init_aead_session(alg, key, key_len, iv_len, &ses))
tools/tools/crypto/cryptocheck.c
1733
free(key);
tools/tools/crypto/cryptocheck.c
628
const char *key, size_t key_len, char *digest, int *cridp)
tools/tools/crypto/cryptocheck.c
636
sop.mackey = key;
tools/tools/crypto/cryptocheck.c
663
char *key, *buffer;
tools/tools/crypto/cryptocheck.c
675
key = alloc_buffer(key_len);
tools/tools/crypto/cryptocheck.c
680
if (HMAC(md, key, key_len, (u_char *)buffer, size,
tools/tools/crypto/cryptocheck.c
688
if (!ocf_hmac(alg, buffer, size, key, key_len, test_digest, &crid))
tools/tools/crypto/cryptocheck.c
709
free(key);
tools/tools/crypto/cryptocheck.c
713
openssl_cipher(const struct alg *alg, const EVP_CIPHER *cipher, const char *key,
tools/tools/crypto/cryptocheck.c
725
if (EVP_CipherInit_ex(ctx, cipher, NULL, (const u_char *)key,
tools/tools/crypto/cryptocheck.c
759
ocf_init_cipher_session(const struct alg *alg, const char *key, size_t key_len,
tools/tools/crypto/cryptocheck.c
766
sop.key = key;
tools/tools/crypto/cryptocheck.c
799
char *iv, *key;
tools/tools/crypto/cryptocheck.c
828
key = alloc_buffer(key_len);
tools/tools/crypto/cryptocheck.c
835
if (!openssl_cipher(alg, cipher, key, iv, cleartext, ciphertext, size,
tools/tools/crypto/cryptocheck.c
843
if (!openssl_cipher(alg, cipher, key, iv, ciphertext, buffer, size, 0))
tools/tools/crypto/cryptocheck.c
854
if (!ocf_init_cipher_session(alg, key, key_len, &ses))
tools/tools/crypto/cryptocheck.c
892
free(key);
tools/tools/crypto/cryptocheck.c
904
sop.key = cipher_key;
tools/tools/net80211/w00t/expand/expand.c
218
unsigned char key[8];
tools/tools/net80211/w00t/expand/expand.c
220
memset(&key[3], 0x61, 5);
tools/tools/net80211/w00t/expand/expand.c
221
memcpy(key, (q->wh+1), 3);
tools/tools/net80211/w00t/expand/expand.c
224
RC4_set_key(&k, 8, key);
tools/tools/net80211/w00t/libw00t/w00t.c
303
int wep_decrypt(struct ieee80211_frame *wh, int len, char *key, int klen)
tools/tools/net80211/w00t/libw00t/w00t.c
313
memcpy(&seed[3], key, klen);
tools/tools/net80211/w00t/libw00t/w00t.c
331
void wep_encrypt(struct ieee80211_frame *wh, int len, char *key, int klen)
tools/tools/net80211/w00t/libw00t/w00t.c
341
memcpy(&seed[3], key, klen);
tools/tools/net80211/w00t/libw00t/w00t.h
48
int wep_decrypt(struct ieee80211_frame *wh, int len, char *key, int klen);
tools/tools/net80211/w00t/libw00t/w00t.h
49
void wep_encrypt(struct ieee80211_frame *wh, int len, char *key, int klen);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
135
static void rc4init ( uint8_t * key, int keylen, rc4state * state) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
142
j = (j + state->s[i] + key[i % keylen]) % n;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
217
static int correct(PTW_attackstate * state, uint8_t * key, int keylen) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
224
memcpy(&keybuf[IVBYTES], key, keylen);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
283
static int doRound(PTW_tableentry sortedtable[][n], int keybyte, int fixat, uint8_t fixvalue, int * searchborders, uint8_t * key, int keylen, PTW_attackstate * state, uint8_t sum, int * strongbytes) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
287
return correct(state, key, keylen);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
292
tmp += 3 + key[i] + i;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
293
key[keybyte] = 256-tmp;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
294
if(doRound(sortedtable, keybyte+1, fixat, fixvalue, searchborders, key, keylen, state, (256-tmp+sum)%256, strongbytes) == 1) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
301
key[keybyte] = fixvalue-sum;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
302
return doRound(sortedtable, keybyte+1, fixat, fixvalue, searchborders, key, keylen, state, fixvalue, strongbytes);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
305
key[keybyte] = sortedtable[keybyte][i].b - sum;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
306
if (doRound(sortedtable, keybyte+1, fixat, fixvalue, searchborders, key, keylen, state, sortedtable[keybyte][i].b, strongbytes) == 1) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
317
static int doComputation(PTW_attackstate * state, uint8_t * key, int keylen, PTW_tableentry table[][n], sorthelper * sh2, int * strongbytes, int keylimit) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
337
if (doRound(table, 0, fixat, fixvalue, choices, key, keylen, state, 0, strongbytes) == 1) {
tools/tools/net80211/wesside/wesside/wesside.c
2077
void save_key(unsigned char *key, int len)
tools/tools/net80211/wesside/wesside/wesside.c
2088
sprintf(tmp, "%.2X", *key++);
tools/tools/net80211/wesside/wesside/wesside.c
2110
unsigned char key[PTW_KEYHSBYTES];
tools/tools/net80211/wesside/wesside/wesside.c
2112
if(PTW_computeKey(ptw, key, 13, KEYLIMIT) == 1) {
tools/tools/net80211/wesside/wesside/wesside.c
2113
save_key(key, 13);
tools/tools/net80211/wesside/wesside/wesside.c
2116
if(PTW_computeKey(ptw, key, 5, KEYLIMIT/10) == 1) {
tools/tools/net80211/wesside/wesside/wesside.c
2117
save_key(key, 5);
tools/tools/netmap/pkt-gen.c
2844
const char *key;
tools/tools/netmap/pkt-gen.c
3011
for (fn = func; fn->key; fn++) {
tools/tools/netmap/pkt-gen.c
3012
if (!strcmp(fn->key, optarg))
tools/tools/netmap/pkt-gen.c
3015
if (fn->key) {
tools/tools/netmap/pkt_hash.c
64
static const uint8_t key[] = { 0x50, 0x6d };
tools/tools/netmap/pkt_hash.c
66
uint32_t result = (((uint32_t)key[0]) << 24) |
tools/tools/netmap/pkt_hash.c
67
(((uint32_t)key[1]) << 16) |
tools/tools/netmap/pkt_hash.c
68
(((uint32_t)key[0]) << 8) |
tools/tools/netmap/pkt_hash.c
69
((uint32_t)key[1]);
tools/tools/netmap/pkt_hash.c
79
bit = ((key[(idx/8) & 1] << shift) & 0x80) ? 1 : 0;
tools/tools/vhba/vhba.c
154
vhba_fill_sense(struct ccb_scsiio *csio, uint8_t key, uint8_t asc, uint8_t ascq)
tools/tools/vhba/vhba.c
159
csio->sense_data.flags = key;
usr.bin/cap_mkdb/cap_mkdb.c
146
DBT key, data;
usr.bin/cap_mkdb/cap_mkdb.c
153
key.data = NULL;
usr.bin/cap_mkdb/cap_mkdb.c
190
key.data = bp;
usr.bin/cap_mkdb/cap_mkdb.c
191
key.size = p - bp;
usr.bin/cap_mkdb/cap_mkdb.c
193
switch(capdbp->put(capdbp, &key, &data, R_NOOVERWRITE)) {
usr.bin/cap_mkdb/cap_mkdb.c
199
(int)key.size, (char *)key.data);
usr.bin/cap_mkdb/cap_mkdb.c
212
memmove(&((u_char *)(data.data))[1], key.data, key.size);
usr.bin/cap_mkdb/cap_mkdb.c
213
data.size = key.size + 1;
usr.bin/cap_mkdb/cap_mkdb.c
218
key.size = p - t;
usr.bin/cap_mkdb/cap_mkdb.c
219
key.data = t;
usr.bin/cap_mkdb/cap_mkdb.c
221
&key, &data, R_NOOVERWRITE)) {
usr.bin/cap_mkdb/cap_mkdb.c
227
(int)key.size, (char *)key.data);
usr.bin/ctags/C.c
493
skip_string(int key)
usr.bin/ctags/C.c
507
if (c == key && !skip)
usr.bin/ctags/C.c
518
skip_key(int key)
usr.bin/ctags/C.c
552
if (c == key && !skip)
usr.bin/dtc/checking.cc
166
if (p->get_key() == key)
usr.bin/dtc/checking.hh
121
std::string key;
usr.bin/dtc/fdt.cc
1090
node::get_property(const string &key)
usr.bin/dtc/fdt.cc
1094
if (i->get_key() == key)
usr.bin/dtc/fdt.cc
2243
auto key = i.prop->get_key();
usr.bin/dtc/fdt.cc
2244
property_ptr prop = n->get_property(key);
usr.bin/dtc/fdt.cc
2249
prop = std::make_shared<property>(std::move(key));
usr.bin/dtc/fdt.cc
452
key = name_buffer.parse_to(0);
usr.bin/dtc/fdt.cc
498
define_map *defines) : key(k), labels(l), valid(true)
usr.bin/dtc/fdt.cc
602
property::parse(text_input_buffer &input, string &&key, string_set &&label,
usr.bin/dtc/fdt.cc
606
std::move(key),
usr.bin/dtc/fdt.cc
627
writer.write_comment(key);
usr.bin/dtc/fdt.cc
628
writer.write_data(strings.add_string(key));
usr.bin/dtc/fdt.cc
676
if (key != string())
usr.bin/dtc/fdt.cc
678
fputs(key.c_str(), file);
usr.bin/dtc/fdt.hh
271
std::string key;
usr.bin/dtc/fdt.hh
330
: key(k), labels(l), valid(true) {}
usr.bin/dtc/fdt.hh
334
property(property &p) : key(p.key), labels(p.labels), values(p.values),
usr.bin/dtc/fdt.hh
349
std::string &&key,
usr.bin/dtc/fdt.hh
383
return key;
usr.bin/dtc/fdt.hh
648
property_ptr get_property(const std::string &key);
usr.bin/finger/finger.c
222
DBT data, key;
usr.bin/finger/finger.c
248
r = (*db->seq)(db, &key, &data, sflag1);
usr.bin/finger/finger.c
262
DBT data, key;
usr.bin/finger/finger.c
386
r = (*db->seq)(db, &key, &data, sflag1);
usr.bin/finger/lprint.c
66
DBT data, key;
usr.bin/finger/lprint.c
69
r = (*db->seq)(db, &key, &data, sflag);
usr.bin/finger/sprint.c
58
DBT data, key;
usr.bin/finger/sprint.c
86
r = (*db->seq)(db, &key, &data, sflag);
usr.bin/finger/util.c
150
DBT data, key;
usr.bin/finger/util.c
157
key.data = pw->pw_name;
usr.bin/finger/util.c
158
key.size = strlen(pw->pw_name);
usr.bin/finger/util.c
160
switch ((*db->get)(db, &key, &data, 0)) {
usr.bin/finger/util.c
176
if ((*db->put)(db, &key, &data, 0))
usr.bin/finger/util.c
187
DBT data, key;
usr.bin/finger/util.c
196
key.data = name;
usr.bin/finger/util.c
197
key.size = strlen(name);
usr.bin/finger/util.c
199
if ((*db->get)(db, &key, &data, 0))
usr.bin/getconf/getconf.c
131
if ((valid = find_confstr(name, &key)) != 0) {
usr.bin/getconf/getconf.c
133
do_confstr(name, key);
usr.bin/getconf/getconf.c
137
valid = find_sysconf(name, &key);
usr.bin/getconf/getconf.c
139
do_sysconf(name, key);
usr.bin/getconf/getconf.c
148
valid = find_pathconf(name, &key);
usr.bin/getconf/getconf.c
151
do_pathconf(name, key, argv[optind + 1]);
usr.bin/getconf/getconf.c
163
do_onestr(const char *name, int key)
usr.bin/getconf/getconf.c
168
len = confstr(key, 0, 0);
usr.bin/getconf/getconf.c
179
confstr(key, buf, len);
usr.bin/getconf/getconf.c
185
do_onesys(const char *name, int key)
usr.bin/getconf/getconf.c
190
value = sysconf(key);
usr.bin/getconf/getconf.c
211
do_onepath(const char *name, int key, const char *path)
usr.bin/getconf/getconf.c
216
value = pathconf(path, key);
usr.bin/getconf/getconf.c
234
do_confstr(const char *name, int key)
usr.bin/getconf/getconf.c
241
len = confstr(key, 0, 0);
usr.bin/getconf/getconf.c
250
confstr(key, buf, len);
usr.bin/getconf/getconf.c
257
do_sysconf(const char *name, int key)
usr.bin/getconf/getconf.c
262
value = sysconf(key);
usr.bin/getconf/getconf.c
272
do_pathconf(const char *name, int key, const char *path)
usr.bin/getconf/getconf.c
277
value = pathconf(path, key);
usr.bin/getconf/getconf.c
44
static void do_confstr(const char *name, int key);
usr.bin/getconf/getconf.c
45
static void do_sysconf(const char *name, int key);
usr.bin/getconf/getconf.c
46
static void do_pathconf(const char *name, int key, const char *path);
usr.bin/getconf/getconf.c
62
int c, key, valid;
usr.bin/getconf/getconf.h
37
int find_confstr(const char *name, int *key);
usr.bin/getconf/getconf.h
40
int find_pathconf(const char *name, int *key);
usr.bin/getconf/getconf.h
42
int find_sysconf(const char *name, int *key);
usr.bin/indent/lexi.c
614
add_typename(const char *key)
usr.bin/indent/lexi.c
626
typenames[++typename_top] = copy = strdup(key);
usr.bin/indent/lexi.c
627
else if ((comparison = strcmp(key, typenames[typename_top])) >= 0) {
usr.bin/indent/lexi.c
631
typenames[++typename_top] = copy = strdup(key);
usr.bin/indent/lexi.c
636
for (p = 0; (comparison = strcmp(key, typenames[p])) > 0; p++)
usr.bin/indent/lexi.c
642
typenames[p] = copy = strdup(key);
usr.bin/ipcrm/ipcrm.c
101
if (key) {
usr.bin/ipcrm/ipcrm.c
102
id = msgget(key, 0);
usr.bin/ipcrm/ipcrm.c
111
shmrm(key_t key, int id)
usr.bin/ipcrm/ipcrm.c
114
if (key == -1 || id == -1) {
usr.bin/ipcrm/ipcrm.c
142
if (key) {
usr.bin/ipcrm/ipcrm.c
143
id = shmget(key, 0, 0);
usr.bin/ipcrm/ipcrm.c
152
semrm(key_t key, int id)
usr.bin/ipcrm/ipcrm.c
156
if (key == -1 || id == -1) {
usr.bin/ipcrm/ipcrm.c
184
if (key) {
usr.bin/ipcrm/ipcrm.c
185
id = semget(key, 0, 0);
usr.bin/ipcrm/ipcrm.c
70
msgrm(key_t key, int id)
usr.bin/ipcrm/ipcrm.c
73
if (key == -1 || id == -1) {
usr.bin/ipcs/ipcs.c
346
(int)kmsqptr->u.msg_perm.key,
usr.bin/ipcs/ipcs.c
426
(int)kshmptr->u.shm_perm.key,
usr.bin/ipcs/ipcs.c
509
(int)ksemaptr->u.sem_perm.key,
usr.bin/localedef/collate.c
1222
if ((st[n].key = resolve_pri(sb->key)) < 0) {
usr.bin/localedef/collate.c
1226
if (st[n].key != (n | COLLATE_SUBST_PRIORITY)) {
usr.bin/localedef/collate.c
1229
st[n].key = htote(st[n].key);
usr.bin/localedef/collate.c
204
int32_t key;
usr.bin/localedef/collate.c
433
int32_t k1 = ((const subst_t *)n1)->key;
usr.bin/localedef/collate.c
434
int32_t k2 = ((const subst_t *)n2)->key;
usr.bin/localedef/collate.c
938
s->key = new_pri();
usr.bin/localedef/collate.c
948
set_pri(s->key,
usr.bin/localedef/collate.c
972
add_order_pri(s->key);
usr.bin/look/look.c
129
key = prepkey(*argv++, termchar);
usr.bin/look/look.c
147
match *= (look(key, front, back));
usr.bin/look/look.c
158
wchar_t *key, *writep;
usr.bin/look/look.c
166
if ((key = malloc(sizeof(wchar_t) * (strlen(string) + 1))) == NULL)
usr.bin/look/look.c
169
writep = key;
usr.bin/look/look.c
180
if (termchar != L'\0' && (writep = wcschr(key, termchar)) != NULL)
usr.bin/look/look.c
182
return (key);
usr.bin/look/look.c
96
wchar_t *key;
usr.bin/sort/coll.c
124
return ((struct key_value *)((caddr_t)ka->key +
usr.bin/sort/coll.c
410
struct bwstring *key;
usr.bin/sort/coll.c
415
key = cut_field(s, kspecs);
usr.bin/sort/coll.c
419
key = dictionary_order(key);
usr.bin/sort/coll.c
421
key = ignore_nonprinting(key);
usr.bin/sort/coll.c
423
key = ignore_case(key);
usr.bin/sort/coll.c
425
set_key_on_keys_array(ka, key, i);
usr.bin/sort/coll.h
114
struct key_value key[0];
usr.bin/stdbuf/stdbuf.c
38
appendenv(const char *key, const char *value)
usr.bin/stdbuf/stdbuf.c
43
curval = getenv(key);
usr.bin/stdbuf/stdbuf.c
45
ret = asprintf(&newpair, "%s=%s", key, value);
usr.bin/stdbuf/stdbuf.c
47
ret = asprintf(&newpair, "%s=%s:%s", key, curval, value);
usr.bin/stdbuf/stdbuf.c
51
warn("Failed to set environment variable: %s", key);
usr.bin/tsort/tsort.c
229
DBT data, key;
usr.bin/tsort/tsort.c
236
key.data = name;
usr.bin/tsort/tsort.c
237
key.size = strlen(name) + 1;
usr.bin/tsort/tsort.c
239
switch ((*db->get)(db, &key, &data, 0)) {
usr.bin/tsort/tsort.c
250
if ((n = malloc(sizeof(NODE) + key.size)) == NULL)
usr.bin/tsort/tsort.c
258
memcpy(n->n_name, name, key.size);
usr.bin/tsort/tsort.c
269
if ((*db->put)(db, &key, &data, 0))
usr.bin/ypcat/ypcat.c
109
key = 1;
usr.bin/ypcat/ypcat.c
63
static int key;
usr.bin/ypcat/ypcat.c
80
if (key)
usr.bin/ypcat/ypcat.c
94
notrans = key = 0;
usr.bin/ypmatch/ypmatch.c
125
if (key)
usr.bin/ypmatch/ypmatch.c
77
int outbuflen, key, notrans, rval;
usr.bin/ypmatch/ypmatch.c
82
notrans = key = 0;
usr.bin/ypmatch/ypmatch.c
98
key = 1;
usr.sbin/autofs/automountd.c
177
char *key, *options, *fstype, *nobrowse, *retrycnt, *tmp;
usr.sbin/autofs/automountd.c
205
key = checked_strdup(adr->adr_path);
usr.sbin/autofs/automountd.c
215
key = NULL;
usr.sbin/autofs/automountd.c
217
key = checked_strdup(adr->adr_key);
usr.sbin/autofs/automountd.c
227
parse_map(parent, map, key, &wildcards);
usr.sbin/autofs/automountd.c
235
if (key != NULL)
usr.sbin/autofs/automountd.c
236
node_expand_wildcard(root, key);
usr.sbin/autofs/automountd.c
261
if (nobrowse != NULL && key == NULL) {
usr.sbin/autofs/automountd.c
278
if (incomplete_hierarchy && key != NULL) {
usr.sbin/autofs/automountd.c
283
tmp = concat(adr->adr_path, '/', key);
usr.sbin/autofs/automountd.c
301
if (key != NULL)
usr.sbin/autofs/automountd.c
302
node_expand_ampersand(node, key);
usr.sbin/autofs/common.c
1027
parse_map(struct node *parent, const char *map, const char *key,
usr.sbin/autofs/common.c
1045
return (parse_special_map(parent, map, key));
usr.sbin/autofs/common.c
1076
if (key != NULL) {
usr.sbin/autofs/common.c
1077
yyin = auto_popen(path, key, NULL);
usr.sbin/autofs/common.c
1091
parse_map_yyin(parent, map, executable ? key : NULL);
usr.sbin/autofs/common.c
178
node_new(struct node *parent, char *key, char *options, char *location,
usr.sbin/autofs/common.c
188
assert(key != NULL);
usr.sbin/autofs/common.c
189
assert(key[0] != '\0');
usr.sbin/autofs/common.c
190
n->n_key = key;
usr.sbin/autofs/common.c
209
node_new_map(struct node *parent, char *key, char *options, char *map,
usr.sbin/autofs/common.c
219
assert(key != NULL);
usr.sbin/autofs/common.c
220
assert(key[0] != '\0');
usr.sbin/autofs/common.c
221
n->n_key = key;
usr.sbin/autofs/common.c
336
expand_ampersand(char *string, const char *key)
usr.sbin/autofs/common.c
342
assert(key[0] != '\0');
usr.sbin/autofs/common.c
368
before_len, string, key, string + before_len + 1);
usr.sbin/autofs/common.c
379
i = before_len + strlen(key);
usr.sbin/autofs/common.c
398
node_expand_ampersand(struct node *n, const char *key)
usr.sbin/autofs/common.c
403
if (key == NULL) {
usr.sbin/autofs/common.c
410
n->n_location = expand_ampersand(n->n_location, key);
usr.sbin/autofs/common.c
415
node_expand_ampersand(child, key);
usr.sbin/autofs/common.c
422
node_expand_wildcard(struct node *n, const char *key)
usr.sbin/autofs/common.c
426
assert(key != NULL);
usr.sbin/autofs/common.c
430
expanded->n_key = checked_strdup(key);
usr.sbin/autofs/common.c
435
node_expand_wildcard(child, key);
usr.sbin/autofs/common.c
743
char *key = NULL, *options = NULL, *mountpoint = NULL,
usr.sbin/autofs/common.c
751
key = checked_strdup(executable_key);
usr.sbin/autofs/common.c
761
if ((key != NULL && executable_key == NULL) ||
usr.sbin/autofs/common.c
772
key = options = NULL;
usr.sbin/autofs/common.c
776
if (key == NULL) {
usr.sbin/autofs/common.c
777
key = checked_strdup(yytext);
usr.sbin/autofs/common.c
778
if (key[0] == '+') {
usr.sbin/autofs/common.c
779
node_new(parent, key, NULL, NULL, map, lineno);
usr.sbin/autofs/common.c
780
key = options = NULL;
usr.sbin/autofs/common.c
805
if (strcmp(key, "/") == 0) {
usr.sbin/autofs/common.c
816
key = options = NULL;
usr.sbin/autofs/common.c
821
node = node_new(parent, key, options, NULL, map, lineno);
usr.sbin/autofs/common.c
822
key = options = NULL;
usr.sbin/autofs/common.c
904
char *line = NULL, *key;
usr.sbin/autofs/common.c
928
key = strndup(line, linelen - 1);
usr.sbin/autofs/common.c
930
log_debugx("adding key \"%s\"", key);
usr.sbin/autofs/common.c
931
node_new(parent, key, NULL, NULL, map, lineno);
usr.sbin/autofs/common.c
956
parse_special_map(struct node *parent, const char *map, const char *key)
usr.sbin/autofs/common.c
970
yyin = auto_popen(path, key, NULL);
usr.sbin/autofs/common.c
973
if (key == NULL) {
usr.sbin/autofs/common.c
976
parse_map_yyin(parent, map, key);
usr.sbin/autofs/common.h
76
struct node *node_new(struct node *parent, char *key, char *options,
usr.sbin/autofs/common.h
78
struct node *node_new_map(struct node *parent, char *key, char *options,
usr.sbin/autofs/common.h
85
void node_expand_ampersand(struct node *root, const char *key);
usr.sbin/autofs/common.h
86
void node_expand_wildcard(struct node *root, const char *key);
usr.sbin/bhyve/bhyverun.c
177
parse_int_value(const char *key, const char *value, int minval, int maxval)
usr.sbin/bhyve/bhyverun.c
186
errx(4, "Invalid value for %s: '%s'", key, value);
usr.sbin/bhyve/bhyverun.c
364
char key[16];
usr.sbin/bhyve/bhyverun.c
383
snprintf(key, sizeof(key), "vcpu.%d.cpuset", vcpu);
usr.sbin/bhyve/bhyverun.c
384
value = get_config_value(key);
usr.sbin/bhyve/bhyverun.c
392
set_config_value(key, newval);
usr.sbin/bhyve/bhyverun.c
446
char key[16];
usr.sbin/bhyve/bhyverun.c
452
snprintf(key, sizeof(key), "vcpu.%d.cpuset", vcpu);
usr.sbin/bhyve/bhyverun.c
453
value = get_config_value(key);
usr.sbin/bhyve/snapshot.c
362
#define JSON_GET_INT_OR_RETURN(key, obj, result_ptr, ret) \
usr.sbin/bhyve/snapshot.c
365
obj__ = ucl_object_lookup(obj, key); \
usr.sbin/bhyve/snapshot.c
367
fprintf(stderr, "Missing key: '%s'", key); \
usr.sbin/bhyve/snapshot.c
371
fprintf(stderr, "Cannot convert '%s' value to int.", key); \
usr.sbin/bhyve/snapshot.c
376
#define JSON_GET_STRING_OR_RETURN(key, obj, result_ptr, ret) \
usr.sbin/bhyve/snapshot.c
379
obj__ = ucl_object_lookup(obj, key); \
usr.sbin/bhyve/snapshot.c
381
fprintf(stderr, "Missing key: '%s'", key); \
usr.sbin/bhyve/snapshot.c
385
fprintf(stderr, "Cannot convert '%s' value to string.", key); \
usr.sbin/bhyve/snapshot.c
419
lookup_dev(const char *dev_name, const char *key, struct restore_state *rstate,
usr.sbin/bhyve/snapshot.c
426
devs = ucl_object_lookup(rstate->meta_root_obj, key);
usr.sbin/bluetooth/bthidd/btuinput.c
511
uinput_rep_key(int32_t fd, int32_t key, int32_t make)
usr.sbin/bluetooth/bthidd/btuinput.c
521
if (key >= 0 && key < (int32_t)nitems(keymap) &&
usr.sbin/bluetooth/bthidd/btuinput.c
522
keymap[key] != NONE) {
usr.sbin/bluetooth/bthidd/btuinput.c
523
if (uinput_write_event(fd, EV_KEY, keymap[key], make) > 0 &&
usr.sbin/bluetooth/bthidd/btuinput.c
534
uinput_rep_cons(int32_t fd, int32_t key, int32_t make)
usr.sbin/bluetooth/bthidd/btuinput.c
544
if (key >= 0 && key < (int32_t)nitems(consmap) &&
usr.sbin/bluetooth/bthidd/btuinput.c
545
consmap[key] != NONE) {
usr.sbin/bluetooth/bthidd/btuinput.c
546
if (uinput_write_event(fd, EV_KEY, consmap[key], make) > 0 &&
usr.sbin/bluetooth/bthidd/btuinput.h
36
int32_t uinput_rep_key(int32_t fd, int32_t key, int32_t make);
usr.sbin/bluetooth/bthidd/btuinput.h
37
int32_t uinput_rep_cons(int32_t fd, int32_t key, int32_t make);
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
187
ng_hci_return_link_keys_ep key;
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
262
uint8_t key[NG_HCI_KEY_SIZE];
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
266
event.ep.key.num_keys);
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
268
k = (struct _key *)(event.ep.b + sizeof(event.ep.key));
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
269
for (n = 0; n < event.ep.key.num_keys; n++) {
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
273
for (n1 = 0; n1 < sizeof(k->key); n1++)
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
274
fprintf(stdout, "%02x", k->key[n1]);
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
298
uint8_t key[NG_HCI_KEY_SIZE];
usr.sbin/bluetooth/hccontrol/host_controller_baseband.c
320
if (hci_hexstring2array(argv[1], cp.key, sizeof(cp.key)) < 0)
usr.sbin/bluetooth/hcsecd/hcsecd.c
215
link_key_p key = NULL;
usr.sbin/bluetooth/hcsecd/hcsecd.c
221
if ((key = get_key(bdaddr, 0)) != NULL) {
usr.sbin/bluetooth/hcsecd/hcsecd.c
224
bt_ntoa(&key->bdaddr, NULL),
usr.sbin/bluetooth/hcsecd/hcsecd.c
225
(key->name != NULL)? key->name : "No name",
usr.sbin/bluetooth/hcsecd/hcsecd.c
226
(key->pin != NULL)? "exists" : "doesn't exist");
usr.sbin/bluetooth/hcsecd/hcsecd.c
228
return (send_pin_code_reply(sock, addr, bdaddr, key->pin));
usr.sbin/bluetooth/hcsecd/hcsecd.c
242
link_key_p key = NULL;
usr.sbin/bluetooth/hcsecd/hcsecd.c
248
if ((key = get_key(bdaddr, 0)) != NULL) {
usr.sbin/bluetooth/hcsecd/hcsecd.c
251
bt_ntoa(&key->bdaddr, NULL),
usr.sbin/bluetooth/hcsecd/hcsecd.c
252
(key->name != NULL)? key->name : "No name",
usr.sbin/bluetooth/hcsecd/hcsecd.c
253
(key->key != NULL)? "exists" : "doesn't exist");
usr.sbin/bluetooth/hcsecd/hcsecd.c
255
return (send_link_key_reply(sock, addr, bdaddr, key->key));
usr.sbin/bluetooth/hcsecd/hcsecd.c
326
bdaddr_p bdaddr, uint8_t *key)
usr.sbin/bluetooth/hcsecd/hcsecd.c
336
if (key != NULL) {
usr.sbin/bluetooth/hcsecd/hcsecd.c
345
memcpy(&cp->key, key, sizeof(cp->key));
usr.sbin/bluetooth/hcsecd/hcsecd.c
386
link_key_p key = NULL;
usr.sbin/bluetooth/hcsecd/hcsecd.c
392
if ((key = get_key(&ep->bdaddr, 1)) == NULL) {
usr.sbin/bluetooth/hcsecd/hcsecd.c
400
bt_ntoa(&key->bdaddr, NULL),
usr.sbin/bluetooth/hcsecd/hcsecd.c
401
(key->name != NULL)? key->name : "No name",
usr.sbin/bluetooth/hcsecd/hcsecd.c
402
(key->key != NULL)? "exists" : "doesn't exist");
usr.sbin/bluetooth/hcsecd/hcsecd.c
404
if (key->key == NULL) {
usr.sbin/bluetooth/hcsecd/hcsecd.c
405
key->key = (uint8_t *) malloc(NG_HCI_KEY_SIZE);
usr.sbin/bluetooth/hcsecd/hcsecd.c
406
if (key->key == NULL) {
usr.sbin/bluetooth/hcsecd/hcsecd.c
412
memcpy(key->key, &ep->key, NG_HCI_KEY_SIZE);
usr.sbin/bluetooth/hcsecd/hcsecd.c
56
(int sock, struct sockaddr_hci *addr, bdaddr_p bdaddr, uint8_t *key);
usr.sbin/bluetooth/hcsecd/hcsecd.h
45
uint8_t *key; /* link key (or NULL if no key) */
usr.sbin/bluetooth/hcsecd/parser.y
106
| key
usr.sbin/bluetooth/hcsecd/parser.y
112
if (!bt_aton($2, &key->bdaddr)) {
usr.sbin/bluetooth/hcsecd/parser.y
122
if (key->name != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
123
free(key->name);
usr.sbin/bluetooth/hcsecd/parser.y
125
key->name = strdup($2);
usr.sbin/bluetooth/hcsecd/parser.y
126
if (key->name == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
134
key: T_KEY T_HEXSTRING
usr.sbin/bluetooth/hcsecd/parser.y
138
if (key->key != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
139
free(key->key);
usr.sbin/bluetooth/hcsecd/parser.y
141
key->key = (uint8_t *) malloc(NG_HCI_KEY_SIZE);
usr.sbin/bluetooth/hcsecd/parser.y
142
if (key->key == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
148
memset(key->key, 0, NG_HCI_KEY_SIZE);
usr.sbin/bluetooth/hcsecd/parser.y
155
key->key[i] = hexa2int8((char *)($2) + 2*i);
usr.sbin/bluetooth/hcsecd/parser.y
159
if (key->key != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
160
free(key->key);
usr.sbin/bluetooth/hcsecd/parser.y
162
key->key = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
168
if (key->pin != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
169
free(key->pin);
usr.sbin/bluetooth/hcsecd/parser.y
171
key->pin = strdup($2);
usr.sbin/bluetooth/hcsecd/parser.y
172
if (key->pin == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
180
if (key->pin != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
181
free(key->pin);
usr.sbin/bluetooth/hcsecd/parser.y
183
key->pin = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
231
link_key_p key = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
233
while ((key = LIST_FIRST(&link_keys)) != NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
234
LIST_REMOVE(key, next);
usr.sbin/bluetooth/hcsecd/parser.y
235
free_key(key);
usr.sbin/bluetooth/hcsecd/parser.y
243
link_key_p key = NULL, defkey = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
245
LIST_FOREACH(key, &link_keys, next) {
usr.sbin/bluetooth/hcsecd/parser.y
246
if (memcmp(bdaddr, &key->bdaddr, sizeof(key->bdaddr)) == 0)
usr.sbin/bluetooth/hcsecd/parser.y
250
if (memcmp(NG_HCI_BDADDR_ANY, &key->bdaddr,
usr.sbin/bluetooth/hcsecd/parser.y
251
sizeof(key->bdaddr)) == 0)
usr.sbin/bluetooth/hcsecd/parser.y
252
defkey = key;
usr.sbin/bluetooth/hcsecd/parser.y
255
return ((key != NULL)? key : defkey);
usr.sbin/bluetooth/hcsecd/parser.y
263
link_key_p key = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
266
LIST_FOREACH(key, &link_keys, next) {
usr.sbin/bluetooth/hcsecd/parser.y
267
if (key->key != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
270
key->key[0], key->key[1], key->key[2],
usr.sbin/bluetooth/hcsecd/parser.y
271
key->key[3], key->key[4], key->key[5],
usr.sbin/bluetooth/hcsecd/parser.y
272
key->key[6], key->key[7], key->key[8],
usr.sbin/bluetooth/hcsecd/parser.y
273
key->key[9], key->key[10], key->key[11],
usr.sbin/bluetooth/hcsecd/parser.y
274
key->key[12], key->key[13], key->key[14],
usr.sbin/bluetooth/hcsecd/parser.y
275
key->key[15]);
usr.sbin/bluetooth/hcsecd/parser.y
282
(key->name != NULL)? key->name : "noname",
usr.sbin/bluetooth/hcsecd/parser.y
283
bt_ntoa(&key->bdaddr, NULL),
usr.sbin/bluetooth/hcsecd/parser.y
284
(key->pin != NULL)? key->pin : "nopin",
usr.sbin/bluetooth/hcsecd/parser.y
285
(key->key != NULL)? buffer : "nokey");
usr.sbin/bluetooth/hcsecd/parser.y
295
link_key_t *key = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
321
if ((key = get_key(&bdaddr, 1)) == NULL)
usr.sbin/bluetooth/hcsecd/parser.y
324
if (key->key == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
325
key->key = (uint8_t *) malloc(NG_HCI_KEY_SIZE);
usr.sbin/bluetooth/hcsecd/parser.y
326
if (key->key == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
332
memset(key->key, 0, NG_HCI_KEY_SIZE);
usr.sbin/bluetooth/hcsecd/parser.y
339
key->key[i] = hexa2int8(cp + 2*i);
usr.sbin/bluetooth/hcsecd/parser.y
343
bt_ntoa(&key->bdaddr, NULL),
usr.sbin/bluetooth/hcsecd/parser.y
344
(key->name != NULL)? key->name : "No name");
usr.sbin/bluetooth/hcsecd/parser.y
356
link_key_p key = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
367
LIST_FOREACH(key, &link_keys, next) {
usr.sbin/bluetooth/hcsecd/parser.y
368
if (key->key == NULL)
usr.sbin/bluetooth/hcsecd/parser.y
373
bt_ntoa(&key->bdaddr, NULL),
usr.sbin/bluetooth/hcsecd/parser.y
374
key->key[0], key->key[1], key->key[2], key->key[3],
usr.sbin/bluetooth/hcsecd/parser.y
375
key->key[4], key->key[5], key->key[6], key->key[7],
usr.sbin/bluetooth/hcsecd/parser.y
376
key->key[8], key->key[9], key->key[10], key->key[11],
usr.sbin/bluetooth/hcsecd/parser.y
377
key->key[12], key->key[13], key->key[14], key->key[15]);
usr.sbin/bluetooth/hcsecd/parser.y
400
free_key(link_key_p key)
usr.sbin/bluetooth/hcsecd/parser.y
402
if (key->name != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
403
free(key->name);
usr.sbin/bluetooth/hcsecd/parser.y
404
if (key->key != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
405
free(key->key);
usr.sbin/bluetooth/hcsecd/parser.y
406
if (key->pin != NULL)
usr.sbin/bluetooth/hcsecd/parser.y
407
free(key->pin);
usr.sbin/bluetooth/hcsecd/parser.y
409
memset(key, 0, sizeof(*key));
usr.sbin/bluetooth/hcsecd/parser.y
410
free(key);
usr.sbin/bluetooth/hcsecd/parser.y
51
static void free_key (link_key_p key);
usr.sbin/bluetooth/hcsecd/parser.y
59
static link_key_p key = NULL;
usr.sbin/bluetooth/hcsecd/parser.y
77
key = (link_key_p) malloc(sizeof(*key));
usr.sbin/bluetooth/hcsecd/parser.y
78
if (key == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
84
memset(key, 0, sizeof(*key));
usr.sbin/bluetooth/hcsecd/parser.y
88
if (get_key(&key->bdaddr, 1) != NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
91
bt_ntoa(&key->bdaddr, NULL));
usr.sbin/bluetooth/hcsecd/parser.y
92
free_key(key);
usr.sbin/bluetooth/hcsecd/parser.y
94
LIST_INSERT_HEAD(&link_keys, key, next);
usr.sbin/bluetooth/hcsecd/parser.y
96
key = NULL;
usr.sbin/boot0cfg/boot0cfg.c
504
u_int8_t *key;
usr.sbin/boot0cfg/boot0cfg.c
533
if (!memcmp(bs + p->off, p->key, p->len)) /* match */
usr.sbin/bsdinstall/partedit/diskmenu.c
66
conf.key.f1_message="[\\Z1\\ZbC\\Znreate]: a new partition.\n"
usr.sbin/ctladm/ctladm.c
2323
uint64_t key = 0, sa_key = 0;
usr.sbin/ctladm/ctladm.c
2344
key = strtoull(optarg, NULL, 0);
usr.sbin/ctladm/ctladm.c
2385
/*key*/ key,
usr.sbin/ctld/kernel.cc
598
const char *key = pair.first.c_str();
usr.sbin/ctld/kernel.cc
604
if (!cl->add_option(key, value))
usr.sbin/ctld/kernel.cc
607
key, (uintmax_t)lun.lun_id,
usr.sbin/ctld/nvmf.cc
103
parse_bool(const nvlist_t *nvl, const char *key, bool def)
usr.sbin/ctld/nvmf.cc
107
if (!nvlist_exists_string(nvl, key))
usr.sbin/ctld/nvmf.cc
110
value = nvlist_get_string(nvl, key);
usr.sbin/ctld/nvmf.cc
118
log_warnx("Invalid value \"%s\" for boolean option %s", value, key);
usr.sbin/ctld/nvmf.cc
123
parse_number(const nvlist_t *nvl, const char *key, uint64_t def, uint64_t minv,
usr.sbin/ctld/nvmf.cc
129
if (!nvlist_exists_string(nvl, key))
usr.sbin/ctld/nvmf.cc
132
value = nvlist_get_string(nvl, key);
usr.sbin/ctld/nvmf.cc
137
log_warnx("Invalid value \"%s\" for numeric option %s", value, key);
usr.sbin/ctld/uclparse.cc
1007
tmp.key().c_str(),
usr.sbin/ctld/uclparse.cc
1013
if (key == "dscp") {
usr.sbin/ctld/uclparse.cc
1018
if (key == "pcp") {
usr.sbin/ctld/uclparse.cc
1035
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
1037
if (key == "auth-group") {
usr.sbin/ctld/uclparse.cc
1048
if (key == "auth-type") {
usr.sbin/ctld/uclparse.cc
1059
if (key == "host-address") {
usr.sbin/ctld/uclparse.cc
1078
if (key == "host-nqn") {
usr.sbin/ctld/uclparse.cc
1097
if (key == "transport-group") {
usr.sbin/ctld/uclparse.cc
1111
if (key == "namespace") {
usr.sbin/ctld/uclparse.cc
1130
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
1132
if (key == "alias") {
usr.sbin/ctld/uclparse.cc
1143
if (key == "auth-group") {
usr.sbin/ctld/uclparse.cc
1154
if (key == "auth-type") {
usr.sbin/ctld/uclparse.cc
1165
if (key == "chap") {
usr.sbin/ctld/uclparse.cc
1182
if (key == "chap-mutual") {
usr.sbin/ctld/uclparse.cc
1200
if (key == "initiator-name") {
usr.sbin/ctld/uclparse.cc
1219
if (key == "initiator-portal") {
usr.sbin/ctld/uclparse.cc
1238
if (key == "portal-group") {
usr.sbin/ctld/uclparse.cc
1251
if (key == "port") {
usr.sbin/ctld/uclparse.cc
1262
if (key == "redirect") {
usr.sbin/ctld/uclparse.cc
1273
if (key == "lun") {
usr.sbin/ctld/uclparse.cc
1299
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
1301
if (key == "backend") {
usr.sbin/ctld/uclparse.cc
1312
if (key == "blocksize") {
usr.sbin/ctld/uclparse.cc
1323
if (key == "device-id") {
usr.sbin/ctld/uclparse.cc
1334
if (key == "device-type") {
usr.sbin/ctld/uclparse.cc
1345
if (key == "ctl-lun") {
usr.sbin/ctld/uclparse.cc
1356
if (key == "options") {
usr.sbin/ctld/uclparse.cc
1364
if (!lun_add_option(child.key().c_str(),
usr.sbin/ctld/uclparse.cc
1370
if (key == "path") {
usr.sbin/ctld/uclparse.cc
1381
if (key == "serial") {
usr.sbin/ctld/uclparse.cc
1392
if (key == "size") {
usr.sbin/ctld/uclparse.cc
283
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
284
if (!key.empty()) {
usr.sbin/ctld/uclparse.cc
285
id = strtoul(key.c_str(), &end, 0);
usr.sbin/ctld/uclparse.cc
288
key.c_str(), t_name);
usr.sbin/ctld/uclparse.cc
302
if (key.empty()) {
usr.sbin/ctld/uclparse.cc
338
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
339
if (!key.empty()) {
usr.sbin/ctld/uclparse.cc
340
id = strtoul(key.c_str(), &end, 0);
usr.sbin/ctld/uclparse.cc
343
" is invalid", key.c_str(), t_name);
usr.sbin/ctld/uclparse.cc
358
if (key.empty()) {
usr.sbin/ctld/uclparse.cc
393
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
395
if (key == "debug") {
usr.sbin/ctld/uclparse.cc
404
if (key == "timeout") {
usr.sbin/ctld/uclparse.cc
413
if (key == "maxproc") {
usr.sbin/ctld/uclparse.cc
422
if (key == "pidfile") {
usr.sbin/ctld/uclparse.cc
433
if (key == "isns-server") {
usr.sbin/ctld/uclparse.cc
450
if (key == "isns-period") {
usr.sbin/ctld/uclparse.cc
459
if (key == "isns-timeout") {
usr.sbin/ctld/uclparse.cc
468
if (key == "auth-group") {
usr.sbin/ctld/uclparse.cc
472
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
481
if (key == "portal-group") {
usr.sbin/ctld/uclparse.cc
485
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
494
if (key == "transport-group") {
usr.sbin/ctld/uclparse.cc
498
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
507
if (key == "lun") {
usr.sbin/ctld/uclparse.cc
510
if (!uclparse_lun(child.key().c_str(),
usr.sbin/ctld/uclparse.cc
523
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
525
if (key == "controller") {
usr.sbin/ctld/uclparse.cc
529
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
538
if (key == "target") {
usr.sbin/ctld/uclparse.cc
542
child.key().c_str(), child))
usr.sbin/ctld/uclparse.cc
563
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
565
if (key == "auth-type") {
usr.sbin/ctld/uclparse.cc
570
if (key == "chap") {
usr.sbin/ctld/uclparse.cc
587
if (key == "chap-mutual") {
usr.sbin/ctld/uclparse.cc
604
if (key == "host-address") {
usr.sbin/ctld/uclparse.cc
623
if (key == "host-nqn") {
usr.sbin/ctld/uclparse.cc
642
if (key == "initiator-name") {
usr.sbin/ctld/uclparse.cc
661
if (key == "initiator-portal") {
usr.sbin/ctld/uclparse.cc
696
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
697
if (key == "be" || key == "cs0")
usr.sbin/ctld/uclparse.cc
699
else if (key == "ef")
usr.sbin/ctld/uclparse.cc
701
else if (key == "cs0")
usr.sbin/ctld/uclparse.cc
703
else if (key == "cs1")
usr.sbin/ctld/uclparse.cc
705
else if (key == "cs2")
usr.sbin/ctld/uclparse.cc
707
else if (key == "cs3")
usr.sbin/ctld/uclparse.cc
709
else if (key == "cs4")
usr.sbin/ctld/uclparse.cc
711
else if (key == "cs5")
usr.sbin/ctld/uclparse.cc
713
else if (key == "cs6")
usr.sbin/ctld/uclparse.cc
715
else if (key == "cs7")
usr.sbin/ctld/uclparse.cc
717
else if (key == "af11")
usr.sbin/ctld/uclparse.cc
719
else if (key == "af12")
usr.sbin/ctld/uclparse.cc
721
else if (key == "af13")
usr.sbin/ctld/uclparse.cc
723
else if (key == "af21")
usr.sbin/ctld/uclparse.cc
725
else if (key == "af22")
usr.sbin/ctld/uclparse.cc
727
else if (key == "af23")
usr.sbin/ctld/uclparse.cc
729
else if (key == "af31")
usr.sbin/ctld/uclparse.cc
731
else if (key == "af32")
usr.sbin/ctld/uclparse.cc
733
else if (key == "af33")
usr.sbin/ctld/uclparse.cc
735
else if (key == "af41")
usr.sbin/ctld/uclparse.cc
737
else if (key == "af42")
usr.sbin/ctld/uclparse.cc
739
else if (key == "af43")
usr.sbin/ctld/uclparse.cc
768
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
770
if (key == "discovery-auth-group") {
usr.sbin/ctld/uclparse.cc
783
if (key == "discovery-filter") {
usr.sbin/ctld/uclparse.cc
796
if (key == "foreign") {
usr.sbin/ctld/uclparse.cc
800
if (key == "listen") {
usr.sbin/ctld/uclparse.cc
820
if (key == "listen-iser") {
usr.sbin/ctld/uclparse.cc
840
if (key == "offload") {
usr.sbin/ctld/uclparse.cc
853
if (key == "redirect") {
usr.sbin/ctld/uclparse.cc
866
if (key == "options") {
usr.sbin/ctld/uclparse.cc
875
tmp.key().c_str(),
usr.sbin/ctld/uclparse.cc
881
if (key == "tag") {
usr.sbin/ctld/uclparse.cc
892
if (key == "dscp") {
usr.sbin/ctld/uclparse.cc
897
if (key == "pcp") {
usr.sbin/ctld/uclparse.cc
910
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
912
if (key.empty()) {
usr.sbin/ctld/uclparse.cc
918
if (key == "tcp") {
usr.sbin/ctld/uclparse.cc
930
} else if (key == "discovery-tcp") {
usr.sbin/ctld/uclparse.cc
944
"transport-group \"%s\"", key.c_str(), pg_name);
usr.sbin/ctld/uclparse.cc
959
std::string key = obj.key();
usr.sbin/ctld/uclparse.cc
961
if (key == "discovery-auth-group") {
usr.sbin/ctld/uclparse.cc
974
if (key == "discovery-filter") {
usr.sbin/ctld/uclparse.cc
987
if (key == "listen") {
usr.sbin/ctld/uclparse.cc
998
if (key == "options") {
usr.sbin/dconschat/dconschat.c
288
printf("%d %02x %06x\n", state, reg->key, reg->val);
usr.sbin/dconschat/dconschat.c
291
if (reg->key == CSRKEY_SPEC &&
usr.sbin/dconschat/dconschat.c
296
if (reg->key == CSRKEY_VER &&
usr.sbin/dconschat/dconschat.c
301
switch (reg->key) {
usr.sbin/fstyp/hammer2_disk.h
415
#define H2FMZONEBASE(key) ((key) & ~HAMMER2_FREEMAP_LEVEL1_MASK)
usr.sbin/fstyp/hammer2_disk.h
416
#define H2FMBASE(key, radix) ((key) & ~(((hammer2_off_t)1 << (radix)) - 1))
usr.sbin/fstyp/hammer2_disk.h
671
hammer2_key_t key; /* key specification */
usr.sbin/fwcontrol/fwcontrol.c
476
reg->key,
usr.sbin/fwcontrol/fwcontrol.c
477
key_types[(reg->key & CSRTYPE_MASK)>>6],
usr.sbin/fwcontrol/fwcontrol.c
478
reg->key & CSRKEY_MASK, reg->val,
usr.sbin/iovctl/parse.c
103
report_config_error(key, obj, type);
usr.sbin/iovctl/parse.c
105
nvlist_add_number(config, key, uval);
usr.sbin/iovctl/parse.c
113
add_unicast_mac_config(const char *key, const ucl_object_t *obj, nvlist_t *config)
usr.sbin/iovctl/parse.c
123
report_config_error(key, obj, "unicast-mac");
usr.sbin/iovctl/parse.c
134
report_config_error(key, obj, "unicast-mac");
usr.sbin/iovctl/parse.c
139
report_config_error(key, obj, "unicast-mac");
usr.sbin/iovctl/parse.c
142
report_config_error(key, obj, "unicast-mac");
usr.sbin/iovctl/parse.c
145
report_config_error(key, obj, "unicast-mac");
usr.sbin/iovctl/parse.c
154
report_config_error(key, obj, "unicast-mac");
usr.sbin/iovctl/parse.c
158
ucl_object_tostring(obj), key);
usr.sbin/iovctl/parse.c
160
nvlist_add_binary(config, key, mac, ETHER_ADDR_LEN);
usr.sbin/iovctl/parse.c
164
add_vlan_config(const char *key, const ucl_object_t *obj, nvlist_t *config)
usr.sbin/iovctl/parse.c
171
nvlist_add_number(config, key, VF_VLAN_TRUNK);
usr.sbin/iovctl/parse.c
174
report_config_error(key, obj, "vlan");
usr.sbin/iovctl/parse.c
178
report_config_error(key, obj, "vlan");
usr.sbin/iovctl/parse.c
181
report_config_error(key, obj, "vlan");
usr.sbin/iovctl/parse.c
183
nvlist_add_number(config, key, val);
usr.sbin/iovctl/parse.c
191
add_config(const char *key, const ucl_object_t *obj, nvlist_t *config,
usr.sbin/iovctl/parse.c
199
add_bool_config(key, obj, config);
usr.sbin/iovctl/parse.c
201
add_string_config(key, obj, config);
usr.sbin/iovctl/parse.c
203
add_uint_config(key, obj, config, type, UINT8_MAX);
usr.sbin/iovctl/parse.c
205
add_uint_config(key, obj, config, type, UINT16_MAX);
usr.sbin/iovctl/parse.c
207
add_uint_config(key, obj, config, type, UINT32_MAX);
usr.sbin/iovctl/parse.c
209
add_uint_config(key, obj, config, type, UINT64_MAX);
usr.sbin/iovctl/parse.c
211
add_unicast_mac_config(key, obj, config);
usr.sbin/iovctl/parse.c
213
add_vlan_config(key, obj, config);
usr.sbin/iovctl/parse.c
231
const char *key;
usr.sbin/iovctl/parse.c
254
key = ucl_object_key(obj);
usr.sbin/iovctl/parse.c
256
if (nvlist_exists_nvlist(iov_schema, key))
usr.sbin/iovctl/parse.c
257
add_config(key, obj, iov_config,
usr.sbin/iovctl/parse.c
258
nvlist_get_nvlist(iov_schema, key));
usr.sbin/iovctl/parse.c
259
else if (nvlist_exists_nvlist(driver_schema, key))
usr.sbin/iovctl/parse.c
260
add_config(key, obj, driver_config,
usr.sbin/iovctl/parse.c
261
nvlist_get_nvlist(driver_schema, key));
usr.sbin/iovctl/parse.c
263
errx(1, "%s: Invalid config key '%s'", subsystem, key);
usr.sbin/iovctl/parse.c
286
const char *errmsg, *key;
usr.sbin/iovctl/parse.c
317
key = ucl_object_key(obj);
usr.sbin/iovctl/parse.c
319
if (strcasecmp(key, PF_CONFIG_NAME) == 0)
usr.sbin/iovctl/parse.c
320
parse_device_config(obj, config, key, pf_schema);
usr.sbin/iovctl/parse.c
321
else if (strcasecmp(key, DEFAULT_SCHEMA_NAME) == 0) {
usr.sbin/iovctl/parse.c
337
parse_device_config(obj, config, key, vf_schema);
usr.sbin/iovctl/parse.c
338
} else if (regexec(&vf_pat, key, 0, NULL, 0) == 0) {
usr.sbin/iovctl/parse.c
340
parse_device_config(obj, config, key, vf_schema);
usr.sbin/iovctl/parse.c
342
errx(1, "Unexpected top-level node: %s", key);
usr.sbin/iovctl/parse.c
363
const char *key, *device;
usr.sbin/iovctl/parse.c
367
key = ucl_object_key(obj);
usr.sbin/iovctl/parse.c
369
if (strcasecmp(key, "device") == 0) {
usr.sbin/iovctl/parse.c
399
const char *errmsg, *key;
usr.sbin/iovctl/parse.c
419
key = ucl_object_key(obj);
usr.sbin/iovctl/parse.c
421
if (strcasecmp(key, PF_CONFIG_NAME) == 0) {
usr.sbin/iovctl/parse.c
46
report_config_error(const char *key, const ucl_object_t *obj, const char *type)
usr.sbin/iovctl/parse.c
50
ucl_object_tostring(obj), key, type);
usr.sbin/iovctl/parse.c
58
add_bool_config(const char *key, const ucl_object_t *obj, nvlist_t *config)
usr.sbin/iovctl/parse.c
63
report_config_error(key, obj, "bool");
usr.sbin/iovctl/parse.c
65
nvlist_add_bool(config, key, val);
usr.sbin/iovctl/parse.c
73
add_string_config(const char *key, const ucl_object_t *obj, nvlist_t *config)
usr.sbin/iovctl/parse.c
78
report_config_error(key, obj, "string");
usr.sbin/iovctl/parse.c
80
nvlist_add_string(config, key, val);
usr.sbin/iovctl/parse.c
88
add_uint_config(const char *key, const ucl_object_t *obj, nvlist_t *config,
usr.sbin/iovctl/parse.c
96
report_config_error(key, obj, type);
usr.sbin/iovctl/parse.c
99
report_config_error(key, obj, type);
usr.sbin/iovctl/validate.c
228
const char *key;
usr.sbin/iovctl/validate.c
261
while ((key = nvlist_next(config, &type, &cookie)) != NULL) {
usr.sbin/iovctl/validate.c
262
if (regexec(vf_pat, key, nitems(matches), matches, 0) == 0) {
usr.sbin/iovctl/validate.c
263
vf_num = parse_vf_num(key, matches);
usr.sbin/iovctl/validate.c
76
parse_vf_num(const char *key, regmatch_t *matches)
usr.sbin/iovctl/validate.c
80
vf_num = strtoul(key + matches[1].rm_so, NULL, 10);
usr.sbin/kbdcontrol/kbdcontrol.c
125
struct acc_t *key);
usr.sbin/kbdcontrol/kbdcontrol.c
128
struct keyent_t *key);
usr.sbin/kbdcontrol/kbdcontrol.c
328
map->key[scancode].spcl = 0;
usr.sbin/kbdcontrol/kbdcontrol.c
333
map->key[scancode].spcl |= (0x80 >> i);
usr.sbin/kbdcontrol/kbdcontrol.c
334
map->key[scancode].map[i] = def & ~SPECIAL;
usr.sbin/kbdcontrol/kbdcontrol.c
339
map->key[scancode].flgs = number;
usr.sbin/kbdcontrol/kbdcontrol.c
531
print_key_definition_line(FILE *fp, int scancode, struct keyent_t *key)
usr.sbin/kbdcontrol/kbdcontrol.c
543
if (key->spcl & (0x80 >> i))
usr.sbin/kbdcontrol/kbdcontrol.c
544
print_entry(fp, key->map[i] | SPECIAL);
usr.sbin/kbdcontrol/kbdcontrol.c
546
print_entry(fp, key->map[i]);
usr.sbin/kbdcontrol/kbdcontrol.c
550
switch (key->flgs) {
usr.sbin/kbdcontrol/kbdcontrol.c
567
print_accent_definition_line(FILE *fp, int accent, struct acc_t *key)
usr.sbin/kbdcontrol/kbdcontrol.c
572
if (key->accchar == 0)
usr.sbin/kbdcontrol/kbdcontrol.c
577
if (isascii(key->accchar) && isprint(key->accchar))
usr.sbin/kbdcontrol/kbdcontrol.c
578
fprintf(fp, "'%c' ", key->accchar);
usr.sbin/kbdcontrol/kbdcontrol.c
580
fprintf(fp, "0x%02x ", key->accchar);
usr.sbin/kbdcontrol/kbdcontrol.c
582
fprintf(fp, "%03d ", key->accchar);
usr.sbin/kbdcontrol/kbdcontrol.c
585
c = key->map[i][0];
usr.sbin/kbdcontrol/kbdcontrol.c
596
c = key->map[i][1];
usr.sbin/kbdcontrol/kbdcontrol.c
742
if (keymap->key[i].spcl & (0x80 >> j))
usr.sbin/kbdcontrol/kbdcontrol.c
743
dump_entry(keymap->key[i].map[j] | SPECIAL);
usr.sbin/kbdcontrol/kbdcontrol.c
745
dump_entry(keymap->key[i].map[j]);
usr.sbin/kbdcontrol/kbdcontrol.c
748
(unsigned)keymap->key[i].spcl,
usr.sbin/kbdcontrol/kbdcontrol.c
749
(unsigned)keymap->key[i].flgs);
usr.sbin/kbdcontrol/kbdcontrol.c
960
print_key_definition_line(stdout, i, &keymap.key[i]);
usr.sbin/kbdmap/kbdmap.c
390
conf.key.enable_esc = true;
usr.sbin/kbdmap/kbdmap.c
80
get_keymap(const char *key)
usr.sbin/kbdmap/kbdmap.c
85
if (!strcmp(km->keym, key))
usr.sbin/kldxref/kldxref.c
269
char type[8], key[32];
usr.sbin/kldxref/kldxref.c
293
if (semi - colon >= sizeof(key))
usr.sbin/kldxref/kldxref.c
295
strncpy(key, colon + 1, semi - colon - 1);
usr.sbin/kldxref/kldxref.c
296
key[semi - colon - 1] = '\0';
usr.sbin/kldxref/kldxref.c
302
if (strlen(colon + 1) >= sizeof(key))
usr.sbin/kldxref/kldxref.c
304
strcpy(key, colon + 1);
usr.sbin/kldxref/kldxref.c
308
printf("Found type %s for name %s\n", type, key);
usr.sbin/kldxref/kldxref.c
318
elt = malloc(sizeof(struct pnp_elt) + strlen(key) + 1);
usr.sbin/kldxref/kldxref.c
376
for (word = strtok_r(key, "/", &ctx);
usr.sbin/kldxref/kldxref.c
403
fprintf(fp, "%c:%s;", newtype, key);
usr.sbin/lpr/lpd/printjob.c
1477
scnline(int key, char *p, int c)
usr.sbin/lpr/lpd/printjob.c
1482
key <<= 1;
usr.sbin/lpr/lpd/printjob.c
1483
*p++ = key & 0200 ? c : BACKGND;
usr.sbin/makefs/cd9660.h
209
uint64_t key;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
261
ve->key[0] = 0x55;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
262
ve->key[1] = 0xAA;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
277
ve->key[0], ve->key[1], checksum));
usr.sbin/makefs/cd9660/cd9660_eltorito.h
80
u_char key [ISODCL(0x1E,0x1F)];
usr.sbin/makefs/cd9660/iso9660_rrip.c
654
if (a->key < b->key)
usr.sbin/makefs/cd9660/iso9660_rrip.c
656
if (a->key > b->key)
usr.sbin/makefs/cd9660/iso9660_rrip.c
666
struct inode_map_node lookup = { .key = in };
usr.sbin/makefs/cd9660/iso9660_rrip.c
681
node->key = in;
usr.sbin/makefs/zfs/dsl.c
155
dsl_dir_set_prop(zfs_opt_t *zfs, zfs_dsl_dir_t *dir, const char *key,
usr.sbin/makefs/zfs/dsl.c
162
errx(1, "missing value for property `%s'", key);
usr.sbin/makefs/zfs/dsl.c
163
if (nvpair_find(nvl, key) != NULL)
usr.sbin/makefs/zfs/dsl.c
164
errx(1, "property `%s' already set", key);
usr.sbin/makefs/zfs/dsl.c
166
if (strcmp(key, "mountpoint") == 0) {
usr.sbin/makefs/zfs/dsl.c
178
(void)nvlist_add_string(nvl, key, val);
usr.sbin/makefs/zfs/dsl.c
179
} else if (strcmp(key, "atime") == 0 || strcmp(key, "exec") == 0 ||
usr.sbin/makefs/zfs/dsl.c
180
strcmp(key, "setuid") == 0) {
usr.sbin/makefs/zfs/dsl.c
182
(void)nvlist_add_uint64(nvl, key, 1);
usr.sbin/makefs/zfs/dsl.c
184
(void)nvlist_add_uint64(nvl, key, 0);
usr.sbin/makefs/zfs/dsl.c
186
errx(1, "invalid value `%s' for %s", val, key);
usr.sbin/makefs/zfs/dsl.c
187
} else if (strcmp(key, "canmount") == 0) {
usr.sbin/makefs/zfs/dsl.c
189
(void)nvlist_add_uint64(nvl, key, 2);
usr.sbin/makefs/zfs/dsl.c
191
(void)nvlist_add_uint64(nvl, key, 1);
usr.sbin/makefs/zfs/dsl.c
193
(void)nvlist_add_uint64(nvl, key, 0);
usr.sbin/makefs/zfs/dsl.c
195
errx(1, "invalid value `%s' for %s", val, key);
usr.sbin/makefs/zfs/dsl.c
196
} else if (strcmp(key, "compression") == 0) {
usr.sbin/makefs/zfs/dsl.c
222
nvlist_add_uint64(nvl, key,
usr.sbin/makefs/zfs/dsl.c
230
errx(1, "unknown property `%s'", key);
usr.sbin/makefs/zfs/dsl.c
310
char *key, *val;
usr.sbin/makefs/zfs/dsl.c
314
key = val = param;
usr.sbin/makefs/zfs/dsl.c
315
key = strsep(&val, "=");
usr.sbin/makefs/zfs/dsl.c
316
dsl_dir_set_prop(zfs, dir, key, val);
usr.sbin/makefs/zfs/dsl.c
72
nvlist_find_string(nvlist_t *nvl, const char *key, char **retp)
usr.sbin/makefs/zfs/dsl.c
77
error = nvlist_find(nvl, key, DATA_TYPE_STRING, NULL, &str, &len);
usr.sbin/makefs/zfs/dsl.c
86
nvlist_find_uint64(nvlist_t *nvl, const char *key, uint64_t *retp)
usr.sbin/makefs/zfs/dsl.c
88
return (nvlist_find(nvl, key, DATA_TYPE_UINT64, NULL, retp, NULL));
usr.sbin/moused/moused/quirks.c
1006
} else if (streq(key, quirk_get_name(MOUSED_MAP_Z_AXIS))) {
usr.sbin/moused/moused/quirks.c
1007
} else if (streq(key, quirk_get_name(MOUSED_VIRTUAL_SCROLL_ENABLE))) {
usr.sbin/moused/moused/quirks.c
1014
} else if (streq(key, quirk_get_name(MOUSED_HOR_VIRTUAL_SCROLL_ENABLE))) {
usr.sbin/moused/moused/quirks.c
1021
} else if (streq(key, quirk_get_name(MOUSED_VIRTUAL_SCROLL_SPEED))) {
usr.sbin/moused/moused/quirks.c
1028
} else if (streq(key, quirk_get_name(MOUSED_VIRTUAL_SCROLL_THRESHOLD))) {
usr.sbin/moused/moused/quirks.c
1035
} else if (streq(key, quirk_get_name(MOUSED_WMODE))) {
usr.sbin/moused/moused/quirks.c
1042
} else if (streq(key, quirk_get_name(MOUSED_TWO_FINGER_SCROLL))) {
usr.sbin/moused/moused/quirks.c
1049
} else if (streq(key, quirk_get_name(MOUSED_NATURAL_SCROLL))) {
usr.sbin/moused/moused/quirks.c
1056
} else if (streq(key, quirk_get_name(MOUSED_THREE_FINGER_DRAG))) {
usr.sbin/moused/moused/quirks.c
1063
} else if (streq(key, quirk_get_name(MOUSED_SOFTBUTTON2_X))) {
usr.sbin/moused/moused/quirks.c
1070
} else if (streq(key, quirk_get_name(MOUSED_SOFTBUTTON3_X))) {
usr.sbin/moused/moused/quirks.c
1077
} else if (streq(key, quirk_get_name(MOUSED_SOFTBUTTONS_Y))) {
usr.sbin/moused/moused/quirks.c
1084
} else if (streq(key, quirk_get_name(MOUSED_TAP_TIMEOUT))) {
usr.sbin/moused/moused/quirks.c
1091
} else if (streq(key, quirk_get_name(MOUSED_TAP_PRESSURE_THRESHOLD))) {
usr.sbin/moused/moused/quirks.c
1098
} else if (streq(key, quirk_get_name(MOUSED_TAP_MAX_DELTA))) {
usr.sbin/moused/moused/quirks.c
1105
} else if (streq(key, quirk_get_name(MOUSED_TAPHOLD_TIMEOUT))) {
usr.sbin/moused/moused/quirks.c
1112
} else if (streq(key, quirk_get_name(MOUSED_VSCROLL_MIN_DELTA))) {
usr.sbin/moused/moused/quirks.c
1119
} else if (streq(key, quirk_get_name(MOUSED_VSCROLL_HOR_AREA))) {
usr.sbin/moused/moused/quirks.c
1126
} else if (streq(key, quirk_get_name(MOUSED_VSCROLL_VER_AREA))) {
usr.sbin/moused/moused/quirks.c
1134
qlog_error(ctx, "Unknown key %s in %s\n", key, s->name);
usr.sbin/moused/moused/quirks.c
1163
const char *key = strv[0];
usr.sbin/moused/moused/quirks.c
1165
if (strlen(key) == 0 || strlen(value) == 0)
usr.sbin/moused/moused/quirks.c
1172
if (strstartswith(key, "Match"))
usr.sbin/moused/moused/quirks.c
1173
rc = parse_match(ctx, s, key, value);
usr.sbin/moused/moused/quirks.c
1174
else if (strstartswith(key, "Model"))
usr.sbin/moused/moused/quirks.c
1175
rc = parse_model(ctx, s, key, value);
usr.sbin/moused/moused/quirks.c
1176
else if (strstartswith(key, "Attr"))
usr.sbin/moused/moused/quirks.c
1177
rc = parse_attr(ctx, s, key, value);
usr.sbin/moused/moused/quirks.c
1178
else if (strstartswith(key, "Moused"))
usr.sbin/moused/moused/quirks.c
1179
rc = parse_moused(ctx, s, key, value);
usr.sbin/moused/moused/quirks.c
550
const char *key,
usr.sbin/moused/moused/quirks.c
562
if (streq(key, "MatchName")) {
usr.sbin/moused/moused/quirks.c
565
} else if (streq(key, "MatchUniq")) {
usr.sbin/moused/moused/quirks.c
568
} else if (streq(key, "MatchBus")) {
usr.sbin/moused/moused/quirks.c
584
} else if (streq(key, "MatchVendor")) {
usr.sbin/moused/moused/quirks.c
592
} else if (streq(key, "MatchProduct")) {
usr.sbin/moused/moused/quirks.c
605
} else if (streq(key, "MatchVersion")) {
usr.sbin/moused/moused/quirks.c
613
} else if (streq(key, "MatchDMIModalias")) {
usr.sbin/moused/moused/quirks.c
622
} else if (streq(key, "MatchUdevType") || streq(key, "MatchDevType")) {
usr.sbin/moused/moused/quirks.c
640
} else if (streq(key, "MatchDeviceTree")) {
usr.sbin/moused/moused/quirks.c
644
qlog_error(ctx, "Unknown match key '%s'\n", key);
usr.sbin/moused/moused/quirks.c
667
const char *key,
usr.sbin/moused/moused/quirks.c
673
assert(strstartswith(key, "Model"));
usr.sbin/moused/moused/quirks.c
679
if (streq(key, quirk_get_name(q))) {
usr.sbin/moused/moused/quirks.c
690
qlog_error(ctx, "Unknown key %s in %s\n", key, s->name);
usr.sbin/moused/moused/quirks.c
709
const char *key,
usr.sbin/moused/moused/quirks.c
720
if (streq(key, quirk_get_name(QUIRK_ATTR_SIZE_HINT))) {
usr.sbin/moused/moused/quirks.c
727
} else if (streq(key, quirk_get_name(QUIRK_ATTR_TOUCH_SIZE_RANGE))) {
usr.sbin/moused/moused/quirks.c
734
} else if (streq(key, quirk_get_name(QUIRK_ATTR_PALM_SIZE_THRESHOLD))) {
usr.sbin/moused/moused/quirks.c
741
} else if (streq(key, quirk_get_name(QUIRK_ATTR_LID_SWITCH_RELIABILITY))) {
usr.sbin/moused/moused/quirks.c
750
} else if (streq(key, quirk_get_name(QUIRK_ATTR_KEYBOARD_INTEGRATION))) {
usr.sbin/moused/moused/quirks.c
757
} else if (streq(key, quirk_get_name(QUIRK_ATTR_TRACKPOINT_INTEGRATION))) {
usr.sbin/moused/moused/quirks.c
764
} else if (streq(key, quirk_get_name(QUIRK_ATTR_TPKBCOMBO_LAYOUT))) {
usr.sbin/moused/moused/quirks.c
771
} else if (streq(key, quirk_get_name(QUIRK_ATTR_PRESSURE_RANGE))) {
usr.sbin/moused/moused/quirks.c
778
} else if (streq(key, quirk_get_name(QUIRK_ATTR_PALM_PRESSURE_THRESHOLD))) {
usr.sbin/moused/moused/quirks.c
785
} else if (streq(key, quirk_get_name(QUIRK_ATTR_RESOLUTION_HINT))) {
usr.sbin/moused/moused/quirks.c
792
} else if (streq(key, quirk_get_name(QUIRK_ATTR_TRACKPOINT_MULTIPLIER))) {
usr.sbin/moused/moused/quirks.c
799
} else if (streq(key, quirk_get_name(QUIRK_ATTR_USE_VELOCITY_AVERAGING))) {
usr.sbin/moused/moused/quirks.c
806
} else if (streq(key, quirk_get_name(QUIRK_ATTR_TABLET_SMOOTHING))) {
usr.sbin/moused/moused/quirks.c
813
} else if (streq(key, quirk_get_name(QUIRK_ATTR_THUMB_PRESSURE_THRESHOLD))) {
usr.sbin/moused/moused/quirks.c
820
} else if (streq(key, quirk_get_name(QUIRK_ATTR_THUMB_SIZE_THRESHOLD))) {
usr.sbin/moused/moused/quirks.c
827
} else if (streq(key, quirk_get_name(QUIRK_ATTR_MSC_TIMESTAMP))) {
usr.sbin/moused/moused/quirks.c
834
} else if (streq(key, quirk_get_name(QUIRK_ATTR_EVENT_CODE))) {
usr.sbin/moused/moused/quirks.c
853
} else if (streq(key, quirk_get_name(QUIRK_ATTR_INPUT_PROP))) {
usr.sbin/moused/moused/quirks.c
870
qlog_error(ctx, "Unknown key %s in %s\n", key, s->name);
usr.sbin/moused/moused/quirks.c
896
const char *key,
usr.sbin/moused/moused/quirks.c
908
if (streq(key, quirk_get_name(MOUSED_GRAB_DEVICE))) {
usr.sbin/moused/moused/quirks.c
915
} else if (streq(key, quirk_get_name(MOUSED_IGNORE_DEVICE))) {
usr.sbin/moused/moused/quirks.c
922
} else if (streq(key, quirk_get_name(MOUSED_CLICK_THRESHOLD))) {
usr.sbin/moused/moused/quirks.c
929
} else if (streq(key, quirk_get_name(MOUSED_DRIFT_TERMINATE))) {
usr.sbin/moused/moused/quirks.c
936
} else if (streq(key, quirk_get_name(MOUSED_DRIFT_DISTANCE))) {
usr.sbin/moused/moused/quirks.c
943
} else if (streq(key, quirk_get_name(MOUSED_DRIFT_TIME))) {
usr.sbin/moused/moused/quirks.c
950
} else if (streq(key, quirk_get_name(MOUSED_DRIFT_AFTER))) {
usr.sbin/moused/moused/quirks.c
957
} else if (streq(key, quirk_get_name(MOUSED_EMULATE_THIRD_BUTTON))) {
usr.sbin/moused/moused/quirks.c
964
} else if (streq(key, quirk_get_name(MOUSED_EMULATE_THIRD_BUTTON_TIMEOUT))) {
usr.sbin/moused/moused/quirks.c
971
} else if (streq(key, quirk_get_name(MOUSED_EXPONENTIAL_ACCEL))) {
usr.sbin/moused/moused/quirks.c
978
} else if (streq(key, quirk_get_name(MOUSED_EXPONENTIAL_OFFSET))) {
usr.sbin/moused/moused/quirks.c
985
} else if (streq(key, quirk_get_name(MOUSED_LINEAR_ACCEL_X))) {
usr.sbin/moused/moused/quirks.c
992
} else if (streq(key, quirk_get_name(MOUSED_LINEAR_ACCEL_Y))) {
usr.sbin/moused/moused/quirks.c
999
} else if (streq(key, quirk_get_name(MOUSED_LINEAR_ACCEL_Z))) {
usr.sbin/moused/msconvd/msconvd.c
1550
unsigned char key = (signed char)(((pBuf[0] & 0x03) << 6) |
usr.sbin/moused/msconvd/msconvd.c
1552
write(rodent.mremcfd, &key, 1);
usr.sbin/nscd/agents/group.c
118
group_lookup_func(const char *key, size_t key_size, char **buffer,
usr.sbin/nscd/agents/group.c
136
memcpy(&lookup_type, key, sizeof(enum nss_lookup_type));
usr.sbin/nscd/agents/group.c
143
memcpy(name, key + sizeof(enum nss_lookup_type), size - 1);
usr.sbin/nscd/agents/group.c
152
memcpy(&gid, key + sizeof(enum nss_lookup_type), sizeof(gid_t));
usr.sbin/nscd/agents/passwd.c
127
passwd_lookup_func(const char *key, size_t key_size, char **buffer,
usr.sbin/nscd/agents/passwd.c
145
memcpy(&lookup_type, key, sizeof(enum nss_lookup_type));
usr.sbin/nscd/agents/passwd.c
152
memcpy(login, key + sizeof(enum nss_lookup_type), size - 1);
usr.sbin/nscd/agents/passwd.c
161
memcpy(&uid, key + sizeof(enum nss_lookup_type), sizeof(uid_t));
usr.sbin/nscd/agents/services.c
121
services_lookup_func(const char *key, size_t key_size, char **buffer,
usr.sbin/nscd/agents/services.c
141
memcpy(&lookup_type, key, sizeof(enum nss_lookup_type));
usr.sbin/nscd/agents/services.c
148
memcpy(name, key + sizeof(enum nss_lookup_type), size);
usr.sbin/nscd/agents/services.c
164
memcpy(&port, key + sizeof(enum nss_lookup_type),
usr.sbin/nscd/agents/services.c
171
memcpy(proto, key + sizeof(enum nss_lookup_type) +
usr.sbin/nscd/cachelib.c
109
assert(hp1->key != NULL);
usr.sbin/nscd/cachelib.c
110
assert(hp2->key != NULL);
usr.sbin/nscd/cachelib.c
115
result = memcmp(hp1->key, hp2->key, min_size);
usr.sbin/nscd/cachelib.c
1203
ht_key.key = (char *)key_part; /* can't avoid casting here */
usr.sbin/nscd/cachelib.c
1221
free(ht_item_data->key);
usr.sbin/nscd/cachelib.c
125
return (memcmp(hp1->key, hp2->key, hp1->key_size));
usr.sbin/nscd/cachelib.c
137
assert(hp->key != NULL);
usr.sbin/nscd/cachelib.c
141
retval = (127 * retval + (unsigned char)hp->key[i]) %
usr.sbin/nscd/cachelib.c
155
entries_bsearch_cmp_func(const void *key, const void *ent)
usr.sbin/nscd/cachelib.c
158
assert(key != NULL);
usr.sbin/nscd/cachelib.c
161
return (strcmp((char const *)key,
usr.sbin/nscd/cachelib.c
233
free(ht_item_data->key);
usr.sbin/nscd/cachelib.c
302
free(ht_item_data->key);
usr.sbin/nscd/cachelib.c
393
ht_key.key = item->key;
usr.sbin/nscd/cachelib.c
404
free(ht_item_data->key);
usr.sbin/nscd/cachelib.c
695
cache_read(struct cache_entry_ *entry, const char *key, size_t key_size,
usr.sbin/nscd/cachelib.c
706
assert(key != NULL);
usr.sbin/nscd/cachelib.c
714
item_data.key = (char *)key;
usr.sbin/nscd/cachelib.c
741
free(find_res->key);
usr.sbin/nscd/cachelib.c
801
cache_write(struct cache_entry_ *entry, const char *key, size_t key_size,
usr.sbin/nscd/cachelib.c
815
assert(key != NULL);
usr.sbin/nscd/cachelib.c
823
item_data.key = (char *)key;
usr.sbin/nscd/cachelib.c
83
assert(hp1->key != NULL);
usr.sbin/nscd/cachelib.c
84
assert(hp2->key != NULL);
usr.sbin/nscd/cachelib.c
855
item_data.key = malloc(key_size);
usr.sbin/nscd/cachelib.c
856
memcpy(item_data.key, key, key_size);
usr.sbin/nscd/cachelib.c
867
policy_item->key = item_data.key;
usr.sbin/nscd/cachelib.c
877
connected_policy_item->key = policy_item->key;
usr.sbin/nscd/cachelib.c
89
result = memcmp(hp1->key, hp2->key, min_size);
usr.sbin/nscd/cachelib.c
96
return (memcmp(hp1->key, hp2->key, hp1->key_size));
usr.sbin/nscd/cachelib.h
111
char *key;
usr.sbin/nscd/cacheplcs.h
41
char *key;
usr.sbin/nscd/hashtable.h
177
type *name##_ENTRY_FIND(struct entry_ *the_entry, type *key) \
usr.sbin/nscd/hashtable.h
180
return ((type *)bsearch(key, the_entry->field.values, \
usr.sbin/nscd/hashtable.h
184
type *name##_ENTRY_FIND_SPECIAL(struct entry_ *the_entry, type *key, \
usr.sbin/nscd/hashtable.h
187
return ((type *)bsearch(key, the_entry->field.values, \
usr.sbin/nscd/hashtable.h
210
#define HASHTABLE_ENTRY_FIND(name, entry, key) \
usr.sbin/nscd/hashtable.h
211
(name##_ENTRY_FIND((entry), (key)))
usr.sbin/nscd/hashtable.h
213
#define HASHTABLE_ENTRY_FIND_SPECIAL(name, entry, key, cmp) \
usr.sbin/nscd/hashtable.h
214
(name##_ENTRY_FIND_SPECIAL((entry), (key), (cmp)))
usr.sbin/pkg/config.c
224
const char *key, *evkey;
usr.sbin/pkg/config.c
235
key = ucl_object_key(cur);
usr.sbin/pkg/config.c
236
if (key == NULL)
usr.sbin/pkg/config.c
242
for (j = 0; j < strlen(key); ++j)
usr.sbin/pkg/config.c
243
fputc(toupper(key[j]), buffp);
usr.sbin/pkg/config.c
247
if (strcmp(buf, c[i].key) == 0)
usr.sbin/pkg/config.c
264
"value for %s.\n", c[i].key);
usr.sbin/pkg/config.c
286
if (strcmp(c[i].key, "PKG_ENV") == 0) {
usr.sbin/pkg/config.c
377
const char *key, *reponame;
usr.sbin/pkg/config.c
395
key = ucl_object_key(cur);
usr.sbin/pkg/config.c
396
if (key == NULL)
usr.sbin/pkg/config.c
398
if (strcasecmp(key, "url") == 0) {
usr.sbin/pkg/config.c
403
} else if (strcasecmp(key, "mirror_type") == 0) {
usr.sbin/pkg/config.c
405
} else if (strcasecmp(key, "signature_type") == 0) {
usr.sbin/pkg/config.c
413
} else if (strcasecmp(key, "fingerprints") == 0) {
usr.sbin/pkg/config.c
418
} else if (strcasecmp(key, "pubkey") == 0) {
usr.sbin/pkg/config.c
423
} else if (strcasecmp(key, "enabled") == 0) {
usr.sbin/pkg/config.c
456
const char *key;
usr.sbin/pkg/config.c
459
key = ucl_object_key(cur);
usr.sbin/pkg/config.c
461
if (key == NULL)
usr.sbin/pkg/config.c
467
if (requested_repo != NULL && strcmp(requested_repo, key) != 0)
usr.sbin/pkg/config.c
53
const char *key;
usr.sbin/pkg/config.c
579
val = getenv(c[i].key);
usr.sbin/pkg/ecc.c
389
ecc_extract_pubkey(FILE *keyfp, const uint8_t *key, size_t keylen,
usr.sbin/pkg/ecc.c
403
assert((keyfp != NULL) ^ (key != NULL));
usr.sbin/pkg/ecc.c
407
root = libder_read(ctx, key, &keylen);
usr.sbin/pkg/ecc.c
447
key = libder_obj_data(keydata, &keylen);
usr.sbin/pkg/ecc.c
448
if (ecc_extract_pubkey_string(key, keylen, rawkey, rawlen) != 0)
usr.sbin/pkg/ecc.c
461
const unsigned char *key;
usr.sbin/pkg/ecc.c
483
if (ecc_extract_pubkey(cbdata->keyfp, cbdata->key, cbdata->keylen,
usr.sbin/pkg/ecc.c
523
const unsigned char *key, int keylen,
usr.sbin/pkg/ecc.c
539
cbdata.key = key;
usr.sbin/pkg/ecc.c
557
const char *sigfile, const unsigned char *key, int keylen,
usr.sbin/pkg/ecc.c
570
ret = ecc_verify_data(sctx, sha256, strlen(sha256), sigfile, key,
usr.sbin/pkg/pkg.c
148
const unsigned char *key, int keylen, unsigned char *sig, int siglen)
usr.sbin/pkg/pkg.c
152
key, keylen, sig, siglen));
usr.sbin/pkg/pkg.c
157
size_t datasz, const char *sigfile, const unsigned char *key, int keylen,
usr.sbin/pkg/pkg.c
162
sigfile, key, keylen, sig, siglen));
usr.sbin/pkg/pkg.c
354
const char *function, *fp, *key;
usr.sbin/pkg/pkg.c
361
key = ucl_object_key(cur);
usr.sbin/pkg/pkg.c
364
if (strcasecmp(key, "function") == 0) {
usr.sbin/pkg/pkg.c
368
if (strcasecmp(key, "fingerprint") == 0) {
usr.sbin/pkg/rsa.c
102
if ((pkey = load_public_key_buf(key, keylen)) == NULL) {
usr.sbin/pkg/rsa.c
147
const char *sigfile, const unsigned char *key, int keylen,
usr.sbin/pkg/rsa.c
165
ret = rsa_verify_data(ctx, sha256, strlen(sha256), sigfile, key, keylen,
usr.sbin/pkg/rsa.c
84
const unsigned char *key, int keylen, unsigned char *sig, int siglen)
usr.sbin/ppp/auth.c
122
auth_CheckPasswd(const char *name, const char *data, const char *key)
usr.sbin/ppp/auth.c
134
cryptpw = crypt(key, pw->pw_passwd);
usr.sbin/ppp/auth.c
151
&pam_conv, key
usr.sbin/ppp/auth.c
158
if ((status = pam_set_item(pamh, PAM_AUTHTOK, key)) == PAM_SUCCESS)
usr.sbin/ppp/auth.c
166
return !strcmp(data, key);
usr.sbin/ppp/auth.c
296
auth_Validate(struct bundle *bundle, const char *name, const char *key)
usr.sbin/ppp/auth.c
321
return auth_CheckPasswd(name, vector[1], key);
usr.sbin/ppp/auth.c
340
return auth_CheckPasswd(name, "*", key);
usr.sbin/ppp/bundle.c
828
*bundle.cfg.auth.key = '\0';
usr.sbin/ppp/bundle.h
111
char key[AUTHLEN]; /* PAP/CHAP key */
usr.sbin/ppp/chap.c
125
chap_BuildAnswer(char *name, char *key, u_char id, char *challenge
usr.sbin/ppp/chap.c
136
klen = strlen(key);
usr.sbin/ppp/chap.c
152
mschap_LANMan(digest, challenge + 1, key); /* LANMan response */
usr.sbin/ppp/chap.c
158
expkey[2*f] = key[f];
usr.sbin/ppp/chap.c
204
expkey[2*f] = key[f];
usr.sbin/ppp/chap.c
240
MD5Update(&MD5context, key, klen);
usr.sbin/ppp/chap.c
368
chap_Respond(struct chap *chap, char *name, char *key
usr.sbin/ppp/chap.c
376
ans = chap_BuildAnswer(name, key, chap->auth.id, chap->challenge.peer
usr.sbin/ppp/chap.c
436
char *name, *key, *end;
usr.sbin/ppp/chap.c
442
if ((key = strchr(name, '\n')) == NULL)
usr.sbin/ppp/chap.c
445
end = strchr(++key, '\n');
usr.sbin/ppp/chap.c
462
end = key - 1;
usr.sbin/ppp/chap.c
465
key += strspn(key, " \t");
usr.sbin/ppp/chap.c
467
chap_Respond(chap, name, key
usr.sbin/ppp/chap.c
697
char *name, *key, *ans;
usr.sbin/ppp/chap.c
837
if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!')
usr.sbin/ppp/chap.c
838
chap_StartChild(chap, bundle->cfg.auth.key + 1,
usr.sbin/ppp/chap.c
841
chap_Respond(chap, bundle->cfg.auth.name, bundle->cfg.auth.key +
usr.sbin/ppp/chap.c
842
(*bundle->cfg.auth.key == '!' ? 1 : 0)
usr.sbin/ppp/chap.c
881
key = auth_GetSecret(name, nlen);
usr.sbin/ppp/chap.c
882
if (key) {
usr.sbin/ppp/chap.c
889
key = NULL;
usr.sbin/ppp/chap.c
895
key = NULL;
usr.sbin/ppp/chap.c
899
key = NULL;
usr.sbin/ppp/chap.c
903
char *myans = chap_BuildAnswer(name, key, chap->auth.id,
usr.sbin/ppp/chap.c
914
key = NULL;
usr.sbin/ppp/chap.c
921
key = NULL;
usr.sbin/ppp/chap.c
927
if (key)
usr.sbin/ppp/chap_ms.c
100
des_key[3] = Get7Bits(key, 21);
usr.sbin/ppp/chap_ms.c
101
des_key[4] = Get7Bits(key, 28);
usr.sbin/ppp/chap_ms.c
102
des_key[5] = Get7Bits(key, 35);
usr.sbin/ppp/chap_ms.c
103
des_key[6] = Get7Bits(key, 42);
usr.sbin/ppp/chap_ms.c
104
des_key[7] = Get7Bits(key, 49);
usr.sbin/ppp/chap_ms.c
110
DesEncrypt(u_char *clear, u_char *key, u_char *cipher)
usr.sbin/ppp/chap_ms.c
115
MakeKey(key, des_key);
usr.sbin/ppp/chap_ms.c
134
NtPasswordHash(char *key, int keylen, char *hash)
usr.sbin/ppp/chap_ms.c
139
MD4Update(&MD4context, key, keylen);
usr.sbin/ppp/chap_ms.c
95
MakeKey(u_char *key, u_char *des_key)
usr.sbin/ppp/chap_ms.c
97
des_key[0] = Get7Bits(key, 0);
usr.sbin/ppp/chap_ms.c
98
des_key[1] = Get7Bits(key, 7);
usr.sbin/ppp/chap_ms.c
99
des_key[2] = Get7Bits(key, 14);
usr.sbin/ppp/chat.c
663
strncpy(result, c->physical->dl->bundle->cfg.auth.key, reslen);
usr.sbin/ppp/command.c
1682
strncpy(arg->bundle->cfg.auth.key, argp,
usr.sbin/ppp/command.c
1683
sizeof arg->bundle->cfg.auth.key - 1);
usr.sbin/ppp/command.c
1684
arg->bundle->cfg.auth.key[sizeof arg->bundle->cfg.auth.key - 1] = '\0';
usr.sbin/ppp/pap.c
108
memcpy(cp, bundle->cfg.auth.key, keylen);
usr.sbin/ppp/pap.c
184
u_char nlen, klen, *key;
usr.sbin/ppp/pap.c
259
if ((key = malloc(klen+1)) == NULL) {
usr.sbin/ppp/pap.c
263
bp = mbuf_Read(bp, key, klen);
usr.sbin/ppp/pap.c
264
key[klen] = '\0';
usr.sbin/ppp/pap.c
269
key, strlen(key), NULL, 0))
usr.sbin/ppp/pap.c
273
if (auth_Validate(bundle, authp->in.name, key))
usr.sbin/ppp/pap.c
278
free(key);
usr.sbin/ppp/pap.c
92
keylen = strlen(bundle->cfg.auth.key);
usr.sbin/ppp/radius.c
1002
msresp2.ident = *key;
usr.sbin/ppp/radius.c
894
const char *key, int klen, const char *nchallenge,
usr.sbin/ppp/radius.c
950
if (rad_put_attr(r->cx.rad, RAD_USER_PASSWORD, key, klen) != 0) {
usr.sbin/ppp/radius.c
962
if (rad_put_attr(r->cx.rad, RAD_CHAP_PASSWORD, key, klen) != 0 ||
usr.sbin/ppp/radius.c
982
msresp.ident = *key;
usr.sbin/ppp/radius.c
984
memcpy(msresp.lm_response, key + 1, 24);
usr.sbin/ppp/radius.c
985
memcpy(msresp.nt_response, key + 25, 24);
usr.sbin/ppp/radius.c
999
keyv2 = (const struct MSCHAPv2_resp *)(key + 1);
usr.sbin/pwd_mkdb/pwd_mkdb.c
230
key.data = verskey;
usr.sbin/pwd_mkdb/pwd_mkdb.c
231
key.size = sizeof(verskey)-1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
232
if ((pw_db->get)(pw_db, &key, &data, 0) == 0)
usr.sbin/pwd_mkdb/pwd_mkdb.c
241
key.data = (u_char *)buf;
usr.sbin/pwd_mkdb/pwd_mkdb.c
242
key.size = len + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
243
if ((pw_db->get)(pw_db, &key, &data, 0) == 0) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
254
key.data = (u_char *)buf;
usr.sbin/pwd_mkdb/pwd_mkdb.c
255
key.size = sizeof(store) + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
257
if ((pw_db->get)(pw_db, &key, &data, 0) == 0) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
328
key.data = verskey;
usr.sbin/pwd_mkdb/pwd_mkdb.c
329
key.size = sizeof(verskey)-1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
332
if ((dp->put)(dp, &key, &data, 0) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
334
if ((sdp->put)(sdp, &key, &data, 0) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
340
key.data = (u_char *)tbuf;
usr.sbin/pwd_mkdb/pwd_mkdb.c
395
key.size = len + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
396
if ((dp->put)(dp, &key, &data, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
403
key.size = sizeof(store) + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
404
if ((dp->put)(dp, &key, &data, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
411
key.size = sizeof(store) + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
412
if ((dp->put)(dp, &key, &data, methoduid) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
419
key.size = len + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
420
if ((sdp->put)(sdp, &key, &sdata, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
427
key.size = sizeof(store) + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
428
if ((sdp->put)(sdp, &key, &sdata, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
435
key.size = sizeof(store) + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
436
if ((sdp->put)(sdp, &key, &sdata, methoduid) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
444
key.size = sizeof(store) + 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
445
if ((dp->put)(dp, &key, &data, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
447
if ((sdp->put)(sdp, &key, &sdata, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
476
key.size = 1;
usr.sbin/pwd_mkdb/pwd_mkdb.c
478
if ((dp->put)(dp, &key, &data, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
480
if ((sdp->put)(sdp, &key, &data, method) == -1)
usr.sbin/pwd_mkdb/pwd_mkdb.c
89
DBT data, sdata, key;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
255
DBT key, data;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
276
key.data = pw->pw_name;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
277
key.size = strlen(pw->pw_name);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
280
&key, &data, 0) != YP_TRUE) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
319
DBT key = { NULL, 0 };
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
337
key.data = &keybuf;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
338
key.size = strlen(keybuf);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
340
key.data = pw->pw_name;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
341
key.size = strlen(pw->pw_name);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
360
if (yp_get_record(domain,maps[i],&key,&data,1) != YP_TRUE) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
437
if (yp_put_record(dbp, &key, &data, 1) != YP_TRUE) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
444
key.data = yp_last;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
445
key.size = strlen(yp_last);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
449
if (yp_put_record(dbp, &key, &data, 1) != YP_TRUE) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
471
DBT key, data;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
536
key.data = argp->newpw.pw_name;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
537
key.size = strlen(argp->newpw.pw_name);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
540
&key, &data, 0)) != YP_TRUE) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
743
DBT key, data;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
788
key.data = argp->newpw.pw_name;
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
789
key.size = strlen(argp->newpw.pw_name);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
797
&key, &data, 0)) != YP_TRUE) {
usr.sbin/rpc.ypupdated/update.c
111
(void)fwrite(key, (int)keylen, 1, childargs);
usr.sbin/rpc.ypupdated/update.c
227
char *key, u_int datalen __unused, char *data)
usr.sbin/rpc.ypupdated/update.c
238
if (strcmp(name, key) != 0) {
usr.sbin/rpc.ypupdated/update.c
276
fprintf(wf, "%s %s\n", key, data);
usr.sbin/rpc.ypupdated/update.c
297
fprintf(wf, "%s %s\n", key, data);
usr.sbin/rpc.ypupdated/update.c
80
mapupdate(char *requester, char *mapname, u_int op, u_int keylen, char *key,
usr.sbin/rpc.ypupdated/update.c
96
printf("%s %s\n", key, data);
usr.sbin/rpc.ypupdated/yp_dbdelete.c
50
yp_del_record(DB *dbp, DBT *key)
usr.sbin/rpc.ypupdated/yp_dbdelete.c
54
if ((rval = (dbp->del)(dbp,key,0))) {
usr.sbin/rpc.ypupdated/yp_dbupdate.c
102
rval = yp_del_record(dbp, &key);
usr.sbin/rpc.ypupdated/yp_dbupdate.c
107
rval = yp_put_record(dbp, &key, &data, 0);
usr.sbin/rpc.ypupdated/yp_dbupdate.c
112
rval = yp_put_record(dbp, &key, &data, 1);
usr.sbin/rpc.ypupdated/yp_dbupdate.c
117
if (yp_get_record(domptr, map, &key, &data, 0) != YP_TRUE) {
usr.sbin/rpc.ypupdated/yp_dbupdate.c
121
rval = yp_put_record(dbp, &key, &data, 1);
usr.sbin/rpc.ypupdated/yp_dbupdate.c
135
key.data = yp_last;
usr.sbin/rpc.ypupdated/yp_dbupdate.c
136
key.size = strlen(yp_last);
usr.sbin/rpc.ypupdated/yp_dbupdate.c
139
if (yp_put_record(dbp, &key, &data, 1) != YP_TRUE) {
usr.sbin/rpc.ypupdated/yp_dbupdate.c
80
DBT key = { NULL, 0 }, data = { NULL, 0 };
usr.sbin/rpc.ypupdated/yp_dbupdate.c
95
key.data = keyval;
usr.sbin/rpc.ypupdated/yp_dbupdate.c
96
key.size = keylen;
usr.sbin/rpc.ypupdated/ypupdated_server.c
114
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rpc.ypupdated/ypupdated_server.c
121
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rpc.ypupdated/ypupdated_server.c
148
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rpc.ypupdated/ypupdated_server.c
155
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rpc.ypupdated/ypupdated_server.c
182
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rpc.ypupdated/ypupdated_server.c
189
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rpc.ypupdated/ypupdated_server.c
216
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rpc.ypupdated/ypupdated_server.c
223
args->key.yp_buf_len, args->key.yp_buf_val,
usr.sbin/rtadvd/control_server.c
72
#define DEF_PL_HANDLER(key) { #key, cm_getprop_##key }
usr.sbin/sa/db.c
105
for (rv = DB_SEQ(ddb, &key, &data, R_FIRST); rv == 0;
usr.sbin/sa/db.c
106
rv = DB_SEQ(ddb, &key, &data, R_NEXT)) {
usr.sbin/sa/db.c
109
if (key.size == sizeof(VERSION_KEY) &&
usr.sbin/sa/db.c
110
memcmp(key.data, VERSION_KEY, sizeof(VERSION_KEY)) == 0)
usr.sbin/sa/db.c
114
if (version == 1 && v1_to_v2(&key, &data) < 0) {
usr.sbin/sa/db.c
121
if ((rv = DB_PUT(*mdb, &key, &data, 0)) < 0) {
usr.sbin/sa/db.c
151
DBT key, data;
usr.sbin/sa/db.c
162
for (rv = DB_SEQ(mdb, &key, &data, R_FIRST);
usr.sbin/sa/db.c
163
rv == 0; rv = DB_SEQ(mdb, &key, &data, R_NEXT)) {
usr.sbin/sa/db.c
164
if ((rv = DB_PUT(ddb, &key, &data, 0)) < 0) {
usr.sbin/sa/db.c
177
key.data = (void*)&VERSION_KEY;
usr.sbin/sa/db.c
178
key.size = sizeof(VERSION_KEY);
usr.sbin/sa/db.c
182
if ((rv = DB_PUT(ddb, &key, &data, 0)) < 0) {
usr.sbin/sa/db.c
57
int (*v1_to_v2)(DBT *key, DBT *data))
usr.sbin/sa/db.c
59
DBT key, data;
usr.sbin/sa/db.c
81
key.data = (void*)&VERSION_KEY;
usr.sbin/sa/db.c
82
key.size = sizeof(VERSION_KEY);
usr.sbin/sa/db.c
84
rv = DB_GET(ddb, &key, &data, 0);
usr.sbin/sa/extern.h
103
#define DB_GET(db, key, data, flags) \
usr.sbin/sa/extern.h
104
((*(db)->get)((db), (key), (data), (flags)))
usr.sbin/sa/extern.h
105
#define DB_PUT(db, key, data, flags) \
usr.sbin/sa/extern.h
106
((*(db)->put)((db), (key), (data), (flags)))
usr.sbin/sa/extern.h
109
#define DB_SEQ(db, key, data, flags) \
usr.sbin/sa/extern.h
110
((*(db)->seq)((db), (key), (data), (flags)))
usr.sbin/sa/extern.h
69
BTREEINFO *bti, int (*v1_to_v2)(DBT *key, DBT *data));
usr.sbin/sa/pdb.c
111
DBT key, data;
usr.sbin/sa/pdb.c
117
key.data = &keydata;
usr.sbin/sa/pdb.c
118
key.size = strlen(keydata);
usr.sbin/sa/pdb.c
120
rv = DB_GET(pacct_db, &key, &data, 0);
usr.sbin/sa/pdb.c
130
bcopy(key.data, newci.ci_comm, key.size);
usr.sbin/sa/pdb.c
137
rv = DB_PUT(pacct_db, &key, &data, 0);
usr.sbin/sa/pdb.c
162
DBT key, data, ndata;
usr.sbin/sa/pdb.c
188
rv = DB_SEQ(pacct_db, &key, &data, R_FIRST);
usr.sbin/sa/pdb.c
214
next: rv = DB_SEQ(pacct_db, &key, &data, R_NEXT);
usr.sbin/sa/pdb.c
69
v1_to_v2(DBT *key __unused, DBT *data)
usr.sbin/sa/usrdb.c
119
DBT key, data;
usr.sbin/sa/usrdb.c
125
key.data = &uid;
usr.sbin/sa/usrdb.c
126
key.size = sizeof uid;
usr.sbin/sa/usrdb.c
128
rv = DB_GET(usracct_db, &key, &data, 0);
usr.sbin/sa/usrdb.c
154
rv = DB_PUT(usracct_db, &key, &data, 0);
usr.sbin/sa/usrdb.c
182
DBT key, data;
usr.sbin/sa/usrdb.c
187
rv = DB_SEQ(usracct_db, &key, &data, R_FIRST);
usr.sbin/sa/usrdb.c
218
rv = DB_SEQ(usracct_db, &key, &data, R_NEXT);
usr.sbin/sa/usrdb.c
66
v1_to_v2(DBT *key, DBT *data)
usr.sbin/sa/usrdb.c
72
if (key->size != sizeof(u_long) || data->size != sizeof(uiv1)) {
usr.sbin/sa/usrdb.c
78
key->size = sizeof(uid_t);
usr.sbin/sa/usrdb.c
79
uid = (uid_t)*(u_long *)(key->data);
usr.sbin/sa/usrdb.c
80
key->data = &uid;
usr.sbin/services_mkdb/services_mkdb.c
194
DBT data, key;
usr.sbin/services_mkdb/services_mkdb.c
195
key.data = keyb;
usr.sbin/services_mkdb/services_mkdb.c
207
key.size = snprintf(keyb, sizeof(keyb), "%s %zu/%s %s",
usr.sbin/services_mkdb/services_mkdb.c
209
store(db, &data, &key, warndup);
usr.sbin/services_mkdb/services_mkdb.c
212
key.size = snprintf(keyb, sizeof(keyb), "\377%zu/%s",
usr.sbin/services_mkdb/services_mkdb.c
214
store(db, &key, &data, warndup);
usr.sbin/services_mkdb/services_mkdb.c
217
killproto(&key);
usr.sbin/services_mkdb/services_mkdb.c
218
store(db, &key, &data, warndup);
usr.sbin/services_mkdb/services_mkdb.c
223
key.size = snprintf(keyb, sizeof(keyb), "\376%s/%s",
usr.sbin/services_mkdb/services_mkdb.c
225
store(db, &key, &data, warndup);
usr.sbin/services_mkdb/services_mkdb.c
228
killproto(&key);
usr.sbin/services_mkdb/services_mkdb.c
229
store(db, &key, &data, warndup);
usr.sbin/services_mkdb/services_mkdb.c
367
killproto(DBT *key)
usr.sbin/services_mkdb/services_mkdb.c
369
char *p, *d = key->data;
usr.sbin/services_mkdb/services_mkdb.c
374
key->size = p - d;
usr.sbin/services_mkdb/services_mkdb.c
378
store(DB *db, DBT *key, DBT *data, int warndup)
usr.sbin/services_mkdb/services_mkdb.c
381
int k = key->size - 1;
usr.sbin/services_mkdb/services_mkdb.c
384
k, k, (char *)key->data + 1,
usr.sbin/services_mkdb/services_mkdb.c
387
switch ((db->put)(db, key, data, R_NOOVERWRITE)) {
usr.sbin/services_mkdb/services_mkdb.c
393
&((char *)key->data)[1]);
usr.sbin/services_mkdb/uniq.c
61
DBT key;
usr.sbin/services_mkdb/uniq.c
80
key.data = compline;
usr.sbin/services_mkdb/uniq.c
81
key.size = complen;
usr.sbin/services_mkdb/uniq.c
82
switch ((db->put)(db, &key, &data, R_NOOVERWRITE)) {
usr.sbin/traceroute/traceroute.c
1084
proto->key);
usr.sbin/traceroute/traceroute.c
394
const char *key; /* An ascii key for the bytes of the header */
usr.sbin/tzsetup/tzsetup.c
949
conf.key.enable_esc = true;
usr.sbin/uefisign/uefisign.c
241
sign(X509 *cert, EVP_PKEY *key, int pipefd)
usr.sbin/uefisign/uefisign.c
252
assert(key != NULL);
usr.sbin/uefisign/uefisign.c
274
info = PKCS7_sign_add_signer(pkcs7, cert, key, md, 0);
usr.sbin/uefisign/uefisign.c
341
EVP_PKEY *key = NULL;
usr.sbin/uefisign/uefisign.c
427
key = PEM_read_PrivateKey(keyfp, NULL, NULL, NULL);
usr.sbin/uefisign/uefisign.c
428
if (key == NULL) {
usr.sbin/uefisign/uefisign.c
433
sign(cert, key, pipefds[0]);
usr.sbin/yp_mkdb/yp_mkdb.c
111
DBT key, data;
usr.sbin/yp_mkdb/yp_mkdb.c
196
key.data = "YP_INTERDOMAIN";
usr.sbin/yp_mkdb/yp_mkdb.c
197
key.size = sizeof("YP_INTERDOMAIN") - 1;
usr.sbin/yp_mkdb/yp_mkdb.c
200
yp_put_record(dbp, &key, &data, 0);
usr.sbin/yp_mkdb/yp_mkdb.c
204
key.data = "YP_SECURE";
usr.sbin/yp_mkdb/yp_mkdb.c
205
key.size = sizeof("YP_SECURE") - 1;
usr.sbin/yp_mkdb/yp_mkdb.c
208
yp_put_record(dbp, &key, &data, 0);
usr.sbin/yp_mkdb/yp_mkdb.c
211
key.data = "YP_MASTER_NAME";
usr.sbin/yp_mkdb/yp_mkdb.c
212
key.size = sizeof("YP_MASTER_NAME") - 1;
usr.sbin/yp_mkdb/yp_mkdb.c
215
yp_put_record(dbp, &key, &data, 0);
usr.sbin/yp_mkdb/yp_mkdb.c
217
key.data = "YP_LAST_MODIFIED";
usr.sbin/yp_mkdb/yp_mkdb.c
218
key.size = sizeof("YP_LAST_MODIFIED") - 1;
usr.sbin/yp_mkdb/yp_mkdb.c
222
yp_put_record(dbp, &key, &data, 0);
usr.sbin/yp_mkdb/yp_mkdb.c
225
key.data = "YP_INPUT_FILE";
usr.sbin/yp_mkdb/yp_mkdb.c
226
key.size = sizeof("YP_INPUT_FILE") - 1;
usr.sbin/yp_mkdb/yp_mkdb.c
229
yp_put_record(dbp, &key, &data, 0);
usr.sbin/yp_mkdb/yp_mkdb.c
233
key.data = "YP_OUTPUT_FILE";
usr.sbin/yp_mkdb/yp_mkdb.c
234
key.size = sizeof("YP_OUTPUT_FILE") - 1;
usr.sbin/yp_mkdb/yp_mkdb.c
237
yp_put_record(dbp, &key, &data, 0);
usr.sbin/yp_mkdb/yp_mkdb.c
241
key.data = "YP_DOMAIN_NAME";
usr.sbin/yp_mkdb/yp_mkdb.c
242
key.size = sizeof("YP_DOMAIN_NAME") - 1;
usr.sbin/yp_mkdb/yp_mkdb.c
245
yp_put_record(dbp, &key, &data, 0);
usr.sbin/yp_mkdb/yp_mkdb.c
304
key.data = keybuf;
usr.sbin/yp_mkdb/yp_mkdb.c
305
key.size = strlen(keybuf);
usr.sbin/yp_mkdb/yp_mkdb.c
309
if ((rval = yp_put_record(dbp, &key, &data, 0)) != YP_TRUE) {
usr.sbin/yp_mkdb/yp_mkdb.c
80
DBT key, data;
usr.sbin/yp_mkdb/yp_mkdb.c
87
key.data = NULL;
usr.sbin/yp_mkdb/yp_mkdb.c
88
while (yp_next_record(dbp, &key, &data, 1, 1) == YP_TRUE)
usr.sbin/yp_mkdb/yp_mkdb.c
89
printf("%.*s %.*s\n", (int)key.size, (char *)key.data,
usr.sbin/ypldap/aldap.c
446
char *key;
usr.sbin/ypldap/aldap.c
453
&key, &b, &c) != 0)
usr.sbin/ypldap/aldap.c
462
(*outkey) = utoa(key);
usr.sbin/ypldap/aldap.c
475
char *key;
usr.sbin/ypldap/aldap.c
486
if (ber_scanf_elements(msg->body.search.iter, "{s(e)}e", &key, &a, &b)
usr.sbin/ypldap/aldap.c
496
(*outkey) = utoa(key);
usr.sbin/ypldap/yp.c
322
char *key;
usr.sbin/ypldap/yp.c
324
log_debug("matching '%.*s' in map %s", arg->key.keydat_len,
usr.sbin/ypldap/yp.c
325
arg->key.keydat_val, arg->map);
usr.sbin/ypldap/yp.c
337
if (arg->key.keydat_len > YPMAXRECORD) {
usr.sbin/ypldap/yp.c
341
key = calloc(arg->key.keydat_len + 1, 1);
usr.sbin/ypldap/yp.c
342
if (key == NULL)
usr.sbin/ypldap/yp.c
344
(void)strncpy(key, arg->key.keydat_val, arg->key.keydat_len);
usr.sbin/ypldap/yp.c
348
ukey.ue_line = key;
usr.sbin/ypldap/yp.c
359
ukey.ue_uid = strtonum(key, 0, UID_MAX, &estr);
usr.sbin/ypldap/yp.c
374
gkey.ge_gid = strtonum(key, 0, GID_MAX, &estr);
usr.sbin/ypldap/yp.c
388
gkey.ge_line = key;
usr.sbin/ypldap/yp.c
398
bp = cp = key;
usr.sbin/ypldap/yp.c
443
free(key);
usr.sbin/ypldap/yp.c
483
char *key;
usr.sbin/ypldap/yp.c
488
key = NULL;
usr.sbin/ypldap/yp.c
491
key = calloc(arg->key.keydat_len + 1, 1);
usr.sbin/ypldap/yp.c
492
if (key == NULL) {
usr.sbin/ypldap/yp.c
496
(void)strncpy(key, arg->key.keydat_val,
usr.sbin/ypldap/yp.c
497
arg->key.keydat_len);
usr.sbin/ypldap/yp.c
498
ukey.ue_line = key;
usr.sbin/ypldap/yp.c
515
free(key);
usr.sbin/ypldap/yp.c
523
free(key);
usr.sbin/ypldap/yp.c
528
key = calloc(arg->key.keydat_len + 1, 1);
usr.sbin/ypldap/yp.c
529
if (key == NULL) {
usr.sbin/ypldap/yp.c
533
(void)strncpy(key, arg->key.keydat_val,
usr.sbin/ypldap/yp.c
534
arg->key.keydat_len);
usr.sbin/ypldap/yp.c
536
gkey.ge_line = key;
usr.sbin/ypldap/yp.c
548
free(key);
usr.sbin/ypldap/yp.c
557
free(key);
usr.sbin/ypldap/yp.c
652
yp_make_keyval(struct ypresp_key_val *res, char *key, char *line)
usr.sbin/ypldap/yp.c
660
(void)strlcpy(keybuf, key, sizeof(keybuf));
usr.sbin/ypldap/yp.c
661
res->key.keydat_len = strlen(keybuf);
usr.sbin/ypldap/yp.c
662
res->key.keydat_val = keybuf;
usr.sbin/yppush/yppush_main.c
283
DBT key, data;
usr.sbin/yppush/yppush_main.c
298
key.data = "YP_LAST_MODIFIED";
usr.sbin/yppush/yppush_main.c
299
key.size = sizeof ("YP_LAST_MODIFIED") - 1;
usr.sbin/yppush/yppush_main.c
301
if (yp_get_record(yppush_domain, yppush_mapname, &key, &data,
usr.sbin/yppush/yppush_main.c
435
yppush_foreach(int status, char *key, int keylen, char *val, int vallen,
usr.sbin/yppush/yppush_main.c
495
DBT key, data;
usr.sbin/yppush/yppush_main.c
570
key.data = "YP_MASTER_NAME";
usr.sbin/yppush/yppush_main.c
571
key.size = sizeof("YP_MASTER_NAME") - 1;
usr.sbin/yppush/yppush_main.c
574
&key, &data, 1) != YP_TRUE) {
usr.sbin/ypserv/common/yplib_host.c
154
yprk.key.keydat_val = (char *)inkey;
usr.sbin/ypserv/common/yplib_host.c
155
yprk.key.keydat_len = inkeylen;
usr.sbin/ypserv/common/yplib_host.c
200
*outkeylen = yprkv.key.keydat_len;
usr.sbin/ypserv/common/yplib_host.c
202
memcpy(*outkey, yprkv.key.keydat_val, *outkeylen);
usr.sbin/ypserv/common/yplib_host.c
231
yprk.key.keydat_val = inkey;
usr.sbin/ypserv/common/yplib_host.c
232
yprk.key.keydat_len = inkeylen;
usr.sbin/ypserv/common/yplib_host.c
241
*outkeylen = yprkv.key.keydat_len;
usr.sbin/ypserv/common/yplib_host.c
243
memcpy(*outkey, yprkv.key.keydat_val, *outkeylen);
usr.sbin/ypserv/yp_dblookup.c
198
DBT key = { NULL, 0 }, data = { NULL, 0 };
usr.sbin/ypserv/yp_dblookup.c
201
key.data = inter_string;
usr.sbin/ypserv/yp_dblookup.c
202
key.size = inter_sz;
usr.sbin/ypserv/yp_dblookup.c
204
if (!(dbp->get)(dbp, &key, &data, 0))
usr.sbin/ypserv/yp_dblookup.c
207
key.data = secure_string;
usr.sbin/ypserv/yp_dblookup.c
208
key.size = secure_sz;
usr.sbin/ypserv/yp_dblookup.c
210
if (!(dbp->get)(dbp, &key, &data, 0))
usr.sbin/ypserv/yp_dblookup.c
276
qptr->dbptr->key = NULL;
usr.sbin/ypserv/yp_dblookup.c
313
yp_find_db(const char *name, const char *key, int size)
usr.sbin/ypserv/yp_dblookup.c
321
strncmp(qptr->dbptr->key, key, size))
usr.sbin/ypserv/yp_dblookup.c
345
yp_open_db_cache(const char *domain, const char *map, const char *key,
usr.sbin/ypserv/yp_dblookup.c
359
if ((dbp = yp_find_db(buf, key, size)) != NULL) {
usr.sbin/ypserv/yp_dblookup.c
446
yp_get_record(DB *dbp, const DBT *key, DBT *data, int allow)
usr.sbin/ypserv/yp_dblookup.c
450
const DBT *key, DBT *data, int allow)
usr.sbin/ypserv/yp_dblookup.c
463
(int)key->size, (char *)key->data);
usr.sbin/ypserv/yp_dblookup.c
470
if (!allow && !strncmp(key->data, "YP_", 3))
usr.sbin/ypserv/yp_dblookup.c
479
if ((rval = (dbp->get)(dbp, key, data, 0)) != 0) {
usr.sbin/ypserv/yp_dblookup.c
493
(int)key->size, (char *)key->data,
usr.sbin/ypserv/yp_dblookup.c
498
TAILQ_FIRST(&qhead)->dbptr->key = "";
usr.sbin/ypserv/yp_dblookup.c
511
yp_first_record(const DB *dbp, DBT *key, DBT *data, int allow)
usr.sbin/ypserv/yp_dblookup.c
521
if ((rval = (dbp->seq)(dbp,key,data,R_FIRST)) != 0) {
usr.sbin/ypserv/yp_dblookup.c
532
while (!strncmp(key->data, "YP_", 3) && !allow) {
usr.sbin/ypserv/yp_dblookup.c
533
if ((rval = (dbp->seq)(dbp,key,data,R_NEXT)) != 0) {
usr.sbin/ypserv/yp_dblookup.c
546
(int)key->size, (char *)key->data,
usr.sbin/ypserv/yp_dblookup.c
551
TAILQ_FIRST(&qhead)->dbptr->key = key->data;
usr.sbin/ypserv/yp_dblookup.c
552
TAILQ_FIRST(&qhead)->dbptr->size = key->size;
usr.sbin/ypserv/yp_dblookup.c
563
yp_next_record(const DB *dbp, DBT *key, DBT *data, int all, int allow)
usr.sbin/ypserv/yp_dblookup.c
573
if (key == NULL || !key->size || key->data == NULL) {
usr.sbin/ypserv/yp_dblookup.c
574
rval = yp_first_record(dbp,key,data,allow);
usr.sbin/ypserv/yp_dblookup.c
579
TAILQ_FIRST(&qhead)->dbptr->key = key->data;
usr.sbin/ypserv/yp_dblookup.c
580
TAILQ_FIRST(&qhead)->dbptr->size = key->size;
usr.sbin/ypserv/yp_dblookup.c
588
(int)key->size, (char *)key->data);
usr.sbin/ypserv/yp_dblookup.c
592
if (TAILQ_FIRST(&qhead)->dbptr->key == NULL) {
usr.sbin/ypserv/yp_dblookup.c
595
while (key->size != lkey.size ||
usr.sbin/ypserv/yp_dblookup.c
596
strncmp(key->data, lkey.data,
usr.sbin/ypserv/yp_dblookup.c
597
(int)key->size))
usr.sbin/ypserv/yp_dblookup.c
610
if ((dbp->seq)(dbp,key,data,R_NEXT)) {
usr.sbin/ypserv/yp_dblookup.c
618
while (!strncmp(key->data, "YP_", 3) && !allow)
usr.sbin/ypserv/yp_dblookup.c
619
if ((dbp->seq)(dbp,key,data,R_NEXT)) {
usr.sbin/ypserv/yp_dblookup.c
628
(int)key->size, (char *)key->data,
usr.sbin/ypserv/yp_dblookup.c
633
TAILQ_FIRST(&qhead)->dbptr->key = key->data;
usr.sbin/ypserv/yp_dblookup.c
634
TAILQ_FIRST(&qhead)->dbptr->size = key->size;
usr.sbin/ypserv/yp_dblookup.c
637
bcopy(key->data, &keybuf, key->size);
usr.sbin/ypserv/yp_dblookup.c
639
lkey.size = key->size;
usr.sbin/ypserv/yp_dblookup.c
656
yp_select_map(char *map, char *domain, keydat *key, int allow)
usr.sbin/ypserv/yp_dblookup.c
658
if (key == NULL)
usr.sbin/ypserv/yp_dblookup.c
662
key->keydat_val,
usr.sbin/ypserv/yp_dblookup.c
663
key->keydat_len);
usr.sbin/ypserv/yp_dblookup.c
670
yp_getbykey(keydat *key, valdat *val)
usr.sbin/ypserv/yp_dblookup.c
675
db_key.data = key->keydat_val;
usr.sbin/ypserv/yp_dblookup.c
676
db_key.size = key->keydat_len;
usr.sbin/ypserv/yp_dblookup.c
690
yp_firstbykey(keydat *key, valdat *val)
usr.sbin/ypserv/yp_dblookup.c
698
key->keydat_val = db_key.data;
usr.sbin/ypserv/yp_dblookup.c
699
key->keydat_len = db_key.size;
usr.sbin/ypserv/yp_dblookup.c
708
yp_nextbykey(keydat *key, valdat *val)
usr.sbin/ypserv/yp_dblookup.c
713
db_key.data = key->keydat_val;
usr.sbin/ypserv/yp_dblookup.c
714
db_key.size = key->keydat_len;
usr.sbin/ypserv/yp_dblookup.c
719
key->keydat_val = db_key.data;
usr.sbin/ypserv/yp_dblookup.c
720
key->keydat_len = db_key.size;
usr.sbin/ypserv/yp_dblookup.c
75
char *key;
usr.sbin/ypserv/yp_server.c
160
result.stat = yp_getbykey(&argp->key, &result.val);
usr.sbin/ypserv/yp_server.c
176
nbuf = alloca(argp->key.keydat_len + 1);
usr.sbin/ypserv/yp_server.c
178
bcopy(argp->key.keydat_val, nbuf, argp->key.keydat_len);
usr.sbin/ypserv/yp_server.c
179
nbuf[argp->key.keydat_len] = '\0';
usr.sbin/ypserv/yp_server.c
209
result.val.valdat_val = result.key.keydat_val = "";
usr.sbin/ypserv/yp_server.c
210
result.val.valdat_len = result.key.keydat_len = 0;
usr.sbin/ypserv/yp_server.c
231
result.stat = yp_firstbykey(&result.key, &result.val);
usr.sbin/ypserv/yp_server.c
241
result.val.valdat_val = result.key.keydat_val = "";
usr.sbin/ypserv/yp_server.c
242
result.val.valdat_len = result.key.keydat_len = 0;
usr.sbin/ypserv/yp_server.c
258
if (yp_select_map(argp->map, argp->domain, &argp->key, 0) != YP_TRUE) {
usr.sbin/ypserv/yp_server.c
263
result.key.keydat_len = argp->key.keydat_len;
usr.sbin/ypserv/yp_server.c
264
result.key.keydat_val = argp->key.keydat_val;
usr.sbin/ypserv/yp_server.c
266
result.stat = yp_nextbykey(&result.key, &result.val);
usr.sbin/ypserv/yp_server.c
470
yp_nextbykey(&objp->ypresp_all_u.val.key,
usr.sbin/ypserv/yp_server.c
496
result.ypresp_all_u.val.key.keydat_len = 0;
usr.sbin/ypserv/yp_server.c
497
result.ypresp_all_u.val.key.keydat_val = "";
usr.sbin/ypserv/yp_server.c
554
&result.ypresp_all_u.val.key, 0) != YP_TRUE) {
usr.sbin/ypserv/yp_server.c
577
keydat key = { MASTER_SZ, MASTER_STRING };
usr.sbin/ypserv/yp_server.c
596
if (yp_select_map(argp->map, argp->domain, &key, 1) != YP_TRUE) {
usr.sbin/ypserv/yp_server.c
609
result.stat = yp_getbykey(&key, &val);
usr.sbin/ypserv/yp_server.c
624
keydat key = { ORDER_SZ, ORDER_STRING };
usr.sbin/ypserv/yp_server.c
650
if (yp_select_map(argp->map, argp->domain, &key, 1) != YP_TRUE) {
usr.sbin/ypserv/yp_server.c
655
result.stat = yp_getbykey(&key, &val);
usr.sbin/ypserv/yp_server.c
847
result.ypresponse_u.yp_resp_key_valtype.key.keydat_val = "";
usr.sbin/ypserv/yp_server.c
849
result.ypresponse_u.yp_resp_key_valtype.key.keydat_len = 0;
usr.sbin/ypserv/yp_server.c
878
result.ypresponse_u.yp_resp_key_valtype.key.keydat_val = "";
usr.sbin/ypserv/yp_server.c
880
result.ypresponse_u.yp_resp_key_valtype.key.keydat_len = 0;