node-opcua-crypto 4.16.0 → 4.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,7 +71,7 @@ import {
71
71
  verifyChunkSignature,
72
72
  verifyChunkSignatureWithDerivedKeys,
73
73
  verifyMessageChunkSignature
74
- } from "../chunk-F5EAPW2U.mjs";
74
+ } from "../chunk-EURHGMEG.mjs";
75
75
  export {
76
76
  CertificatePurpose,
77
77
  PaddingAlgorithm,
@@ -1,5 +1,13 @@
1
- import { C as Certificate, a as PublicKey, P as PrivateKey, d as CertificatePEM, f as PublicKeyPEM, e as PrivateKeyPEM, g as CertificateRevocationList } from '../common-CFr95Map.mjs';
2
- import 'crypto';
1
+ import { C as Certificate, K as KeyObject, P as PrivateKey, d as CertificatePEM, f as PublicKeyPEM, e as PrivateKeyPEM, a as PublicKey, g as CertificateRevocationList } from '../common-DxHkx4Pv.mjs';
2
+ import 'node:crypto';
3
+
4
+ declare function generatePrivateKeyFile(privateKeyFilename: string, modulusLength: 1024 | 2048 | 3072 | 4096): Promise<void>;
5
+ /**
6
+ * alternate function to generate PrivateKeyFile, using jsrsasign.
7
+ *
8
+ * This function is slower than generatePrivateKeyFile
9
+ */
10
+ declare function generatePrivateKeyFileAlternate(privateKeyFilename: string, modulusLength: 2048 | 3072 | 4096): Promise<void>;
3
11
 
4
12
  /**
5
13
  * read a DER or PEM certificate from file
@@ -8,7 +16,7 @@ declare function readCertificate(filename: string): Certificate;
8
16
  /**
9
17
  * read a DER or PEM certificate from file
10
18
  */
11
- declare function readPublicKey(filename: string): PublicKey;
19
+ declare function readPublicKey(filename: string): KeyObject;
12
20
  /**
13
21
  * read a DER or PEM certificate from file
14
22
  */
@@ -34,12 +42,4 @@ declare function readCertificateRevocationList(filename: string): Promise<Certif
34
42
  type CertificateSigningRequest = Buffer;
35
43
  declare function readCertificateSigningRequest(filename: string): Promise<CertificateSigningRequest>;
36
44
 
37
- declare function generatePrivateKeyFile(privateKeyFilename: string, modulusLength: 1024 | 2048 | 3072 | 4096): Promise<void>;
38
- /**
39
- * alternate function to generate PrivateKeyFile, using jsrsasign.
40
- *
41
- * This function is slower than generatePrivateKeyFile
42
- */
43
- declare function generatePrivateKeyFileAlternate(privateKeyFilename: string, modulusLength: 2048 | 3072 | 4096): Promise<void>;
44
-
45
45
  export { type CertificateSigningRequest, generatePrivateKeyFile, generatePrivateKeyFileAlternate, getCertificateStore, readCertificate, readCertificatePEM, readCertificateRevocationList, readCertificateSigningRequest, readPrivateKey, readPrivateKeyPEM, readPrivateRsaKey, readPublicKey, readPublicKeyPEM, readPublicRsaKey, setCertificateStore };
@@ -1,5 +1,13 @@
1
- import { C as Certificate, a as PublicKey, P as PrivateKey, d as CertificatePEM, f as PublicKeyPEM, e as PrivateKeyPEM, g as CertificateRevocationList } from '../common-CFr95Map.js';
2
- import 'crypto';
1
+ import { C as Certificate, K as KeyObject, P as PrivateKey, d as CertificatePEM, f as PublicKeyPEM, e as PrivateKeyPEM, a as PublicKey, g as CertificateRevocationList } from '../common-DxHkx4Pv.js';
2
+ import 'node:crypto';
3
+
4
+ declare function generatePrivateKeyFile(privateKeyFilename: string, modulusLength: 1024 | 2048 | 3072 | 4096): Promise<void>;
5
+ /**
6
+ * alternate function to generate PrivateKeyFile, using jsrsasign.
7
+ *
8
+ * This function is slower than generatePrivateKeyFile
9
+ */
10
+ declare function generatePrivateKeyFileAlternate(privateKeyFilename: string, modulusLength: 2048 | 3072 | 4096): Promise<void>;
3
11
 
4
12
  /**
5
13
  * read a DER or PEM certificate from file
@@ -8,7 +16,7 @@ declare function readCertificate(filename: string): Certificate;
8
16
  /**
9
17
  * read a DER or PEM certificate from file
10
18
  */
11
- declare function readPublicKey(filename: string): PublicKey;
19
+ declare function readPublicKey(filename: string): KeyObject;
12
20
  /**
13
21
  * read a DER or PEM certificate from file
14
22
  */
@@ -34,12 +42,4 @@ declare function readCertificateRevocationList(filename: string): Promise<Certif
34
42
  type CertificateSigningRequest = Buffer;
35
43
  declare function readCertificateSigningRequest(filename: string): Promise<CertificateSigningRequest>;
36
44
 
37
- declare function generatePrivateKeyFile(privateKeyFilename: string, modulusLength: 1024 | 2048 | 3072 | 4096): Promise<void>;
38
- /**
39
- * alternate function to generate PrivateKeyFile, using jsrsasign.
40
- *
41
- * This function is slower than generatePrivateKeyFile
42
- */
43
- declare function generatePrivateKeyFileAlternate(privateKeyFilename: string, modulusLength: 2048 | 3072 | 4096): Promise<void>;
44
-
45
45
  export { type CertificateSigningRequest, generatePrivateKeyFile, generatePrivateKeyFileAlternate, getCertificateStore, readCertificate, readCertificatePEM, readCertificateRevocationList, readCertificateSigningRequest, readPrivateKey, readPrivateKeyPEM, readPrivateRsaKey, readPublicKey, readPublicKeyPEM, readPublicRsaKey, setCertificateStore };