MCPcopy Create free account
hub / github.com/apache/trafficserver / Encrypt

Method Encrypt

src/cripts/Crypto.cc:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void
167Crypto::detail::Cipher::Encrypt(cripts::string_view str)
168{
169 int len = 0;
170
171 if (!_ctx) {
172 _initialize();
173 }
174
175 _message.resize(_length + str.size() + AES_BLOCK_SIZE + 1);
176 EVP_EncryptUpdate(_ctx, reinterpret_cast<unsigned char *>(_message.data()) + _length, &len, (unsigned char *)str.data(),
177 str.size());
178 _length += len;
179}
180
181cripts::string_view
182Crypto::detail::Cipher::Finalize()

Callers

nothing calls this directly

Calls 4

FinalizeMethod · 0.80
resizeMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected