node-opcua-crypto 2.0.1 → 2.1.1
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/.github/workflows/main.yml +96 -22
- package/dist/source/common.d.ts +4 -2
- package/dist/source/crypto_utils.d.ts +11 -15
- package/dist/source/crypto_utils.js +44 -27
- package/dist/source/crypto_utils.js.map +1 -1
- package/dist/source/explore_private_key.d.ts +1 -1
- package/dist/source/explore_private_key.js +4 -3
- package/dist/source/explore_private_key.js.map +1 -1
- package/dist/source/public_private_match.js +1 -2
- package/dist/source/public_private_match.js.map +1 -1
- package/dist/source_nodejs/read.d.ts +2 -8
- package/dist/source_nodejs/read.js +37 -25
- package/dist/source_nodejs/read.js.map +1 -1
- package/package.json +1 -1
- package/source/common.ts +15 -13
- package/source/crypto_utils.ts +376 -359
- package/source/explore_private_key.ts +119 -121
- package/source/public_private_match.ts +37 -41
- package/source_nodejs/read.ts +105 -95
package/source/common.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
export type
|
|
13
|
-
|
|
1
|
+
import { KeyObject } from "node:crypto";
|
|
2
|
+
|
|
3
|
+
export type PrivateKey = KeyObject;
|
|
4
|
+
export type PublicKey = KeyObject;
|
|
5
|
+
|
|
6
|
+
export type Nonce = Buffer;
|
|
7
|
+
export type PEM = string;
|
|
8
|
+
export type DER = Buffer;
|
|
9
|
+
export type Certificate = DER;
|
|
10
|
+
export type CertificatePEM = PEM; // certificate as a PEM string
|
|
11
|
+
export type PrivateKeyPEM = PEM;
|
|
12
|
+
export type PublicKeyPEM = PEM;
|
|
13
|
+
|
|
14
|
+
export type Signature = Buffer;
|
|
15
|
+
export type CertificateRevocationList = Buffer;
|