Home
last modified time | relevance | path

Searched refs:inbuf (Results 1 – 25 of 96) sorted by relevance

1234

/external/openssh/
Drsa.c77 u_char *inbuf = NULL, *outbuf = NULL; in rsa_public_encrypt() local
90 if ((inbuf = malloc(ilen)) == NULL) { in rsa_public_encrypt()
94 BN_bn2bin(in, inbuf); in rsa_public_encrypt()
96 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key, in rsa_public_encrypt()
113 if (inbuf != NULL) { in rsa_public_encrypt()
114 explicit_bzero(inbuf, ilen); in rsa_public_encrypt()
115 free(inbuf); in rsa_public_encrypt()
123 u_char *inbuf = NULL, *outbuf = NULL; in rsa_private_decrypt() local
133 if ((inbuf = malloc(ilen)) == NULL) { in rsa_private_decrypt()
137 BN_bn2bin(in, inbuf); in rsa_private_decrypt()
[all …]
/external/e2fsprogs/lib/ext2fs/
Ddirblock.c67 void *inbuf, int flags EXT2FS_ATTR((unused)), in ext2fs_write_dir_block4() argument
71 char *buf = inbuf; in ext2fs_write_dir_block4()
77 memcpy(buf, inbuf, fs->blocksize); in ext2fs_write_dir_block4()
97 void *inbuf, int flags EXT2FS_ATTR((unused))) in ext2fs_write_dir_block3() argument
99 return ext2fs_write_dir_block4(fs, block, inbuf, flags, 0); in ext2fs_write_dir_block3()
103 void *inbuf, int flags EXT2FS_ATTR((unused))) in ext2fs_write_dir_block2() argument
105 return ext2fs_write_dir_block3(fs, block, inbuf, flags); in ext2fs_write_dir_block2()
109 void *inbuf) in ext2fs_write_dir_block() argument
111 return ext2fs_write_dir_block3(fs, block, inbuf, 0); in ext2fs_write_dir_block()
/external/golang-protobuf/conformance/
Dconformance.go53 inbuf := make([]byte, 0, 4096)
63 if int(size) > cap(inbuf) {
64 inbuf = make([]byte, size)
66 inbuf = inbuf[:size]
67 if _, err := io.ReadFull(os.Stdin, inbuf); err != nil {
73 if err := proto.Unmarshal(inbuf, req); err != nil {
/external/eigen/bench/
DbenchFFT.cpp49 vector<T> inbuf(nfft); in bench() local
63 std::fill(inbuf.begin(),inbuf.end(),0); in bench()
64 fft.fwd( outbuf , inbuf); in bench()
72 fft.fwd( outbuf , inbuf); in bench()
75 fft.inv(inbuf,outbuf); in bench()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c13 const Py_UNICODE *inbuf, *inbuf_top, *inbuf_end; member
19 const unsigned char *inbuf, *inbuf_top, *inbuf_end; member
243 esize = (Py_ssize_t)(buf->inbuf_end - buf->inbuf); in multibytecodec_encerror()
257 const Py_UNICODE replchar = '?', *inbuf = &replchar; in multibytecodec_encerror() local
264 r = codec->encode(state, codec->config, &inbuf, 1, in multibytecodec_encerror()
280 buf->inbuf += esize; in multibytecodec_encerror()
284 start = (Py_ssize_t)(buf->inbuf - buf->inbuf_top); in multibytecodec_encerror()
347 buf->inbuf = buf->inbuf_top + newpos; in multibytecodec_encerror()
381 esize = (Py_ssize_t)(buf->inbuf_end - buf->inbuf); in multibytecodec_decerror()
399 buf->inbuf += esize; in multibytecodec_decerror()
[all …]
D_codecs_kr.c123 if ((*inbuf)[2] != EUCKR_JAMO_FIRSTBYTE || in DECODER()
124 (*inbuf)[4] != EUCKR_JAMO_FIRSTBYTE || in DECODER()
125 (*inbuf)[6] != EUCKR_JAMO_FIRSTBYTE) in DECODER()
128 c = (*inbuf)[3]; in DECODER()
134 c = (*inbuf)[5]; in DECODER()
137 c = (*inbuf)[7]; in DECODER()
D_codecs_iso2022.c161 ucs4_t c = **inbuf; in ENCODER()
304 const unsigned char **inbuf, Py_ssize_t *inleft) in iso2022processesc() argument
312 if (IS_ESCEND((*inbuf)[i])) { in iso2022processesc()
317 (*inbuf)[i] == '&' && (*inbuf)[i+1] == '@') in iso2022processesc()
350 (*inbuf)[3] == ESC && (*inbuf)[4] == '$' && in iso2022processesc()
351 (*inbuf)[5] == 'B') { in iso2022processesc()
375 (*inbuf) += esclen; in iso2022processesc()
392 const unsigned char **inbuf, Py_ssize_t *inleft, in iso2022processg2() argument
414 (*inbuf) += 3; in iso2022processg2()
445 inbuf, &inleft); in DECODER()
[all …]
/external/libvpx/libvpx/examples/
Dresize_util.c50 uint8_t *inbuf, *outbuf; in main() local
101 inbuf = (uint8_t *)malloc(width * height * 3 / 2); in main()
103 inbuf_u = inbuf + width * height; in main()
109 if (fread(inbuf, width * height * 3 / 2, 1, fpin) != 1) break; in main()
110 vp9_resize_frame420(inbuf, width, inbuf_u, inbuf_v, width / 2, height, in main()
120 free(inbuf); in main()
/external/libaom/libaom/examples/
Dresize_util.c51 uint8_t *inbuf, *outbuf; in main() local
102 inbuf = (uint8_t *)malloc(width * height * 3 / 2); in main()
104 inbuf_u = inbuf + width * height; in main()
110 if (fread(inbuf, width * height * 3 / 2, 1, fpin) != 1) break; in main()
111 av1_resize_frame420(inbuf, width, inbuf_u, inbuf_v, width / 2, height, in main()
121 free(inbuf); in main()
/external/libxml2/os400/
Dlibxmlmain.c40 char * inbuf; in main() local
58 inbuf = argv[i]; in main()
64 &inbuf, &inbytesleft, &outbuf, &outbytesleft); in main()
80 inbuf = ebcdic_argv[i]; in main()
82 iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); in main()
/external/bzip2/
Dunzcrash.c40 uchar inbuf[M_BLOCK]; variable
92 nIn = fread ( inbuf, 1, M_BLOCK, f ); in main()
97 zbuf, &nZ, inbuf, nIn, 9, 0, 30 ); in main()
118 if (inbuf[i] != outbuf[i]) { in main()
132 if (inbuf[i] != outbuf[i]) { in main()
/external/selinux/libselinux/src/
Dbooleans.c390 char *inbuf = NULL; in save_booleans() local
422 inbuf = NULL; in save_booleans()
424 while ((len = getline(&inbuf, &size, boolf)) > 0) { in save_booleans()
425 buffer = strdup(inbuf); in save_booleans()
429 process_boolean(inbuf, boolname, sizeof(boolname), in save_booleans()
462 free(inbuf); in save_booleans()
463 inbuf = NULL; in save_booleans()
475 free(inbuf); in save_booleans()
530 char *inbuf; in security_load_booleans() local
541 while (getline(&inbuf, &len, boolf) > 0) { in security_load_booleans()
[all …]
/external/curl/lib/vtls/
Dschannel.c421 SecBuffer inbuf; in schannel_connect_step1() local
758 InitSecBuffer(&inbuf, SECBUFFER_APPLICATION_PROTOCOLS, alpn_buffer, cur); in schannel_connect_step1()
759 InitSecBufferDesc(&inbuf_desc, &inbuf, 1); in schannel_connect_step1()
762 InitSecBuffer(&inbuf, SECBUFFER_EMPTY, NULL, 0); in schannel_connect_step1()
763 InitSecBufferDesc(&inbuf_desc, &inbuf, 1); in schannel_connect_step1()
766 InitSecBuffer(&inbuf, SECBUFFER_EMPTY, NULL, 0); in schannel_connect_step1()
767 InitSecBufferDesc(&inbuf_desc, &inbuf, 1); in schannel_connect_step1()
874 SecBuffer inbuf[2]; in schannel_connect_step2() local
968 InitSecBuffer(&inbuf[0], SECBUFFER_TOKEN, malloc(BACKEND->encdata_offset), in schannel_connect_step2()
970 InitSecBuffer(&inbuf[1], SECBUFFER_EMPTY, NULL, 0); in schannel_connect_step2()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SPARC/
Dsetjmp.ll27 define i32 @foo(%struct.jmpbuf_env* byval %inbuf) #0 {
29 %0 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 0
31 %1 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 1
33 %2 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 2, i32 0
35 %4 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 3
37 store %struct.jmpbuf_env* %inbuf, %struct.jmpbuf_env** @jenv, align 4, !tbaa !3
/external/llvm/test/CodeGen/SPARC/
Dsetjmp.ll27 define i32 @foo(%struct.jmpbuf_env* byval %inbuf) #0 {
29 %0 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 0
31 %1 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 1
33 %2 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 2, i32 0
35 %4 = getelementptr inbounds %struct.jmpbuf_env, %struct.jmpbuf_env* %inbuf, i32 0, i32 3
37 store %struct.jmpbuf_env* %inbuf, %struct.jmpbuf_env** @jenv, align 4, !tbaa !3
/external/curl/tests/server/
Dfake_ntlm.c48 static char *printable(char *inbuf, size_t inlength) in printable() argument
63 inlength = strlen(inbuf); in printable()
95 if((inbuf[i] > 0x20) && (inbuf[i] < 0x7F)) { in printable()
96 outbuf[o] = inbuf[i]; in printable()
100 msnprintf(&outbuf[o], outsize - o, HEX_FMT_STR, inbuf[i]); in printable()
/external/selinux/policycoreutils/run_init/
Dopen_init_pty.c242 struct ring_buffer inbuf; in main() local
244 rb_init(&inbuf, inbuf_mem, sizeof(inbuf_mem)); in main()
330 if (!rb_isempty(&inbuf) && err_n_wpty < MAXRETR) { in main()
335 if (rb_space(&inbuf) > 0 && err_n_stdin < MAXRETR) { in main()
385 ssize_t n = rb_write(&inbuf, pty_master); in main()
400 ssize_t n = rb_read(&inbuf, STDIN_FILENO); in main()
430 || !(rb_isempty(&inbuf) || err_n_wpty >= MAXRETR) in main()
434 fprintf(stderr, "inbuf: %u bytes left, outbuf: %u bytes left\n", inbuf.count, outbuf.count); in main()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c27 const unsigned char *inbuf, *inbuf_top, *inbuf_end; member
377 esize = (Py_ssize_t)(buf->inbuf_end - buf->inbuf); in multibytecodec_decerror()
398 buf->inbuf += esize; in multibytecodec_decerror()
402 start = (Py_ssize_t)(buf->inbuf - buf->inbuf_top); in multibytecodec_decerror()
451 buf->inbuf = buf->inbuf_top + newpos; in multibytecodec_decerror()
658 buf.inbuf = buf.inbuf_top = (unsigned char *)data; in _multibytecodec_MultibyteCodec_decode_impl()
665 while (buf.inbuf < buf.inbuf_end) { in _multibytecodec_MultibyteCodec_decode_impl()
668 inleft = (Py_ssize_t)(buf.inbuf_end - buf.inbuf); in _multibytecodec_MultibyteCodec_decode_impl()
671 &buf.inbuf, inleft, &buf.writer); in _multibytecodec_MultibyteCodec_decode_impl()
752 PyObject *inbuf = NULL; in encoder_encode_stateful() local
[all …]
D_codecs_kr.c127 if ((*inbuf)[2] != EUCKR_JAMO_FIRSTBYTE || in DECODER()
128 (*inbuf)[4] != EUCKR_JAMO_FIRSTBYTE || in DECODER()
129 (*inbuf)[6] != EUCKR_JAMO_FIRSTBYTE) in DECODER()
132 c = (*inbuf)[3]; in DECODER()
138 c = (*inbuf)[5]; in DECODER()
141 c = (*inbuf)[7]; in DECODER()
/external/vboot_reference/futility/
Dcmd_gbb_utility.c364 uint8_t *inbuf = NULL; in do_gbb_utility() local
467 inbuf = read_entire_file(infile, &filesize); in do_gbb_utility()
468 if (!inbuf) in do_gbb_utility()
471 gbb = FindGbbHeader(inbuf, filesize); in do_gbb_utility()
527 inbuf = read_entire_file(infile, &filesize); in do_gbb_utility()
528 if (!inbuf) in do_gbb_utility()
531 gbb = FindGbbHeader(inbuf, filesize); in do_gbb_utility()
548 memcpy(outbuf, inbuf, filesize); in do_gbb_utility()
633 if (inbuf) in do_gbb_utility()
634 free(inbuf); in do_gbb_utility()
/external/compiler-rt/test/msan/
Diconv.cc20 const char *inbuf = inbuf_; in main() local
22 char *inbuf = inbuf_; in main() local
43 res = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); in main()
/external/eigen/unsupported/test/
DFFTW.cpp148 ComplexVector inbuf(nfft); in test_complex_generic() local
152 inbuf[k]= Complex( (T)(rand()/(double)RAND_MAX - .5), (T)(rand()/(double)RAND_MAX - .5) ); in test_complex_generic()
153 fft.fwd( outbuf , inbuf); in test_complex_generic()
155 VERIFY( T(fft_rmse(outbuf,inbuf)) < test_precision<T>() );// gross check in test_complex_generic()
158 VERIFY( T(dif_rmse(inbuf,buf3)) < test_precision<T>() );// gross check in test_complex_generic()
166 VERIFY( T(dif_rmse(inbuf,buf4)) < test_precision<T>() );// gross check in test_complex_generic()
171 VERIFY( T(dif_rmse(inbuf,buf3)) < test_precision<T>() );// gross check in test_complex_generic()
/external/libopus/tests/
Dtest_opus_encode.c146 opus_int16 *inbuf; in test_encode() local
153 inbuf = (opus_int16*)malloc(sizeof(*inbuf)*SSAMPLES); in test_encode()
154 generate_music(inbuf, SSAMPLES/2); in test_encode()
161 len = opus_encode(enc, &inbuf[samp_count*channels], frame_size, packet, MAX_PACKET); in test_encode()
179 free(inbuf); in test_encode()
284 short *inbuf; in run_test1() local
373 inbuf=(short *)malloc(sizeof(short)*SAMPLES*2); in run_test1()
376 if(inbuf==NULL || outbuf==NULL || out2buf==NULL)test_failed(); in run_test1()
378 generate_music(inbuf,SAMPLES); in run_test1()
387 if(opus_encode(enc, inbuf, 500, packet, MAX_PACKET)!=OPUS_BAD_ARG)test_failed(); in run_test1()
[all …]
/external/dtc/
Dflattree.c580 struct inbuf { struct
584 static void inbuf_init(struct inbuf *inb, void *base, void *limit) in inbuf_init() argument
591 static void flat_read_chunk(struct inbuf *inb, void *p, int len) in flat_read_chunk()
601 static uint32_t flat_read_word(struct inbuf *inb) in flat_read_word()
612 static void flat_realign(struct inbuf *inb, int align) in flat_realign()
621 static char *flat_read_string(struct inbuf *inb) in flat_read_string()
642 static struct data flat_read_data(struct inbuf *inb, int len) in flat_read_data()
659 static char *flat_read_stringtable(struct inbuf *inb, int offset) in flat_read_stringtable()
678 static struct property *flat_read_property(struct inbuf *dtbuf, in flat_read_property()
679 struct inbuf *strbuf, int flags) in flat_read_property()
[all …]
/external/u-boot/scripts/dtc/
Dflattree.c580 struct inbuf { struct
584 static void inbuf_init(struct inbuf *inb, void *base, void *limit) in inbuf_init() argument
591 static void flat_read_chunk(struct inbuf *inb, void *p, int len) in flat_read_chunk()
601 static uint32_t flat_read_word(struct inbuf *inb) in flat_read_word()
612 static void flat_realign(struct inbuf *inb, int align) in flat_realign()
621 static char *flat_read_string(struct inbuf *inb) in flat_read_string()
642 static struct data flat_read_data(struct inbuf *inb, int len) in flat_read_data()
659 static char *flat_read_stringtable(struct inbuf *inb, int offset) in flat_read_stringtable()
678 static struct property *flat_read_property(struct inbuf *dtbuf, in flat_read_property()
679 struct inbuf *strbuf, int flags) in flat_read_property()
[all …]

1234