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.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/{chunk-XPM4YIBT.mjs → chunk-CQ5JIXZF.mjs} +39 -38
- package/dist/chunk-CQ5JIXZF.mjs.map +1 -0
- package/dist/{chunk-F5EAPW2U.mjs → chunk-EURHGMEG.mjs} +846 -660
- package/dist/chunk-EURHGMEG.mjs.map +1 -0
- package/dist/{common-CFr95Map.d.mts → common-DxHkx4Pv.d.mts} +2 -2
- package/dist/{common-CFr95Map.d.ts → common-DxHkx4Pv.d.ts} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +919 -726
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/source/index.d.mts +2 -2
- package/dist/source/index.d.ts +2 -2
- package/dist/source/index.js +873 -681
- package/dist/source/index.js.map +1 -1
- package/dist/source/index.mjs +1 -1
- package/dist/source/index_web.d.mts +17 -17
- package/dist/source/index_web.d.ts +17 -17
- package/dist/source/index_web.js +873 -681
- package/dist/source/index_web.js.map +1 -1
- package/dist/source/index_web.mjs +1 -1
- package/dist/source_nodejs/index.d.mts +11 -11
- package/dist/source_nodejs/index.d.ts +11 -11
- package/dist/source_nodejs/index.js +298 -309
- package/dist/source_nodejs/index.js.map +1 -1
- package/dist/source_nodejs/index.mjs +2 -2
- package/package.json +5 -6
- package/dist/chunk-F5EAPW2U.mjs.map +0 -1
- package/dist/chunk-XPM4YIBT.mjs.map +0 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import { C as Certificate,
|
|
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):
|
|
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,
|
|
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):
|
|
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 };
|