Home
last modified time | relevance | path

Searched refs:crypter (Results 1 – 23 of 23) sorted by relevance

/external/grpc-grpc/src/core/tsi/alts/crypt/
Dgsec.cc39 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 …]
Dgsec.h143 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 …]
Daes_gcm.cc47 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/grpc-grpc/src/core/tsi/alts/frame_protector/
Dalts_crypter.cc35 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 …]
Dalts_crypter.h125 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);
Dalts_record_protocol_crypter_common.cc73 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()
Dalts_unseal_privacy_integrity_crypter.cc69 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()
Dalts_seal_privacy_integrity_crypter.cc73 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()
Dalts_record_protocol_crypter_common.h40 gsec_aead_crypter* crypter; member
102 gsec_aead_crypter* crypter, bool is_client, size_t overflow_size,
/external/grpc-grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc79 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/test/java/io/grpc/alts/internal/
DAltsTsiFrameProtectorTest.java79 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-java/alts/src/main/java/io/grpc/alts/internal/
DAltsTsiFrameProtector.java45 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/
Dalts_grpc_record_protocol_test.cc119 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 …]
Dalts_iovec_record_protocol_test.cc102 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()
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc33 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 …]
Dalts_zero_copy_grpc_protector.cc119 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()
Dalts_grpc_privacy_integrity_record_protocol.cc124 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()
Dalts_grpc_record_protocol_common.cc89 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()
Dalts_grpc_integrity_only_record_protocol.cc199 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()
Dalts_grpc_privacy_integrity_record_protocol.h45 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client,
Dalts_grpc_integrity_only_record_protocol.h50 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client,
Dalts_grpc_record_protocol_common.h94 gsec_aead_crypter* crypter,
Dalts_iovec_record_protocol.h187 gsec_aead_crypter* crypter, size_t overflow_size, bool is_client,