Home
last modified time | relevance | path

Searched refs:out_len (Results 1 – 25 of 162) sorted by relevance

1234567

/external/boringssl/src/crypto/bio/
Dprintf.c73 int out_len, ret; in BIO_printf() local
76 out_len = vsnprintf(buf, sizeof(buf), format, args); in BIO_printf()
82 if (out_len < 0) { in BIO_printf()
84 out_len = _vscprintf(format, args); in BIO_printf()
86 assert(out_len >= sizeof(buf)); in BIO_printf()
90 if (out_len < 0) { in BIO_printf()
94 if ((size_t) out_len >= sizeof(buf)) { in BIO_printf()
95 const int requested_len = out_len; in BIO_printf()
106 out_len = vsnprintf(out, requested_len + 1, format, args); in BIO_printf()
108 assert(out_len == requested_len); in BIO_printf()
[all …]
/external/boringssl/src/crypto/cipher/
Dcipher.c259 int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len, in EVP_EncryptUpdate() argument
268 *out_len = i; in EVP_EncryptUpdate()
274 *out_len = 0; in EVP_EncryptUpdate()
280 *out_len = in_len; in EVP_EncryptUpdate()
283 *out_len = 0; in EVP_EncryptUpdate()
295 *out_len = 0; in EVP_EncryptUpdate()
306 *out_len = bl; in EVP_EncryptUpdate()
309 *out_len = 0; in EVP_EncryptUpdate()
318 *out_len += in_len; in EVP_EncryptUpdate()
328 int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len) { in EVP_EncryptFinal_ex() argument
[all …]
Daead.c87 size_t out_len) { in check_alias() argument
88 if (!buffers_alias(in, in_len, out, out_len)) { in check_alias()
95 int EVP_AEAD_CTX_seal(const EVP_AEAD_CTX *ctx, uint8_t *out, size_t *out_len, in EVP_AEAD_CTX_seal() argument
111 if (ctx->aead->seal(ctx, out, out_len, max_out_len, nonce, nonce_len, in, in EVP_AEAD_CTX_seal()
120 *out_len = 0; in EVP_AEAD_CTX_seal()
124 int EVP_AEAD_CTX_open(const EVP_AEAD_CTX *ctx, uint8_t *out, size_t *out_len, in EVP_AEAD_CTX_open() argument
133 if (ctx->aead->open(ctx, out, out_len, max_out_len, nonce, nonce_len, in, in EVP_AEAD_CTX_open()
143 *out_len = 0; in EVP_AEAD_CTX_open()
150 size_t *out_len) { in EVP_AEAD_CTX_get_iv() argument
155 return ctx->aead->get_iv(ctx, out_iv, out_len); in EVP_AEAD_CTX_get_iv()
Daead_test.cc70 size_t out_len; in TestAEAD() local
71 if (!EVP_AEAD_CTX_seal(ctx.get(), out.data(), &out_len, out.size(), in TestAEAD()
77 out.resize(out_len); in TestAEAD()
80 t->PrintLine("Bad output length: %u vs %u.", (unsigned)out_len, in TestAEAD()
315 size_t out_len; in TestWithAliasedBuffers() local
316 if (EVP_AEAD_CTX_seal(ctx.get(), out1, &out_len, in TestWithAliasedBuffers()
319 EVP_AEAD_CTX_seal(ctx.get(), out2, &out_len, in TestWithAliasedBuffers()
328 if (EVP_AEAD_CTX_open(ctx.get(), out1, &out_len, valid_encryption_len, in TestWithAliasedBuffers()
331 EVP_AEAD_CTX_open(ctx.get(), out2, &out_len, valid_encryption_len, in TestWithAliasedBuffers()
342 if (!EVP_AEAD_CTX_seal(ctx.get(), in, &out_len, in TestWithAliasedBuffers()
[all …]
/external/boringssl/src/crypto/base64/
Dbase64.c78 int EVP_EncodedLength(size_t *out_len, size_t len) { in EVP_EncodedLength() argument
95 *out_len = len; in EVP_EncodedLength()
103 void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, uint8_t *out, int *out_len, in EVP_EncodeUpdate() argument
107 *out_len = 0; in EVP_EncodeUpdate()
146 *out_len = 0; in EVP_EncodeUpdate()
164 *out_len = (int)total; in EVP_EncodeUpdate()
167 void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, uint8_t *out, int *out_len) { in EVP_EncodeFinal() argument
169 *out_len = 0; in EVP_EncodeFinal()
181 *out_len = (int)encoded; in EVP_EncodeFinal()
219 int EVP_DecodedLength(size_t *out_len, size_t len) { in EVP_DecodedLength() argument
[all …]
Dbase64_test.cc252 int out_len; in TestEncodeDecode() local
253 EVP_EncodeUpdate(&ctx, out, &out_len, in TestEncodeDecode()
256 size_t total = out_len; in TestEncodeDecode()
258 EVP_EncodeFinal(&ctx, out + total, &out_len); in TestEncodeDecode()
259 total += out_len; in TestEncodeDecode()
273 int out_len; in TestEncodeDecode() local
275 int ret = EVP_DecodeUpdate(&ctx, out, &out_len, in TestEncodeDecode()
279 total = out_len; in TestEncodeDecode()
280 ret = EVP_DecodeFinal(&ctx, out + total, &out_len); in TestEncodeDecode()
281 total += out_len; in TestEncodeDecode()
[all …]
/external/boringssl/src/crypto/hkdf/
Dhkdf.c26 int HKDF(uint8_t *out_key, size_t out_len, const EVP_MD *digest, in HKDF() argument
35 !HKDF_expand(out_key, out_len, digest, prk, prk_len, info, info_len)) { in HKDF()
42 int HKDF_extract(uint8_t *out_key, size_t *out_len, const EVP_MD *digest, in HKDF_extract() argument
54 *out_len = len; in HKDF_extract()
55 assert(*out_len == EVP_MD_size(digest)); in HKDF_extract()
59 int HKDF_expand(uint8_t *out_key, size_t out_len, const EVP_MD *digest, in HKDF_expand() argument
71 n = (out_len + digest_len - 1) / digest_len; in HKDF_expand()
72 if (out_len + digest_len < out_len || n > 255) { in HKDF_expand()
97 if (done + todo > out_len) { in HKDF_expand()
98 todo = out_len - done; in HKDF_expand()
Dhkdf_test.cc37 const size_t out_len; member
269 if (!HKDF_expand(buf, test->out_len, test->md_func(), prk, prk_len, in main()
275 if (OPENSSL_memcmp(buf, test->out, test->out_len) != 0) { in main()
281 if (!HKDF(buf, test->out_len, test->md_func(), test->ikm, test->ikm_len, in main()
287 if (OPENSSL_memcmp(buf, test->out, test->out_len) != 0) { in main()
/external/syslinux/lzo/
Dprepcore.c60 lzo_bytep out, lzo_uintp out_len,
72 lzo_bytep out, lzo_uintp out_len,
180 lzo_uint out_len = 0; in main() local
260 out_len = out_bufsize; in main()
261 r = lzo1x_999_compress_internal(in, in_len, out, &out_len, wrkmem, in main()
268 if (out_len < best_len) { in main()
269 best_len = out_len; in main()
286 out_len = out_bufsize; in main()
287 r = lzo1x_999_compress_internal(in, in_len, out, &out_len, wrkmem, in main()
291 assert(out_len == best_len); in main()
[all …]
/external/webrtc/talk/session/media/
Dsrtpfilter_unittest.cc98 int rtp_len = sizeof(kPcmuFrame), rtcp_len = sizeof(kRtcpReport), out_len; in TestProtectUnprotect() local
108 sizeof(rtp_packet), &out_len)); in TestProtectUnprotect()
109 EXPECT_EQ(out_len, rtp_len + rtp_auth_tag_len(cs1)); in TestProtectUnprotect()
111 EXPECT_TRUE(f2_.UnprotectRtp(rtp_packet, out_len, &out_len)); in TestProtectUnprotect()
112 EXPECT_EQ(rtp_len, out_len); in TestProtectUnprotect()
116 sizeof(rtp_packet), &out_len)); in TestProtectUnprotect()
117 EXPECT_EQ(out_len, rtp_len + rtp_auth_tag_len(cs2)); in TestProtectUnprotect()
119 EXPECT_TRUE(f1_.UnprotectRtp(rtp_packet, out_len, &out_len)); in TestProtectUnprotect()
120 EXPECT_EQ(rtp_len, out_len); in TestProtectUnprotect()
124 sizeof(rtcp_packet), &out_len)); in TestProtectUnprotect()
[all …]
Dsrtpfilter.cc214 bool SrtpFilter::ProtectRtp(void* p, int in_len, int max_len, int* out_len) { in ProtectRtp() argument
220 return send_session_->ProtectRtp(p, in_len, max_len, out_len); in ProtectRtp()
226 int* out_len, in ProtectRtp() argument
233 return send_session_->ProtectRtp(p, in_len, max_len, out_len, index); in ProtectRtp()
236 bool SrtpFilter::ProtectRtcp(void* p, int in_len, int max_len, int* out_len) { in ProtectRtcp() argument
242 return send_rtcp_session_->ProtectRtcp(p, in_len, max_len, out_len); in ProtectRtcp()
245 return send_session_->ProtectRtcp(p, in_len, max_len, out_len); in ProtectRtcp()
249 bool SrtpFilter::UnprotectRtp(void* p, int in_len, int* out_len) { in UnprotectRtp() argument
255 return recv_session_->UnprotectRtp(p, in_len, out_len); in UnprotectRtp()
258 bool SrtpFilter::UnprotectRtcp(void* p, int in_len, int* out_len) { in UnprotectRtcp() argument
[all …]
Dsrtpfilter.h122 bool ProtectRtp(void* data, int in_len, int max_len, int* out_len);
127 int* out_len,
129 bool ProtectRtcp(void* data, int in_len, int max_len, int* out_len);
132 bool UnprotectRtp(void* data, int in_len, int* out_len);
133 bool UnprotectRtcp(void* data, int in_len, int* out_len);
210 bool ProtectRtp(void* data, int in_len, int max_len, int* out_len);
215 int* out_len,
217 bool ProtectRtcp(void* data, int in_len, int max_len, int* out_len);
220 bool UnprotectRtp(void* data, int in_len, int* out_len);
221 bool UnprotectRtcp(void* data, int in_len, int* out_len);
/external/boringssl/src/include/openssl/
Dbase64.h85 OPENSSL_EXPORT int EVP_EncodedLength(size_t *out_len, size_t len);
94 OPENSSL_EXPORT int EVP_DecodedLength(size_t *out_len, size_t len);
100 OPENSSL_EXPORT int EVP_DecodeBase64(uint8_t *out, size_t *out_len,
124 int *out_len, const uint8_t *in,
130 int *out_len);
147 int *out_len, const uint8_t *in,
154 int *out_len);
/external/harfbuzz_ng/src/
Dhb-buffer.cc165 if (unlikely (!ensure (out_len + num_out))) return false; in make_room_for()
168 out_len + num_out > idx + num_in) in make_room_for()
173 memcpy (out_info, info, out_len * sizeof (out_info[0])); in make_room_for()
204 out_len = 0; in get_scratch_buffer()
247 out_len = 0; in clear()
296 out_len = 0; in remove_output()
309 out_len = 0; in clear_output()
322 out_len = 0; in clear_positions()
347 len = out_len; in swap_buffers()
348 out_len = tmp; in swap_buffers()
[all …]
Dhb-buffer-private.hh95 unsigned int out_len; /* Length of ->out array if have_output */ member
108 inline hb_glyph_info_t &prev (void) { return out_info[out_len ? out_len - 1 : 0]; } in prev()
109 inline hb_glyph_info_t prev (void) const { return out_info[out_len ? out_len - 1 : 0]; } in prev()
175 { return have_output? out_len : idx; } in backtrack_len()
212 if (unlikely (out_info != info || out_len != idx)) { in next_glyph()
214 out_info[out_len] = info[idx]; in next_glyph()
216 out_len++; in next_glyph()
/external/boringssl/src/ssl/
Dt1_enc.c157 static int tls1_P_hash(uint8_t *out, size_t out_len, const EVP_MD *md, in tls1_P_hash() argument
187 (out_len > chunk && !HMAC_CTX_copy_ex(&ctx_tmp, &ctx)) || in tls1_P_hash()
197 if (len > out_len) { in tls1_P_hash()
198 len = out_len; in tls1_P_hash()
205 out_len -= len; in tls1_P_hash()
207 if (out_len == 0) { in tls1_P_hash()
227 int tls1_prf(const EVP_MD *digest, uint8_t *out, size_t out_len, in tls1_prf() argument
231 if (out_len == 0) { in tls1_prf()
235 OPENSSL_memset(out, 0, out_len); in tls1_prf()
241 if (!tls1_P_hash(out, out_len, EVP_md5(), secret, secret_half, in tls1_prf()
[all …]
Dssl_privkey.c360 static int ssl_sign_rsa_pkcs1(SSL *ssl, uint8_t *out, size_t *out_len, in ssl_sign_rsa_pkcs1() argument
365 *out_len = max_out; in ssl_sign_rsa_pkcs1()
368 EVP_DigestSignFinal(&ctx, out, out_len); in ssl_sign_rsa_pkcs1()
414 static int ssl_sign_ecdsa(SSL *ssl, uint8_t *out, size_t *out_len, in ssl_sign_ecdsa() argument
433 *out_len = max_out; in ssl_sign_ecdsa()
436 EVP_DigestSignFinal(&ctx, out, out_len); in ssl_sign_ecdsa()
483 static int ssl_sign_rsa_pss(SSL *ssl, uint8_t *out, size_t *out_len, in ssl_sign_rsa_pss() argument
488 *out_len = max_out; in ssl_sign_rsa_pss()
495 EVP_DigestSignFinal(&ctx, out, out_len); in ssl_sign_rsa_pss()
523 SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, in ssl_private_key_sign() argument
[all …]
Dssl_transcript.c241 size_t *out_len) { in SSL_TRANSCRIPT_get_hash() argument
259 *out_len = md5_len + len; in SSL_TRANSCRIPT_get_hash()
271 uint8_t *p, size_t *out_len) { in ssl3_handshake_mac() argument
321 *out_len = len; in ssl3_handshake_mac()
326 uint8_t *out, size_t *out_len, in SSL_TRANSCRIPT_ssl3_cert_verify_hash() argument
342 *out_len = md5_len + len; in SSL_TRANSCRIPT_ssl3_cert_verify_hash()
348 out, out_len); in SSL_TRANSCRIPT_ssl3_cert_verify_hash()
356 size_t *out_len, const SSL_SESSION *session, in SSL_TRANSCRIPT_finish_mac() argument
375 *out_len = md5_len + len; in SSL_TRANSCRIPT_finish_mac()
403 *out_len = kFinishedLen; in SSL_TRANSCRIPT_finish_mac()
/external/boringssl/src/crypto/rsa/
Drsa.c225 int RSA_encrypt(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_encrypt() argument
228 return rsa->meth->encrypt(rsa, out_len, out, max_out, in, in_len, padding); in RSA_encrypt()
231 return rsa_default_encrypt(rsa, out_len, out, max_out, in, in_len, padding); in RSA_encrypt()
236 size_t out_len; in RSA_public_encrypt() local
238 if (!RSA_encrypt(rsa, &out_len, to, RSA_size(rsa), from, flen, padding)) { in RSA_public_encrypt()
242 if (out_len > INT_MAX) { in RSA_public_encrypt()
246 return out_len; in RSA_public_encrypt()
249 int RSA_sign_raw(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_sign_raw() argument
252 return rsa->meth->sign_raw(rsa, out_len, out, max_out, in, in_len, padding); in RSA_sign_raw()
255 return rsa_default_sign_raw(rsa, out_len, out, max_out, in, in_len, padding); in RSA_sign_raw()
[all …]
/external/webrtc/webrtc/base/
Dtransformadapter.cc65 size_t out_len = buffer_len; in Read() local
67 buffer, &out_len, in Read()
77 } else if ((out_len == 0) && (state_ == ST_FLUSHING)) { in Read()
88 if (out_len == 0) in Read()
92 *read = out_len; in Read()
115 size_t out_len = sizeof(buffer_) - len_; in Write() local
117 buffer_ + len_, &out_len, in Write()
131 len_ = out_len; in Write()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dneteq_unittest.cc291 void Process(size_t* out_len);
409 void NetEqDecodingTest::Process(size_t* out_len) { in Process() argument
429 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, out_len, in Process()
431 ASSERT_TRUE((*out_len == kBlockSize8kHz) || in Process()
432 (*out_len == kBlockSize16kHz) || in Process()
433 (*out_len == kBlockSize32kHz) || in Process()
434 (*out_len == kBlockSize48kHz)); in Process()
435 output_sample_rate_ = static_cast<int>(*out_len / 10 * 1000); in Process()
472 size_t out_len = 0; in DecodeAndCompare() local
473 ASSERT_NO_FATAL_FAILURE(Process(&out_len)); in DecodeAndCompare()
[all …]
/external/liblzf/src/org/liblzf/
DCLZF.java153 public static int lzf_compress (byte[] in_data, int in_len,byte[] out_data, int out_len) in lzf_compress() argument
195 if (oidx + lit + 1 + 3 >= out_len) in lzf_compress()
248 if (oidx + 1 + MAX_LIT >= out_len) in lzf_compress()
261 if (oidx + lit + 1 >= out_len) in lzf_compress()
277 public static int lzf_decompress ( byte[] in_data, int in_len, byte[] out_data, int out_len) in lzf_decompress() argument
290 if (oidx + ctrl > out_len) in lzf_decompress()
311 if (oidx + len + 2 > out_len) in lzf_decompress()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c75 uint8_t **out, size_t *out_len) { in ascii_to_ucs2() argument
94 *out_len = ulen; in ascii_to_ucs2()
101 size_t out_len, uint8_t *out, const EVP_MD *md) { in pkcs12_key_gen() argument
166 while (out_len != 0) { in pkcs12_key_gen()
185 size_t todo = out_len < A_len ? out_len : A_len; in pkcs12_key_gen()
188 out_len -= todo; in pkcs12_key_gen()
189 if (out_len == 0) { in pkcs12_key_gen()
353 int pkcs8_pbe_decrypt(uint8_t **out, size_t *out_len, CBS *algorithm, in pkcs8_pbe_decrypt() argument
402 *out_len = n1 + n2; in pkcs8_pbe_decrypt()
425 size_t out_len; in PKCS8_parse_encrypted_private_key() local
[all …]
/external/liblzf/cs/
DCLZF.cs153 public int lzf_compress (byte[] in_data, int in_len,byte[] out_data, int out_len) in lzf_compress() argument
195 if (oidx + lit + 1 + 3 >= out_len) in lzf_compress()
248 if (oidx + 1 + MAX_LIT >= out_len) in lzf_compress()
261 if (oidx + lit + 1 >= out_len) in lzf_compress()
277 public int lzf_decompress ( byte[] in_data, int in_len, byte[] out_data, int out_len) in lzf_decompress() argument
290 if (oidx + ctrl > out_len) in lzf_decompress()
311 if (oidx + len + 2 > out_len) in lzf_decompress()
/external/speex/libspeex/
Dresample.c332 …nnel_index, const spx_word16_t *in, spx_uint32_t *in_len, spx_word16_t *out, spx_uint32_t *out_len) in resampler_basic_direct_single() argument
346 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_direct_single()
384 …nnel_index, const spx_word16_t *in, spx_uint32_t *in_len, spx_word16_t *out, spx_uint32_t *out_len) in resampler_basic_direct_double() argument
398 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_direct_double()
433 …nnel_index, const spx_word16_t *in, spx_uint32_t *in_len, spx_word16_t *out, spx_uint32_t *out_len) in resampler_basic_interpolate_single() argument
446 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_interpolate_single()
496 …nnel_index, const spx_word16_t *in, spx_uint32_t *in_len, spx_word16_t *out, spx_uint32_t *out_len) in resampler_basic_interpolate_double() argument
509 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_interpolate_double()
803 …te *st, spx_uint32_t channel_index, spx_uint32_t *in_len, spx_word16_t *out, spx_uint32_t *out_len) in speex_resampler_process_native() argument
814 out_sample = st->resampler_ptr(st, channel_index, mem, in_len, out, out_len); in speex_resampler_process_native()
[all …]

1234567