/external/dropbear/libtomcrypt/src/misc/pkcs5/ |
H A D | pkcs_5_2.c | 39 unsigned char *buf[2]; local 52 buf[0] = XMALLOC(MAXBLOCKSIZE * 2); 54 if (hmac == NULL || buf[0] == NULL) { 58 if (buf[0] != NULL) { 59 XFREE(buf[0]); 63 /* buf[1] points to the second block of MAXBLOCKSIZE bytes */ 64 buf[1] = buf[0] + MAXBLOCKSIZE; 71 zeromem(buf[0], MAXBLOCKSIZE*2); 74 STORE32H(blkno, buf[ [all...] |
/external/astl/src/ |
H A D | ostream.cpp | 64 char buf[kNumSize]; local 65 int size = snprintf(buf, kNumSize, fmt, val); 66 return write(buf, size); 71 char buf[kNumSize]; local 72 int size = snprintf(buf, kNumSize, fmt, val); 73 return write(buf, size); 78 char buf[kNumSize]; local 79 int size = snprintf(buf, kNumSize, fmt, val); 80 return write(buf, size); 85 char buf[kNumSiz local 92 char buf[kNumSize]; local 99 char buf[kNumSize]; local 107 char buf[kNumSize]; local 114 char buf[kNumSize]; local 121 char buf[kNumSize]; local [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
H A D | Support_StringWriter.java | 24 private StringBuffer buf; field in class:Support_StringWriter 33 buf = new StringBuffer(16); 34 lock = buf; 44 buf = new StringBuffer(initialSize); 45 lock = buf; 80 return buf; 94 return buf.toString(); 100 * in <code>buf</code> to this StringWriter. 102 * @param buf 105 * offset in buf t 113 write(char[] buf, int offset, int count) argument [all...] |
/external/icu4c/test/intltest/ |
H A D | testutil.cpp | 16 UnicodeString &TestUtility::appendHex(UnicodeString &buf, UChar32 ch) { argument 19 buf.append(HEX[0xF&(ch>>20)]); 21 buf.append(HEX[0xF&(ch>>16)]); 23 buf.append(HEX[0xF&(ch>>12)]); 24 buf.append(HEX[0xF&(ch>>8)]); 25 buf.append(HEX[0xF&(ch>>4)]); 26 buf.append(HEX[0xF&ch]); 27 return buf; 31 UnicodeString buf; local 32 appendHex(buf, c 55 UnicodeString buf; local [all...] |
/external/dropbear/libtomcrypt/testprof/ |
H A D | pkcs_1_test.c | 7 unsigned char buf[3][128]; local 24 zeromem(buf, sizeof(buf)); 28 for (y = 0; y < l3; y++) buf[0][y] = rand() & 255; 40 l1 = sizeof(buf[1]); 41 DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf[1], &l1)); 44 l2 = sizeof(buf[2]); 45 DO(pkcs_1_oaep_decode(buf[1], l1, lparam, lparamlen, modlen, hash_idx, buf[ [all...] |
H A D | store_test.c | 6 unsigned char buf[256]; local 17 STORE32L(L, buf + y); 18 LOAD32L(L1, buf + y); 23 STORE32H(L, buf + y); 24 LOAD32H(L1, buf + y); 34 STORE64L(LL, buf + y); 35 LOAD64L(LL1, buf + y); 40 STORE64H(LL, buf + y); 41 LOAD64H(LL1, buf + y); 54 yarrow_read(buf [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
H A D | JavaScriptTarget.java | 56 StringBuffer buf = new StringBuffer(22); // enough for the two "0x", "," and " " 57 buf.append("0x"); 58 writeHexWithPadding(buf, Integer.toHexString((int)(word & 0x00000000ffffffffL))); 59 buf.append(", 0x"); 60 writeHexWithPadding(buf, Integer.toHexString((int)(word >> 32))); 62 return buf.toString(); 65 private void writeHexWithPadding(StringBuffer buf, String digits) { argument 70 buf.append('0'); 72 buf.append(digits);
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
H A D | ecc_ansi_x963_export.c | 34 unsigned char buf[ECC_BUF_SIZE]; local 55 zeromem(buf, sizeof(buf)); 56 mp_to_unsigned_bin(key->pubkey.x, buf + (numlen - mp_unsigned_bin_size(key->pubkey.x))); 57 XMEMCPY(out+1, buf, numlen); 60 zeromem(buf, sizeof(buf)); 61 mp_to_unsigned_bin(key->pubkey.y, buf + (numlen - mp_unsigned_bin_size(key->pubkey.y))); 62 XMEMCPY(out+1+numlen, buf, numlen);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
H A D | X509NameTokenizer.java | 14 private StringBuffer buf = new StringBuffer(); field in class:X509NameTokenizer 47 buf.setLength(0); 63 if (c == '#' && buf.charAt(buf.length() - 1) == '=') 65 buf.append('\\'); 69 buf.append('\\'); 72 buf.append(c); 80 if (c == '#' && buf.charAt(buf.length() - 1) == '=') 82 buf [all...] |
/external/e2fsprogs/contrib/ |
H A D | make-sparse.c | 23 int full_read(int fd, char *buf, size_t count) argument 29 got = read(fd, buf, count); 41 buf += got; 52 char buf[1024]; local 64 got = full_read(0, buf, sizeof(buf)); 67 if (got == sizeof(buf)) { 68 for (i=0; i < sizeof(buf); i++) 69 if (buf[i]) 71 if (i == sizeof(buf)) { [all...] |
/external/kernel-headers/original/linux/ |
H A D | relay.h | 50 unsigned int cpu; /* this buf's cpu */ 66 struct rchan_buf *buf[NR_CPUS]; /* per-cpu channel buffers */ member in struct:rchan 76 * @buf: the channel buffer containing the new sub-buffer 91 int (*subbuf_start) (struct rchan_buf *buf, 98 * @buf: the channel buffer 103 void (*buf_mapped)(struct rchan_buf *buf, 108 * @buf: the channel buffer 113 void (*buf_unmapped)(struct rchan_buf *buf, 120 * @buf: the channel buffer 141 struct rchan_buf *buf, 195 struct rchan_buf *buf; local 222 struct rchan_buf *buf; local 246 struct rchan_buf *buf = chan->buf[smp_processor_id()]; local 267 subbuf_start_reserve(struct rchan_buf *buf, size_t length) argument [all...] |
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ |
H A D | DirectByteBufferTest.java | 24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH); 25 baseBuf = buf; 30 buf = null; 48 assertTrue(buf.isDirect()); 53 assertTrue(buf.hasArray()); 54 // assertFalse(buf.hasArray()); 58 assertFalse(buf.isReadOnly());
|
H A D | HeapByteBufferTest.java | 26 buf = ByteBuffer.allocate(BUFFER_LENGTH); 27 baseBuf = buf; 32 buf = null; 50 assertFalse(buf.isDirect()); 54 assertTrue(buf.hasArray()); 58 assertFalse(buf.isReadOnly());
|
/external/dropbear/ |
H A D | rsa.h | 47 void buf_put_rsa_sign(buffer* buf, rsa_key *key, const unsigned char* data, 50 int buf_rsa_verify(buffer * buf, rsa_key *key, const unsigned char* data, 53 int buf_get_rsa_pub_key(buffer* buf, rsa_key *key); 54 int buf_get_rsa_priv_key(buffer* buf, rsa_key *key); 55 void buf_put_rsa_pub_key(buffer* buf, rsa_key *key); 56 void buf_put_rsa_priv_key(buffer* buf, rsa_key *key);
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/mesh/ |
H A D | IndexByteBuffer.java | 45 private ByteBuffer buf; field in class:IndexByteBuffer 48 this.buf = buffer; 53 return buf.get(i) & 0x000000FF; 58 buf.put(i, (byte) value); 63 return buf.limit(); 68 return buf;
|
H A D | IndexShortBuffer.java | 45 private ShortBuffer buf; field in class:IndexShortBuffer 48 this.buf = buffer; 53 return buf.get(i) & 0x0000FFFF; 58 buf.put(i, (short) value); 63 return buf.limit(); 68 return buf;
|
/external/libselinux/src/ |
H A D | getenforce.c | 16 char buf[20]; local 28 memset(buf, 0, sizeof buf); 29 ret = read(fd, buf, sizeof buf - 1); 34 if (sscanf(buf, "%d", &enforce) != 1)
|
/external/openssl/crypto/ec/ |
H A D | ec_print.c | 66 unsigned char *buf; local 73 if ((buf = OPENSSL_malloc(buf_len)) == NULL) 76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx)) 78 OPENSSL_free(buf); 82 ret = BN_bin2bn(buf, buf_len, ret); 84 OPENSSL_free(buf); 95 unsigned char *buf; local 99 buf = OPENSSL_malloc(buf_len); 100 if (buf == NULL) 103 if (!BN_bn2bin(bn, buf)) 142 unsigned char *buf, *pbuf; local 179 EC_POINT_hex2point(const EC_GROUP *group, const char *buf, EC_POINT *point, BN_CTX *ctx) argument [all...] |
/external/openssl/crypto/lhash/ |
H A D | lh_test.c | 67 char buf[256]; local 75 buf[0]='\0'; 76 fgets(buf,256,stdin); 77 if (buf[0] == '\0') break; 78 i=strlen(buf); 80 memcpy(p,buf,i+1);
|
/external/qemu/hw/ |
H A D | smbios.c | 115 char buf[1024]; local 117 if (get_param_value(buf, sizeof(buf), "vendor", t)) 119 strlen(buf) + 1, buf); 120 if (get_param_value(buf, sizeof(buf), "version", t)) 122 strlen(buf) + 1, buf); 123 if (get_param_value(buf, sizeo 139 char buf[1024]; local 169 char buf[1024]; local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/util/ |
H A D | ASN1Dump.java | 53 StringBuffer buf) 61 buf.append(indent); 64 buf.append("BER Sequence"); 68 buf.append("DER Sequence"); 72 buf.append("Sequence"); 75 buf.append(nl); 85 buf.append(tab); 86 buf.append("NULL"); 87 buf.append(nl); 91 _dumpAsString(tab, verbose, (ASN1Primitive)o, buf); 49 _dumpAsString( String indent, boolean verbose, ASN1Primitive obj, StringBuffer buf) argument [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
H A D | DebugEventSocketProxy.cs | 182 string buf = SerializeToken(t); 183 Transmit("consumeToken\t" + buf); 187 string buf = SerializeToken(t); 188 Transmit("consumeHiddenToken\t" + buf); 221 StringBuilder buf = new StringBuilder(50); 222 buf.Append("exception\t"); 223 buf.Append(e.GetType().Name); 225 buf.Append("\t"); 226 buf.Append(e.Index); 227 buf 270 SerializeNode(StringBuilder buf, object t) argument 373 SerializeText(StringBuilder buf, string text) argument [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
H A D | DebugEventSocketProxy.cs | 207 string buf = SerializeToken( t ); 208 Transmit( "consumeToken\t" + buf ); 213 string buf = SerializeToken( t ); 214 Transmit( "consumeHiddenToken\t" + buf ); 255 StringBuilder buf = new StringBuilder( 50 ); 256 buf.Append( "exception\t" ); 257 buf.Append( e.GetType().Name ); 259 buf.Append( "\t" ); 260 buf.Append( e.Index ); 261 buf 309 SerializeNode( StringBuilder buf, object t ) argument 422 SerializeText( StringBuilder buf, string text ) argument [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
H A D | DebugEventSocketProxy.java | 150 String buf = serializeToken(t); 151 transmit("consumeToken\t"+buf); 155 String buf = serializeToken(t); 156 transmit("consumeHiddenToken\t"+buf); 189 StringBuffer buf = new StringBuffer(50); 190 buf.append("exception\t"); 191 buf.append(e.getClass().getName()); 193 buf.append("\t"); 194 buf.append(e.index); 195 buf 238 serializeNode(StringBuffer buf, Object t) argument 336 serializeText(StringBuffer buf, String text) argument [all...] |
/external/dropbear/libtomcrypt/src/pk/asn1/der/utctime/ |
H A D | der_decode_utctime.c | 38 y = char_to_int(buf[x])*10 + char_to_int(buf[x+1]); \ 52 unsigned char buf[32]; local 61 if (*inlen < 2UL || (in[1] >= sizeof(buf)) || ((in[1] + 2UL) > *inlen)) { 71 buf[x] = y; 98 if (buf[x] == 'Z') { 100 } else if (buf[x] == '+' || buf[x] == '-') { 101 out->off_dir = (buf[x++] == '+') ? 0 : 1; 111 if (buf[ [all...] |