| /mirbsd/src/bin/ed/ |
| D | cbc.c | 234 expand_des_key(char *obuf, const char *kbuf) in expand_des_key() argument 242 if (kbuf[0] == '0' && (kbuf[1] == 'x' || kbuf[1] == 'X')) { in expand_des_key() 243 kbuf = &kbuf[2]; in expand_des_key() 247 for (i = 0; kbuf[i] && i < 16; i++) in expand_des_key() 248 if ((nbuf[i] = hex_to_binary((int) kbuf[i], 16)) == -1) in expand_des_key() 262 if (kbuf[0] == '0' && (kbuf[1] == 'b' || kbuf[1] == 'B')) { in expand_des_key() 263 kbuf = &kbuf[2]; in expand_des_key() 267 for (i = 0; kbuf[i] && i < 16; i++) in expand_des_key() 268 if ((nbuf[i] = hex_to_binary((int) kbuf[i], 2)) == -1) in expand_des_key() 282 strncpy(obuf, kbuf, 8); /* XXX ? */ in expand_des_key()
|
| /mirbsd/src/usr.bin/ssh/ |
| D | kexdhc.c | 49 u_char *kbuf, *hash; in kexdh_client() local 112 kbuf = xmalloc(klen); in kexdh_client() 113 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) in kexdh_client() 116 dump_digest("shared secret", kbuf, kout); in kexdh_client() 120 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexdh_client() 122 memset(kbuf, 0, klen); in kexdh_client() 123 xfree(kbuf); in kexdh_client()
|
| D | kexdhs.c | 50 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexdh_server() local 99 kbuf = xmalloc(klen); in kexdh_server() 100 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) in kexdh_server() 103 dump_digest("shared secret", kbuf, kout); in kexdh_server() 107 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexdh_server() 109 memset(kbuf, 0, klen); in kexdh_server() 110 xfree(kbuf); in kexdh_server()
|
| D | kexgexs.c | 53 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexgex_server() local 135 kbuf = xmalloc(klen); in kexgex_server() 136 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) in kexgex_server() 139 dump_digest("shared secret", kbuf, kout); in kexgex_server() 143 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexgex_server() 145 memset(kbuf, 0, klen); in kexgex_server() 146 xfree(kbuf); in kexgex_server()
|
| D | kexgexc.c | 50 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexgex_client() local 150 kbuf = xmalloc(klen); in kexgex_client() 151 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) in kexgex_client() 154 dump_digest("shared secret", kbuf, kout); in kexgex_client() 158 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexgex_client() 160 memset(kbuf, 0, klen); in kexgex_client() 161 xfree(kbuf); in kexgex_client()
|
| /mirbsd/src/usr.sbin/vnconfig/ |
| D | vnconfig.c | 295 uint32_t kbuf[KBUF_ELEM]; in make_key() local 297 size_t kbuflen = sizeof (kbuf); in make_key() 317 memcpy(kbuf, key2, kbuflen); in make_key() 320 arc4random_buf(kbuf, sizeof(kbuf)); in make_key() 322 i = ASN1_STRING_set(aos, kbuf, kbuflen); in make_key() 323 bzero(kbuf, sizeof (kbuf)); in make_key()
|
| /mirbsd/src/lib/libncurses/src/ncurses/base/ |
| D | lib_mouse.c | 627 char kbuf[3]; in _nc_mouse_event() local 629 int i, res = read(M_FD(sp), &kbuf, 3); /* Eat the prefix */ in _nc_mouse_event() 633 if (kbuf[i] != key_mouse[i]) in _nc_mouse_event() 635 (int) kbuf[i], (int) key_mouse[i]); in _nc_mouse_event() 726 unsigned char kbuf[4]; in _nc_mouse_inline() local 767 res = read(M_FD(sp) >= 0 ? M_FD(sp) : sp->_ifd, &kbuf, 3); in _nc_mouse_inline() 769 res = read(sp->_ifd, kbuf + grabbed, 3 - grabbed); in _nc_mouse_inline() 774 kbuf[3] = '\0'; in _nc_mouse_inline() 777 ("_nc_mouse_inline sees the following xterm data: '%s'", kbuf)); in _nc_mouse_inline() 789 if (kbuf[0] & 0x40) \ in _nc_mouse_inline() [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/ext/Storable/ |
| D | Storable.xs | 496 #define kbuf (cxt->keybuf).arena macro 500 if (!kbuf) { \ 502 New(10003, kbuf, 128, char); \ 510 Renew(kbuf, x+1, char); \ 5185 READ(kbuf, size); in retrieve_hash() 5186 kbuf[size] = '\0'; /* Mark string end, just in case */ in retrieve_hash() 5187 TRACEME(("(#%d) key '%s'", i, kbuf)); in retrieve_hash() 5193 if (hv_store(hv, kbuf, (U32) size, sv, 0) == 0) in retrieve_hash() 5316 READ(kbuf, size); in retrieve_flag_hash() 5317 kbuf[size] = '\0'; /* Mark string end, just in case */ in retrieve_flag_hash() [all …]
|
| /mirbsd/src/gnu/usr.sbin/sendmail/sendmail/ |
| D | udb.c | 1237 char kbuf[MAXUDBKEY + 1]; local 1239 if (sm_strlcpy(kbuf, key->data, sizeof(kbuf)) >= sizeof(kbuf)) 1241 name = kbuf;
|
| /mirbsd/src/sys/dev/ic/ |
| D | stireg.h | 544 void *kbuf; member
|