Searched refs:keybuf (Results 1 - 25 of 36) sorted by relevance

12

/freebsd-current/stand/libsa/geli/
H A Dgeli_metadata.c35 * Export a keybuf as metadata attached to a kernel module. This is separate
43 struct keybuf *keybuf; local
45 keybuf = malloc(GELI_KEYBUF_SIZE);
46 geli_export_key_buffer(keybuf);
47 file_addmetadata(kfp, MODINFOMD_KEYBUF, GELI_KEYBUF_SIZE, keybuf);
48 explicit_bzero(keybuf, GELI_KEYBUF_SIZE);
49 free(keybuf);
H A Dgeliboot.h48 #define GELI_KEYBUF_SIZE (sizeof(struct keybuf) + \
95 void geli_import_key_buffer(struct keybuf *keybuf);
96 void geli_export_key_buffer(struct keybuf *keybuf);
/freebsd-current/sys/crypto/
H A Dintake.h52 struct keybuf { struct
59 extern struct keybuf* get_keybuf(void);
/freebsd-current/stand/i386/common/
H A Dbootargs.h99 * single null byte to stop keybuf
104 struct keybuf *keybuf; member in struct:geli_boot_data::__anon789::__anon790
106 void *keybuf; member in struct:geli_boot_data::__anon789::__anon790
120 gbdata->keybuf = malloc(sizeof(struct keybuf) +
122 geli_export_key_buffer(gbdata->keybuf);
133 geli_import_key_buffer(gbdata->keybuf);
/freebsd-current/usr.sbin/keyserv/
H A Dkeyserv.h5 extern keystatus pk_setkey( uid_t, keybuf );
10 extern keystatus pk_get_conv_key( uid_t, keybuf, cryptkeyres * );
H A Dsetkey.c58 static int storesecretkey( uid_t, keybuf );
85 pk_setkey(uid_t uid, keybuf skey)
197 pk_get_conv_key(uid_t uid, keybuf xpublic, cryptkeyres *result)
372 storesecretkey(uid_t uid, keybuf key)
446 keybuf secret;
447 keybuf public;
465 memcpy(new->public, pub, sizeof (keybuf));
466 memcpy(new->secret, sec, sizeof (keybuf));
482 (memcmp(pub, (list)->public, sizeof (keybuf)) == 0 && \
483 memcmp(sec, (list)->secret, sizeof (keybuf))
[all...]
/freebsd-current/contrib/sendmail/libsm/
H A Dniprop.c77 char keybuf[1024]; local
89 if (i >= sizeof keybuf)
91 (void) sm_strlcpyn(keybuf, sizeof keybuf, 2, keydir, "/");
94 (void) sm_strlcat2(keybuf, keyprop, "=", sizeof keybuf);
96 (void) sm_strlcat(keybuf, keyval, sizeof keybuf);
100 sm_dprintf("ni_propval(%s, %s, %s, %s, %d) keybuf='%s'\n",
101 keydir, keyprop, keyval, valprop, sepchar, keybuf);
[all...]
/freebsd-current/lib/libc/db/test/hash.tests/
H A Ddriver2.c55 char keybuf[2049]; local
78 key.data = keybuf;
80 bzero(keybuf, sizeof(keybuf));
87 sprintf(keybuf, "Key #%d", i);
/freebsd-current/include/rpcsvc/
H A Dkey_prot.x89 typedef opaque keybuf[HEXKEYBYTES]; /* store key in hex */
146 keybuf st_priv_key;
147 keybuf st_pub_key;
173 KEY_SET(keybuf) = 1;
215 KEY_SET(keybuf) = 1;
276 KEY_GET_CONV(keybuf) = 10;
/freebsd-current/contrib/sendmail/src/
H A Dudb.c140 char keybuf[MAXUDBKEY]; local
176 keylen = sm_strlcpyn(keybuf, sizeof(keybuf), 2, user, ":maildrop");
179 if (keylen >= sizeof(keybuf))
218 key.data = keybuf;
222 keybuf, keylen);
245 keybuf, keylen);
262 memcmp(key.data, keybuf, keylen) == 0)
359 (void) sm_strlcpyn(keybuf, sizeof(keybuf),
606 char keybuf[MAXUDBKEY]; local
852 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
[all...]
H A Dmap.c1930 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
1944 if (key.dsize > sizeof(keybuf) - 1)
1945 key.dsize = sizeof(keybuf) - 1;
1946 memmove(keybuf, key.dptr, key.dsize);
1947 keybuf[key.dsize] = '\0';
1948 makelower_buf(keybuf, keybuf, sizeof(keybuf));
1949 key.dptr = keybuf;
2042 char keybuf[MAXNAM local
2553 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
2709 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
3163 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
3349 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
4188 char keybuf[MAXKEY]; local
7955 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
8796 char keybuf[MAXNAME + 1]; /* EAI:ok */ local
[all...]
/freebsd-current/usr.sbin/yp_mkdb/
H A Dyp_mkdb.c113 char *keybuf, *datbuf; local
271 keybuf = (char *)&buf;
281 if (*keybuf == '+' || *keybuf == '-' ||
289 if (strlen(keybuf) > YPMAXRECORD) {
290 warnx("key too long: %s", keybuf);
294 if (!strlen(keybuf)) {
304 key.data = keybuf;
305 key.size = strlen(keybuf);
312 warnx("duplicate key '%s' - skipping", keybuf);
[all...]
/freebsd-current/stand/efi/libefi/
H A Defi_console.c98 static unsigned keybuf[KEYBUFSZ]; /* keybuf for extended codes */ variable
1238 if (keybuf[i] != 0) {
1239 c = keybuf[i];
1240 keybuf[i] = 0;
1254 if (keybuf[i] != 0)
1261 * We are not reading input before keybuf is empty, so we are safe
1262 * just to fill keybuf from the beginning.
1270 keybuf[0] = 0x1b; /* esc */
1271 keybuf[
[all...]
/freebsd-current/tools/tools/net80211/wesside/wesside/
H A Daircrack-ptw-lib.c220 uint8_t keybuf[PTW_KSBYTES]; local
224 memcpy(&keybuf[IVBYTES], key, keylen);
225 memcpy(keybuf, state->sessions[i].iv, IVBYTES);
226 rc4init(keybuf, keylen+IVBYTES, &rc4state);
361 int PTW_computeKey(PTW_attackstate * state, uint8_t * keybuf, int keylen, int testlimit) { argument
403 if (doComputation(state, keybuf, keylen, table, (sorthelper *) sh, strongbytes, simple)) {
415 if (doComputation(state, keybuf, keylen, table, (sorthelper *) sh, strongbytes, onestrong)) {
421 if (doComputation(state, keybuf, keylen, table, (sorthelper *) sh, strongbytes, twostrong)) {
/freebsd-current/contrib/ntp/sntp/
H A Dcrypto.c42 u_char keybuf[AES_128_KEY_SIZE]; local
46 memcpy(keybuf, key_data, key_size);
47 memset((keybuf + key_size), 0,
49 key_data = keybuf;
/freebsd-current/contrib/ntp/libntp/
H A Da_md5encrypt.c67 u_char keybuf[AES_128_KEY_SIZE]; local
71 memcpy(keybuf, keyptr, key->len);
72 zero_mem((keybuf + key->len),
74 keyptr = keybuf;
/freebsd-current/secure/lib/libcrypt/
H A Dcrypt-des.c592 u_int32_t count, salt, l, r0, r1, keybuf[2]; local
602 q = (u_char *)keybuf;
603 while (q - (u_char *)keybuf - 8) {
608 if (des_setkey((char *)keybuf))
627 if (des_cipher((char *)keybuf, (char *)keybuf, 0L, 1))
632 q = (u_char *)keybuf;
633 while (q - (u_char *)keybuf - 8 && *key)
636 if (des_setkey((char *)keybuf))
/freebsd-current/usr.sbin/ypldap/
H A Dyp.c654 static char keybuf[YPMAXRECORD+1]; local
657 memset(keybuf, 0, sizeof(keybuf));
660 (void)strlcpy(keybuf, key, sizeof(keybuf));
661 res->key.keydat_len = strlen(keybuf);
662 res->key.keydat_val = keybuf;
672 log_debug("sending out %s => %s", keybuf, buf);
/freebsd-current/sbin/restore/
H A Drestore.c487 static char keybuf[32]; local
489 (void) strcpy(keybuf, "|NIL");
490 keybuf[0] = '\0';
492 (void) strcat(keybuf, "|ONTAPE");
494 (void) strcat(keybuf, "|INOFND");
496 (void) strcat(keybuf, "|NAMEFND");
498 (void) strcat(keybuf, "|MODECHG");
499 return (&keybuf[1]);
/freebsd-current/crypto/openssl/crypto/pem/
H A Dpvkfmt.c828 unsigned char keybuf[20]; local
860 if (!derive_pvk_key(keybuf, p, saltlen,
875 if (!EVP_DecryptInit_ex(cctx, rc4, NULL, keybuf, NULL))
884 memset(keybuf + 5, 0, 11);
885 if (!EVP_DecryptInit_ex(cctx, rc4, NULL, keybuf, NULL))
911 OPENSSL_cleanse(keybuf, sizeof(keybuf));
1056 unsigned char keybuf[20]; local
1066 if (!derive_pvk_key(keybuf, salt, PVK_SALTLEN,
1072 memset(keybuf
[all...]
/freebsd-current/contrib/wpa/src/eap_common/
H A Dikev2_common.c635 u8 *keybuf, *pos; local
650 keybuf = os_malloc(keybuf_len);
651 if (keybuf == NULL)
655 data, data_len, keybuf, keybuf_len)) {
656 os_free(keybuf);
660 pos = keybuf;
717 os_free(keybuf);
/freebsd-current/sys/geom/eli/
H A Dg_eli.c181 struct keybuf *keybuf; local
184 if ((keybuf = get_keybuf()) != NULL) {
186 for (i = 0; i < keybuf->kb_nents; i++) {
187 if (keybuf->kb_ents[i].ke_type == KEYBUF_TYPE_GELI) {
188 explicit_bzero(keybuf->kb_ents[i].ke_data,
189 sizeof(keybuf->kb_ents[i].ke_data));
190 keybuf->kb_ents[i].ke_type = KEYBUF_TYPE_NONE;
1330 struct keybuf *keybuf; local
[all...]
/freebsd-current/lib/libc/gen/
H A Dgetpwent.c795 char keybuf[MAXLOGNAME + 1]; local
813 keybuf[0] = _PW_KEYBYNAME;
817 keybuf[0] = _PW_KEYBYUID;
820 keybuf[0] = _PW_KEYBYNUM;
847 key.data = keybuf;
854 namesize = strlcpy(&keybuf[1], name, sizeof(keybuf)-1);
855 if (namesize >= sizeof(keybuf)-1) {
864 memcpy(&keybuf[1], &uid, sizeof(uid));
868 memcpy(&keybuf[
1731 char keybuf[MAXLOGNAME + 1]; local
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zed/
H A Dzed_event.c272 char keybuf[MAXBUF]; local
299 dstp = keybuf;
300 lastp = keybuf + sizeof (keybuf);
320 n = strlcpy(dstp, keybuf, buflen);
324 keybuf, eid, "Exceeded buffer size");
336 keybuf, eid, "Exceeded buffer size");
347 keybuf, eid, "Exceeded buffer size");
349 } else if (zed_strings_add(zsp, keybuf, valbuf) < 0) {
351 keybuf, ei
[all...]
/freebsd-current/stand/i386/libi386/
H A Dvidconsole.c85 static uint8_t keybuf[KEYBUFSZ]; /* keybuf for extended codes */ variable
1076 if (keybuf[i] != 0) {
1077 c = keybuf[i];
1078 keybuf[i] = 0;
1095 keybuf[0] = '[';
1096 keybuf[1] = 'A';
1099 keybuf[0] = '[';
1100 keybuf[1] = 'D';
1103 keybuf[
[all...]

Completed in 204 milliseconds

12