Files
node/src
Tobias Nießen faf449ca04 crypto: throw in setAuthTag on invalid length
The current implementation performs limited checks only and silently
ignores superfluous bytes of the authentication tag. This change makes
setAuthTag throw when
- the user-specified authTagLength does not match the actual tag length,
  especially when the authentication tag is longer than 16 bytes, and
  when
- the mode is GCM, no authTagLength option has been specified and the
  tag length is not a valid GCM tag length.

This change makes the conditional assignment in SetAuthTag unnecessary,
which is replaced with a CHECK.

Refs: https://github.com/nodejs/node/pull/17825

PR-URL: https://github.com/nodejs/node/pull/20040
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Yihong Wang <yh.wang@ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-06-01 09:52:27 +02:00
..
…
2017-11-27 07:21:08 +01:00
2018-05-26 12:29:12 +02:00
2018-05-31 09:54:48 +02:00
2018-05-31 09:54:48 +02:00
2018-05-10 14:15:16 +02:00
2018-05-20 14:15:56 -07:00
2017-12-01 07:45:00 +01:00
2018-04-03 13:57:41 -07:00
…
2018-05-24 08:49:23 -07:00
2018-04-25 12:22:47 -03:00
2018-05-10 14:15:16 +02:00
2018-05-30 05:19:13 +02:00
2018-05-10 14:15:16 +02:00
2018-05-30 05:19:13 +02:00
2018-05-31 09:54:48 +02:00
2018-01-24 15:02:43 -08:00