@@ -510,50 +510,50 @@ declare module "crypto" {
510510 format : "jwk" ;
511511 }
512512 interface JsonWebKey {
513- crv ?: string | undefined ;
514- d ?: string | undefined ;
515- dp ?: string | undefined ;
516- dq ?: string | undefined ;
517- e ?: string | undefined ;
518- k ?: string | undefined ;
519- kty ?: string | undefined ;
520- n ?: string | undefined ;
521- p ?: string | undefined ;
522- q ?: string | undefined ;
523- qi ?: string | undefined ;
524- x ?: string | undefined ;
525- y ?: string | undefined ;
513+ crv ?: string ;
514+ d ?: string ;
515+ dp ?: string ;
516+ dq ?: string ;
517+ e ?: string ;
518+ k ?: string ;
519+ kty ?: string ;
520+ n ?: string ;
521+ p ?: string ;
522+ q ?: string ;
523+ qi ?: string ;
524+ x ?: string ;
525+ y ?: string ;
526526 [ key : string ] : unknown ;
527527 }
528528 interface AsymmetricKeyDetails {
529529 /**
530530 * Key size in bits (RSA, DSA).
531531 */
532- modulusLength ?: number | undefined ;
532+ modulusLength ?: number ;
533533 /**
534534 * Public exponent (RSA).
535535 */
536- publicExponent ?: bigint | undefined ;
536+ publicExponent ?: bigint ;
537537 /**
538538 * Name of the message digest (RSA-PSS).
539539 */
540- hashAlgorithm ?: string | undefined ;
540+ hashAlgorithm ?: string ;
541541 /**
542542 * Name of the message digest used by MGF1 (RSA-PSS).
543543 */
544- mgf1HashAlgorithm ?: string | undefined ;
544+ mgf1HashAlgorithm ?: string ;
545545 /**
546546 * Minimal salt length in bytes (RSA-PSS).
547547 */
548- saltLength ?: number | undefined ;
548+ saltLength ?: number ;
549549 /**
550550 * Size of q in bits (DSA).
551551 */
552- divisorLength ?: number | undefined ;
552+ divisorLength ?: number ;
553553 /**
554554 * Name of the curve (EC).
555555 */
556- namedCurve ?: string | undefined ;
556+ namedCurve ?: string ;
557557 }
558558 /**
559559 * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
@@ -598,7 +598,7 @@ declare module "crypto" {
598598 * keys.
599599 * @since v11.6.0
600600 */
601- asymmetricKeyType ?: KeyType | undefined ;
601+ asymmetricKeyType ?: KeyType ;
602602 /**
603603 * This property exists only on asymmetric keys. Depending on the type of the key,
604604 * this object contains information about the key. None of the information obtained
@@ -612,7 +612,7 @@ declare module "crypto" {
612612 * Other key details might be exposed via this API using additional attributes.
613613 * @since v15.7.0
614614 */
615- asymmetricKeyDetails ?: AsymmetricKeyDetails | undefined ;
615+ asymmetricKeyDetails ?: AsymmetricKeyDetails ;
616616 /**
617617 * For symmetric keys, the following encoding options can be used:
618618 *
@@ -651,7 +651,7 @@ declare module "crypto" {
651651 * property is `undefined` for asymmetric keys.
652652 * @since v11.6.0
653653 */
654- symmetricKeySize ?: number | undefined ;
654+ symmetricKeySize ?: number ;
655655 /**
656656 * Converts a `KeyObject` instance to a `CryptoKey`.
657657 * @since 22.10.0
@@ -2512,15 +2512,15 @@ declare module "crypto" {
25122512 /**
25132513 * Name of the message digest
25142514 */
2515- hashAlgorithm ?: string ;
2515+ hashAlgorithm ?: string | undefined ;
25162516 /**
25172517 * Name of the message digest used by MGF1
25182518 */
2519- mgf1HashAlgorithm ?: string ;
2519+ mgf1HashAlgorithm ?: string | undefined ;
25202520 /**
25212521 * Minimal salt length in bytes
25222522 */
2523- saltLength ?: string ;
2523+ saltLength ?: string | undefined ;
25242524 }
25252525 interface DSAKeyPairKeyObjectOptions {
25262526 /**
@@ -2563,15 +2563,15 @@ declare module "crypto" {
25632563 /**
25642564 * Name of the message digest
25652565 */
2566- hashAlgorithm ?: string ;
2566+ hashAlgorithm ?: string | undefined ;
25672567 /**
25682568 * Name of the message digest used by MGF1
25692569 */
2570- mgf1HashAlgorithm ?: string ;
2570+ mgf1HashAlgorithm ?: string | undefined ;
25712571 /**
25722572 * Minimal salt length in bytes
25732573 */
2574- saltLength ?: string ;
2574+ saltLength ?: string | undefined ;
25752575 publicKeyEncoding : {
25762576 type : "spki" ;
25772577 format : PubF ;
@@ -3835,23 +3835,23 @@ declare module "crypto" {
38353835 /**
38363836 * @default 'always'
38373837 */
3838- subject ?: "always" | "default" | "never" ;
3838+ subject ?: "always" | "default" | "never" | undefined ;
38393839 /**
38403840 * @default true
38413841 */
3842- wildcards ?: boolean ;
3842+ wildcards ?: boolean | undefined ;
38433843 /**
38443844 * @default true
38453845 */
3846- partialWildcards ?: boolean ;
3846+ partialWildcards ?: boolean | undefined ;
38473847 /**
38483848 * @default false
38493849 */
3850- multiLabelWildcards ?: boolean ;
3850+ multiLabelWildcards ?: boolean | undefined ;
38513851 /**
38523852 * @default false
38533853 */
3854- singleLabelSubdomains ?: boolean ;
3854+ singleLabelSubdomains ?: boolean | undefined ;
38553855 }
38563856 /**
38573857 * Encapsulates an X509 certificate and provides read-only access to
@@ -3953,7 +3953,7 @@ declare module "crypto" {
39533953 * available.
39543954 * @since v15.9.0
39553955 */
3956- readonly issuerCertificate ? : X509Certificate | undefined ;
3956+ readonly issuerCertificate : X509Certificate | undefined ;
39573957 /**
39583958 * The public key `KeyObject` for this certificate.
39593959 * @since v15.6.0
0 commit comments