/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/hmac/ |
H A D | hmac.c | 49 * by the file descirptor, 'fd'. The key, 'hmac_key', and key type, 'ka', 57 hash_gen(int in_fd, const wbku_key_attr_t *ka, const uint8_t *hmac_key) argument 67 HMACInit(&ctx, hmac_key, ka->ka_len); 83 HMACFinal(&ctx, hmac_key, ka->ka_len, digest); 126 wbku_key_attr_t ka; local 209 wbkuret = wbku_str_to_keyattr(WBKU_KW_HMAC_SHA1, &ka, WBKU_HASH_KEY); 218 wbkuret = wbku_find_key(key_fp, NULL, &ka, hmac_key, B_FALSE); 223 ret = hash_gen(in_fd, &ka, hmac_key);
|
/illumos-gate/usr/src/lib/libwanbootutil/common/ |
H A D | key_util.c | 182 * initialized by the caller) for the key of type 'ka'. The search is further 198 wbku_find_key(FILE *fp, fpos_t *ppos, wbku_key_attr_t *ka, uint8_t *ekey, argument 258 if ((strcmp(keyobj.wk_oid, ka->ka_oid) == 0) && 261 ka->ka_len = keyobj.wk_key_len; 269 ka->ka_len); 294 wbku_write_key(FILE *fp, const fpos_t *ppos, const wbku_key_attr_t *ka, argument 320 keyobj.wk_oid = ka->ka_oid; 321 keyobj.wk_key_len = ka->ka_len; 342 * another, omitting the key of the type defined by 'ka'. 348 wbku_delete_key(FILE *from_fp, FILE *to_fp, const wbku_key_attr_t *ka) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/encr/ |
H A D | encr.c | 60 * supplied arguments, 'ka'. 66 process_option(char *arg, wbku_key_attr_t *ka) argument 77 ret = wbku_str_to_keyattr(value, ka, WBKU_ENCR_KEY); 93 * This routine is used to find the key of type defined by 'ka' and 101 get_key(FILE *key_fp, wbku_key_attr_t *ka, uint8_t *key) argument 108 ret = wbku_find_key(key_fp, NULL, ka, key, B_FALSE); 223 encr_gen_3des(const wbku_key_attr_t *ka, const uint8_t *key) argument 240 cbc_makehandle(&ch, eh, ka->ka_len, DES3_BLOCK_SIZE, 264 encr_gen_aes(const wbku_key_attr_t *ka, const uint8_t *key) argument 276 aes_key(eh, key, ka 322 wbku_key_attr_t ka; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keymgmt/ |
H A D | keymgmt.c | 63 * supplied arguments, 'ka'. 69 process_option(char *arg, wbku_key_attr_t *ka) argument 80 ret = wbku_str_to_keyattr(value, ka, WBKU_ANY_KEY); 99 * This routine extracts a key of type 'ka' from the keystore named 107 wbku_key_attr_t *ka) 126 ret = wbku_find_key(keystore_fp, NULL, ka, ex_key, B_FALSE); 130 ka->ka_str); 151 i = fwrite(ex_key, sizeof (uint8_t), ka->ka_len, fp); 152 if (i != ka->ka_len) { 181 const wbku_key_attr_t *ka) 106 process_extract(const char *keystore_name, const char *name, wbku_key_attr_t *ka) argument 180 compress_keystore(const char *keystore_name, FILE *fp, const wbku_key_attr_t *ka) argument 247 process_insert(const char *keystore_name, const char *name, wbku_key_attr_t *ka) argument 422 wbku_key_attr_t ka; local [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | klpdlib.c | 68 klpd_arg_t *ka; local 77 ka = KLH_ARG(klh); 80 ctx.kc_type = ka == NULL ? KLPDARG_NONE : ka->kla_type; 88 ctx.kc_path = ka->kla_str; 92 ctx.kc_int = ka->kla_int;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keygen/ |
H A D | keygen.c | 69 * supplied arguments, 'net', 'cid' and 'ka'. 75 process_option(char *arg, char **net, char **cid, wbku_key_attr_t *ka) argument 98 ret = wbku_str_to_keyattr(value, ka, WBKU_ANY_KEY); 126 if (ka->ka_type == WBKU_KEY_UNKNOWN) { 226 * This routine generates a random key of the type defined by 'ka'. 231 * If 'ka' has a non-NULL keycheck value, then the routine will 238 gen_key(const wbku_key_attr_t *ka, uint8_t *rand_key) argument 244 if (wbio_nread_rand(rand_key, ka->ka_len) != 0) { 249 if (ka->ka_keycheck == NULL || ka 264 master_gen_key(wbku_key_attr_t *ka) argument 356 client_gen_key(const char *filename, wbku_key_attr_t *ka, const char *net, const char *cid) argument 535 display_key(const char *filename, wbku_key_attr_t *ka, boolean_t master) argument 618 wbku_key_attr_t ka; local [all...] |
/illumos-gate/usr/src/uts/sparc/v9/os/ |
H A D | simulator.c | 854 caddr_t ka; local 1130 ka = ppmapin(pp, PROT_READ|PROT_WRITE, (caddr_t)rp->r_pc); 1131 *(uint_t *)(ka + (uintptr_t)(rp->r_pc % PAGESIZE)) = inst; 1132 doflush(ka + (uintptr_t)(rp->r_pc % PAGESIZE)); 1133 ppmapout(ka);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_fip.c | 624 fip_keep_alive_t *ka; local 651 ka = (fip_keep_alive_t *)(void *)pkt; 657 proto = &ka->ka_proto_version; 663 hdr = &ka->ka_fip_header; 676 vid = &ka->ka_vnic_identity;
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_destroy.c | 557 struct killarg *ka = arg; local 558 dmu_tx_t *tx = ka->tx; 569 dsl_free(ka->tx->tx_pool, ka->tx->tx_txg, bp); 573 dsl_dataset_phys(ka->ds)->ds_prev_snap_txg); 574 (void) dsl_dataset_block_kill(ka->ds, bp, tx, B_FALSE); 583 struct killarg ka; local 592 ka.ds = ds; 593 ka.tx = tx; 596 kill_blkptr, &ka)); [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/ |
H A D | wanboot-cgi.c | 942 wbku_key_attr_t ka; local 945 * Map keytype into the ka structure 947 if (wbku_str_to_keyattr(keytype, &ka, flag) != WBKU_SUCCESS) { 961 if (wbku_find_key(key_fp, NULL, &ka, NULL, B_FALSE) != WBKU_SUCCESS) {
|
/illumos-gate/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_clientstub.c | 2234 SleepKAContext *ka = (SleepKAContext *)context; local 2241 if (ka->AppCallback) 2242 ((DNSServiceSleepKeepaliveReply)ka->AppCallback)(sdRef, errorCode, ka->AppContext); 2266 SleepKAContext *ka; local 2364 ka = malloc(sizeof(SleepKAContext)); 2365 if (!ka) return kDNSServiceErr_NoMemory; 2366 ka->AppCallback = (void *)callBack; 2367 ka->AppContext = context; 2373 free(ka); [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kvm.c | 1651 kmt_bparg_t *ka = args; local 1660 if (ka->ka_symbol != NULL) { 1661 if (mdb_tgt_lookup_by_scope(t, ka->ka_symbol, &s, NULL) == -1) { 1665 ka->ka_symbol); 1670 ka->ka_addr = (uintptr_t)s.st_value; 1674 if (ka->ka_addr & 3) 1678 if (mdb_vread(&instr, sizeof (instr), ka->ka_addr) != sizeof (instr)) 1685 kb->kb_addr = ka->ka_addr; 1706 kmt_bparg_t *ka = vep->ve_args; local 1708 if (ka 1732 kmt_bparg_t *ka = args; local 2151 kmt_bparg_t *ka = vep->ve_args; local 2166 kmt_bparg_t *ka = mdb_alloc(sizeof (kmt_bparg_t), UM_SLEEP); local 2180 kmt_bparg_t *ka; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | genunix.c | 2185 kmastat_args_t ka; local 2187 ka.ka_shift = 0; 2189 'k', MDB_OPT_SETBITS, KILOS, &ka.ka_shift, 2190 'm', MDB_OPT_SETBITS, MEGS, &ka.ka_shift, 2191 'g', MDB_OPT_SETBITS, GIGS, &ka.ka_shift, NULL) != argc) 2206 ka.ka_kvpp = &kv; 2207 if (mdb_walk("kmem_cache", (mdb_walk_cb_t)kmastat_cache, &ka) == -1) { 2216 if (mdb_walk("vmem", (mdb_walk_cb_t)kmastat_vmem_totals, &ka) == -1) { 2239 if (mdb_walk("vmem", (mdb_walk_cb_t)kmastat_vmem, &ka.ka_shift) == -1) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNS.c | 775 // CacheRecord *ka is the CacheRecord from the known answer list in the query. 782 mDNSlocal mDNSBool ShouldSuppressKnownAnswer(const CacheRecord *const ka, const AuthRecord *const rr) argument 785 if (!IdenticalResourceRecord(&ka->resrec, &rr->resrec)) return(mDNSfalse); 796 return (mDNSBool)(ka->resrec.rroriginalttl >= rr->resrec.rroriginalttl / 2); 2997 CacheRecord **ka = *kalistptrptr; // Make a working copy of the pointer we're going to update local 3002 rr->NextInKAList == mDNSNULL && ka != &rr->NextInKAList && // which is not already in the known answer list 3014 *ka = rr; // Link this record into our known answer chain 3015 ka = &rr->NextInKAList; 3025 ka = *kalistptrptr; // Go back to where we started and retract these answer records 3026 while (*ka) { CacheRecor 3674 CacheRecord *ka = KnownAnswerList; local [all...] |