/external/libxml2/ |
D | encoding.c | 176 asciiToUTF8(unsigned char* out, int *outlen, in asciiToUTF8() argument 181 unsigned char* outend = out + *outlen; in asciiToUTF8() 186 while ((in < inend) && (out - outstart + 5 < *outlen)) { in asciiToUTF8() 194 *outlen = out - outstart; in asciiToUTF8() 201 *outlen = out - outstart; in asciiToUTF8() 203 return(*outlen); in asciiToUTF8() 223 UTF8Toascii(unsigned char* out, int *outlen, in UTF8Toascii() argument 233 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8Toascii() 238 *outlen = 0; in UTF8Toascii() 243 outend = out + (*outlen); in UTF8Toascii() [all …]
|
/external/python/cpython3/Modules/_blake2/impl/ |
D | blake2.h | 122 int blake2s_init( blake2s_state *S, const uint8_t outlen ); 123 …int blake2s_init_key( blake2s_state *S, const uint8_t outlen, const void *key, const uint8_t keyle… 126 int blake2s_final( blake2s_state *S, uint8_t *out, uint8_t outlen ); 128 int blake2b_init( blake2b_state *S, const uint8_t outlen ); 129 …int blake2b_init_key( blake2b_state *S, const uint8_t outlen, const void *key, const uint8_t keyle… 132 int blake2b_final( blake2b_state *S, uint8_t *out, uint8_t outlen ); 134 int blake2sp_init( blake2sp_state *S, const uint8_t outlen ); 135 …int blake2sp_init_key( blake2sp_state *S, const uint8_t outlen, const void *key, const uint8_t key… 137 int blake2sp_final( blake2sp_state *S, uint8_t *out, uint8_t outlen ); 139 int blake2bp_init( blake2bp_state *S, const uint8_t outlen ); [all …]
|
D | blake2s.c | 190 int blake2s_init( blake2s_state *S, const uint8_t outlen ) in blake2s_init() argument 194 outlen, in blake2s_init() 206 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init() 211 int blake2s_init_key( blake2s_state *S, const uint8_t outlen, const void *key, const uint8_t keylen… in blake2s_init_key() argument 215 outlen, in blake2s_init_key() 228 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key() 335 int blake2s_final( blake2s_state *S, uint8_t *out, uint8_t outlen ) in blake2s_final() argument 340 if( outlen > BLAKE2S_OUTBYTES ) in blake2s_final() 362 memcpy( out, buffer, outlen ); in blake2s_final() 367 int blake2s( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t in… in blake2s() argument [all …]
|
D | blake2b-ref.c | 173 int blake2b_init( blake2b_state *S, const uint8_t outlen ) in blake2b_init() argument 177 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init() 179 P->digest_length = outlen; in blake2b_init() 194 int blake2b_init_key( blake2b_state *S, const uint8_t outlen, const void *key, const uint8_t keylen… in blake2b_init_key() argument 198 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init_key() 202 P->digest_length = outlen; in blake2b_init_key() 321 int blake2b_final( blake2b_state *S, uint8_t *out, uint8_t outlen ) in blake2b_final() argument 326 if( out == NULL || outlen == 0 || outlen > BLAKE2B_OUTBYTES ) in blake2b_final() 348 memcpy( out, buffer, outlen ); in blake2b_final() 353 int blake2b( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t in… in blake2b() argument [all …]
|
D | blake2s-ref.c | 166 int blake2s_init( blake2s_state *S, const uint8_t outlen ) in blake2s_init() argument 171 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init() 173 P->digest_length = outlen; in blake2s_init() 187 int blake2s_init_key( blake2s_state *S, const uint8_t outlen, const void *key, const uint8_t keylen… in blake2s_init_key() argument 191 if ( ( !outlen ) || ( outlen > BLAKE2S_OUTBYTES ) ) return -1; in blake2s_init_key() 195 P->digest_length = outlen; in blake2s_init_key() 311 int blake2s_final( blake2s_state *S, uint8_t *out, uint8_t outlen ) in blake2s_final() argument 316 if( out == NULL || outlen == 0 || outlen > BLAKE2S_OUTBYTES ) in blake2s_final() 339 memcpy( out, buffer, outlen ); in blake2s_final() 343 int blake2s( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t in… in blake2s() argument [all …]
|
D | blake2b.c | 203 int blake2b_init( blake2b_state *S, const uint8_t outlen ) in blake2b_init() argument 207 outlen, in blake2b_init() 220 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init() 225 int blake2b_init_key( blake2b_state *S, const uint8_t outlen, const void *key, const uint8_t keylen… in blake2b_init_key() argument 229 outlen, in blake2b_init_key() 242 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1; in blake2b_init_key() 361 int blake2b_final( blake2b_state *S, uint8_t *out, uint8_t outlen ) in blake2b_final() argument 363 if( outlen > BLAKE2B_OUTBYTES ) in blake2b_final() 381 memcpy( out, &S->h[0], outlen ); in blake2b_final() 386 int blake2b( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t in… in blake2b() argument [all …]
|
/external/boringssl/src/crypto/x509/ |
D | a_strex.c | 181 int i, outlen, len; in do_buf() local 186 outlen = 0; in do_buf() 236 outlen += len; in do_buf() 244 outlen += len; in do_buf() 247 return outlen; in do_buf() 287 int outlen, der_len; in do_dump() local 293 outlen = do_hex_dump(io_ch, arg, str->data, str->length); in do_dump() 294 if (outlen < 0) in do_dump() 296 return outlen + 1; in do_dump() 306 outlen = do_hex_dump(io_ch, arg, der_buf, der_len); in do_dump() [all …]
|
/external/curl/tests/unit/ |
D | unit1396.c | 45 int outlen; member 85 int outlen; variable 88 &outlen); 91 fail_unless(outlen == list1[i].outlen, "wrong output length returned"); 92 fail_unless(!memcmp(out, list1[i].out, list1[i].outlen), 101 int outlen; variable 105 outlen = (int)strlen(out); 106 fail_unless(outlen == list2[i].outlen, "wrong output length returned"); 107 fail_unless(!memcmp(out, list2[i].out, list2[i].outlen),
|
/external/curl/lib/vauth/ |
D | vauth.h | 65 char **outptr, size_t *outlen); 70 size_t *outlen); 75 size_t *outlen); 80 size_t *outlen); 87 char **outptr, size_t *outlen); 98 char **outptr, size_t *outlen); 111 char **outptr, size_t *outlen); 127 size_t *outlen); 139 char **outptr, size_t *outlen); 151 char **outptr, size_t *outlen); [all …]
|
D | cleartext.c | 63 char **outptr, size_t *outlen) in Curl_auth_create_plain_message() argument 71 *outlen = 0; in Curl_auth_create_plain_message() 99 result = Curl_base64_encode(data, plainauth, plainlen, outptr, outlen); in Curl_auth_create_plain_message() 123 size_t *outlen) in Curl_auth_create_login_message() argument 131 *outlen = (size_t) 1; in Curl_auth_create_login_message() 135 *outlen = 0; in Curl_auth_create_login_message() 140 return Curl_base64_encode(data, valuep, vlen, outptr, outlen); in Curl_auth_create_login_message() 161 size_t *outlen) in Curl_auth_create_external_message() argument 164 return Curl_auth_create_login_message(data, user, outptr, outlen); in Curl_auth_create_external_message()
|
D | cram.c | 58 size_t *outlen) in Curl_auth_decode_cram_md5_message() argument 64 *outlen = 0; in Curl_auth_decode_cram_md5_message() 68 result = Curl_base64_decode(chlg64, (unsigned char **) outptr, outlen); in Curl_auth_decode_cram_md5_message() 95 char **outptr, size_t *outlen) in Curl_auth_create_cram_md5_message() argument 131 result = Curl_base64_encode(data, response, 0, outptr, outlen); in Curl_auth_create_cram_md5_message()
|
/external/curl/tests/libtest/ |
D | lib1537.c | 33 int outlen; in test() local 57 raw = curl_easy_unescape(NULL, ptr, (int)strlen(ptr), &outlen); in test() 58 printf("outlen == %d\n", outlen); in test() 60 memcmp(raw, a, outlen) ? "no" : "YES"); in test() 70 outlen = (int)strlen(raw); in test() 71 printf("[old] outlen == %d\n", outlen); in test() 73 memcmp(raw, a, outlen) ? "no" : "YES"); in test() 84 outlen = 2017; /* just a value */ in test() 85 ptr = curl_easy_unescape(NULL, (char *)"moahahaha", -1, &outlen); in test() 86 printf("unescape -1 length: %s %d\n", ptr, outlen); in test()
|
/external/protobuf/src/google/protobuf/testing/ |
D | zcgzip.cc | 67 int outlen; in main() local 70 ok = out.Next(&outptr, &outlen); in main() 74 } while (outlen <= 0); in main() 75 readlen = read(STDIN_FILENO, outptr, outlen); in main() 77 out.BackUp(outlen); in main() 80 if (readlen < outlen) { in main() 81 out.BackUp(outlen - readlen); in main()
|
/external/squashfs-tools/squashfs-tools/ |
D | lzma_wrapper.c | 37 outlen = block_size - LZMA_HEADER_SIZE; in lzma_compress() local 40 res = LzmaCompress(dest + LZMA_HEADER_SIZE, &outlen, src, size, dest, in lzma_compress() 78 return outlen + LZMA_HEADER_SIZE; in lzma_compress() 86 size_t outlen, inlen = size - LZMA_HEADER_SIZE; in lzma_uncompress() local 89 outlen = s[LZMA_PROPS_SIZE] | in lzma_uncompress() 94 if(outlen > outsize) { in lzma_uncompress() 99 res = LzmaUncompress(dest, &outlen, src + LZMA_HEADER_SIZE, &inlen, src, in lzma_uncompress() 103 return outlen; in lzma_uncompress()
|
/external/boringssl/src/crypto/ecdh/ |
D | ecdh.c | 80 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ECDH_compute_key() argument 83 size_t *outlen)) { in ECDH_compute_key() argument 136 if (kdf(buf, buflen, out, &outlen) == NULL) { in ECDH_compute_key() 142 if (buflen < outlen) { in ECDH_compute_key() 143 outlen = buflen; in ECDH_compute_key() 145 OPENSSL_memcpy(out, buf, outlen); in ECDH_compute_key() 148 if (outlen > INT_MAX) { in ECDH_compute_key() 153 ret = (int)outlen; in ECDH_compute_key()
|
/external/curl/lib/ |
D | base64.c | 101 unsigned char **outptr, size_t *outlen) in Curl_base64_decode() argument 113 *outlen = 0; in Curl_base64_decode() 166 *outlen = rawlen; in Curl_base64_decode() 174 char **outptr, size_t *outlen) in base64_encode() argument 188 *outlen = 0; in base64_encode() 269 *outlen = strlen(base64data); in base64_encode() 293 char **outptr, size_t *outlen) in Curl_base64_encode() argument 295 return base64_encode(base64, data, inputbuff, insize, outptr, outlen); in Curl_base64_encode() 317 char **outptr, size_t *outlen) in Curl_base64url_encode() argument 319 return base64_encode(base64url, data, inputbuff, insize, outptr, outlen); in Curl_base64url_encode()
|
/external/wpa_supplicant_8/src/tls/ |
D | pkcs1.c | 20 u8 *out, size_t *outlen) in pkcs1_generate_encryption_block() argument 35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block() 39 (unsigned long) *outlen, in pkcs1_generate_encryption_block() 83 u8 *out, size_t *outlen) in pkcs1_encrypt() argument 90 out, outlen) < 0) in pkcs1_encrypt() 93 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt() 99 u8 *out, size_t *outlen) in pkcs1_v15_private_key_decrypt() argument 104 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); in pkcs1_v15_private_key_decrypt() 108 if (*outlen < 2 || out[0] != 0 || out[1] != 2) in pkcs1_v15_private_key_decrypt() 113 end = out + *outlen; in pkcs1_v15_private_key_decrypt() [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | a_mbstr.c | 100 int outform, outlen = 0; in ASN1_mbstring_ncopy() local 219 outlen = nchar; in ASN1_mbstring_ncopy() 224 outlen = nchar << 1; in ASN1_mbstring_ncopy() 229 outlen = nchar << 2; in ASN1_mbstring_ncopy() 234 outlen = 0; in ASN1_mbstring_ncopy() 235 traverse_string(in, len, inform, out_utf8, &outlen); in ASN1_mbstring_ncopy() 239 if (!(p = OPENSSL_malloc(outlen + 1))) { in ASN1_mbstring_ncopy() 245 dest->length = outlen; in ASN1_mbstring_ncopy() 247 p[outlen] = 0; in ASN1_mbstring_ncopy() 309 int *outlen; in out_utf8() local [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fDebugTests.cpp | 1695 int outlen = -1; in iterate() local 1763 gl.getObjectLabel(m_identifier, object, sizeof(buffer), &outlen, buffer); in iterate() 1765 if (outlen == 0) in iterate() 1838 int outlen = -1; in iterate() local 1847 gl.getObjectPtrLabel(sync, sizeof(buffer), &outlen, buffer); in iterate() 1849 if (outlen == 0) in iterate() 1886 int outlen = -1; in iterate() local 1902 outlen = -1; in iterate() 1903 gl.getObjectLabel(GL_SHADER, shader, sizeof(buffer), &outlen, buffer); in iterate() 1906 if (outlen != 0) in iterate() [all …]
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_internal-rsa.c | 74 u8 *out, size_t *outlen) in crypto_public_key_encrypt_pkcs1_v15() argument 77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15() 83 u8 *out, size_t *outlen) in crypto_private_key_decrypt_pkcs1_v15() argument 86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15() 92 u8 *out, size_t *outlen) in crypto_private_key_sign_pkcs1() argument 95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1()
|
D | sha512-kdf.c | 34 u8 *out, size_t outlen) in hmac_sha512_kdf() argument 61 clen = outlen - pos; in hmac_sha512_kdf() 67 if (pos == outlen) in hmac_sha512_kdf() 71 os_memset(out, 0, outlen); in hmac_sha512_kdf() 79 os_memset(out, 0, outlen); in hmac_sha512_kdf()
|
D | sha384-kdf.c | 34 u8 *out, size_t outlen) in hmac_sha384_kdf() argument 61 clen = outlen - pos; in hmac_sha384_kdf() 67 if (pos == outlen) in hmac_sha384_kdf() 71 os_memset(out, 0, outlen); in hmac_sha384_kdf() 79 os_memset(out, 0, outlen); in hmac_sha384_kdf()
|
D | sha256-kdf.c | 34 u8 *out, size_t outlen) in hmac_sha256_kdf() argument 61 clen = outlen - pos; in hmac_sha256_kdf() 67 if (pos == outlen) in hmac_sha256_kdf() 71 os_memset(out, 0, outlen); in hmac_sha256_kdf() 79 os_memset(out, 0, outlen); in hmac_sha256_kdf()
|
/external/curl/src/ |
D | tool_dirhie.c | 109 size_t outlen; in create_dir_hierarchy() local 111 outlen = strlen(outfile); in create_dir_hierarchy() 116 dirbuildup = malloc(outlen + 1); in create_dir_hierarchy() 134 snprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy() 140 snprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
|
/external/fonttools/Lib/fontTools/misc/ |
D | fixedTools.py | 41 outlen = len(out) 42 if outlen < length: 43 out.append(max(lo[outlen], hi[outlen]))
|