@@ -2926,6 +2926,10 @@ Checks the primality of the `candidate`.
2926
2926
added: v0.1.94
2927
2927
deprecated: v10.0.0
2928
2928
changes:
2929
+ - version: REPLACEME
2930
+ pr-url: https://github.com/nodejs/node/pull/42427
2931
+ description: The `authTagLength` option is now optional when using the
2932
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
2929
2933
- version: v15.0.0
2930
2934
pr-url: https://github.com/nodejs/node/pull/35093
2931
2935
description: The password argument can be an ArrayBuffer and is limited to
@@ -2950,12 +2954,12 @@ Creates and returns a `Cipher` object that uses the given `algorithm` and
2950
2954
` password ` .
2951
2955
2952
2956
The ` options ` argument controls stream behavior and is optional except when a
2953
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
2954
- In that case, the
2957
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
2955
2958
` authTagLength ` option is required and specifies the length of the
2956
2959
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
2957
2960
option is not required but can be used to set the length of the authentication
2958
2961
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
2962
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
2959
2963
2960
2964
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
2961
2965
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -2986,6 +2990,10 @@ Adversaries][] for details.
2986
2990
<!-- YAML
2987
2991
added: v0.1.94
2988
2992
changes:
2993
+ - version: REPLACEME
2994
+ pr-url: https://github.com/nodejs/node/pull/42427
2995
+ description: The `authTagLength` option is now optional when using the
2996
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
2989
2997
- version: v15.0.0
2990
2998
pr-url: https://github.com/nodejs/node/pull/35093
2991
2999
description: The password and iv arguments can be an ArrayBuffer and are
@@ -3022,12 +3030,12 @@ Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
3022
3030
initialization vector (` iv ` ).
3023
3031
3024
3032
The ` options ` argument controls stream behavior and is optional except when a
3025
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3026
- In that case, the
3033
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3027
3034
` authTagLength ` option is required and specifies the length of the
3028
3035
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3029
3036
option is not required but can be used to set the length of the authentication
3030
3037
tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
3038
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3031
3039
3032
3040
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3033
3041
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
@@ -3055,6 +3063,10 @@ given IV will be.
3055
3063
added: v0.1.94
3056
3064
deprecated: v10.0.0
3057
3065
changes:
3066
+ - version: REPLACEME
3067
+ pr-url: https://github.com/nodejs/node/pull/42427
3068
+ description: The `authTagLength` option is now optional when using the
3069
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3058
3070
- version: v10.10.0
3059
3071
pr-url: https://github.com/nodejs/node/pull/21447
3060
3072
description: Ciphers in OCB mode are now supported.
@@ -3071,10 +3083,10 @@ Creates and returns a `Decipher` object that uses the given `algorithm` and
3071
3083
` password ` (key).
3072
3084
3073
3085
The ` options ` argument controls stream behavior and is optional except when a
3074
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3075
- In that case, the
3086
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3076
3087
` authTagLength ` option is required and specifies the length of the
3077
3088
authentication tag in bytes, see [ CCM mode] [ ] .
3089
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3078
3090
3079
3091
The implementation of ` crypto.createDecipher() ` derives keys using the OpenSSL
3080
3092
function [ ` EVP_BytesToKey ` ] [ ] with the digest algorithm set to MD5, one
@@ -3093,6 +3105,10 @@ to create the `Decipher` object.
3093
3105
<!-- YAML
3094
3106
added: v0.1.94
3095
3107
changes:
3108
+ - version: REPLACEME
3109
+ pr-url: https://github.com/nodejs/node/pull/42427
3110
+ description: The `authTagLength` option is now optional when using the
3111
+ `chacha20-poly1305` cipher and defaults to 16 bytes.
3096
3112
- version: v11.6.0
3097
3113
pr-url: https://github.com/nodejs/node/pull/24234
3098
3114
description: The `key` argument can now be a `KeyObject`.
@@ -3125,12 +3141,12 @@ Creates and returns a `Decipher` object that uses the given `algorithm`, `key`
3125
3141
and initialization vector (` iv ` ).
3126
3142
3127
3143
The ` options ` argument controls stream behavior and is optional except when a
3128
- cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) or ` chacha20-poly1305 ` is used.
3129
- In that case, the
3144
+ cipher in CCM or OCB mode (e.g. ` 'aes-128-ccm' ` ) is used. In that case, the
3130
3145
` authTagLength ` option is required and specifies the length of the
3131
3146
authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
3132
3147
option is not required but can be used to restrict accepted authentication tags
3133
3148
to those with the specified length.
3149
+ For ` chacha20-poly1305 ` , the ` authTagLength ` option defaults to 16 bytes.
3134
3150
3135
3151
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
3136
3152
recent OpenSSL releases, ` openssl list -cipher-algorithms ` will
0 commit comments