@@ -2930,6 +2930,10 @@ Checks the primality of the `candidate`.
2930
2930
added: v0.1.94
2931
2931
deprecated: v10.0.0
2932
2932
changes:
2933
+ - version: REPLACEME
2934
+ pr-url: https://github.com/nodejs/node/pull/42427
2935
+ description: The `authTagLength` option is now optional when using the
2936
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
2933
2937
- version: v15.0.0
2934
2938
pr-url: https://github.com/nodejs/node/pull/35093
2935
2939
description: The password argument can be an ArrayBuffer and is limited to
@@ -2954,12 +2958,12 @@ Creates and returns a `Cipher` object that uses the given `algorithm` and
2954
2958
` password ` .
2955
2959
2956
2960
The ` options ` argument controls stream behavior and is optional except when a
2957
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
2958
- In that case, the
2961
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
2959
2962
` authTagLength ` option is required and specifies the length of the
2960
2963
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
2961
2964
option is not required but can be used to set the length of the authentication
2962
2965
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
2966
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
2963
2967
2964
2968
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
2965
2969
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -2990,6 +2994,10 @@ Adversaries][] for details.
2990
2994
<!-- YAML
2991
2995
added: v0.1.94
2992
2996
changes:
2997
+ - version: REPLACEME
2998
+ pr-url: https://github.com/nodejs/node/pull/42427
2999
+ description: The `authTagLength` option is now optional when using the
3000
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
2993
3001
- version: v15.0.0
2994
3002
pr-url: https://github.com/nodejs/node/pull/35093
2995
3003
description: The password and iv arguments can be an ArrayBuffer and are
@@ -3026,12 +3034,12 @@ Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
3026
3034
initialization vector (` iv ` ).
3027
3035
3028
3036
The ` options ` argument controls stream behavior and is optional except when a
3029
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3030
- In that case, the
3037
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3031
3038
` authTagLength ` option is required and specifies the length of the
3032
3039
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3033
3040
option is not required but can be used to set the length of the authentication
3034
3041
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
3042
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3035
3043
3036
3044
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3037
3045
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -3059,6 +3067,10 @@ given IV will be.
3059
3067
added: v0.1.94
3060
3068
deprecated: v10.0.0
3061
3069
changes:
3070
+ - version: REPLACEME
3071
+ pr-url: https://github.com/nodejs/node/pull/42427
3072
+ description: The `authTagLength` option is now optional when using the
3073
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3062
3074
- version: v10.10.0
3063
3075
pr-url: https://github.com/nodejs/node/pull/21447
3064
3076
description: Ciphers in OCB mode are now supported.
@@ -3075,10 +3087,10 @@ Creates and returns a `Decipher` object that uses the given `algorithm` and
3075
3087
` password ` (key).
3076
3088
3077
3089
The ` options ` argument controls stream behavior and is optional except when a
3078
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3079
- In that case, the
3090
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3080
3091
` authTagLength ` option is required and specifies the length of the
3081
3092
authentication tag in bytes, see [ CCM mode] [ ] .
3093
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3082
3094
3083
3095
The implementation of ` crypto.createDecipher() ` derives keys using the OpenSSL
3084
3096
function [ ` EVP_BytesToKey ` ] [ ] with the digest algorithm set to MD5, one
@@ -3097,6 +3109,10 @@ to create the `Decipher` object.
3097
3109
<!-- YAML
3098
3110
added: v0.1.94
3099
3111
changes:
3112
+ - version: REPLACEME
3113
+ pr-url: https://github.com/nodejs/node/pull/42427
3114
+ description: The `authTagLength` option is now optional when using the
3115
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3100
3116
- version: v11.6.0
3101
3117
pr-url: https://github.com/nodejs/node/pull/24234
3102
3118
description: The `key` argument can now be a `KeyObject`.
@@ -3129,12 +3145,12 @@ Creates and returns a `Decipher` object that uses the given `algorithm`, `key`
3129
3145
and initialization vector (` iv ` ).
3130
3146
3131
3147
The ` options ` argument controls stream behavior and is optional except when a
3132
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3133
- In that case, the
3148
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3134
3149
` authTagLength ` option is required and specifies the length of the
3135
3150
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3136
3151
option is not required but can be used to restrict accepted authentication tags
3137
3152
to those with the specified length.
3153
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3138
3154
3139
3155
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3140
3156
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
0 commit comments