diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-08-26 19:17:09 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-09-02 13:56:25 +0200 |
commit | b4026099c3f36aadb5008856e3571f463d52d52a (patch) | |
tree | 1a4561c5636fe4e521179f8056d2a92d34a5f81c /src/node_crypto.h | |
parent | 594dd4242b99824d44b2b0f17421fa86c10f1d12 (diff) | |
download | android-node-v8-b4026099c3f36aadb5008856e3571f463d52d52a.tar.gz android-node-v8-b4026099c3f36aadb5008856e3571f463d52d52a.tar.bz2 android-node-v8-b4026099c3f36aadb5008856e3571f463d52d52a.zip |
crypto: improve setAuthTag
This is an attempt to make the behavior of setAuthTag match the
documentation: In GCM mode, it can be called at any time before
invoking final, even after the last call to update.
Fixes: https://github.com/nodejs/node/issues/22421
PR-URL: https://github.com/nodejs/node/pull/22538
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 692978412f..86aa3ba4ba 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -385,6 +385,7 @@ class CipherBase : public BaseObject { bool IsAuthenticatedMode() const; bool SetAAD(const char* data, unsigned int len, int plaintext_len); + bool MaybePassAuthTagToOpenSSL(); static void New(const v8::FunctionCallbackInfo<v8::Value>& args); static void Init(const v8::FunctionCallbackInfo<v8::Value>& args); |