@@ -1129,14 +1129,17 @@ passing keys as strings or `Buffer`s due to improved security features.
1129
1129
<!-- YAML
1130
1130
added: v11.6.0
1131
1131
changes:
1132
+ - version: REPLACEME
1133
+ pr-url: https://github.com/nodejs/node/pull/26774
1134
+ description: Added support for `'x25519'` and `'x448'`
1132
1135
- version: REPLACEME
1133
1136
pr-url: https://github.com/nodejs/node/pull/26319
1134
1137
description: Added support for `'ed25519'` and `'ed448'`
1135
1138
-->
1136
1139
* {string}
1137
1140
1138
1141
For asymmetric keys, this property represents the type of the embedded key
1139
- (` 'rsa' ` , ` 'dsa' ` , ` 'ec' ` , ` 'ed25519' ` , or ` 'ed448 ' ` ).
1142
+ (` 'rsa' ` , ` 'dsa' ` , ` 'ec' ` , ` 'ed25519' ` , ` 'ed448' ` , ` 'x25519' ` or ` 'x448 ' ` ).
1140
1143
This property is ` undefined ` for symmetric keys.
1141
1144
1142
1145
### keyObject.export([ options] )
@@ -1903,6 +1906,9 @@ algorithm names.
1903
1906
<!-- YAML
1904
1907
added: v10.12.0
1905
1908
changes:
1909
+ - version: REPLACEME
1910
+ pr-url: https://github.com/nodejs/node/pull/26774
1911
+ description: Add ability to generate X25519 and X448 key pairs.
1906
1912
- version: REPLACEME
1907
1913
pr-url: https://github.com/nodejs/node/pull/26554
1908
1914
description: Add ability to generate Ed25519 and Ed448 key pairs.
@@ -1911,7 +1917,8 @@ changes:
1911
1917
description: The `generateKeyPair` and `generateKeyPairSync` functions now
1912
1918
produce key objects if no encoding was specified.
1913
1919
-->
1914
- * ` type ` : {string} Must be ` 'rsa' ` , ` 'dsa' ` , ` 'ec' ` , ` 'ed25519' ` , or ` 'ed448' ` .
1920
+ * ` type ` : {string} Must be ` 'rsa' ` , ` 'dsa' ` , ` 'ec' ` , ` 'ed25519' ` , ` 'ed448' ` ,
1921
+ ` 'x25519' ` , or ` 'x448' ` .
1915
1922
* ` options ` : {Object}
1916
1923
- ` modulusLength ` : {number} Key size in bits (RSA, DSA).
1917
1924
- ` publicExponent ` : {number} Public exponent (RSA). ** Default:** ` 0x10001 ` .
0 commit comments