Home
last modified time | relevance | path

Searched refs:outbuf (Results 1 – 25 of 82) sorted by relevance

1234

/external/openssh/
Drsa.c77 u_char *inbuf = NULL, *outbuf = NULL; in rsa_public_encrypt() local
84 if ((outbuf = malloc(olen)) == NULL) { in rsa_public_encrypt()
96 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key, in rsa_public_encrypt()
102 if (BN_bin2bn(outbuf, len, out) == NULL) { in rsa_public_encrypt()
109 if (outbuf != NULL) { in rsa_public_encrypt()
110 explicit_bzero(outbuf, olen); in rsa_public_encrypt()
111 free(outbuf); in rsa_public_encrypt()
123 u_char *inbuf = NULL, *outbuf = NULL; in rsa_private_decrypt() local
127 if ((outbuf = malloc(olen)) == NULL) { in rsa_private_decrypt()
139 if ((len = RSA_private_decrypt(ilen, inbuf, outbuf, key, in rsa_private_decrypt()
[all …]
/external/libopus/tests/
Dtest_opus_decode.c65 short *outbuf; in test_decoder_code0() local
74 outbuf=&outbuf_int[8*2]; in test_decoder_code0()
109 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor, fec); in test_decoder_code0()
115 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); in test_decoder_code0()
119 out_samples = opus_decode(dec[t], 0, -1, outbuf, 120/factor, fec); in test_decoder_code0()
121 out_samples = opus_decode(dec[t], 0, 1, outbuf, 120/factor, fec); in test_decoder_code0()
123 out_samples = opus_decode(dec[t], 0, 10, outbuf, 120/factor, fec); in test_decoder_code0()
125 out_samples = opus_decode(dec[t], 0, fast_rand(), outbuf, 120/factor, fec); in test_decoder_code0()
131 out_samples = opus_decode(dec[t], packet, 0, outbuf, 120/factor, fec); in test_decoder_code0()
135 outbuf[0]=32749; in test_decoder_code0()
[all …]
/external/apache-harmony/crypto/src/test/impl/java.injected/org/apache/harmony/crypto/internal/
DNullCipherSpiTest.java112 ByteBuffer outbuf = ByteBuffer.allocate(6); in testEngineUpdateByteBufferByteBuffer() local
115 spi.engineUpdate(null, outbuf); in testEngineUpdateByteBufferByteBuffer()
130 int result = spi.engineUpdate(inbuf, outbuf); in testEngineUpdateByteBufferByteBuffer()
133 assertEquals("incorrect outbuf", i + 4, outbuf.get(i)); in testEngineUpdateByteBufferByteBuffer()
137 outbuf = ByteBuffer.allocate(5); in testEngineUpdateByteBufferByteBuffer()
143 spi.engineUpdate(inbuf, outbuf); in testEngineUpdateByteBufferByteBuffer()
157 ByteBuffer outbuf = ByteBuffer.allocate(6); in testEngineDoFinalByteBufferByteBuffer() local
160 spi.engineDoFinal(null, outbuf); in testEngineDoFinalByteBufferByteBuffer()
175 int result = spi.engineDoFinal(inbuf, outbuf); in testEngineDoFinalByteBufferByteBuffer()
178 assertEquals("incorrect outbuf", i + 4, outbuf.get(i)); in testEngineDoFinalByteBufferByteBuffer()
[all …]
/external/vboot_reference/host/lib/
Dutil_misc.c45 uint32_t *outbuf; in vb_keyb_from_rsa() local
52 outbuf = malloc(bufsize); in vb_keyb_from_rsa()
53 if (!outbuf) in vb_keyb_from_rsa()
56 *keyb_data = (uint8_t *)outbuf; in vb_keyb_from_rsa()
59 *outbuf++ = nwords; in vb_keyb_from_rsa()
91 *outbuf++ = n0invout; in vb_keyb_from_rsa()
109 *outbuf++ = nout; in vb_keyb_from_rsa()
120 *outbuf++ = rrout; in vb_keyb_from_rsa()
125 outbuf = NULL; in vb_keyb_from_rsa()
129 free(outbuf); in vb_keyb_from_rsa()
Dhost_key.c73 uint8_t *outbuf = 0; in PrivateKeyWrite() local
77 buflen = i2d_RSAPrivateKey(key->rsa_private_key, &outbuf); in PrivateKeyWrite()
86 free(outbuf); in PrivateKeyWrite()
93 free(outbuf); in PrivateKeyWrite()
97 if (1 != fwrite(outbuf, buflen, 1, f)) { in PrivateKeyWrite()
101 free(outbuf); in PrivateKeyWrite()
105 free(outbuf); in PrivateKeyWrite()
/external/llvm/test/Transforms/GVN/
Dlpre-call-wrap-2.ll6 ; void bi_windup(unsigned char *outbuf, unsigned char bi_buf) {
7 ; outbuf[outcnt] = bi_buf;
10 ; outbuf[outcnt] = bi_buf;
16 define void @bi_windup(i8* %outbuf, i8 zeroext %bi_buf) nounwind {
20 %1 = getelementptr i8, i8* %outbuf, i32 %0 ; <i8*> [#uses=1]
35 %5 = getelementptr i8, i8* %outbuf, i32 %4 ; <i8*> [#uses=1]
/external/libvpx/libvpx/examples/
Dresize_util.c44 uint8_t *inbuf, *outbuf; in main() local
96 outbuf = (uint8_t*)malloc(target_width * target_height * 3 / 2); in main()
99 outbuf_u = outbuf + target_width * target_height; in main()
107 outbuf, target_width, outbuf_u, outbuf_v, in main()
110 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
118 free(outbuf); in main()
/external/selinux/libselinux/src/
Dbooleans.c385 char outbuf[BUFSIZ]; in save_booleans() local
437 snprintf(outbuf, sizeof(outbuf), in save_booleans()
440 len = strlen(outbuf); in save_booleans()
442 if (write(fd, outbuf, len) != in save_booleans()
450 snprintf(outbuf, sizeof(outbuf), in save_booleans()
452 len = strlen(outbuf); in save_booleans()
453 if (write(fd, outbuf, len) != len) in save_booleans()
465 snprintf(outbuf, sizeof(outbuf), "%s=%d\n", in save_booleans()
467 len = strlen(outbuf); in save_booleans()
468 if (write(fd, outbuf, len) != len) { in save_booleans()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c35 struct wpabuf *outbuf; member
138 data->inbuf = data->outbuf = NULL; in eap_pwd_init()
173 wpabuf_free(data->outbuf); in eap_pwd_deinit()
331 data->outbuf = wpabuf_alloc(sizeof(struct eap_pwd_id) + in eap_pwd_perform_id_exchange()
333 if (data->outbuf == NULL) { in eap_pwd_perform_id_exchange()
337 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_perform_id_exchange()
338 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_RAND_FUNC); in eap_pwd_perform_id_exchange()
339 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_PRF); in eap_pwd_perform_id_exchange()
340 wpabuf_put_data(data->outbuf, id->token, sizeof(id->token)); in eap_pwd_perform_id_exchange()
341 wpabuf_put_u8(data->outbuf, EAP_PWD_PREP_NONE); in eap_pwd_perform_id_exchange()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_upload_mgr.c160 struct pipe_resource **outbuf, in u_upload_alloc() argument
171 pipe_resource_reference(outbuf, NULL); in u_upload_alloc()
206 pipe_resource_reference( outbuf, upload->buffer ); in u_upload_alloc()
218 struct pipe_resource **outbuf) in u_upload_data() argument
222 out_offset, outbuf, in u_upload_data()
243 struct pipe_resource **outbuf) in u_upload_buffer() argument
267 outbuf); in u_upload_buffer()
Du_upload_mgr.h95 struct pipe_resource **outbuf,
110 struct pipe_resource **outbuf);
125 struct pipe_resource **outbuf);
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/tasks/support/gl-matrix/
Drelease_helper.rb94 outbuf = ''
97 outbuf = `#{cmd}`
99 block.call(outbuf) if block
102 [outbuf, $?]
/external/vboot_reference/firmware/lib/
Dregion-kernel.c190 char outbuf[OUTBUF_LEN]; in VbRegionCheckVersion() local
192 *outbuf = '\0'; in VbRegionCheckVersion()
193 used += StrnAppend(outbuf + used, "gbb.flags is nonzero: 0x", in VbRegionCheckVersion()
195 used += Uint64ToString(outbuf + used, OUTBUF_LEN - used, in VbRegionCheckVersion()
197 used += StrnAppend(outbuf + used, "\n", OUTBUF_LEN - used); in VbRegionCheckVersion()
198 (void)VbExDisplayDebugInfo(outbuf); in VbRegionCheckVersion()
/external/e2fsprogs/misc/
Dlogsave.c36 static void *outbuf = 0; variable
108 n = realloc(outbuf, outbufsize + c); in send_output()
110 outbuf = n; in send_output()
111 memcpy(((char *)outbuf)+outbufsize, buffer, c); in send_output()
309 if (outbuf) { in main()
326 write_all(outfd, outbuf, outbufsize); in main()
327 free(outbuf); in main()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c35 struct wpabuf *outbuf; member
129 data->inbuf = data->outbuf = NULL; in eap_pwd_init()
159 wpabuf_free(data->outbuf); in eap_pwd_reset()
174 data->outbuf = wpabuf_alloc(sizeof(struct eap_pwd_id) + in eap_pwd_build_id_req()
176 if (data->outbuf == NULL) { in eap_pwd_build_id_req()
183 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_build_id_req()
184 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_RAND_FUNC); in eap_pwd_build_id_req()
185 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_PRF); in eap_pwd_build_id_req()
186 wpabuf_put_data(data->outbuf, &data->token, sizeof(data->token)); in eap_pwd_build_id_req()
187 wpabuf_put_u8(data->outbuf, data->password_hash ? EAP_PWD_PREP_MS : in eap_pwd_build_id_req()
[all …]
/external/bzip2/
Dunzcrash.c41 uchar outbuf[M_BLOCK_OUT]; variable
107 outbuf, &nOut, zbuf, nZ, 0, 0 ); in main()
118 if (inbuf[i] != outbuf[i]) { in main()
132 if (inbuf[i] != outbuf[i]) { in main()
/external/vboot_reference/futility/
Dcmd_gbb_utility.c366 uint8_t *outbuf = NULL; in do_gbb_utility() local
538 outbuf = (uint8_t *) malloc(filesize); in do_gbb_utility()
539 if (!outbuf) { in do_gbb_utility()
548 memcpy(outbuf, inbuf, filesize); in do_gbb_utility()
549 gbb = FindGbbHeader(outbuf, filesize); in do_gbb_utility()
604 outfile, outbuf, filesize); in do_gbb_utility()
619 outbuf = create_gbb(opt_create, &filesize); in do_gbb_utility()
620 if (!outbuf) { in do_gbb_utility()
629 outfile, outbuf, filesize); in do_gbb_utility()
635 if (outbuf) in do_gbb_utility()
[all …]
/external/selinux/policycoreutils/run_init/
Dopen_init_pty.c221 struct ring_buffer outbuf; in main() local
223 rb_init(&outbuf, outbuf_mem, sizeof(outbuf_mem)); in main()
299 if (rb_space(&outbuf) > 0 && err_n_rpty < MAXRETR) { in main()
314 if (!rb_isempty(&outbuf) && err_n_stdout < MAXRETR) { in main()
343 ssize_t n = rb_write(&outbuf, STDOUT_FILENO); in main()
388 ssize_t n = rb_read(&outbuf, pty_master); in main()
404 || !(rb_isempty(&outbuf) || err_n_stdout >= MAXRETR)); in main()
407 fprintf(stderr, "inbuf: %u bytes left, outbuf: %u bytes left\n", inbuf.count, outbuf.count); in main()
/external/eigen/bench/
DbenchFFT.cpp50 vector<Complex > outbuf(nfft); in bench() local
64 fft.fwd( outbuf , inbuf); in bench()
72 fft.fwd( outbuf , inbuf); in bench()
75 fft.inv(inbuf,outbuf); in bench()
/external/compiler-rt/test/msan/
Diconv.cc19 char *outbuf = outbuf_; in main() local
35 res = iconv(cd, 0, 0, &outbuf, &outbytesleft); in main()
38 res = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); in main()
/external/toybox/scripts/
Dmkflags.c111 char *out, *outbuf = malloc(1024*1024); in main() local
115 if (!(out = outbuf)) return 1; in main()
205 out = outbuf; in main()
207 int i = write(1, outbuf, strlen(outbuf)); in main()
/external/zlib/src/examples/
Dgun.c162 unsigned char outbuf[SIZE]; /* output buffer */ variable
261 outbuf[0] = (unsigned char)final; /* write first decompressed byte */ in lunpipe()
281 if (outcnt && out(&outd, outbuf, outcnt)) { in lunpipe()
282 strm->next_in = outbuf; /* signal write error */ in lunpipe()
352 outbuf[outcnt++] = match[--stack]; in lunpipe()
353 if (out(&outd, outbuf, outcnt)) { in lunpipe()
354 strm->next_in = outbuf; /* signal write error */ in lunpipe()
361 outbuf[outcnt++] = *--p; in lunpipe()
/external/eigen/unsupported/test/
DFFTW.cpp149 ComplexVector outbuf; in test_complex_generic() local
153 fft.fwd( outbuf , inbuf); in test_complex_generic()
155 VERIFY( fft_rmse(outbuf,inbuf) < test_precision<T>() );// gross check in test_complex_generic()
156 fft.inv( buf3 , outbuf); in test_complex_generic()
163 fft.inv( buf4 , outbuf); in test_complex_generic()
170 fft.inv( buf3 , outbuf); in test_complex_generic()
/external/toybox/toys/other/
Dbzcat.c72 char outbuf[IOBUF_SIZE]; member
427 if (write(out_fd, bd->outbuf, bd->outbufPos) != bd->outbufPos) in flush_bunzip_outbuf()
496 int write_bunzip_data(struct bunzip_data *bd, struct bwdata *bw, int out_fd, char *outbuf, int len) in write_bunzip_data() argument
548 bd->outbuf[bd->outbufPos++] = outbyte; in write_bunzip_data()
569 memcpy(outbuf, bd->outbuf, len); in write_bunzip_data()
574 if (bd->outbufPos) memmove(bd->outbuf, bd->outbuf+len, bd->outbufPos); in write_bunzip_data()
/external/libxml2/
DHTMLtree.c412 xmlOutputBufferPtr outbuf; in htmlBufNodeDumpFormat() local
420 outbuf = (xmlOutputBufferPtr) xmlMalloc(sizeof(xmlOutputBuffer)); in htmlBufNodeDumpFormat()
421 if (outbuf == NULL) { in htmlBufNodeDumpFormat()
425 memset(outbuf, 0, (size_t) sizeof(xmlOutputBuffer)); in htmlBufNodeDumpFormat()
426 outbuf->buffer = buf; in htmlBufNodeDumpFormat()
427 outbuf->encoder = NULL; in htmlBufNodeDumpFormat()
428 outbuf->writecallback = NULL; in htmlBufNodeDumpFormat()
429 outbuf->closecallback = NULL; in htmlBufNodeDumpFormat()
430 outbuf->context = NULL; in htmlBufNodeDumpFormat()
431 outbuf->written = 0; in htmlBufNodeDumpFormat()
[all …]

1234