Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 17 of 17) sorted by relevance

/openssh-portable/openbsd-compat/
H A Dbsd-snprintf.c210 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
321 if (fmtint(buffer, &currlen, maxlen, in dopr()
419 DOPR_OUTCH(buffer, currlen, maxlen, in dopr()
429 if (fmtstr(buffer, &currlen, maxlen, in dopr()
435 if (fmtint(buffer, &currlen, maxlen, in dopr()
469 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
493 buffer[currlen] = '\0'; in dopr()
495 buffer[maxlen - 1] = '\0'; in dopr()
523 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtstr()
533 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtstr()
[all …]
H A Dsha2.c320 memset(context->buffer, 0, sizeof(context->buffer));
358 memset(context->buffer, 0, sizeof(context->buffer)); in SHA256Init()
561 memcpy(context->buffer, data, len); in SHA256Update()
577 context->buffer[usedspace++] = 0x80; in SHA256Pad()
599 *context->buffer = 0x80; in SHA256Pad()
638 memset(context->buffer, 0, sizeof(context->buffer)); in SHA512Init()
842 memcpy(context->buffer, data, len); in SHA512Update()
858 context->buffer[usedspace++] = 0x80; in SHA512Pad()
878 *context->buffer = 0x80; in SHA512Pad()
920 memset(context->buffer, 0, sizeof(context->buffer)); in SHA384Init()
[all …]
H A Dsha1.c57 SHA1Transform(u_int32_t state[5], const u_int8_t buffer[SHA1_BLOCK_LENGTH]) in SHA1Transform()
63 (void)memcpy(block, buffer, SHA1_BLOCK_LENGTH); in SHA1Transform()
136 (void)memcpy(&context->buffer[j], data, (i = 64-j)); in SHA1Update()
137 SHA1Transform(context->state, context->buffer); in SHA1Update()
144 (void)memcpy(&context->buffer[j], &data[i], len - i); in SHA1Update()
H A Dmd5.h27 u_int8_t buffer[MD5_BLOCK_LENGTH]; /* input buffer */ member
H A Dsha1.h21 u_int8_t buffer[SHA1_BLOCK_LENGTH]; member
H A Dmd5.c82 memcpy(ctx->buffer + have, input, need); in MD5Update()
83 MD5Transform(ctx->state, ctx->buffer); in MD5Update()
99 memcpy(ctx->buffer + have, input, len); in MD5Update()
H A Dsha2.h72 u_int8_t buffer[SHA512_BLOCK_LENGTH]; member
/openssh-portable/
H A Dauth-pam.c394 struct sshbuf *buffer; in sshpam_thread_conv() local
455 sshbuf_reset(buffer); in sshpam_thread_conv()
457 sshbuf_free(buffer); in sshpam_thread_conv()
466 sshbuf_free(buffer); in sshpam_thread_conv()
575 sshbuf_free(buffer); in sshpam_thread()
589 sshbuf_free(buffer); in sshpam_thread()
835 struct sshbuf *buffer; in sshpam_query() local
866 sshbuf_free(buffer); in sshpam_query()
938 sshbuf_free(buffer); in sshpam_query()
1003 sshbuf_free(buffer); in sshpam_respond()
[all …]
H A Dauthfile.c155 struct sshbuf *buffer = NULL; in sshkey_load_private_type_fd() local
160 if ((r = sshbuf_load_fd(fd, &buffer)) != 0 || in sshkey_load_private_type_fd()
161 (r = sshkey_parse_private_fileblob_type(buffer, type, in sshkey_load_private_type_fd()
168 sshbuf_free(buffer); in sshkey_load_private_type_fd()
176 struct sshbuf *buffer = NULL; in sshkey_load_pubkey_from_private() local
185 if ((r = sshbuf_load_fd(fd, &buffer)) != 0 || in sshkey_load_pubkey_from_private()
186 (r = sshkey_parse_pubkey_from_private_fileblob_type(buffer, in sshkey_load_pubkey_from_private()
199 sshbuf_free(buffer); in sshkey_load_pubkey_from_private()
H A Dxmss_fast.c301 unsigned char buffer[2*n]; in validate_authpath() local
307 buffer[n+j] = leaf[j]; in validate_authpath()
309 buffer[j] = authpath[j]; in validate_authpath()
313 buffer[j] = leaf[j]; in validate_authpath()
315 buffer[n+j] = authpath[j]; in validate_authpath()
324 hash_h(buffer+n, buffer, pub_seed, addr, n); in validate_authpath()
326 buffer[j] = authpath[j]; in validate_authpath()
329 hash_h(buffer, buffer, pub_seed, addr, n); in validate_authpath()
331 buffer[j+n] = authpath[j]; in validate_authpath()
338 hash_h(root, buffer, pub_seed, addr, n); in validate_authpath()
H A DOVERVIEW24 - These provide an arbitrary size buffer, where data can be appended.
26 throughout ssh. The buffer manipulation functions are in
67 - The code in packet.c calls the buffer manipulation routines
68 (buffer.c, bufaux.c), compression routines (zlib), and the
H A Dgss-genr.c248 ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_t buffer, gss_buffer_t hash) in ssh_gssapi_sign() argument
251 GSS_C_QOP_DEFAULT, buffer, hash))) in ssh_gssapi_sign()
H A Dscp.c1074 static BUF buffer; in source() local
1134 if ((bp = allocbuf(&buffer, fd, COPY_BUFLEN)) == NULL) { in source()
1239 static BUF buffer; local
1449 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) {
H A Dsshkey.h263 int sshkey_parse_private_fileblob(struct sshbuf *buffer,
H A Dsftp.c2059 cursor = lf->cursor - lf->buffer; in complete()
2061 memcpy(line, lf->buffer, cursor); in complete()
2067 len = lf->lastchar - lf->buffer; in complete()
2069 memcpy(line, lf->buffer, len); in complete()
H A Dsshkey.c4714 sshkey_parse_private_fileblob(struct sshbuf *buffer, const char *passphrase, in sshkey_parse_private_fileblob() argument
4722 return sshkey_parse_private_fileblob_type(buffer, KEY_UNSPEC, in sshkey_parse_private_fileblob()
H A Dconfigure.ac659 AC_DEFINE([SSH_IOBUFSZ], [65535], [Windows is sensitive to read buffer size])