Home
last modified time | relevance | path

Searched refs:keybuf (Results 1 – 15 of 15) sorted by relevance

/openbsd-src/usr.bin/mg/
H A Dhelp.c129 char buf[80], keybuf[16]; in showall() local
142 (void)snprintf(keybuf, sizeof(keybuf), "%s%s ", prefix, buf); in showall()
144 if (showall(bp, newmap, keybuf) == FALSE) in showall()
147 if (addlinef(bp, "%-16s%s", keybuf, in showall()
213 char buf2[16], keybuf[16]; in findbind() local
225 getkeyname(keybuf, sizeof(keybuf), c); in findbind()
226 (void)snprintf(buf, len, "%s %s", keybuf, buf2); in findbind()
/openbsd-src/sbin/restore/
H A Drestore.c469 static char keybuf[32]; in keyval() local
471 (void)strlcpy(keybuf, "|NIL", sizeof keybuf); in keyval()
472 keybuf[0] = '\0'; in keyval()
474 (void)strlcat(keybuf, "|ONTAPE", sizeof keybuf); in keyval()
476 (void)strlcat(keybuf, "|INOFND", sizeof keybuf); in keyval()
478 (void)strlcat(keybuf, "|NAMEFND", sizeof keybuf); in keyval()
480 (void)strlcat(keybuf, "|MODECHG", sizeof keybuf); in keyval()
481 return (&keybuf[1]); in keyval()
/openbsd-src/usr.sbin/amd/amd/
H A Dam_ops.c103 char keybuf[MAXPATHLEN]; in sunos4_match() local
105 snprintf(keybuf, sizeof(keybuf), in sunos4_match()
110 return ops_match(fo, keybuf, "", path, keym, map); in sunos4_match()
/openbsd-src/lib/libcrypto/pem/
H A Dpvkfmt.c743 unsigned char keybuf[20]; in do_PVK_body() local
759 if (!derive_pvk_key(keybuf, p, saltlen, (unsigned char *)psbuf, in do_PVK_body()
773 if (!EVP_DecryptInit_ex(cctx, EVP_rc4(), NULL, keybuf, NULL)) in do_PVK_body()
782 memset(keybuf + 5, 0, 11); in do_PVK_body()
783 if (!EVP_DecryptInit_ex(cctx, EVP_rc4(), NULL, keybuf, in do_PVK_body()
786 explicit_bzero(keybuf, 20); in do_PVK_body()
798 explicit_bzero(keybuf, 20); in do_PVK_body()
889 unsigned char keybuf[20]; in i2b_PVK() local
899 if (!derive_pvk_key(keybuf, salt, PVK_SALTLEN, in i2b_PVK()
903 memset(keybuf + 5, 0, 11); in i2b_PVK()
[all …]
/openbsd-src/sys/net80211/
H A Dieee80211_crypto.c527 u_int8_t keybuf[EAPOL_KEY_IV_LEN + 16]; in ieee80211_eapol_key_encrypt() local
545 memcpy(keybuf, key->iv, EAPOL_KEY_IV_LEN); in ieee80211_eapol_key_encrypt()
546 memcpy(keybuf + EAPOL_KEY_IV_LEN, kek, 16); in ieee80211_eapol_key_encrypt()
548 rc4_keysetup(&ctx.rc4, keybuf, sizeof keybuf); in ieee80211_eapol_key_encrypt()
587 u_int8_t keybuf[EAPOL_KEY_IV_LEN + 16]; in ieee80211_eapol_key_decrypt() local
598 memcpy(keybuf, key->iv, EAPOL_KEY_IV_LEN); in ieee80211_eapol_key_decrypt()
599 memcpy(keybuf + EAPOL_KEY_IV_LEN, kek, 16); in ieee80211_eapol_key_decrypt()
601 rc4_keysetup(&ctx.rc4, keybuf, sizeof keybuf); in ieee80211_eapol_key_decrypt()
/openbsd-src/usr.sbin/ypldap/
H A Dyp.c723 static char keybuf[YPMAXRECORD+1]; in yp_make_keyval() local
726 memset(keybuf, 0, sizeof(keybuf)); in yp_make_keyval()
729 (void)strlcpy(keybuf, key, sizeof(keybuf)); in yp_make_keyval()
730 res->key.keydat_len = strlen(keybuf); in yp_make_keyval()
731 res->key.keydat_val = keybuf; in yp_make_keyval()
741 log_debug("sending out %s => %s", keybuf, buf); in yp_make_keyval()
/openbsd-src/usr.sbin/radiusd/
H A Dradiusd_ipcp.c1396 char keybuf[128];
1412 if (key.size >= sizeof(keybuf)) in ipcp_del_db()
1414 memcpy(keybuf, key.data, key.size);
1415 keybuf[key.size] = '\0';
1416 if (strncmp(keybuf, "ipv4/", 5) != 0) in ipcp_db_dump_fill_record()
1418 inet_pton(AF_INET, keybuf + 5, &ipv4); in ipcp_db_dump_fill_record()
1461 char keybuf[128]; in ipcp_schedule_timer()
1465 strlcpy(keybuf, "ipv4/", sizeof(keybuf)); in ipcp_schedule_timer()
1466 inet_ntop(AF_INET, &assigned->ipv4, keybuf in ipcp_schedule_timer()
1297 char keybuf[128]; ipcp_restore_from_db() local
1362 char keybuf[128]; ipcp_put_db() local
1401 char keybuf[128]; ipcp_del_db() local
[all...]
/openbsd-src/sys/dev/
H A Drnd.c551 char keybuf[KEYSZ + IVSZ]; in arc4random_ctx_new()
554 arc4random_buf(keybuf, KEYSZ + IVSZ); in arc4random_ctx_new()
555 chacha_keysetup(ctx, keybuf, KEYSZ * 8); in arc4random_ctx_new()
556 chacha_ivsetup(ctx, keybuf + KEYSZ, NULL); in arc4random_ctx_new()
557 explicit_bzero(keybuf, sizeof(keybuf)); in arc4random_ctx_new()
550 char keybuf[KEYSZ + IVSZ]; arc4random_ctx_new() local
/openbsd-src/usr.sbin/snmpd/
H A Dusm.c690 u_char keybuf[EVP_MAX_MD_SIZE]; in usm_passwd2key() local
713 if (!EVP_DigestFinal_ex(ctx, keybuf, &dlen)) { in usm_passwd2key()
722 memcpy(pwbuf, keybuf, dlen); in usm_passwd2key()
725 memcpy(pwbuf + dlen + snmpd_env->sc_engineid_len, keybuf, dlen); in usm_passwd2key()
730 !EVP_DigestFinal_ex(ctx, keybuf, &dlen)) { in usm_passwd2key()
740 memcpy(key, keybuf, dlen); in usm_passwd2key()
/openbsd-src/usr.bin/snmp/
H A Dusm.c629 u_char keybuf[EVP_MAX_MD_SIZE]; in usm_passwd2mkey() local
642 c = keybuf; in usm_passwd2mkey()
648 if (!EVP_DigestUpdate(ctx, keybuf, 64)) { in usm_passwd2mkey()
653 if (!EVP_DigestFinal_ex(ctx, keybuf, &dlen)) { in usm_passwd2mkey()
661 memcpy(key, keybuf, dlen); in usm_passwd2mkey()
/openbsd-src/usr.bin/ssh/
H A Dsshd.c608 struct sshbuf *keybuf = NULL, *hostkeys = NULL; in pack_hostkeys()
612 if ((keybuf = sshbuf_new()) == NULL || in pack_hostkeys()
619 sshbuf_reset(keybuf); in pack_hostkeys()
622 keybuf)) != 0) in pack_hostkeys()
624 if ((r = sshbuf_put_stringb(hostkeys, keybuf)) != 0) in pack_hostkeys()
647 sshbuf_free(keybuf); in pack_hostkeys()
609 struct sshbuf *keybuf = NULL, *hostkeys = NULL; pack_hostkeys() local
H A Dauthfile.c52 sshkey_save_private_blob(struct sshbuf *keybuf, const char *filename)
58 r = sshbuf_write_file(filename, keybuf); in sshkey_save_private_blob()
54 sshkey_save_private_blob(struct sshbuf * keybuf,const char * filename) sshkey_save_private_blob() argument
/openbsd-src/sys/dev/ic/
H A Drtwn.c1342 uint8_t keybuf[16], algo; in rtwn_set_key() local
1376 memset(keybuf, 0, sizeof(keybuf)); in rtwn_set_key()
1377 memcpy(keybuf, k->k_key, MIN(k->k_len, sizeof(keybuf))); in rtwn_set_key()
1380 LE_READ_4(&keybuf[i * 4])); in rtwn_set_key()
/openbsd-src/sbin/ifconfig/
H A Difconfig.c1934 u_int8_t keybuf[IEEE80211_WEP_NKID][16]; in setifnwkey()
1937 bzero(&keybuf, sizeof(keybuf)); in setifnwkey()
1963 len = sizeof(keybuf[i]); in setifnwkey()
1964 val = get_string(val, ",", keybuf[i], &len); in setifnwkey()
1968 nwkey.i_key[i].i_keydat = keybuf[i]; in setifnwkey()
2006 len = sizeof(keybuf[0]); in setifnwkey()
2007 val = get_string(val, NULL, keybuf[0], &len); in setifnwkey()
2012 nwkey.i_key[0].i_keydat = keybuf[0]; in setifnwkey()
1933 u_int8_t keybuf[IEEE80211_WEP_NKID][16]; setifnwkey() local
/openbsd-src/gnu/usr.bin/perl/dist/Storable/
H A DStorable.xs385 struct extendable keybuf; /* for hash key retrieval */ member
597 #define kbuf (cxt->keybuf).arena
598 #define ksiz (cxt->keybuf).asiz