/external/grpc-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() 50 return crypter->vtable->encrypt_iovec( in gsec_aead_crypter_encrypt() 51 crypter, nonce, nonce_length, &aad_vec, 1, &plaintext_vec, 1, in gsec_aead_crypter_encrypt() 60 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, in gsec_aead_crypter_encrypt_iovec() argument 65 if (crypter != nullptr && crypter->vtable != nullptr && in gsec_aead_crypter_encrypt_iovec() 66 crypter->vtable->encrypt_iovec != nullptr) { in gsec_aead_crypter_encrypt_iovec() 67 return crypter->vtable->encrypt_iovec( in gsec_aead_crypter_encrypt_iovec() 68 crypter, nonce, nonce_length, aad_vec, aad_vec_length, plaintext_vec, in gsec_aead_crypter_encrypt_iovec() [all …]
|
D | gsec.h | 143 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 149 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 155 const gsec_aead_crypter* crypter, size_t plaintext_length, 158 const gsec_aead_crypter* crypter, size_t ciphertext_and_tag_length, 160 grpc_status_code (*nonce_length)(const gsec_aead_crypter* crypter, 163 grpc_status_code (*key_length)(const gsec_aead_crypter* crypter, 166 grpc_status_code (*tag_length)(const gsec_aead_crypter* crypter, 169 void (*destruct)(gsec_aead_crypter* crypter); 211 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 244 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, [all …]
|
D | aes_gcm.cc | 47 gsec_aead_crypter crypter; member 91 const gsec_aead_crypter* crypter, size_t plaintext_length, in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() argument 100 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length() 107 const gsec_aead_crypter* crypter, size_t ciphertext_and_tag_length, in gsec_aes_gcm_aead_crypter_max_plaintext_length() argument 115 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_max_plaintext_length() 128 const gsec_aead_crypter* crypter, size_t* nonce_length, in gsec_aes_gcm_aead_crypter_nonce_length() argument 136 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_nonce_length() 142 const gsec_aead_crypter* crypter, size_t* key_length, in gsec_aes_gcm_aead_crypter_key_length() argument 150 const_cast<gsec_aead_crypter*>(crypter)); in gsec_aes_gcm_aead_crypter_key_length() 156 const gsec_aead_crypter* crypter, size_t* tag_length, in gsec_aes_gcm_aead_crypter_tag_length() argument [all …]
|
/external/rust/crates/grpcio-sys/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 | 143 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 149 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 155 const gsec_aead_crypter* crypter, size_t plaintext_length, 158 const gsec_aead_crypter* crypter, size_t ciphertext_and_tag_length, 160 grpc_status_code (*nonce_length)(const gsec_aead_crypter* crypter, 163 grpc_status_code (*key_length)(const gsec_aead_crypter* crypter, 166 grpc_status_code (*tag_length)(const gsec_aead_crypter* crypter, 169 void (*destruct)(gsec_aead_crypter* crypter); 211 gsec_aead_crypter* crypter, const uint8_t* nonce, size_t nonce_length, 244 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 …]
|
/external/grpc-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,
|
/external/rust/crates/grpcio-sys/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,
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsTsiFrameProtectorTest.java | 79 FakeChannelCrypter crypter = new FakeChannelCrypter(); in parserHeader_frameLengthNegativeFails() local 81 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameLengthNegativeFails() 99 FakeChannelCrypter crypter = new FakeChannelCrypter(); in parserHeader_frameTooSmall() local 101 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameTooSmall() 121 FakeChannelCrypter crypter = new FakeChannelCrypter(); in parserHeader_frameTooLarge() local 123 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameTooLarge() 146 FakeChannelCrypter crypter = new FakeChannelCrypter(); in parserHeader_frameTypeInvalid() local 148 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameTypeInvalid() 168 FakeChannelCrypter crypter = new FakeChannelCrypter(); in parserHeader_frameZeroOk() local 170 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameZeroOk() [all …]
|
/external/grpc-grpc/test/core/tsi/alts/crypt/ |
D | aes_gcm_test.cc | 79 static void gsec_test_random_encrypt_decrypt(gsec_aead_crypter* crypter, in gsec_test_random_encrypt_decrypt() argument 82 GPR_ASSERT(crypter != nullptr); in gsec_test_random_encrypt_decrypt() 85 gsec_aead_crypter_nonce_length(crypter, &nonce_length, nullptr); in gsec_test_random_encrypt_decrypt() 86 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_random_encrypt_decrypt() 95 crypter, message_length, &ciphertext_and_tag_length, nullptr); in gsec_test_random_encrypt_decrypt() 102 gsec_aead_crypter_encrypt(crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt() 112 gsec_aead_crypter_max_plaintext_length(crypter, ciphertext_bytes_written, in gsec_test_random_encrypt_decrypt() 116 crypter, nonce, nonce_length, aad, aad_length, ciphertext_and_tag, in gsec_test_random_encrypt_decrypt() 136 crypter, corrupt_nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt() 156 crypter, nonce, nonce_length, aad, aad_length, in gsec_test_random_encrypt_decrypt() [all …]
|
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/ |
D | AltsTsiFrameProtector.java | 45 int maxProtectedFrameBytes, ChannelCrypterNetty crypter, ByteBufAllocator alloc) { in AltsTsiFrameProtector() argument 46 checkArgument(maxProtectedFrameBytes > HEADER_BYTES + crypter.getSuffixLength()); in AltsTsiFrameProtector() 48 protector = new Protector(maxProtectedFrameBytes, crypter); in AltsTsiFrameProtector() 49 unprotector = new Unprotector(crypter, alloc); in AltsTsiFrameProtector() 101 private ChannelCrypterNetty crypter; field in AltsTsiFrameProtector.Protector 103 Protector(int maxProtectedFrameBytes, ChannelCrypterNetty crypter) { in Protector() argument 104 this.suffixBytes = crypter.getSuffixLength(); in Protector() 106 this.crypter = crypter; in Protector() 111 crypter = null; in destroy() 117 checkState(crypter != null, "Cannot protectFlush after destroy."); in protectFlush() [all …]
|
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_grpc_record_protocol_test.cc | 119 gsec_aead_crypter* crypter = nullptr; in test_fixture_integrity_only_create() local 124 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 126 crypter, 8, /*is_client=*/true, /*is_protect=*/true, in test_fixture_integrity_only_create() 131 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 133 crypter, 8, /*is_client=*/true, /*is_protect=*/false, in test_fixture_integrity_only_create() 138 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 140 crypter, 8, /*is_client=*/false, /*is_protect=*/true, in test_fixture_integrity_only_create() 145 &crypter, nullptr) == GRPC_STATUS_OK); in test_fixture_integrity_only_create() 147 crypter, 8, /*is_client=*/false, /*is_protect=*/false, in test_fixture_integrity_only_create() 177 gsec_aead_crypter* crypter = nullptr; in test_fixture_privacy_integrity_create() local [all …]
|
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_iovec_record_protocol.cc | 33 gsec_aead_crypter* crypter; member 225 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_integrity_only_protect() 278 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_integrity_only_unprotect() 338 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_privacy_integrity_protect() 409 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_privacy_integrity_unprotect() 428 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client, in alts_iovec_record_protocol_create() argument 431 if (crypter == nullptr || rp == nullptr) { in alts_iovec_record_protocol_create() 442 gsec_aead_crypter_nonce_length(crypter, &counter_length, error_details); in alts_iovec_record_protocol_create() 455 gsec_aead_crypter_tag_length(crypter, &impl->tag_length, error_details); in alts_iovec_record_protocol_create() 459 impl->crypter = crypter; in alts_iovec_record_protocol_create() [all …]
|
/external/rust/crates/grpcio-sys/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()
|