Home
last modified time | relevance | path

Searched refs:error_details (Results 1 – 25 of 232) sorted by relevance

12345678910

/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc74 char** error_details) { in ensure_header_and_tag_length() argument
79 maybe_copy_error_msg("Header is nullptr.", error_details); in ensure_header_and_tag_length()
83 maybe_copy_error_msg("Header length is incorrect.", error_details); in ensure_header_and_tag_length()
87 maybe_copy_error_msg("Tag is nullptr.", error_details); in ensure_header_and_tag_length()
91 maybe_copy_error_msg("Tag length is incorrect.", error_details); in ensure_header_and_tag_length()
99 char** error_details) { in increment_counter() argument
105 alts_counter_increment(counter, &is_overflow, error_details); in increment_counter()
110 maybe_copy_error_msg("Crypter counter is overflowed.", error_details); in increment_counter()
128 char** error_details) { in write_frame_header() argument
130 maybe_copy_error_msg("Header is nullptr.", error_details); in write_frame_header()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc76 char** error_details) { in ensure_header_and_tag_length() argument
81 maybe_copy_error_msg("Header is nullptr.", error_details); in ensure_header_and_tag_length()
85 maybe_copy_error_msg("Header length is incorrect.", error_details); in ensure_header_and_tag_length()
89 maybe_copy_error_msg("Tag is nullptr.", error_details); in ensure_header_and_tag_length()
93 maybe_copy_error_msg("Tag length is incorrect.", error_details); in ensure_header_and_tag_length()
101 char** error_details) { in increment_counter() argument
107 alts_counter_increment(counter, &is_overflow, error_details); in increment_counter()
112 maybe_copy_error_msg("Crypter counter is overflowed.", error_details); in increment_counter()
130 char** error_details) { in write_frame_header() argument
132 maybe_copy_error_msg("Header is nullptr.", error_details); in write_frame_header()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/alts/crypt/
Daes_gcm.cc69 static void aes_gcm_format_errors(const char* error_msg, char** error_details) { in aes_gcm_format_errors() argument
70 if (error_details == nullptr) { in aes_gcm_format_errors()
75 *error_details = static_cast<char*>(gpr_malloc(strlen(error_msg) + 1)); in aes_gcm_format_errors()
76 memcpy(*error_details, error_msg, strlen(error_msg) + 1); in aes_gcm_format_errors()
82 *error_details = static_cast<char*>(gpr_malloc(len + 1)); in aes_gcm_format_errors()
83 snprintf(*error_details, len + 1, "%s, %s", error_msg, openssl_errors); in aes_gcm_format_errors()
90 size_t* max_ciphertext_and_tag_length, char** error_details) { in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() argument
93 error_details); in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length()
106 size_t* max_plaintext_length, char** error_details) { in gsec_aes_gcm_aead_crypter_max_plaintext_length() argument
108 aes_gcm_format_errors("max_plaintext_length is nullptr.", error_details); in gsec_aes_gcm_aead_crypter_max_plaintext_length()
[all …]
Dgsec.cc43 char** error_details) { in gsec_aead_crypter_encrypt() argument
53 ciphertext_vec, bytes_written, error_details); in gsec_aead_crypter_encrypt()
56 maybe_copy_error_msg(vtable_error_msg, error_details); in gsec_aead_crypter_encrypt()
65 char** error_details) { in gsec_aead_crypter_encrypt_iovec() argument
71 error_details); in gsec_aead_crypter_encrypt_iovec()
74 maybe_copy_error_msg(vtable_error_msg, error_details); in gsec_aead_crypter_encrypt_iovec()
82 size_t plaintext_length, size_t* bytes_written, char** error_details) { in gsec_aead_crypter_decrypt() argument
91 plaintext_vec, bytes_written, error_details); in gsec_aead_crypter_decrypt()
94 maybe_copy_error_msg(vtable_error_msg, error_details); in gsec_aead_crypter_decrypt()
103 char** error_details) { in gsec_aead_crypter_decrypt_iovec() argument
[all …]
Dgsec.h151 char** error_details);
157 char** error_details);
160 size_t* max_ciphertext_and_tag_length_to_return, char** error_details);
163 size_t* max_plaintext_length_to_return, char** error_details);
166 char** error_details);
169 char** error_details);
172 char** error_details);
219 char** error_details);
252 char** error_details);
289 size_t plaintext_length, size_t* bytes_written, char** error_details);
[all …]
/external/grpc-grpc/src/core/tsi/alts/crypt/
Daes_gcm.cc71 static void aes_gcm_format_errors(const char* error_msg, char** error_details) { in aes_gcm_format_errors() argument
72 if (error_details == nullptr) { in aes_gcm_format_errors()
77 *error_details = static_cast<char*>(gpr_malloc(strlen(error_msg) + 1)); in aes_gcm_format_errors()
78 memcpy(*error_details, error_msg, strlen(error_msg) + 1); in aes_gcm_format_errors()
84 *error_details = static_cast<char*>(gpr_malloc(len + 1)); in aes_gcm_format_errors()
85 snprintf(*error_details, len + 1, "%s, %s", error_msg, openssl_errors); in aes_gcm_format_errors()
92 size_t* max_ciphertext_and_tag_length, char** error_details) { in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() argument
95 error_details); in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length()
108 size_t* max_plaintext_length, char** error_details) { in gsec_aes_gcm_aead_crypter_max_plaintext_length() argument
110 aes_gcm_format_errors("max_plaintext_length is nullptr.", error_details); in gsec_aes_gcm_aead_crypter_max_plaintext_length()
[all …]
Dgsec.cc43 char** error_details) { in gsec_aead_crypter_encrypt() argument
52 ciphertext_vec, bytes_written, error_details); in gsec_aead_crypter_encrypt()
55 maybe_copy_error_msg(vtable_error_msg, error_details); in gsec_aead_crypter_encrypt()
64 char** error_details) { in gsec_aead_crypter_encrypt_iovec() argument
70 error_details); in gsec_aead_crypter_encrypt_iovec()
73 maybe_copy_error_msg(vtable_error_msg, error_details); in gsec_aead_crypter_encrypt_iovec()
81 size_t plaintext_length, size_t* bytes_written, char** error_details) { in gsec_aead_crypter_decrypt() argument
90 plaintext_vec, bytes_written, error_details); in gsec_aead_crypter_decrypt()
93 maybe_copy_error_msg(vtable_error_msg, error_details); in gsec_aead_crypter_decrypt()
102 char** error_details) { in gsec_aead_crypter_decrypt_iovec() argument
[all …]
Dgsec.h147 char** error_details);
153 char** error_details);
156 size_t* max_ciphertext_and_tag_length_to_return, char** error_details);
159 size_t* max_plaintext_length_to_return, char** error_details);
162 char** error_details);
165 char** error_details);
168 char** error_details);
215 char** error_details);
248 char** error_details);
285 size_t plaintext_length, size_t* bytes_written, char** error_details);
[all …]
/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dalts_counter_test.cc38 char* error_details = nullptr; in alts_counter_test_input_sanity_check() local
43 alts_counter_create(true, 0, overflow_size, &ctr, &error_details); in alts_counter_test_input_sanity_check()
45 status, GRPC_STATUS_INVALID_ARGUMENT, error_details, in alts_counter_test_input_sanity_check()
47 gpr_free(error_details); in alts_counter_test_input_sanity_check()
50 status = alts_counter_create(true, counter_size, 0, &ctr, &error_details); in alts_counter_test_input_sanity_check()
52 status, GRPC_STATUS_INVALID_ARGUMENT, error_details, in alts_counter_test_input_sanity_check()
54 gpr_free(error_details); in alts_counter_test_input_sanity_check()
58 &error_details); in alts_counter_test_input_sanity_check()
60 status, GRPC_STATUS_INVALID_ARGUMENT, error_details, in alts_counter_test_input_sanity_check()
62 gpr_free(error_details); in alts_counter_test_input_sanity_check()
[all …]
/external/cronet/net/third_party/quiche/src/quiche/quic/core/crypto/
Dtransport_parameters_test.cc337 std::string error_details; in TEST_P() local
340 &new_params, &error_details)) in TEST_P()
341 << error_details; in TEST_P()
342 EXPECT_TRUE(error_details.empty()); in TEST_P()
383 std::string error_details; in TEST_P() local
386 &new_params, &error_details)) in TEST_P()
387 << error_details; in TEST_P()
388 EXPECT_TRUE(error_details.empty()); in TEST_P()
396 std::string error_details; in TEST_P() local
398 EXPECT_TRUE(params.AreValid(&error_details)); in TEST_P()
[all …]
Dquic_crypto_client_config.cc137 std::string* error_details) { in SetServerConfig() argument
153 *error_details = "SCFG invalid"; in SetServerConfig()
160 *error_details = "SCFG missing EXPY"; in SetServerConfig()
169 *error_details = "SCFG has expired"; in SetServerConfig()
256 std::string error_details; in Initialize() local
258 SetServerConfig(server_config, now, expiration_time, &error_details); in Initialize()
261 QUIC_DVLOG(1) << "SetServerConfig failed with " << error_details; in Initialize()
455 CryptoHandshakeMessage* out, std::string* error_details) const { in FillClientHello()
456 QUICHE_DCHECK(error_details != nullptr); in FillClientHello()
472 *error_details = "Handshake not ready"; in FillClientHello()
[all …]
Dtransport_parameters.cc231 std::string* error_details) { in Read() argument
233 *error_details = in Read()
240 *error_details = in Read()
245 *error_details = in Read()
584 bool TransportParameters::AreValid(std::string* error_details) const { in AreValid()
588 *error_details = "Client cannot send stateless reset token"; in AreValid()
593 *error_details = "Client cannot send original_destination_connection_id"; in AreValid()
598 *error_details = absl::StrCat("Stateless reset token has bad length ", in AreValid()
603 *error_details = "Client cannot send preferred address"; in AreValid()
608 *error_details = in AreValid()
[all …]
Dcrypto_utils_test.cc115 std::string error_details; in TEST_F() local
117 CreateQuicVersionLabel(v1), v2, &error_details); in TEST_F()
119 EXPECT_EQ(success, error_details.empty()); in TEST_F()
128 std::string error_details; in TEST_F() local
131 client_original_supported_versions, &error_details)); in TEST_F()
132 EXPECT_TRUE(error_details.empty()); in TEST_F()
142 std::string error_details; in TEST_F() local
145 client_original_supported_versions, &error_details)); in TEST_F()
146 EXPECT_TRUE(error_details.empty()); in TEST_F()
162 std::string error_details; in TEST_F() local
[all …]
/external/grpc-grpc/src/core/tsi/alts/frame_protector/
Dalts_record_protocol_crypter_common.cc34 size_t* output_size, char** error_details) { in input_sanity_check() argument
36 maybe_copy_error_msg("alts_crypter instance is nullptr.", error_details); in input_sanity_check()
39 maybe_copy_error_msg("data is nullptr.", error_details); in input_sanity_check()
42 maybe_copy_error_msg("output_size is nullptr.", error_details); in input_sanity_check()
49 char** error_details) { in increment_counter() argument
52 alts_counter_increment(rp_crypter->ctr, &is_overflow, error_details); in increment_counter()
60 maybe_copy_error_msg(error_msg, error_details); in increment_counter()
69 char* error_details = nullptr; in alts_record_protocol_crypter_num_overhead_bytes() local
73 rp_crypter->crypter, &num_overhead_bytes, &error_details); in alts_record_protocol_crypter_num_overhead_bytes()
92 char** error_details) { in alts_crypter_create_common() argument
[all …]
Dalts_seal_privacy_integrity_crypter.cc37 size_t* output_size, char** error_details) { in seal_check() argument
41 output_size, error_details); in seal_check()
48 maybe_copy_error_msg(error_msg, error_details); in seal_check()
55 maybe_copy_error_msg(error_msg, error_details); in seal_check()
63 size_t data_size, size_t* output_size, char** error_details) { in alts_seal_crypter_process_in_place() argument
65 output_size, error_details); in alts_seal_crypter_process_in_place()
76 output_size, error_details); in alts_seal_crypter_process_in_place()
81 return increment_counter(rp_crypter, error_details); in alts_seal_crypter_process_in_place()
91 char** error_details) { in alts_seal_crypter_create() argument
94 maybe_copy_error_msg(error_msg, error_details); in alts_seal_crypter_create()
[all …]
Dalts_unseal_privacy_integrity_crypter.cc38 char** error_details) { in unseal_check() argument
42 output_size, error_details); in unseal_check()
51 maybe_copy_error_msg(error_msg, error_details); in unseal_check()
59 size_t data_size, size_t* output_size, char** error_details) { in alts_unseal_crypter_process_in_place() argument
61 data_size, output_size, error_details); in alts_unseal_crypter_process_in_place()
72 output_size, error_details); in alts_unseal_crypter_process_in_place()
77 return increment_counter(rp_crypter, error_details); in alts_unseal_crypter_process_in_place()
89 char** error_details) { in alts_unseal_crypter_create() argument
92 maybe_copy_error_msg(error_msg, error_details); in alts_unseal_crypter_create()
96 alts_crypter_create_common(gc, is_client, overflow_size, error_details); in alts_unseal_crypter_create()
Dalts_frame_protector.cc61 char* error_details = nullptr; in seal() local
66 &output_size, &error_details); in seal()
69 gpr_log(GPR_ERROR, "%s", error_details); in seal()
70 gpr_free(error_details); in seal()
194 char* error_details = nullptr; in unseal() local
199 alts_get_output_bytes_read(impl->reader), &output_size, &error_details); in unseal()
201 gpr_log(GPR_ERROR, "%s", error_details); in unseal()
202 gpr_free(error_details); in unseal()
332 char** error_details) { in create_alts_crypters() argument
338 &aead_crypter_seal, error_details); in create_alts_crypters()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/alts/frame_protector/
Dalts_record_protocol_crypter_common.cc34 size_t* output_size, char** error_details) { in input_sanity_check() argument
36 maybe_copy_error_msg("alts_crypter instance is nullptr.", error_details); in input_sanity_check()
39 maybe_copy_error_msg("data is nullptr.", error_details); in input_sanity_check()
42 maybe_copy_error_msg("output_size is nullptr.", error_details); in input_sanity_check()
49 char** error_details) { in increment_counter() argument
52 alts_counter_increment(rp_crypter->ctr, &is_overflow, error_details); in increment_counter()
60 maybe_copy_error_msg(error_msg, error_details); in increment_counter()
69 char* error_details = nullptr; in alts_record_protocol_crypter_num_overhead_bytes() local
73 rp_crypter->crypter, &num_overhead_bytes, &error_details); in alts_record_protocol_crypter_num_overhead_bytes()
92 char** error_details) { in alts_crypter_create_common() argument
[all …]
Dalts_seal_privacy_integrity_crypter.cc37 size_t* output_size, char** error_details) { in seal_check() argument
41 output_size, error_details); in seal_check()
48 maybe_copy_error_msg(error_msg, error_details); in seal_check()
55 maybe_copy_error_msg(error_msg, error_details); in seal_check()
63 size_t data_size, size_t* output_size, char** error_details) { in alts_seal_crypter_process_in_place() argument
65 output_size, error_details); in alts_seal_crypter_process_in_place()
76 output_size, error_details); in alts_seal_crypter_process_in_place()
81 return increment_counter(rp_crypter, error_details); in alts_seal_crypter_process_in_place()
91 char** error_details) { in alts_seal_crypter_create() argument
94 maybe_copy_error_msg(error_msg, error_details); in alts_seal_crypter_create()
[all …]
Dalts_unseal_privacy_integrity_crypter.cc38 char** error_details) { in unseal_check() argument
42 output_size, error_details); in unseal_check()
51 maybe_copy_error_msg(error_msg, error_details); in unseal_check()
59 size_t data_size, size_t* output_size, char** error_details) { in alts_unseal_crypter_process_in_place() argument
61 data_size, output_size, error_details); in alts_unseal_crypter_process_in_place()
72 output_size, error_details); in alts_unseal_crypter_process_in_place()
77 return increment_counter(rp_crypter, error_details); in alts_unseal_crypter_process_in_place()
89 char** error_details) { in alts_unseal_crypter_create() argument
92 maybe_copy_error_msg(error_msg, error_details); in alts_unseal_crypter_create()
96 alts_crypter_create_common(gc, is_client, overflow_size, error_details); in alts_unseal_crypter_create()
Dalts_frame_protector.cc61 char* error_details = nullptr; in seal() local
66 &output_size, &error_details); in seal()
69 gpr_log(GPR_ERROR, "%s", error_details); in seal()
70 gpr_free(error_details); in seal()
194 char* error_details = nullptr; in unseal() local
199 alts_get_output_bytes_read(impl->reader), &output_size, &error_details); in unseal()
201 gpr_log(GPR_ERROR, "%s", error_details); in unseal()
202 gpr_free(error_details); in unseal()
332 char** error_details) { in create_alts_crypters() argument
338 &aead_crypter_seal, error_details); in create_alts_crypters()
[all …]
/external/cronet/net/third_party/quiche/src/quiche/quic/core/
Dquic_stream_id_manager_test.cc143 std::string error_details; in TEST_P() local
144 EXPECT_TRUE(stream_id_manager_.OnStreamsBlockedFrame(frame, &error_details)); in TEST_P()
165 std::string error_details; in TEST_P() local
166 EXPECT_FALSE(stream_id_manager_.OnStreamsBlockedFrame(frame, &error_details)); in TEST_P()
168 error_details, in TEST_P()
197 std::string error_details; in TEST_P() local
199 stream_id, &error_details)); in TEST_P()
200 EXPECT_EQ(error_details, in TEST_P()
217 std::string error_details; in TEST_P() local
218 EXPECT_TRUE(stream_id_manager_.OnStreamsBlockedFrame(frame, &error_details)); in TEST_P()
[all …]
Dquic_config_test.cc141 std::string error_details; in TEST_P() local
150 config_.ProcessPeerHello(msg, CLIENT, &error_details); in TEST_P()
206 std::string error_details; in TEST_P() local
208 config_.ProcessPeerHello(msg, SERVER, &error_details); in TEST_P()
247 std::string error_details; in TEST_P() local
249 config_.ProcessPeerHello(msg, CLIENT, &error_details); in TEST_P()
266 std::string error_details; in TEST_P() local
268 config_.ProcessPeerHello(msg, SERVER, &error_details); in TEST_P()
280 std::string error_details; in TEST_P() local
282 config_.ProcessPeerHello(msg, CLIENT, &error_details); in TEST_P()
[all …]
Dquic_config.cc35 uint32_t* out, std::string* error_details) { in ReadUint32() argument
36 QUICHE_DCHECK(error_details != nullptr); in ReadUint32()
41 *error_details = "Missing " + QuicTagToString(tag); in ReadUint32()
50 *error_details = "Bad " + QuicTagToString(tag); in ReadUint32()
105 std::string* error_details) { in ProcessPeerHello() argument
106 QUICHE_DCHECK(error_details != nullptr); in ProcessPeerHello()
108 *error_details = in ProcessPeerHello()
110 QUIC_BUG(quic_bug_10575_1) << *error_details; in ProcessPeerHello()
119 *error_details = "Missing " + QuicTagToString(tag_); in ProcessPeerHello()
125 *error_details = "Bad " + QuicTagToString(tag_); in ProcessPeerHello()
[all …]
/external/cronet/net/quic/crypto/
Dproof_verifier_chromium.cc79 std::string* error_details,
92 std::string* error_details,
106 std::string* error_details,
115 std::string* error_details,
216 std::string* error_details, in VerifyProof() argument
219 DCHECK(error_details); in VerifyProof()
223 error_details->clear(); in VerifyProof()
226 *error_details = "Certificate is already set and VerifyProof has begun"; in VerifyProof()
227 DLOG(DFATAL) << *error_details; in VerifyProof()
234 if (!GetX509Certificate(certs, error_details, verify_details)) in VerifyProof()
[all …]

12345678910