@@ -2948,6 +2948,10 @@ Checks the primality of the `candidate`.
2948
2948
added: v0.1.94
2949
2949
deprecated: v10.0.0
2950
2950
changes:
2951
+ - version: REPLACEME
2952
+ pr-url: https://github.com/nodejs/node/pull/42427
2953
+ description: The `authTagLength` option is now optional when using the
2954
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
2951
2955
- version: v15.0.0
2952
2956
pr-url: https://github.com/nodejs/node/pull/35093
2953
2957
description: The password argument can be an ArrayBuffer and is limited to
@@ -2972,12 +2976,12 @@ Creates and returns a `Cipher` object that uses the given `algorithm` and
2972
2976
` password ` .
2973
2977
2974
2978
The ` options ` argument controls stream behavior and is optional except when a
2975
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
2976
- In that case, the
2979
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
2977
2980
` authTagLength ` option is required and specifies the length of the
2978
2981
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
2979
2982
option is not required but can be used to set the length of the authentication
2980
2983
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
2984
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
2981
2985
2982
2986
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
2983
2987
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -3008,6 +3012,10 @@ Adversaries][] for details.
3008
3012
<!-- YAML
3009
3013
added: v0.1.94
3010
3014
changes:
3015
+ - version: REPLACEME
3016
+ pr-url: https://github.com/nodejs/node/pull/42427
3017
+ description: The `authTagLength` option is now optional when using the
3018
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3011
3019
- version: v15.0.0
3012
3020
pr-url: https://github.com/nodejs/node/pull/35093
3013
3021
description: The password and iv arguments can be an ArrayBuffer and are
@@ -3044,12 +3052,12 @@ Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
3044
3052
initialization vector (` iv ` ).
3045
3053
3046
3054
The ` options ` argument controls stream behavior and is optional except when a
3047
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3048
- In that case, the
3055
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3049
3056
` authTagLength ` option is required and specifies the length of the
3050
3057
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3051
3058
option is not required but can be used to set the length of the authentication
3052
3059
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
3060
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3053
3061
3054
3062
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3055
3063
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -3077,6 +3085,10 @@ given IV will be.
3077
3085
added: v0.1.94
3078
3086
deprecated: v10.0.0
3079
3087
changes:
3088
+ - version: REPLACEME
3089
+ pr-url: https://github.com/nodejs/node/pull/42427
3090
+ description: The `authTagLength` option is now optional when using the
3091
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3080
3092
- version: v10.10.0
3081
3093
pr-url: https://github.com/nodejs/node/pull/21447
3082
3094
description: Ciphers in OCB mode are now supported.
@@ -3093,10 +3105,10 @@ Creates and returns a `Decipher` object that uses the given `algorithm` and
3093
3105
` password ` (key).
3094
3106
3095
3107
The ` options ` argument controls stream behavior and is optional except when a
3096
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3097
- In that case, the
3108
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3098
3109
` authTagLength ` option is required and specifies the length of the
3099
3110
authentication tag in bytes, see [ CCM mode] [ ] .
3111
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3100
3112
3101
3113
The implementation of ` crypto.createDecipher() ` derives keys using the OpenSSL
3102
3114
function [ ` EVP_BytesToKey ` ] [ ] with the digest algorithm set to MD5, one
@@ -3115,6 +3127,10 @@ to create the `Decipher` object.
3115
3127
<!-- YAML
3116
3128
added: v0.1.94
3117
3129
changes:
3130
+ - version: REPLACEME
3131
+ pr-url: https://github.com/nodejs/node/pull/42427
3132
+ description: The `authTagLength` option is now optional when using the
3133
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3118
3134
- version: v11.6.0
3119
3135
pr-url: https://github.com/nodejs/node/pull/24234
3120
3136
description: The `key` argument can now be a `KeyObject`.
@@ -3147,12 +3163,12 @@ Creates and returns a `Decipher` object that uses the given `algorithm`, `key`
3147
3163
and initialization vector (` iv ` ).
3148
3164
3149
3165
The ` options ` argument controls stream behavior and is optional except when a
3150
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3151
- In that case, the
3166
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3152
3167
` authTagLength ` option is required and specifies the length of the
3153
3168
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3154
3169
option is not required but can be used to restrict accepted authentication tags
3155
3170
to those with the specified length.
3171
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3156
3172
3157
3173
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3158
3174
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
0 commit comments