| /netbsd-src/lib/libcurses/ |
| H A D | keyname.c | 51 keyname(int key) in keyname() argument 58 if (key < 0) { in keyname() 64 if (key == 0x100) { in keyname() 70 if (key < 0x20) { in keyname() 72 name[1] = (char) (key + 64); /* Offset of '@' */ in keyname() 78 if (key < 0x7F) { in keyname() 79 name[0] = (char) key; in keyname() 85 if (key == 0x7F) { in keyname() 91 if (key < 0x9F) { in keyname() 93 name[3] = (char) (key - 64); /* Offset of '@' */ in keyname() [all …]
|
| /netbsd-src/external/mpl/bind/dist/tests/isc/ |
| H A D | ht_test.c | 54 * to ensure we are always filling the 16 byte key. in test_ht_full() 56 unsigned char key[16]; in test_ht_full() 57 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i); in test_ht_full() local 58 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key)); in test_ht_full() 59 result = isc_ht_add(ht, key, 16, (void *)i); in test_ht_full() 64 unsigned char key[16]; in test_ht_full() 66 snprintf((char *)key, sizeo in test_ht_full() 65 unsigned char key[16]; test_ht_full() local 75 unsigned char key[16]; test_ht_full() local 83 char key[64]; test_ht_full() local 96 unsigned char key[16]; test_ht_full() local 109 char key[64]; test_ht_full() local 120 unsigned char key[16]; test_ht_full() local 132 unsigned char key[16]; test_ht_full() local 143 char key[64]; test_ht_full() local 157 unsigned char key[16]; test_ht_full() local 170 unsigned char key[16]; test_ht_full() local 191 unsigned char key[16]; test_ht_iterator() local [all...] |
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | keymgr.c | 47 * Set key state to `target` state and change last changed 48 * to `time`, only if key state has not been set before. 50 #define INITIALIZE_STATE(key, state, timing, target, time) \ argument 54 if (dst_key_getstate((key), (state), &s) == ISC_R_NOTFOUND) { \ 55 dst_key_setstate((key), (state), (target)); \ 56 dst_key_settime((key), (timing), time); \ 59 dst_key_format((key), keystr, sizeof(keystr)); \ 66 keystr, keymgr_keyrole((key)), \ 81 /* Quickly get key state timing metadata. */ 85 /* Readable key stat 96 keymgr_keyrole(dst_key_t * key) keymgr_keyrole() argument 122 keymgr_settime_remove(dns_dnsseckey_t * key,dns_kasp_t * kasp) keymgr_settime_remove() argument 160 keymgr_settime_syncpublish(dns_dnsseckey_t * key,dns_kasp_t * kasp,bool first) keymgr_settime_syncpublish() argument 210 keymgr_prepublication_time(dns_dnsseckey_t * key,dns_kasp_t * kasp,uint32_t lifetime,isc_stdtime_t now) keymgr_prepublication_time() argument 323 keymgr_key_retire(dns_dnsseckey_t * key,dns_kasp_t * kasp,isc_stdtime_t now) keymgr_key_retire() argument 387 dst_key_t *key; keymgr_dnsseckey_kaspkey_match() local 519 keymgr_desiredstate(dns_dnsseckey_t * key,dst_key_state_t state) keymgr_desiredstate() argument 564 keymgr_key_match_state(dst_key_t * key,dst_key_t * subject,int type,dst_key_state_t next_state,dst_key_state_t states[NUM_KEYSTATES]) keymgr_key_match_state() argument 636 keymgr_key_is_successor(dst_key_t * x,dst_key_t * z,dst_key_t * key,int type,dst_key_state_t next_state,dns_dnsseckeylist_t * keyring) keymgr_key_is_successor() argument 725 keymgr_key_exists_with_state(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next_state,dst_key_state_t states[NUM_KEYSTATES],dst_key_state_t states2[NUM_KEYSTATES],bool check_successor,bool match_algorithms) keymgr_key_exists_with_state() argument 808 keymgr_ds_hidden_or_chained(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next_state,bool match_algorithms,bool must_be_hidden) keymgr_ds_hidden_or_chained() argument 877 keymgr_dnskey_hidden_or_chained(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next_state,bool match_algorithms) keymgr_dnskey_hidden_or_chained() argument 927 keymgr_have_ds(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next_state,bool secure_to_insecure) keymgr_have_ds() argument 957 keymgr_have_dnskey(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next_state) keymgr_have_dnskey() argument 1049 keymgr_have_rrsig(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next_state) keymgr_have_rrsig() argument 1115 keymgr_policy_approval(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next) keymgr_policy_approval() argument 1184 keymgr_transition_allowed(dns_dnsseckeylist_t * keyring,dns_dnsseckey_t * key,int type,dst_key_state_t next_state,bool secure_to_insecure) keymgr_transition_allowed() argument 1243 keymgr_transition_time(dns_dnsseckey_t * key,int type,dst_key_state_t next_state,dns_kasp_t * kasp,isc_stdtime_t now,isc_stdtime_t * when) keymgr_transition_time() argument 1566 keymgr_key_init(dns_dnsseckey_t * key,dns_kasp_t * kasp,isc_stdtime_t now,bool csk) keymgr_key_init() argument 1891 keymgr_key_may_be_purged(dst_key_t * key,uint32_t after,isc_stdtime_t now) keymgr_key_may_be_purged() argument 1945 keymgr_purge_keyfile(dst_key_t * key,const char * dir,int type) keymgr_purge_keyfile() argument 2366 keytime_status(dst_key_t * key,isc_stdtime_t now,isc_buffer_t * buf,const char * pre,int ks,int kt) keytime_status() argument 2398 dst_key_t *key = dkey->key; rollover_status() local 2471 keystate_status(dst_key_t * key,isc_buffer_t * buf,const char * pre,int ks) keystate_status() argument 2575 dns_dnsseckey_t *key = NULL; dns_keymgr_rollover() local [all...] |
| H A D | dst_api.c | 158 write_public_key(const dst_key_t *key, int type, const char *directory); 160 write_key_state(const dst_key_t *key, int type, const char *directory); 165 computeid(dst_key_t *key); 277 dst_context_create(dst_key_t *key, isc_mem_t *mctx, isc_logcategory_t *category, in dst_context_create() 283 REQUIRE(VALID_KEY(key)); in dst_context_create() 287 if (key->func->createctx == NULL && key->func->createctx2 == NULL) { in dst_context_create() 290 if (key->keydata.generic == NULL) { in dst_context_create() 300 dst_key_attach(key, &dctx->key); in dst_context_create() 275 dst_context_create(dst_key_t * key,isc_mem_t * mctx,isc_logcategory_t * category,bool useforsigning,int maxbits,dst_context_t ** dctxp) dst_context_create() argument 347 dst_key_t *key; dst_context_sign() local 432 dst_key_tofile(const dst_key_t * key,int type,const char * directory) dst_key_tofile() argument 469 dst_key_setexternal(dst_key_t * key,bool value) dst_key_setexternal() argument 476 dst_key_isexternal(dst_key_t * key) dst_key_isexternal() argument 483 dst_key_setmodified(dst_key_t * key,bool value) dst_key_setmodified() argument 492 dst_key_ismodified(const dst_key_t * key) dst_key_ismodified() argument 537 dst_key_t *key; dst_key_fromfile() local 587 dst_key_t *pubkey = NULL, *key = NULL; dst_key_fromnamedfile() local 723 dst_key_todns(const dst_key_t * key,isc_buffer_t * target) dst_key_todns() argument 768 dst_key_t *key = NULL; dst_key_fromdns_ex() local 811 dst_key_t *key = NULL; dst_key_frombuffer() local 833 dst_key_tobuffer(const dst_key_t * key,isc_buffer_t * target) dst_key_tobuffer() argument 848 dst_key_privatefrombuffer(dst_key_t * key,isc_buffer_t * buffer) dst_key_privatefrombuffer() argument 872 dst_key_getgssctx(const dst_key_t * key) dst_key_getgssctx() argument 881 dst_key_t *key; dst_key_fromgssapi() local 978 dst_key_t *key; dst_key_buildinternal() local 1012 dst_key_t *key; dst_key_fromlabel() local 1054 dst_key_t *key; dst_key_generate() local 1098 dst_key_getbool(const dst_key_t * key,int type,bool * valuep) dst_key_getbool() argument 1115 dst_key_setbool(dst_key_t * key,int type,bool value) dst_key_setbool() argument 1128 dst_key_unsetbool(dst_key_t * key,int type) dst_key_unsetbool() argument 1139 dst_key_getnum(const dst_key_t * key,int type,uint32_t * valuep) dst_key_getnum() argument 1156 dst_key_setnum(dst_key_t * key,int type,uint32_t value) dst_key_setnum() argument 1169 dst_key_unsetnum(dst_key_t * key,int type) dst_key_unsetnum() argument 1180 dst_key_gettime(const dst_key_t * key,int type,isc_stdtime_t * timep) dst_key_gettime() argument 1196 dst_key_settime(dst_key_t * key,int type,isc_stdtime_t when) dst_key_settime() argument 1209 dst_key_unsettime(dst_key_t * key,int type) dst_key_unsettime() argument 1220 dst_key_getstate(const dst_key_t * key,int type,dst_key_state_t * statep) dst_key_getstate() argument 1237 dst_key_setstate(dst_key_t * key,int type,dst_key_state_t state) dst_key_setstate() argument 1250 dst_key_unsetstate(dst_key_t * key,int type) dst_key_unsetstate() argument 1261 dst_key_getprivateformat(const dst_key_t * key,int * majorp,int * minorp) dst_key_getprivateformat() argument 1271 dst_key_setprivateformat(dst_key_t * key,int major,int minor) dst_key_setprivateformat() argument 1409 dst_key_t *key = *keyp; dst_key_free() local 1437 dst_key_isprivate(const dst_key_t * key) dst_key_isprivate() argument 1444 dst_key_buildfilename(const dst_key_t * key,int type,const char * directory,isc_buffer_t * out) dst_key_buildfilename() argument 1456 dst_key_sigsize(const dst_key_t * key,unsigned int * n) dst_key_sigsize() argument 1510 dst_key_secretsize(const dst_key_t * key,unsigned int * n) dst_key_secretsize() argument 1526 dst_key_setflags(dst_key_t * key,uint32_t flags) dst_key_setflags() argument 1533 dst_key_format(const dst_key_t * key,char * cp,unsigned int size) dst_key_format() argument 1544 dst_key_dump(dst_key_t * key,isc_mem_t * mctx,char ** buffer,int * length) dst_key_dump() argument 1560 dst_key_t *key; dst_key_restore() local 1599 dst_key_t *key; get_key_struct() local 1634 dst_key_inactive(const dst_key_t * key) dst_key_inactive() argument 1641 dst_key_setinactive(dst_key_t * key,bool inactive) dst_key_setinactive() argument 1987 issymmetric(const dst_key_t * key) issymmetric() argument 2020 printbool(const dst_key_t * key,int type,const char * tag,FILE * stream) printbool() argument 2035 printnum(const dst_key_t * key,int type,const char * tag,FILE * stream) printnum() argument 2050 printtime(const dst_key_t * key,int type,const char * tag,FILE * stream) printtime() argument 2082 printstate(const dst_key_t * key,int type,const char * tag,FILE * stream) printstate() argument 2097 write_key_state(const dst_key_t * key,int type,const char * directory) write_key_state() argument 2184 write_public_key(const dst_key_t * key,int type,const char * directory) write_public_key() argument 2343 computeid(dst_key_t * key) computeid() argument 2366 dst_key_t *key; frombuffer() local 2443 dst_key_tkeytoken(const dst_key_t * key) dst_key_tkeytoken() argument 2454 dst_key_is_unused(dst_key_t * key) dst_key_is_unused() argument 2523 dst_key_role(dst_key_t * key,bool * ksk,bool * zsk) dst_key_role() argument 2552 dst_key_is_published(dst_key_t * key,isc_stdtime_t now,isc_stdtime_t * publish) dst_key_is_published() argument 2586 dst_key_is_active(dst_key_t * key,isc_stdtime_t now) dst_key_is_active() argument 2645 dst_key_is_signing(dst_key_t * key,int role,isc_stdtime_t now,isc_stdtime_t * active) dst_key_is_signing() argument 2701 dst_key_is_revoked(dst_key_t * key,isc_stdtime_t now,isc_stdtime_t * revoke) dst_key_is_revoked() argument 2718 dst_key_is_removed(dst_key_t * key,isc_stdtime_t now,isc_stdtime_t * remove) dst_key_is_removed() argument 2756 dst_key_goal(dst_key_t * key) dst_key_goal() argument 2770 dst_key_haskasp(dst_key_t * key) dst_key_haskasp() argument [all...] |
| H A D | key.c | 1 /* $NetBSD: key.c,v 1.9 2025/01/26 16:25:23 christos Exp $ */ 82 dst_key_name(const dst_key_t *key) { in dst_key_name() 83 REQUIRE(VALID_KEY(key)); in dst_key_name() 84 return key->key_name; in dst_key_name() 88 dst_key_size(const dst_key_t *key) { in dst_key_size() 89 REQUIRE(VALID_KEY(key)); in dst_key_size() 90 return key->key_size; in dst_key_size() 94 dst_key_proto(const dst_key_t *key) { in dst_key_proto() 95 REQUIRE(VALID_KEY(key)); in dst_key_proto() 96 return key in dst_key_proto() 81 dst_key_name(const dst_key_t * key) dst_key_name() argument 87 dst_key_size(const dst_key_t * key) dst_key_size() argument 93 dst_key_proto(const dst_key_t * key) dst_key_proto() argument 99 dst_key_alg(const dst_key_t * key) dst_key_alg() argument 105 dst_key_flags(const dst_key_t * key) dst_key_flags() argument 111 dst_key_id(const dst_key_t * key) dst_key_id() argument 117 dst_key_rid(const dst_key_t * key) dst_key_rid() argument 123 dst_key_class(const dst_key_t * key) dst_key_class() argument 129 dst_key_iszonekey(const dst_key_t * key) dst_key_iszonekey() argument 147 dst_key_isnullkey(const dst_key_t * key) dst_key_isnullkey() argument 165 dst_key_setbits(dst_key_t * key,uint16_t bits) dst_key_setbits() argument 177 dst_key_getbits(const dst_key_t * key) dst_key_getbits() argument 183 dst_key_setttl(dst_key_t * key,dns_ttl_t ttl) dst_key_setttl() argument 189 dst_key_getttl(const dst_key_t * key) dst_key_getttl() argument [all...] |
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | keymgr.c | 51 #define INITIALIZE_STATE(key, state, timing, target, time) \ argument 54 if (dst_key_getstate((key), (state), &s) == ISC_R_NOTFOUND) { \ 55 dst_key_setstate((key), (state), (target)); \ 56 dst_key_settime((key), (timing), time); \ 82 keymgr_keyrole(dst_key_t *key) { in keymgr_keyrole() argument 85 ret = dst_key_getbool(key, DST_BOOL_KSK, &ksk); in keymgr_keyrole() 89 ret = dst_key_getbool(key, DST_BOOL_ZSK, &zsk); in keymgr_keyrole() 108 keymgr_settime_remove(dns_dnsseckey_t *key, dns_kasp_t *kasp) { in keymgr_settime_remove() argument 113 REQUIRE(key != NULL); in keymgr_settime_remove() 114 REQUIRE(key->key != NULL); in keymgr_settime_remove() [all …]
|
| H A D | dst_api.c | 158 write_public_key(const dst_key_t *key, int type, const char *directory); 160 write_key_state(const dst_key_t *key, int type, const char *directory); 165 computeid(dst_key_t *key); 293 dst_context_create(dst_key_t *key, isc_mem_t *mctx, isc_logcategory_t *category, in dst_context_create() argument 299 REQUIRE(VALID_KEY(key)); in dst_context_create() 303 if (key->func->createctx == NULL && key->func->createctx2 == NULL) { in dst_context_create() 306 if (key->keydata.generic == NULL) { in dst_context_create() 312 dst_key_attach(key, &dctx->key); in dst_context_create() 320 if (key->func->createctx2 != NULL) { in dst_context_create() 321 result = key->func->createctx2(key, maxbits, dctx); in dst_context_create() [all …]
|
| H A D | key.c | 81 dst_key_name(const dst_key_t *key) { in dst_key_name() argument 82 REQUIRE(VALID_KEY(key)); in dst_key_name() 83 return (key->key_name); in dst_key_name() 87 dst_key_size(const dst_key_t *key) { in dst_key_size() argument 88 REQUIRE(VALID_KEY(key)); in dst_key_size() 89 return (key->key_size); in dst_key_size() 93 dst_key_proto(const dst_key_t *key) { in dst_key_proto() argument 94 REQUIRE(VALID_KEY(key)); in dst_key_proto() 95 return (key->key_proto); in dst_key_proto() 99 dst_key_alg(const dst_key_t *key) { in dst_key_alg() argument [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/des/asm/ |
| H A D | dest4-sparcv9.pl | 102 { my ($inp,$out,$len,$key,$ivec) = map("%o$_",(0..4)); 129 ldd [$key + 0x00], %f4 ! load key schedule 130 ldd [$key + 0x08], %f6 131 ldd [$key + 0x10], %f8 132 ldd [$key + 0x18], %f10 133 ldd [$key + 0x20], %f12 134 ldd [$key + 0x28], %f14 135 ldd [$key + 0x30], %f16 136 ldd [$key + 0x38], %f18 137 ldd [$key + 0x40], %f20 [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/des/asm/ |
| H A D | dest4-sparcv9.pl | 100 { my ($inp,$out,$len,$key,$ivec) = map("%o$_",(0..4)); 127 ldd [$key + 0x00], %f4 ! load key schedule 128 ldd [$key + 0x08], %f6 129 ldd [$key + 0x10], %f8 130 ldd [$key + 0x18], %f10 131 ldd [$key + 0x20], %f12 132 ldd [$key + 0x28], %f14 133 ldd [$key + 0x30], %f16 134 ldd [$key + 0x38], %f18 135 ldd [$key + 0x40], %f20 [all …]
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/ |
| H A D | create.c | 169 pubkey_length(const pgp_pubkey_t *key) in pubkey_length() argument 171 switch (key->alg) { in pubkey_length() 173 return mpi_length(key->key.dsa.p) + mpi_length(key->key.dsa.q) + in pubkey_length() 174 mpi_length(key->key.dsa.g) + mpi_length(key->key.dsa.y); in pubkey_length() 177 return mpi_length(key->key.rsa.n) + mpi_length(key->key.rsa.e); in pubkey_length() 187 seckey_length(const pgp_seckey_t *key) in seckey_length() argument 192 switch (key->pubkey.alg) { in seckey_length() 194 return (unsigned)(mpi_length(key->key.dsa.x) + pubkey_length(&key->pubkey)); in seckey_length() 196 len = mpi_length(key->key.rsa.d) + mpi_length(key->key.rsa.p) + in seckey_length() 197 mpi_length(key->key.rsa.q) + mpi_length(key->key.rsa.u); in seckey_length() [all …]
|
| H A D | keyring.c | 140 pgp_pubkey_free(&keydata->key.pubkey); in pgp_keydata_free() 142 pgp_seckey_free(&keydata->key.seckey); in pgp_keydata_free() 163 &keydata->key.pubkey : in pgp_get_pubkey() 164 &keydata->key.seckey.pubkey; in pgp_get_pubkey() 194 &data->key.seckey : NULL; in pgp_get_seckey() 212 &data->key.seckey : NULL; in pgp_get_writable_seckey() 224 const pgp_key_t *key; member 319 pgp_decrypt_seckey(const pgp_key_t *key, FILE *passfp) in pgp_decrypt_seckey() argument 327 decrypt.key = key; in pgp_decrypt_seckey() 329 pgp_keydata_reader_set(stream, key); in pgp_decrypt_seckey() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | ctable.ref | 1 key = a 3 ./ctable: ctable_locate: install entry key a 5 key = b 7 ./ctable: ctable_locate: install entry key b 9 key = c 11 ./ctable: ctable_locate: install entry key c 13 key = d 15 ./ctable: ctable_locate: install entry key d 17 key = e 19 ./ctable: ctable_locate: install entry key e [all …]
|
| /netbsd-src/external/gpl2/texinfo/dist/info/ |
| H A D | session.h | 38 void name (WINDOW *window, int count, unsigned char key) 66 extern void info_dispatch_on_key (unsigned char key, Keymap map); 121 extern void info_next_line (WINDOW *window, int count, unsigned char key); 122 extern void info_prev_line (WINDOW *window, int count, unsigned char key); 123 extern void info_end_of_line (WINDOW *window, int count, unsigned char key); 124 extern void info_beginning_of_line (WINDOW *window, int count, unsigned char key); 125 extern void info_forward_char (WINDOW *window, int count, unsigned char key); 126 extern void info_backward_char (WINDOW *window, int count, unsigned char key); 127 extern void info_forward_word (WINDOW *window, int count, unsigned char key); 128 extern void info_backward_word (WINDOW *window, int count, unsigned char key); [all …]
|
| /netbsd-src/sys/dev/fdt/ |
| H A D | gpiokeys.c | 162 struct gpiokeys_key *key; in gpiokeys_attach() local 184 key = kmem_zalloc(sizeof(*key), KM_SLEEP); in gpiokeys_attach() 185 key->key_sc = sc; in gpiokeys_attach() 186 key->key_phandle = child; in gpiokeys_attach() 187 key->key_code = code; in gpiokeys_attach() 188 key->key_label = kmem_zalloc(len, KM_SLEEP); in gpiokeys_attach() 189 if (OF_getprop(child, "label", key->key_label, len) != len) { in gpiokeys_attach() 190 kmem_free(key->key_label, len); in gpiokeys_attach() 191 kmem_free(key, sizeof(*key)); in gpiokeys_attach() 194 key->key_debounce = debounce; in gpiokeys_attach() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/certs/ |
| H A D | setup.sh | 4 ./mkcert.sh genroot "Root CA" root-key root-cert 6 ./mkcert.sh genss "Root CA" root-key root-nonca 8 ./mkcert.sh genroot "Root Cert 2" root-key root-name2 9 DAYS=-1 ./mkcert.sh genroot "Root CA" root-key root-expired 11 ./mkcert.sh genroot "Cross Root" cross-key cross-root 12 ./mkcert.sh genca "Root CA" root-key root-cross-cert cross-key cross-root 43 ./mkcert.sh genroot "Root CA" root-key root-cert-md5 46 ./mkcert.sh genroot "Root CA" root-key-768 root-cert-768 49 ./mkcert.sh genroot "Root CA" root-key croot-cert clientAuth 65 ./mkcert.sh genroot "Root CA" root-key sroot-cert serverAuth [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/postconf/ |
| H A D | extract.awk | 109 for (key in int_vars) 110 print key 114 for (key in str_vars) 115 print key 119 for (key in str_fn_vars) 120 print key 124 for (key in raw_vars) 125 print key 129 for (key in bool_vars) 130 print key [all …]
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
| H A D | tcs_key.c | 37 TSS_KEY key, *pKey; in add_cache_entry() local 43 if ((result = UnloadBlob_TSS_KEY(&offset, blob, &key))) in add_cache_entry() 46 if ((tcsHandle = mc_get_handle_by_pub(&key.pubKey, hParent)) == NULL_TCS_HANDLE) { in add_cache_entry() 47 pKey = &key; in add_cache_entry() 78 destroy_key_refs(&key); in add_cache_entry() 153 TSS_KEY key; in load_key_init() local 162 memset(&key, 0, sizeof(TSS_KEY)); in load_key_init() 163 if ((result = UnloadBlob_TSS_KEY(&offset, blob, &key))) in load_key_init() 170 if ((tcs_handle = mc_get_handle_by_pub(&key.pubKey, parent_handle))) { in load_key_init() 187 if ((result = canILoadThisKey(&(key.algorithmParms), &canLoad))) in load_key_init() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/otp/ |
| H A D | otp_print.c | 46 otp_checksum (OtpKey key) in otp_checksum() argument 52 sum += ((key[i] >> 0) & 0x03) in otp_checksum() 53 + ((key[i] >> 2) & 0x03) in otp_checksum() 54 + ((key[i] >> 4) & 0x03) in otp_checksum() 55 + ((key[i] >> 6) & 0x03); in otp_checksum() 61 otp_print_stddict (OtpKey key, char *str, size_t sz) in otp_print_stddict() argument 65 sum = otp_checksum (key); in otp_print_stddict() 68 std_dict[(key[0] << 3) | (key[1] >> 5)], in otp_print_stddict() 69 std_dict[((key[1] & 0x1F) << 6) | (key[2] >> 2)], in otp_print_stddict() 70 std_dict[((key[2] & 0x03) << 9) | (key[3] << 1) | (key[4] >> 7)], in otp_print_stddict() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| H A D | e_rc4_hmac_md5.c | 32 void rc4_md5_enc(RC4_KEY *key, const void *in0, void *out, 41 EVP_RC4_HMAC_MD5 *key = data(ctx); in rc4_hmac_md5_init_key() local 43 RC4_set_key(&key->ks, EVP_CIPHER_CTX_key_length(ctx), inkey); in rc4_hmac_md5_init_key() 45 MD5_Init(&key->head); /* handy when benchmarking */ in rc4_hmac_md5_init_key() 46 key->tail = key->head; in rc4_hmac_md5_init_key() 47 key->md = key->head; in rc4_hmac_md5_init_key() 49 key->payload_length = NO_PAYLOAD_LENGTH; in rc4_hmac_md5_init_key() 68 EVP_RC4_HMAC_MD5 *key = data(ctx); in rc4_hmac_md5_cipher() local 70 size_t rc4_off = 32 - 1 - (key->ks.x & (32 - 1)), /* 32 is $MOD from in rc4_hmac_md5_cipher() 72 md5_off = MD5_CBLOCK - key->md.num, blocks; in rc4_hmac_md5_cipher() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| H A D | e_rc4_hmac_md5.c | 39 void rc4_md5_enc(RC4_KEY *key, const void *in0, void *out, 48 EVP_RC4_HMAC_MD5 *key = data(ctx); in rc4_hmac_md5_init_key() local 54 RC4_set_key(&key->ks, keylen, inkey); in rc4_hmac_md5_init_key() 56 MD5_Init(&key->head); /* handy when benchmarking */ in rc4_hmac_md5_init_key() 57 key->tail = key->head; in rc4_hmac_md5_init_key() 58 key->md = key->head; in rc4_hmac_md5_init_key() 60 key->payload_length = NO_PAYLOAD_LENGTH; in rc4_hmac_md5_init_key() 79 EVP_RC4_HMAC_MD5 *key = data(ctx); in rc4_hmac_md5_cipher() local 81 size_t rc4_off = 32 - 1 - (key->ks.x & (32 - 1)), /* 32 is $MOD from in rc4_hmac_md5_cipher() 83 md5_off = MD5_CBLOCK - key->md.num, blocks; in rc4_hmac_md5_cipher() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/certs/ |
| H A D | setup.sh | 7 ./mkcert.sh genroot "Root CA" root-key root-cert 8 DAYS=-1 ./mkcert.sh genroot "Root CA" root-key root-expired 9 ./mkcert.sh genss "Root CA" root-key root-nonca 11 ./mkcert.sh genroot "Root Cert 2" root-key root-name2 12 ./mkcert.sh genroot "Cross Root" cross-key cross-root 13 ./mkcert.sh genca "Root CA" root-key root-cross-cert cross-key cross-root 41 ./mkcert.sh genroot "Root CA" root-key root-cert-md5 44 ./mkcert.sh genroot "Root CA" root-key-768 root-cert-768 49 ./mkcert.sh genroot "Root CA" root-key croot-cert clientAuth 67 ./mkcert.sh genroot "Root CA" root-key sroot-cert serverAuth [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/ |
| H A D | params.h | 27 # define OSSL_PARAM_DEFN(key, type, addr, sz) \ argument 28 { (key), (type), (addr), (sz), OSSL_PARAM_UNMODIFIED } 31 # define OSSL_PARAM_int(key, addr) \ argument 32 OSSL_PARAM_DEFN((key), OSSL_PARAM_INTEGER, (addr), sizeof(int)) 33 # define OSSL_PARAM_uint(key, addr) \ argument 34 OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (addr), \ 36 # define OSSL_PARAM_long(key, addr) \ argument 37 OSSL_PARAM_DEFN((key), OSSL_PARAM_INTEGER, (addr), sizeof(long int)) 38 # define OSSL_PARAM_ulong(key, addr) \ argument 39 OSSL_PARAM_DEFN((key), OSSL_PARAM_UNSIGNED_INTEGER, (addr), \ [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/rsa/ |
| H A D | rsa_chk.c | 22 static int rsa_validate_keypair_multiprime(const RSA *key, BN_GENCB *cb) in rsa_validate_keypair_multiprime() argument 29 if (key->p == NULL || key->q == NULL || key->n == NULL in rsa_validate_keypair_multiprime() 30 || key->e == NULL || key->d == NULL) { in rsa_validate_keypair_multiprime() 36 if (key->version == RSA_ASN1_VERSION_MULTI) { in rsa_validate_keypair_multiprime() 37 ex_primes = sk_RSA_PRIME_INFO_num(key->prime_infos); in rsa_validate_keypair_multiprime() 39 || (ex_primes + 2) > ossl_rsa_multip_cap(BN_num_bits(key->n))) { in rsa_validate_keypair_multiprime() 50 ctx = BN_CTX_new_ex(key->libctx); in rsa_validate_keypair_multiprime() 58 if (BN_is_one(key->e)) { in rsa_validate_keypair_multiprime() 62 if (!BN_is_odd(key->e)) { in rsa_validate_keypair_multiprime() 68 if (BN_check_prime(key->p, ctx, cb) != 1) { in rsa_validate_keypair_multiprime() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/ssl-tests/ |
| H A D | 28-seclevel.conf | 5 test-0 = 0-SECLEVEL 3 with default key 6 test-1 = 1-SECLEVEL 4 with ED448 key 7 test-2 = 2-SECLEVEL 5 server with ED448 key 8 test-3 = 3-SECLEVEL 5 client with ED448 key 9 test-4 = 4-SECLEVEL 3 with P-384 key, X25519 ECDHE 10 test-5 = 5-SECLEVEL 3 with ED448 key, TLSv1.2 13 [0-SECLEVEL 3 with default key] 14 ssl_conf = 0-SECLEVEL 3 with default key-ssl 16 [0-SECLEVEL 3 with default key-ssl] 17 server = 0-SECLEVEL 3 with default key-server [all …]
|