Home
last modified time | relevance | path

Searched refs:kbuf (Results 1 – 16 of 16) sorted by relevance

/openbsd-src/usr.bin/ssh/
H A Dssh-sk-helper.c91 struct sshbuf *resp, *kbuf; in process_sign() local
99 if ((r = sshbuf_froms(req, &kbuf)) != 0 || in process_sign()
109 if ((r = sshkey_private_deserialize(kbuf, &key)) != 0) in process_sign()
136 sshbuf_free(kbuf); in process_sign()
152 struct sshbuf *challenge, *attest, *kbuf, *resp; in process_enroll() local
156 (kbuf = sshbuf_new()) == NULL) in process_enroll()
189 if ((r = sshkey_private_serialize(key, kbuf)) != 0) in process_enroll()
192 (r = sshbuf_put_stringb(resp, kbuf)) != 0 || in process_enroll()
198 sshbuf_free(kbuf); in process_enroll()
214 struct sshbuf *kbuf, *resp; in process_load_resident() local
[all …]
H A Dssh-sk-client.c233 struct sshbuf *kbuf = NULL, *req = NULL, *resp = NULL; in sshsk_sign() local
238 if ((kbuf = sshbuf_new()) == NULL || in sshsk_sign()
244 if ((r = sshkey_private_serialize(key, kbuf)) != 0) { in sshsk_sign()
248 if ((r = sshbuf_put_stringb(req, kbuf)) != 0 || in sshsk_sign()
280 sshbuf_free(kbuf); in sshsk_sign()
294 struct sshbuf *kbuf = NULL, *abuf = NULL, *req = NULL, *resp = NULL; in sshsk_enroll() local
305 (kbuf = sshbuf_new()) == NULL || in sshsk_enroll()
326 if ((r = sshbuf_get_stringb(resp, kbuf)) != 0 || in sshsk_enroll()
337 if ((r = sshkey_private_deserialize(kbuf, &key)) != 0) { in sshsk_enroll()
353 sshbuf_free(kbuf); in sshsk_enroll()
[all …]
H A Dkexdh.c69 u_char *kbuf = NULL; in kex_dh_compute_key() local
87 if ((kbuf = malloc(klen)) == NULL || in kex_dh_compute_key()
92 if ((kout = DH_compute_key(kbuf, dh_pub, kex->dh)) < 0 || in kex_dh_compute_key()
93 BN_bin2bn(kbuf, kout, shared_secret) == NULL) { in kex_dh_compute_key()
98 dump_digest("shared secret", kbuf, kout); in kex_dh_compute_key()
102 freezero(kbuf, klen); in kex_dh_compute_key()
H A Dkexecdh.c140 u_char *kbuf = NULL; in kex_ecdh_dec_key_group() local
170 if ((kbuf = malloc(klen)) == NULL || in kex_ecdh_dec_key_group()
175 if (ECDH_compute_key(kbuf, klen, dh_pub, key, NULL) != (int)klen || in kex_ecdh_dec_key_group()
176 BN_bin2bn(kbuf, klen, shared_secret) == NULL) { in kex_ecdh_dec_key_group()
181 dump_digest("shared secret", kbuf, klen); in kex_ecdh_dec_key_group()
190 freezero(kbuf, klen); in kex_ecdh_dec_key_group()
H A Dsshd-session.c581 struct sshbuf *kbuf; in notify_hostkeys()
599 if ((r = sshbuf_froms(hostkeys, &kbuf)) != 0) in notify_hostkeys()
601 if (sshbuf_len(kbuf) != 0 && in notify_hostkeys()
602 (r = sshkey_private_deserialize(kbuf, &k)) != 0) in notify_hostkeys()
605 sshbuf_free(kbuf); in notify_hostkeys()
632 struct sshbuf *kbuf; parse_hostkeys() local
H A Dssh-keygen.c2449 struct sshbuf *kbuf; in do_gen_krl()
2484 if ((kbuf = sshbuf_new()) == NULL) in do_check_krl()
2486 if (ssh_krl_to_blob(krl, kbuf) != 0) in do_check_krl()
2488 if ((r = sshbuf_write_file(identity_file, kbuf)) != 0) in do_check_krl()
2490 sshbuf_free(kbuf); in do_check_krl()
2421 struct sshbuf *kbuf; do_gen_krl() local
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dasm-5.c17 extern int xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf);
23 struct kernel_stat kbuf; in __fxstat() local
63 _sc_17 = (long) ((&kbuf)); in __fxstat()
79 result = xstat_conv (vers, &kbuf, buf); in __fxstat()
/openbsd-src/lib/libcurses/base/
H A Dlib_mouse.c821 char kbuf[3]; in _nc_mouse_event() local
823 int i, res = read(M_FD(sp), &kbuf, 3); /* Eat the prefix */ in _nc_mouse_event()
827 if (kbuf[i] != key_mouse[i]) in _nc_mouse_event()
829 (int) kbuf[i], (int) key_mouse[i]); in _nc_mouse_event()
1103 unsigned char kbuf[MAX_KBUF + 1]; in decode_xterm_X10() local
1118 kbuf + grabbed, (size_t) (MAX_KBUF - (int) grabbed)); in decode_xterm_X10()
1123 kbuf[MAX_KBUF] = '\0'; in decode_xterm_X10()
1126 ("_nc_mouse_inline sees the following xterm data: '%s'", kbuf)); in decode_xterm_X10()
1131 result = decode_X10_bstate(sp, eventp, kbuf[0]); in decode_xterm_X10()
1133 eventp->x = (kbuf[1] - ' ') - 1; in decode_xterm_X10()
[all …]
/openbsd-src/usr.bin/cvs/
H A Dcheckout.c493 char kbuf[8], sticky[CVS_REV_BUFSZ], rev[CVS_REV_BUFSZ]; in cvs_checkout_file() local
589 kbuf[0] = '\0'; in cvs_checkout_file()
593 (void)xsnprintf(kbuf, sizeof(kbuf), in cvs_checkout_file()
597 strlcpy(kbuf, cf->file_ent->ce_opts, sizeof(kbuf)); in cvs_checkout_file()
601 cvs_ent_line_str(cf->file_name, rev, timebuf, kbuf, sticky, 0, 0, in cvs_checkout_file()
H A Dadd.c42 static char kbuf[8]; variable
75 (void)xsnprintf(kbuf, sizeof(kbuf), "-k%s", optarg); in cvs_add()
100 cvs_client_send_request("Argument %s", kbuf); in cvs_add()
552 cvs_ent_line_str(cf->file_name, "0", tbuf, kflag ? kbuf : "", in add_entry()
/openbsd-src/sys/kern/
H A Dsubr_log.c652 char pri[6], *kbuf; in dosendsyslog()
736 kbuf = malloc(len, M_TEMP, M_WAITOK); in dosendsyslog()
737 error = copyin(aiov.iov_base, kbuf, len); in dosendsyslog()
739 kbuf = aiov.iov_base; in dosendsyslog()
744 if (kbuf[i] == '\0') in dosendsyslog()
746 cnputc(kbuf[i]); in dosendsyslog()
750 free(kbuf, M_TEMP, len); in dosendsyslog()
649 char pri[6], *kbuf; dosendsyslog() local
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_ring.c524 u32 *kbuf; in amdgpu_debugfs_mqd_read()
531 kbuf = kmalloc(ring->mqd_size, GFP_KERNEL); in amdgpu_debugfs_mqd_read()
532 if (!kbuf) in amdgpu_debugfs_mqd_read()
548 kbuf[i] = mqd[i]; in amdgpu_debugfs_mqd_read()
558 value = kbuf[*pos/4]; in amdgpu_debugfs_mqd_read()
568 kfree(kbuf); in amdgpu_debugfs_mqd_read()
574 kfree(kbuf); in amdgpu_debugfs_mqd_read()
523 u32 *kbuf; amdgpu_debugfs_mqd_read() local
/openbsd-src/gnu/usr.bin/perl/dist/Storable/
H A DStorable.xs597 #define kbuf (cxt->keybuf).arena macro
601 if (!kbuf) { \
603 New(10003, kbuf, 128, char); \
614 Renew(kbuf, x+1, char); \
6392 READ(kbuf, size); in get_lhash()
6393 kbuf[size] = '\0'; /* Mark string end, just in case */ in get_lhash()
6394 TRACEME(("(#%d) key '%s'", (int)i, kbuf)); in get_lhash()
6400 if (hv_store(hv, kbuf, (U32) size, sv, 0) == 0) in get_lhash()
6469 READ(kbuf, size); in retrieve_hash()
6470 kbuf[size] = '\0'; /* Mark string end, just in case */ in retrieve_hash()
[all …]
/openbsd-src/lib/libc/db/
H A Dchangelog18 Replace return kbuf/dbuf with real DBT's.
/openbsd-src/sys/dev/ic/
H A Dstireg.h587 void *kbuf;
579 void *kbuf; global() member
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp437 struct kernel_stat kbuf; in internal_fstat() local
438 int res = internal_syscall(SYSCALL(fstat), fd, &kbuf); in internal_fstat()
439 kernel_stat_to_stat(&kbuf, (struct stat *)buf); in internal_fstat()