@@ -2944,6 +2944,10 @@ Checks the primality of the `candidate`.
2944
2944
added: v0.1.94
2945
2945
deprecated: v10.0.0
2946
2946
changes:
2947
+ - version: REPLACEME
2948
+ pr-url: https://github.com/nodejs/node/pull/42427
2949
+ description: The `authTagLength` option is now optional when using the
2950
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
2947
2951
- version: v15.0.0
2948
2952
pr-url: https://github.com/nodejs/node/pull/35093
2949
2953
description: The password argument can be an ArrayBuffer and is limited to
@@ -2968,12 +2972,12 @@ Creates and returns a `Cipher` object that uses the given `algorithm` and
2968
2972
` password ` .
2969
2973
2970
2974
The ` options ` argument controls stream behavior and is optional except when a
2971
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
2972
- In that case, the
2975
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
2973
2976
` authTagLength ` option is required and specifies the length of the
2974
2977
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
2975
2978
option is not required but can be used to set the length of the authentication
2976
2979
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
2980
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
2977
2981
2978
2982
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
2979
2983
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -3004,6 +3008,10 @@ Adversaries][] for details.
3004
3008
<!-- YAML
3005
3009
added: v0.1.94
3006
3010
changes:
3011
+ - version: REPLACEME
3012
+ pr-url: https://github.com/nodejs/node/pull/42427
3013
+ description: The `authTagLength` option is now optional when using the
3014
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3007
3015
- version: v15.0.0
3008
3016
pr-url: https://github.com/nodejs/node/pull/35093
3009
3017
description: The password and iv arguments can be an ArrayBuffer and are
@@ -3040,12 +3048,12 @@ Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
3040
3048
initialization vector (` iv ` ).
3041
3049
3042
3050
The ` options ` argument controls stream behavior and is optional except when a
3043
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3044
- In that case, the
3051
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3045
3052
` authTagLength ` option is required and specifies the length of the
3046
3053
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3047
3054
option is not required but can be used to set the length of the authentication
3048
3055
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
3056
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3049
3057
3050
3058
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3051
3059
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -3073,6 +3081,10 @@ given IV will be.
3073
3081
added: v0.1.94
3074
3082
deprecated: v10.0.0
3075
3083
changes:
3084
+ - version: REPLACEME
3085
+ pr-url: https://github.com/nodejs/node/pull/42427
3086
+ description: The `authTagLength` option is now optional when using the
3087
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3076
3088
- version: v10.10.0
3077
3089
pr-url: https://github.com/nodejs/node/pull/21447
3078
3090
description: Ciphers in OCB mode are now supported.
@@ -3089,10 +3101,10 @@ Creates and returns a `Decipher` object that uses the given `algorithm` and
3089
3101
` password ` (key).
3090
3102
3091
3103
The ` options ` argument controls stream behavior and is optional except when a
3092
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3093
- In that case, the
3104
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3094
3105
` authTagLength ` option is required and specifies the length of the
3095
3106
authentication tag in bytes, see [ CCM mode] [ ] .
3107
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3096
3108
3097
3109
The implementation of ` crypto.createDecipher() ` derives keys using the OpenSSL
3098
3110
function [ ` EVP_BytesToKey ` ] [ ] with the digest algorithm set to MD5, one
@@ -3111,6 +3123,10 @@ to create the `Decipher` object.
3111
3123
<!-- YAML
3112
3124
added: v0.1.94
3113
3125
changes:
3126
+ - version: REPLACEME
3127
+ pr-url: https://github.com/nodejs/node/pull/42427
3128
+ description: The `authTagLength` option is now optional when using the
3129
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3114
3130
- version: v11.6.0
3115
3131
pr-url: https://github.com/nodejs/node/pull/24234
3116
3132
description: The `key` argument can now be a `KeyObject`.
@@ -3143,12 +3159,12 @@ Creates and returns a `Decipher` object that uses the given `algorithm`, `key`
3143
3159
and initialization vector (` iv ` ).
3144
3160
3145
3161
The ` options ` argument controls stream behavior and is optional except when a
3146
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3147
- In that case, the
3162
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3148
3163
` authTagLength ` option is required and specifies the length of the
3149
3164
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3150
3165
option is not required but can be used to restrict accepted authentication tags
3151
3166
to those with the specified length.
3167
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3152
3168
3153
3169
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3154
3170
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
0 commit comments