Searched refs:outbuf (Results 1 - 25 of 181) sorted by relevance

12345678

/macosx-10.9.5/OpenSSH-186/openssh/
H A Drsa.c77 u_char *inbuf, *outbuf; local
84 outbuf = xmalloc(olen);
90 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key,
94 if (BN_bin2bn(outbuf, len, out) == NULL)
97 memset(outbuf, 0, olen);
99 xfree(outbuf);
106 u_char *inbuf, *outbuf; local
110 outbuf = xmalloc(olen);
116 if ((len = RSA_private_decrypt(ilen, inbuf, outbuf, key,
120 if (BN_bin2bn(outbuf, le
[all...]
/macosx-10.9.5/curl-78.94.1/curl/tests/server/
H A Dgetpart.h31 int getpart(char **outbuf, size_t *outlen,
H A Dfake_ntlm.c52 char *outbuf; local
74 outbuf = malloc(outsize);
75 if(!outbuf)
79 sprintf(&outbuf[0], "%s", NOTHING_STR);
80 return outbuf;
87 newbuf = realloc(outbuf, newsize);
89 free(outbuf);
92 outbuf = newbuf;
97 outbuf[o] = inbuf[i];
101 sprintf(&outbuf[
[all...]
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/libraries/liblutil/
H A Dgetopt.c58 char *ptr, outbuf[4096]; local
60 ptr = lutil_strncopy(outbuf, argv[0], sizeof(outbuf) - 2);
61 ptr = lutil_strncopy(ptr, s, sizeof(outbuf)-2 -(ptr-outbuf));
65 __atoe_l(outbuf, ptr - outbuf);
67 (void) write(STDERR_FILENO,outbuf,ptr - outbuf);
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/libdes/src/
H A Denc_writ.c79 /* crypto/des/enc_writ.c */ /* Copyright (C) 1995-1997 Eric Young (eay@mincom.oz.au) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@mincom.oz.au). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@mincom.oz.au). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (eay@mincom.oz.au)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tjh@mincom.oz.au)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #include <errno.h> #include <time.h> #include "des_locl.h" int des_enc_write(fd, buf, len, sched, iv) int fd; char *buf; int len; des_key_schedule sched; des_cblock (*iv); { #ifdef _LIBC extern int srandom(); extern unsigned long time(); extern int random(); extern int write(); #endif long rnum; int i,j,k,outnum; char *outbuf=NULL; char shortbuf[8]; char *p; static int start=1; if (outbuf == NULL) { outbuf=(char *)malloc(BSIZE+HDRSIZE); if (outbuf == NULL) return(-1); } /* If we are sending less than 8 bytes, the same char will look * the same if we don't pad it out with random bytes */ if (start) { start=0; srandom((unsigned int)time(NULL)); } /* lets recurse if we want to send the data in small chunks */ if (len > MAXWRITE) { j=0; for (i=0; i<len; i+=k) { k=des_enc_write(fd,&(buf[i]), ((len-i) > MAXWRITE)?MAXWRITE:(len-i),sched,iv); if (k < 0) return(k); else j+=k; } return(j); } /* write length first */ p=outbuf; l2n(len,p); /* pad short strings */ if (len < 8) { p=shortbuf; memcpy(shortbuf,buf,(unsigned int)len); for (i=len; i<8; i++) shortbuf[i]=random(); rnum=8; } else { p=buf; rnum=((len+7)/8*8); /* round up to nearest eight */ } if (des_rw_mode & DES_PCBC_MODE) des_pcbc_encrypt((des_cblock *)p, (des_cblock *)&(outbuf[HDRSIZE]), (long)((len<8)?8:len),sched,iv,DES_ENCRYPT); else des_cbc_encrypt((des_cblock *)p, (des_cblock *)&(outbuf[HDRSIZE]), (long)((len<8)?8:len),sched,iv,DES_ENCRYPT); /* output */ outnum=(int)rnum+HDRSIZE; for (j=0; j<outnum; j+=i) { /* eay 26/08/92 I was not doing writing from where we * got upto. */ i=write(fd,&(outbuf[j]),(unsigned int)(outnum-j)); if (i == -1) { if (errno == EINTR) i=0; else /* Thi (…)
1 /* crypto/des/enc_writ.c */ local
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/utils/
H A Dsfsasl.c59 const char *outbuf; local
68 result = sasl_decode(sd->conn, buf, len, &outbuf, &outlen);
75 if (outbuf != NULL) {
76 memcpy(buf, outbuf, outlen);
85 const char *outbuf; local
89 result = sasl_encode(sd->conn, buf, size, &outbuf, &outlen);
95 if (outbuf != NULL) {
96 sfwr(f, outbuf, outlen, disc);
/macosx-10.9.5/tidy-15.12/tidy/src/
H A Diconvtc.c38 char outbuf[TC_OUTBUFSIZE] = { 0 }; local
53 char * outbufptr = (char*)outbuf;
69 c = (unsigned char)outbuf[0];
70 c += (unsigned char)outbuf[1] << 8;
71 c += (unsigned char)outbuf[2] << 16;
72 c += (unsigned char)outbuf[3] << 32;
/macosx-10.9.5/zsh-60/zsh/Src/Modules/
H A Dstat.c47 statmodeprint(mode_t mode, char *outbuf, int flags) argument
50 sprintf(outbuf, (flags & STF_OCTAL) ? "0%lo" : "%lu",
53 strcat(outbuf, " (");
123 strcat(outbuf, pm);
125 strcat(outbuf, ")");
132 statuidprint(uid_t uid, char *outbuf, int flags) argument
135 sprintf(outbuf, "%lu", (unsigned long)uid);
137 strcat(outbuf, " (");
144 strcat(outbuf, pwd->pw_name);
149 for (optr = outbuf; *opt
161 statgidprint(gid_t gid, char *outbuf, int flags) argument
191 stattimeprint(time_t tim, char *outbuf, int flags) argument
210 statulprint(unsigned long num, char *outbuf) argument
218 statlinkprint(struct stat *sbuf, char *outbuf, char *fname) argument
233 statprint(struct stat *sbuf, char *outbuf, char *fname, int iwhich, int flags) argument
543 char outbuf[PATH_MAX + 9]; /* "link " + link name + NULL */ local
[all...]
/macosx-10.9.5/libiconv-41/libiconv/lib/
H A Dloop_wchar.h136 char* * outbuf, size_t *outbytesleft)
163 locals.l_outbuf = *outbuf;
180 *outbuf = locals.l_outbuf;
201 char* outptr = *outbuf;
224 *outbuf = outptr;
236 char* * outbuf, size_t *outbytesleft)
239 if (outbuf == NULL || *outbuf == NULL) {
253 char* outptr = *outbuf;
270 *outbuf
134 wchar_from_loop_convert(iconv_t icd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft) argument
235 wchar_from_loop_reset(iconv_t icd, char* * outbuf, size_t *outbytesleft) argument
318 wchar_to_loop_convert(iconv_t icd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft) argument
413 wchar_to_loop_reset(iconv_t icd, char* * outbuf, size_t *outbytesleft) argument
429 wchar_id_loop_convert(iconv_t icd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft) argument
456 wchar_id_loop_reset(iconv_t icd, char* * outbuf, size_t *outbytesleft) argument
[all...]
/macosx-10.9.5/MITKerberosShim-62.1/
H A Dmk_req.c66 mit_krb5_data *outbuf)
75 memset(outbuf, 0, sizeof(*outbuf));
87 mshim_hdata2mdata(&odata, outbuf);
99 mit_krb5_data *outbuf)
109 memset(outbuf, 0, sizeof(*outbuf));
123 mshim_hdata2mdata(&odata, outbuf);
204 mit_krb5_data *outbuf,
213 memset(outbuf,
59 krb5_mk_req(mit_krb5_context context, mit_krb5_auth_context *ac, mit_krb5_flags ap_req_options, char *service, char *hostname, mit_krb5_data *inbuf, mit_krb5_ccache ccache, mit_krb5_data *outbuf) argument
94 krb5_mk_req_extended(mit_krb5_context context, mit_krb5_auth_context *ac, mit_krb5_flags ap_req_options, mit_krb5_data *inbuf, mit_krb5_creds *cred, mit_krb5_data *outbuf) argument
201 krb5_mk_priv(mit_krb5_context context, mit_krb5_auth_context auth_context, const mit_krb5_data *inbuf, mit_krb5_data *outbuf, mit_krb5_replay_data *replay) argument
239 krb5_mk_safe(mit_krb5_context context, mit_krb5_auth_context auth_context, const mit_krb5_data *inbuf, mit_krb5_data *outbuf, mit_krb5_replay_data *replay) argument
[all...]
/macosx-10.9.5/Security-55471.14.18/libsecurity_apple_x509_tp/lib/
H A DcuEnc64.h65 * and return in outbuf. Result is malloced and must be freed by caller;
70 unsigned char **outbuf, // RETURNED (caller must free)
/macosx-10.9.5/xnu-2422.115.4/bsd/crypto/rc4/
H A Drc4.h51 const u_char *inbuf, u_char *outbuf, int buflen);
/macosx-10.9.5/Heimdal-323.92.1/lib/krb5/
H A Drd_safe.c87 krb5_data *outbuf,
94 krb5_data_zero(outbuf);
191 outbuf->length = safe.safe_body.user_data.length;
192 outbuf->data = malloc(outbuf->length);
193 if (outbuf->data == NULL && outbuf->length != 0) {
196 krb5_data_zero(outbuf);
199 memcpy (outbuf->data, safe.safe_body.user_data.data, outbuf
84 krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_data *outbuf, krb5_replay_data *outdata) argument
[all...]
H A Dmk_req.c43 krb5_data *outbuf)
75 outbuf);
88 krb5_data *outbuf)
110 server, in_data, ccache, outbuf);
37 krb5_mk_req_exact(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, const krb5_principal server, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
81 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, const char *service, const char *hostname, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
/macosx-10.9.5/CommonCrypto-60049/test/CommonCrypto/
H A DCommonCMac.c23 char outbuf[160];
32 sprintf(outbuf, "Hmac-%s test for %s", digestName, input);
34 ok(bytesAreEqual(mdBuf, expectedBytes), outbuf);
/macosx-10.9.5/emacs-92/emacs/lisp/emacs-lisp/
H A Dautoload.el184 (defvar autoload-print-form-outbuf nil
189 The variable `autoload-print-form-outbuf' specifies the buffer to
198 (outbuf autoload-print-form-outbuf))
206 (princ "\n(" outbuf)
210 (prin1 elt outbuf)
211 (princ " " outbuf)))
212 (princ "\"\\\n" outbuf)
213 (let ((begin (with-current-buffer outbuf (point))))
215 outbuf)
[all...]
/macosx-10.9.5/smb-697.95.1/kernel/netsmb/
H A Dsmb_converter.h51 int smb_convert_to_network(const char **inbuf, size_t *inbytesleft, char **outbuf,
53 int smb_convert_from_network(const char **inbuf, size_t *inbytesleft, char **outbuf,
/macosx-10.9.5/apache-786.1/httpd/srclib/apr-util/xlate/
H A Dxlate.c108 char inbuf[256], outbuf[256]; local
110 char *outbufptr = outbuf;
130 convset->sbcs_table = apr_palloc(convset->pool, sizeof(outbuf));
131 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf));
147 char inbuf[256], outbuf[256]; local
149 char *outbufptr = outbuf;
172 convset->sbcs_table = apr_palloc(convset->pool, sizeof(outbuf));
173 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf));
[all...]
/macosx-10.9.5/apr-30/apr-util/apr-util/xlate/
H A Dxlate.c108 char inbuf[256], outbuf[256]; local
110 char *outbufptr = outbuf;
130 convset->sbcs_table = apr_palloc(convset->pool, sizeof(outbuf));
131 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf));
147 char inbuf[256], outbuf[256]; local
149 char *outbufptr = outbuf;
172 convset->sbcs_table = apr_palloc(convset->pool, sizeof(outbuf));
173 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf));
[all...]
/macosx-10.9.5/bzip2-29/bzip2/
H A Dunzcrash.c41 uchar outbuf[M_BLOCK_OUT]; variable
107 outbuf, &nOut, zbuf, nZ, 0, 0 );
118 if (inbuf[i] != outbuf[i]) {
132 if (inbuf[i] != outbuf[i]) {
/macosx-10.9.5/xnu-2422.115.4/bsd/dev/random/YarrowCoreLib/include/
H A Dyarrow.h118 BYTE *outbuf,
125 BYTE *outbuf,
153 YARROWAPI int prngOutput(BYTE *outbuf,UINT outbuflen);
154 YARROWAPI int prngStretch(BYTE *inbuf,UINT inbuflen,BYTE *outbuf,UINT outbuflen);
/macosx-10.9.5/bind9-45.100/bind9/bin/tests/system/lwresd/
H A Dlwtest.c136 char outbuf[64]; local
177 outbuf, sizeof(outbuf));
180 outbuf, sizeof(outbuf));
182 target, outbuf, address);
254 char outbuf[16]; local
256 outbuf, sizeof(outbuf));
258 "expected %s\n", name, outbuf, addres
302 char outbuf[16]; local
360 char outbuf[16]; local
503 char outbuf[16]; local
516 char outbuf[16]; local
530 char outbuf[16]; local
[all...]
/macosx-10.9.5/AppleUSBIrDA-145.2.4/IrDA/TinyTP/
H A Dttppdu.cpp173 TTPBuf *outbuf; // output TTPBuf local
180 outbuf = BufAlloc(1 + len); // make a new one with just the right size
181 require(outbuf, NoMem);
185 BufPut(outbuf, byte); // set TTP overhead byte (overridden later)
194 count = outbuf->Putn(base, len); // copy packet to new buffer
197 BufHideRest(outbuf); // this was missing!
199 return outbuf;
/macosx-10.9.5/autofs-234/automountd/
H A Dautod_mount.c80 putstring(uint8_t *outbuf, char *string) argument
86 memcpy(outbuf, &stringlen, sizeof (uint32_t));
87 outbuf += sizeof (uint32_t);
88 memcpy(outbuf, string, stringlen);
89 outbuf += stringlen;
92 memcpy(outbuf, &stringlen, sizeof (uint32_t));
93 outbuf += sizeof (uint32_t);
95 return (outbuf);
99 putint(uint8_t *outbuf, int val) argument
101 memcpy(outbuf,
107 putuint32(uint8_t *outbuf, uint32_t val) argument
136 uint8_t *outbuf; local
[all...]
/macosx-10.9.5/curl-78.94.1/curl/lib/
H A Dcurl_schannel.c114 SecBuffer outbuf; local
217 InitSecBuffer(&outbuf, SECBUFFER_EMPTY, NULL, 0);
218 InitSecBufferDesc(&outbuf_desc, &outbuf, 1);
258 "sending %lu bytes...\n", outbuf.cbBuffer);
261 code = Curl_write_plain(conn, conn->sock[sockindex], outbuf.pvBuffer,
262 outbuf.cbBuffer, &written);
263 s_pSecFn->FreeContextBuffer(outbuf.pvBuffer);
264 if((code != CURLE_OK) || (outbuf.cbBuffer != (size_t)written)) {
266 "sent %zd of %lu bytes", written, outbuf.cbBuffer);
286 SecBuffer outbuf[ local
665 SecBuffer outbuf[4]; local
1075 SecBuffer outbuf; local
[all...]

Completed in 231 milliseconds

12345678