/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, charwidth; in do_buf() local 186 outlen = 0; in do_buf() 256 outlen += len; in do_buf() 264 outlen += len; in do_buf() 267 return outlen; in do_buf() 307 int outlen, der_len; in do_dump() local 313 outlen = do_hex_dump(io_ch, arg, str->data, str->length); in do_dump() 314 if (outlen < 0) in do_dump() 316 return outlen + 1; in do_dump() 326 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); 129 size_t *outlen); 141 char **outptr, size_t *outlen); 153 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() 93 result = Curl_base64_encode(data, plainauth, plainlen, outptr, outlen); in Curl_auth_create_plain_message() 117 size_t *outlen) in Curl_auth_create_login_message() argument 125 *outlen = (size_t) 1; in Curl_auth_create_login_message() 129 *outlen = 0; in Curl_auth_create_login_message() 134 return Curl_base64_encode(data, valuep, vlen, outptr, outlen); in Curl_auth_create_login_message() 155 size_t *outlen) in Curl_auth_create_external_message() argument 158 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 = 0; in test() local 56 raw = curl_easy_unescape(NULL, ptr, (int)strlen(ptr), &outlen); in test() 57 printf("outlen == %d\n", outlen); in test() 59 memcmp(raw, a, outlen) ? "no" : "YES"); in test() 68 outlen = (int)strlen(raw); in test() 69 printf("[old] outlen == %d\n", outlen); in test() 71 memcmp(raw, a, outlen) ? "no" : "YES"); in test() 80 outlen = 2017; /* just a value */ in test() 81 ptr = curl_easy_unescape(NULL, (char *)"moahahaha", -1, &outlen); in test() 82 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/curl/lib/ |
D | base64.c | 100 unsigned char **outptr, size_t *outlen) in Curl_base64_decode() argument 112 *outlen = 0; in Curl_base64_decode() 165 *outlen = rawlen; in Curl_base64_decode() 173 char **outptr, size_t *outlen) in base64_encode() argument 187 *outlen = 0; in base64_encode() 268 *outlen = strlen(base64data); in base64_encode() 292 char **outptr, size_t *outlen) in Curl_base64_encode() argument 294 return base64_encode(base64, data, inputbuff, insize, outptr, outlen); in Curl_base64_encode() 316 char **outptr, size_t *outlen) in Curl_base64url_encode() argument 318 return base64_encode(base64url, data, inputbuff, insize, outptr, outlen); in Curl_base64url_encode()
|
D | curl_base64.h | 27 char **outptr, size_t *outlen); 30 char **outptr, size_t *outlen); 33 unsigned char **outptr, size_t *outlen);
|
/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/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 | 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()
|
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 | 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()
|
/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 msnprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy() 140 msnprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
|
/external/boringssl/src/crypto/evp/ |
D | p_rsa.c | 307 static int pkey_rsa_encrypt(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *outlen, in pkey_rsa_encrypt() argument 314 *outlen = key_len; in pkey_rsa_encrypt() 318 if (*outlen < key_len) { in pkey_rsa_encrypt() 328 !RSA_encrypt(rsa, outlen, out, *outlen, rctx->tbuf, key_len, in pkey_rsa_encrypt() 335 return RSA_encrypt(rsa, outlen, out, *outlen, in, inlen, rctx->pad_mode); in pkey_rsa_encrypt() 339 size_t *outlen, const uint8_t *in, in pkey_rsa_decrypt() argument 346 *outlen = key_len; in pkey_rsa_decrypt() 350 if (*outlen < key_len) { in pkey_rsa_decrypt() 361 out, outlen, key_len, rctx->tbuf, padded_len, rctx->oaep_label, in pkey_rsa_decrypt() 368 return RSA_decrypt(rsa, outlen, out, key_len, in, inlen, rctx->pad_mode); in pkey_rsa_decrypt()
|
/external/curl/tests/server/ |
D | getpart.c | 278 int getpart(char **outbuf, size_t *outlen, in getpart() argument 308 *outlen = 0; in getpart() 324 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart() 359 error = decodedata(outbuf, outlen); in getpart() 376 error = decodedata(outbuf, outlen); in getpart() 462 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart() 477 *outlen = 0; in getpart()
|