/third_party/grpc/src/core/tsi/alts/crypt/ |
D | gsec.cc | 39 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_encrypt() argument 44 if (crypter != nullptr && crypter->vtable != nullptr && in gsec_aead_crypter_encrypt() 45 crypter->vtable->encrypt_iovec != nullptr) { in gsec_aead_crypter_encrypt() 51 return crypter->vtable->encrypt_iovec( in gsec_aead_crypter_encrypt() 52 crypter, nonce, nonce_length, &aad_vec, 1, &plaintext_vec, 1, in gsec_aead_crypter_encrypt() 61 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_encrypt_iovec() argument 66 if (crypter != nullptr && crypter->vtable != nullptr && in gsec_aead_crypter_encrypt_iovec() 67 crypter->vtable->encrypt_iovec != nullptr) { in gsec_aead_crypter_encrypt_iovec() 68 return crypter->vtable->encrypt_iovec( in gsec_aead_crypter_encrypt_iovec() 69 crypter, nonce, nonce_length, aad_vec, aad_vec_length, plaintext_vec, in gsec_aead_crypter_encrypt_iovec() [all …]
|
D | gsec.h | 145 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 151 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 157 const gsec_aead_crypter* crypter, size_t plaintext_length, 160 const gsec_aead_crypter* crypter, size_t ciphertext_and_tag_length, 162 grpc_status_code (*nonce_length)(const gsec_aead_crypter* crypter, 165 grpc_status_code (*key_length)(const gsec_aead_crypter* crypter, 168 grpc_status_code (*tag_length)(const gsec_aead_crypter* crypter, 171 void (*destruct)(gsec_aead_crypter* crypter); 213 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 246 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, [all …]
|
D | aes_gcm.cc | 45 gsec_aead_crypter crypter; member 89 const gsec_aead_crypter* crypter, size_t plaintext_length, in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() argument 98 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() 105 const gsec_aead_crypter* crypter, size_t ciphertext_and_tag_length, in gsec_aes_gcm_aead_crypter_max_plaintext_length() argument 113 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_max_plaintext_length() 126 const gsec_aead_crypter* crypter, size_t* nonce_length, in gsec_aes_gcm_aead_crypter_nonce_length() argument 134 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_nonce_length() 140 const gsec_aead_crypter* crypter, size_t* key_length, in gsec_aes_gcm_aead_crypter_key_length() argument 148 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_key_length() 154 const gsec_aead_crypter* crypter, size_t* tag_length, in gsec_aes_gcm_aead_crypter_tag_length() argument [all …]
|
/third_party/grpc/src/core/tsi/alts/frame_protector/ |
D | alts_crypter.cc | 35 alts_crypter* crypter, unsigned char* data, size_t data_allocated_size, in alts_crypter_process_in_place() argument 37 if (crypter != nullptr && crypter->vtable != nullptr && in alts_crypter_process_in_place() 38 crypter->vtable->process_in_place != nullptr) { in alts_crypter_process_in_place() 39 return crypter->vtable->process_in_place(crypter, data, data_allocated_size, in alts_crypter_process_in_place() 50 size_t alts_crypter_num_overhead_bytes(const alts_crypter* crypter) { in alts_crypter_num_overhead_bytes() argument 51 if (crypter != nullptr && crypter->vtable != nullptr && in alts_crypter_num_overhead_bytes() 52 crypter->vtable->num_overhead_bytes != nullptr) { in alts_crypter_num_overhead_bytes() 53 return crypter->vtable->num_overhead_bytes(crypter); in alts_crypter_num_overhead_bytes() 59 void alts_crypter_destroy(alts_crypter* crypter) { in alts_crypter_destroy() argument 60 if (crypter != nullptr) { in alts_crypter_destroy() [all …]
|
D | alts_crypter.h | 125 size_t (*num_overhead_bytes)(const alts_crypter* crypter); 126 grpc_status_code (*process_in_place)(alts_crypter* crypter, 131 void (*destruct)(alts_crypter* crypter); 152 size_t alts_crypter_num_overhead_bytes(const alts_crypter* crypter); 192 alts_crypter* crypter, unsigned char* data, size_t data_allocated_size, 217 alts_crypter** crypter, 243 alts_crypter** crypter, 253 void alts_crypter_destroy(alts_crypter* crypter);
|
D | alts_record_protocol_crypter_common.cc | 73 rp_crypter->crypter, &num_overhead_bytes, &error_details); in alts_record_protocol_crypter_num_overhead_bytes() 86 gsec_aead_crypter_destroy(rp_crypter->crypter); in alts_record_protocol_crypter_destruct() 91 gsec_aead_crypter* crypter, bool is_client, size_t overflow_size, in alts_crypter_create_common() argument 93 if (crypter != nullptr) { in alts_crypter_create_common() 98 gsec_aead_crypter_nonce_length(crypter, &counter_size, error_details); in alts_crypter_create_common() 108 rp_crypter->crypter = crypter; in alts_crypter_create_common()
|
D | alts_unseal_privacy_integrity_crypter.cc | 69 rp_crypter->crypter, alts_counter_get_counter(rp_crypter->ctr), in alts_unseal_crypter_process_in_place() 88 alts_crypter** crypter, in alts_unseal_crypter_create() argument 90 if (crypter == nullptr) { in alts_unseal_crypter_create() 101 *crypter = &rp_crypter->base; in alts_unseal_crypter_create()
|
D | alts_seal_privacy_integrity_crypter.cc | 73 rp_crypter->crypter, alts_counter_get_counter(rp_crypter->ctr), in alts_seal_crypter_process_in_place() 90 alts_crypter** crypter, in alts_seal_crypter_create() argument 92 if (crypter == nullptr) { in alts_seal_crypter_create() 103 *crypter = &rp_crypter->base; in alts_seal_crypter_create()
|
D | alts_record_protocol_crypter_common.h | 40 gsec_aead_crypter* crypter; member 102 gsec_aead_crypter* crypter, bool is_client, size_t overflow_size,
|
/third_party/grpc/test/core/tsi/alts/crypt/ |
D | aes_gcm_test.cc | 80 static void gsec_test_random_encrypt_decrypt(gsec_aead_crypter* crypter, in gsec_test_random_encrypt_decrypt() argument 83 GPR_ASSERT(crypter != nullptr); in gsec_test_random_encrypt_decrypt() 86 gsec_aead_crypter_nonce_length(crypter, &nonce_length, nullptr); in gsec_test_random_encrypt_decrypt() 87 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_random_encrypt_decrypt() 96 crypter, message_length, &ciphertext_and_tag_length, nullptr); in gsec_test_random_encrypt_decrypt() 103 gsec_aead_crypter_encrypt(crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt() 113 gsec_aead_crypter_max_plaintext_length(crypter, ciphertext_bytes_written, in gsec_test_random_encrypt_decrypt() 117 crypter, nonce, nonce_length, aad, aad_length, ciphertext_and_tag, in gsec_test_random_encrypt_decrypt() 137 crypter, corrupt_nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt() 157 crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt() [all …]
|
/third_party/grpc/test/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_grpc_record_protocol_test.cc | 120 gsec_aead_crypter* crypter = nullptr; in test_fixture_integrity_only_create() local 125 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 127 crypter, 8, /*is_client=*/true, /*is_protect=*/true, in test_fixture_integrity_only_create() 132 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 134 crypter, 8, /*is_client=*/true, /*is_protect=*/false, in test_fixture_integrity_only_create() 139 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 141 crypter, 8, /*is_client=*/false, /*is_protect=*/true, in test_fixture_integrity_only_create() 146 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 148 crypter, 8, /*is_client=*/false, /*is_protect=*/false, in test_fixture_integrity_only_create() 178 gsec_aead_crypter* crypter = nullptr; in test_fixture_privacy_integrity_create() local [all …]
|
D | alts_iovec_record_protocol_test.cc | 102 gsec_aead_crypter* crypter = nullptr; in alts_iovec_record_protocol_test_fixture_create() local 106 &crypter, nullptr) == GRPC_STATUS_OK); in alts_iovec_record_protocol_test_fixture_create() 108 crypter, overflow_size, /*is_client=*/true, integrity_only, in alts_iovec_record_protocol_test_fixture_create() 114 &crypter, nullptr) == GRPC_STATUS_OK); in alts_iovec_record_protocol_test_fixture_create() 116 crypter, overflow_size, /*is_client=*/true, integrity_only, in alts_iovec_record_protocol_test_fixture_create() 122 &crypter, nullptr) == GRPC_STATUS_OK); in alts_iovec_record_protocol_test_fixture_create() 124 crypter, overflow_size, /*is_client=*/false, integrity_only, in alts_iovec_record_protocol_test_fixture_create() 130 &crypter, nullptr) == GRPC_STATUS_OK); in alts_iovec_record_protocol_test_fixture_create() 132 crypter, overflow_size, /*is_client=*/false, integrity_only, in alts_iovec_record_protocol_test_fixture_create()
|
/third_party/grpc/src/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_iovec_record_protocol.cc | 33 gsec_aead_crypter* crypter; member 227 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_integrity_only_protect() 280 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_integrity_only_unprotect() 340 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_privacy_integrity_protect() 411 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_privacy_integrity_unprotect() 430 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client, in alts_iovec_record_protocol_create() argument 433 if (crypter == nullptr || rp == nullptr) { in alts_iovec_record_protocol_create() 444 gsec_aead_crypter_nonce_length(crypter, &counter_length, error_details); in alts_iovec_record_protocol_create() 457 gsec_aead_crypter_tag_length(crypter, &impl->tag_length, error_details); in alts_iovec_record_protocol_create() 461 impl->crypter = crypter; in alts_iovec_record_protocol_create() [all …]
|
D | alts_zero_copy_grpc_protector.cc | 119 gsec_aead_crypter* crypter = nullptr; in create_alts_grpc_record_protocol() local 123 &crypter, &error_details); in create_alts_grpc_record_protocol() 135 crypter, overflow_limit, is_client, is_protect, in create_alts_grpc_record_protocol() 138 crypter, overflow_limit, is_client, is_protect, in create_alts_grpc_record_protocol() 141 gsec_aead_crypter_destroy(crypter); in create_alts_grpc_record_protocol()
|
D | alts_grpc_privacy_integrity_record_protocol.cc | 124 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client, in alts_grpc_privacy_integrity_record_protocol_create() argument 126 if (crypter == nullptr || rp == nullptr) { in alts_grpc_privacy_integrity_record_protocol_create() 135 alts_grpc_record_protocol_init(impl, crypter, overflow_size, is_client, in alts_grpc_privacy_integrity_record_protocol_create()
|
D | alts_grpc_record_protocol_common.cc | 89 gsec_aead_crypter* crypter, in alts_grpc_record_protocol_init() argument 93 if (rp == nullptr || crypter == nullptr) { in alts_grpc_record_protocol_init() 101 crypter, overflow_size, is_client, is_integrity_only, is_protect, in alts_grpc_record_protocol_init()
|
D | alts_grpc_integrity_only_record_protocol.cc | 199 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client, in alts_grpc_integrity_only_record_protocol_create() argument 201 if (crypter == nullptr || rp == nullptr) { in alts_grpc_integrity_only_record_protocol_create() 211 &impl->base, crypter, overflow_size, is_client, in alts_grpc_integrity_only_record_protocol_create()
|
D | alts_grpc_privacy_integrity_record_protocol.h | 45 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client,
|
D | alts_grpc_integrity_only_record_protocol.h | 50 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client,
|
D | alts_grpc_record_protocol_common.h | 93 gsec_aead_crypter* crypter,
|
D | alts_iovec_record_protocol.h | 187 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client,
|