From 4809db93178b7fbe95e5f2e0ff9f7d5f080d2ee4 Mon Sep 17 00:00:00 2001 From: Tobias Nießen Date: Mon, 23 Apr 2018 16:14:22 +0200 Subject: crypto: use kNoAuthTagLength in InitAuthenticated PR-URL: https://github.com/nodejs/node/pull/20225 Refs: https://github.com/nodejs/node/pull/20039 Reviewed-By: James M Snell Reviewed-By: Daniel Bevenius Reviewed-By: Ben Noordhuis --- src/node_crypto.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/node_crypto.h') diff --git a/src/node_crypto.h b/src/node_crypto.h index 3c166f5dcc..a706c28057 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -364,14 +364,15 @@ class CipherBase : public BaseObject { void Init(const char* cipher_type, const char* key_buf, int key_buf_len, - int auth_tag_len); + unsigned int auth_tag_len); void InitIv(const char* cipher_type, const char* key, int key_len, const char* iv, int iv_len, - int auth_tag_len); - bool InitAuthenticated(const char *cipher_type, int iv_len, int auth_tag_len); + unsigned int auth_tag_len); + bool InitAuthenticated(const char *cipher_type, int iv_len, + unsigned int auth_tag_len); bool CheckCCMMessageLength(int message_len); UpdateResult Update(const char* data, int len, unsigned char** out, int* out_len); -- cgit v1.2.3