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

Method Finalize

src/cripts/Crypto.cc:181–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181cripts::string_view
182Crypto::detail::Cipher::Finalize()
183{
184 int len = 0;
185
186 if (!_ctx) {
187 _initialize();
188 }
189
190 EVP_EncryptFinal_ex(_ctx, reinterpret_cast<unsigned char *>(_message.data()) + _length, &len);
191 _length += len;
192 _message.resize(_length);
193
194 return _message;
195}
196
197Crypto::AES256
198Crypto::AES256::Encrypt(cripts::string_view str, const unsigned char *key)

Callers 1

EncryptMethod · 0.80

Calls 2

dataMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected