/freebsd-10.1-release/bin/ed/ |
H A D | cbc.c | 224 * kbuf the key itself 227 expand_des_key(char *obuf, char *kbuf) argument 235 if (kbuf[0] == '0' && (kbuf[1] == 'x' || kbuf[1] == 'X')) { 236 kbuf = &kbuf[2]; 240 for (i = 0; i < 16 && kbuf[i]; i++) 241 if ((nbuf[i] = hex_to_binary((int) kbuf[i], 16)) == -1) 255 if (kbuf[ [all...] |
/freebsd-10.1-release/crypto/openssh/ |
H A D | kexdhc.c | 54 u_char *kbuf, *hash; local 117 kbuf = xmalloc(klen); 118 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) 121 dump_digest("shared secret", kbuf, kout); 125 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 127 explicit_bzero(kbuf, klen); 128 free(kbuf);
|
H A D | kexdhs.c | 52 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; local 103 kbuf = xmalloc(klen); 104 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) 107 dump_digest("shared secret", kbuf, kout); 111 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 113 explicit_bzero(kbuf, klen); 114 free(kbuf);
|
H A D | kexecdhc.c | 58 u_char *kbuf, *hash; local 110 kbuf = xmalloc(klen); 111 if (ECDH_compute_key(kbuf, klen, server_public, 116 dump_digest("shared secret", kbuf, klen); 120 if (BN_bin2bn(kbuf, klen, shared_secret) == NULL) 122 explicit_bzero(kbuf, klen); 123 free(kbuf);
|
H A D | kexecdhs.c | 55 u_char *kbuf, *hash; local 94 kbuf = xmalloc(klen); 95 if (ECDH_compute_key(kbuf, klen, client_public, 100 dump_digest("shared secret", kbuf, klen); 104 if (BN_bin2bn(kbuf, klen, shared_secret) == NULL) 106 explicit_bzero(kbuf, klen); 107 free(kbuf);
|
H A D | kexgexc.c | 55 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; local 155 kbuf = xmalloc(klen); 156 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) 159 dump_digest("shared secret", kbuf, kout); 163 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 165 explicit_bzero(kbuf, klen); 166 free(kbuf);
|
H A D | kexgexs.c | 59 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; local 143 kbuf = xmalloc(klen); 144 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) 147 dump_digest("shared secret", kbuf, kout); 151 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 153 explicit_bzero(kbuf, klen); 154 free(kbuf);
|
H A D | ssh-keygen.c | 2076 Buffer kbuf; local 2107 buffer_init(&kbuf); 2108 if (ssh_krl_to_blob(krl, &kbuf, NULL, 0) != 0) 2112 if (atomicio(vwrite, fd, buffer_ptr(&kbuf), buffer_len(&kbuf)) != 2113 buffer_len(&kbuf)) 2116 buffer_free(&kbuf);
|
/freebsd-10.1-release/lib/libc/gen/ |
H A D | setproctitle.c | 67 static char **oargv, *kbuf; local 112 kbuf = buf; 117 kbuf = obuf; 129 sysctl(oid, 4, 0, 0, kbuf, strlen(kbuf) + 1);
|
/freebsd-10.1-release/contrib/ntp/sntp/ |
H A D | crypto.c | 109 char kbuf[200]; local 129 if (NULL == fgets(kbuf, sizeof(kbuf), keyf)) 132 kbuf[sizeof(kbuf) - 1] = '\0'; 133 octothorpe = strchr(kbuf, '#'); 137 scan_cnt = sscanf(kbuf, "%d %9s %128s", &act->key_id, act->type, keystring);
|
/freebsd-10.1-release/sys/xen/evtchn/ |
H A D | evtchn_dev.c | 182 uint16_t *kbuf = (uint16_t *)malloc(PAGE_SIZE, M_DEVBUF, M_WAITOK); local 185 if ( kbuf == NULL ) 198 if ( uiomove(kbuf, count, uio) != 0 ) { 205 if ( test_bit(kbuf[i], &bound_ports[0]) ) 206 evtchn_unmask_port(kbuf[i]); 212 free(kbuf, M_DEVBUF);
|
/freebsd-10.1-release/contrib/ncurses/ncurses/base/ |
H A D | lib_mouse.c | 680 char kbuf[3]; local 682 int i, res = read(M_FD(sp), &kbuf, 3); /* Eat the prefix */ 686 if (kbuf[i] != key_mouse[i]) 688 (int) kbuf[i], (int) key_mouse[i]); 780 unsigned char kbuf[4]; local 821 res = read(M_FD(sp) >= 0 ? M_FD(sp) : sp->_ifd, &kbuf, 3); 823 res = read(sp->_ifd, kbuf + grabbed, 3 - grabbed); 828 kbuf[3] = '\0'; 831 ("_nc_mouse_inline sees the following xterm data: '%s'", kbuf)); 843 if (kbuf[ [all...] |
/freebsd-10.1-release/sys/ofed/drivers/infiniband/debug/ |
H A D | memtrack.c | 374 static char kbuf[20]; local 395 _read = sprintf(kbuf, "%lu\n", cur); 406 if ( copy_to_user(buf, kbuf+pos, to_ret) ) {
|
/freebsd-10.1-release/contrib/sendmail/src/ |
H A D | udb.c | 1237 char kbuf[MAXUDBKEY + 1]; local 1239 if (sm_strlcpy(kbuf, key->data, sizeof(kbuf)) >= sizeof(kbuf)) 1241 name = kbuf;
|
/freebsd-10.1-release/sys/dev/drm/ |
H A D | radeon_state.c | 2849 char *kbuf = NULL; local 2866 kbuf = drm_alloc(cmdbuf->bufsz, DRM_MEM_DRIVER); 2867 if (kbuf == NULL) 2869 if (DRM_COPY_FROM_USER(kbuf, (void __user *)cmdbuf->buf, 2871 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); 2874 cmdbuf->buf = kbuf; 2884 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); 2991 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); 2999 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER);
|
/freebsd-10.1-release/sys/dev/mlx/ |
H A D | mlx.c | 2044 void *kbuf; local 2049 kbuf = NULL; 2072 if (((kbuf = malloc(mu->mu_datasize, M_DEVBUF, M_WAITOK)) == NULL) || 2073 (error = copyin(mu->mu_buf, kbuf, mu->mu_datasize))) { 2097 mc->mc_data = kbuf; 2109 error = copyout(kbuf, mu->mu_buf, mu->mu_datasize); 2116 if (kbuf != NULL) 2117 free(kbuf, M_DEVBUF);
|