cas-typescript-sdk 1.0.45 → 1.0.47
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-publish.yml +98 -21
- package/README.md +21 -11
- package/package.json +4 -4
- package/index.d.ts +0 -141
- package/index.node +0 -0
- package/lib/asymmetric/index.d.ts +0 -3
- package/lib/asymmetric/index.js +0 -5
- package/lib/digital-signature/index.d.ts +0 -6
- package/lib/digital-signature/index.js +0 -11
- package/lib/hashers/index.d.ts +0 -5
- package/lib/hashers/index.js +0 -11
- package/lib/hybrid/index.d.ts +0 -2
- package/lib/hybrid/index.js +0 -5
- package/lib/index.d.ts +0 -10
- package/lib/key_exchange/index.d.ts +0 -3
- package/lib/key_exchange/index.js +0 -5
- package/lib/message/index.d.ts +0 -2
- package/lib/message/index.js +0 -5
- package/lib/password-hashers/index.d.ts +0 -6
- package/lib/password-hashers/index.js +0 -13
- package/lib/signature/index.d.ts +0 -2
- package/lib/signature/index.js +0 -5
- package/lib/sponges/index.d.ts +0 -2
- package/lib/sponges/index.js +0 -5
- package/lib/symmetric/index.d.ts +0 -2
- package/lib/symmetric/index.js +0 -5
- package/src-ts/asymmetric/index.ts +0 -4
- package/src-ts/digital-signature/index.ts +0 -14
- package/src-ts/hashers/index.ts +0 -6
- package/src-ts/hybrid/index.ts +0 -3
- package/src-ts/index.ts +0 -10
- package/src-ts/key_exchange/index.ts +0 -4
- package/src-ts/message/index.ts +0 -3
- package/src-ts/password-hashers/index.ts +0 -14
- package/src-ts/signature/index.ts +0 -3
- package/src-ts/sponges/index.ts +0 -3
- package/src-ts/symmetric/index.ts +0 -3
|
@@ -1,32 +1,109 @@
|
|
|
1
|
-
#
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
|
1
|
+
# Cross-platform build and publish workflow
|
|
3
2
|
|
|
4
|
-
name:
|
|
3
|
+
name: Build and Publish
|
|
5
4
|
|
|
6
5
|
on:
|
|
7
6
|
push:
|
|
8
7
|
branches: [ "main" ]
|
|
9
8
|
|
|
10
9
|
jobs:
|
|
11
|
-
build:
|
|
12
|
-
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
10
|
+
build-matrix:
|
|
11
|
+
runs-on: ${{ matrix.settings.host }}
|
|
15
12
|
strategy:
|
|
13
|
+
fail-fast: false
|
|
16
14
|
matrix:
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
settings:
|
|
16
|
+
# Linux builds (on Ubuntu)
|
|
17
|
+
- host: ubuntu-latest
|
|
18
|
+
target: x86_64-unknown-linux-gnu
|
|
19
|
+
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-zig
|
|
20
|
+
- host: ubuntu-latest
|
|
21
|
+
target: x86_64-unknown-linux-musl
|
|
22
|
+
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine-zig
|
|
23
|
+
# Windows builds (on Windows)
|
|
24
|
+
- host: windows-latest
|
|
25
|
+
target: x86_64-pc-windows-msvc
|
|
26
|
+
# macOS builds (on macOS)
|
|
27
|
+
- host: macos-latest
|
|
28
|
+
target: x86_64-apple-darwin
|
|
29
|
+
|
|
30
|
+
name: Build ${{ matrix.settings.target }}
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v4
|
|
33
|
+
|
|
34
|
+
- name: Setup node
|
|
35
|
+
uses: actions/setup-node@v4
|
|
36
|
+
with:
|
|
37
|
+
node-version: 24
|
|
38
|
+
cache: npm
|
|
39
|
+
|
|
40
|
+
- name: Install dependencies
|
|
41
|
+
run: npm ci
|
|
42
|
+
|
|
43
|
+
- name: Setup Rust
|
|
44
|
+
if: ${{ !matrix.settings.docker }}
|
|
45
|
+
uses: dtolnay/rust-toolchain@stable
|
|
46
|
+
with:
|
|
47
|
+
toolchain: stable
|
|
48
|
+
targets: ${{ matrix.settings.target }}
|
|
49
|
+
components: rustfmt, clippy
|
|
50
|
+
|
|
51
|
+
- name: Build in Docker
|
|
52
|
+
if: ${{ matrix.settings.docker }}
|
|
53
|
+
run: |
|
|
54
|
+
docker run --rm -v "$(pwd)":/build -w /build ${{ matrix.settings.docker }} sh -c "
|
|
55
|
+
rustup toolchain install nightly &&
|
|
56
|
+
rustup default nightly &&
|
|
57
|
+
npm ci &&
|
|
58
|
+
cargo update &&
|
|
59
|
+
npm run build:ts &&
|
|
60
|
+
npx napi build --platform --release --target ${{ matrix.settings.target }}
|
|
61
|
+
"
|
|
62
|
+
|
|
63
|
+
- name: Build native
|
|
64
|
+
if: ${{ !matrix.settings.docker }}
|
|
65
|
+
run: |
|
|
66
|
+
cargo update
|
|
67
|
+
npm run build:ts
|
|
68
|
+
npx napi build --platform --release --target ${{ matrix.settings.target }}
|
|
69
|
+
|
|
70
|
+
- name: Upload artifact
|
|
71
|
+
uses: actions/upload-artifact@v4
|
|
72
|
+
with:
|
|
73
|
+
name: bindings-${{ matrix.settings.target }}
|
|
74
|
+
path: "*.node"
|
|
75
|
+
if-no-files-found: error
|
|
76
|
+
|
|
77
|
+
publish:
|
|
78
|
+
name: Publish
|
|
79
|
+
runs-on: ubuntu-latest
|
|
80
|
+
needs: [build-matrix]
|
|
19
81
|
|
|
20
82
|
steps:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
83
|
+
- uses: actions/checkout@v4
|
|
84
|
+
|
|
85
|
+
- name: Setup node
|
|
86
|
+
uses: actions/setup-node@v4
|
|
87
|
+
with:
|
|
88
|
+
node-version: 24
|
|
89
|
+
registry-url: 'https://registry.npmjs.org'
|
|
90
|
+
cache: npm
|
|
91
|
+
|
|
92
|
+
- name: Install dependencies
|
|
93
|
+
run: npm ci
|
|
94
|
+
|
|
95
|
+
- name: Build TypeScript
|
|
96
|
+
run: npm run build:ts
|
|
97
|
+
|
|
98
|
+
- name: Download all artifacts
|
|
99
|
+
uses: actions/download-artifact@v4
|
|
100
|
+
with:
|
|
101
|
+
merge-multiple: true
|
|
102
|
+
|
|
103
|
+
- name: List binaries
|
|
104
|
+
run: ls -la *.node
|
|
105
|
+
|
|
106
|
+
- name: Publish to npm
|
|
107
|
+
run: npm publish --access public
|
|
108
|
+
env:
|
|
109
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CAS TypeScript SDK
|
|
2
2
|
|
|
3
|
-
[](https://discord.gg/
|
|
3
|
+
[](https://discord.gg/UAGqKfmvUS)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
CAS is here to provide a unified development experience as an abstract layer to the RustCrypto and Dalek-Cryptography suite of algorithms.
|
|
7
|
-
The official NPM page can be found [here](https://www.npmjs.com/package/cas-typescript-sdk).
|
|
5
|
+
## Overview
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
CAS TypeScript SDK is a comprehensive cryptographic toolkit for Node.js, designed to provide developers with a unified, high-level interface to industry-standard cryptographic algorithms. This library acts as an abstraction layer over the powerful RustCrypto and Dalek-Cryptography suites, enabling secure and efficient cryptographic operations through a simple TypeScript API.
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
This Node.js NPM module is dependent on our Rust layer [cas-lib](https://github.com/Cryptographic-API-Services/cas-lib) that contains methods to run industry-standard cryptographic operations.
|
|
9
|
+
- **Official NPM Package:** [cas-typescript-sdk](https://www.npmjs.com/package/cas-typescript-sdk)
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
## Features
|
|
12
|
+
- Modern cryptographic primitives: symmetric encryption, asymmetric encryption, digital signatures, hashing, password hashing, key exchange, and more
|
|
13
|
+
- Seamless integration with [cas-lib](https://github.com/Cryptographic-API-Services/cas-lib) Rust FFI layer for optimal performance
|
|
14
|
+
- TypeScript-first API for type safety and developer productivity
|
|
15
|
+
- Unified interface: no need to manage multiple cryptography packages or surf disparate documentation
|
|
16
|
+
- Built on trusted, open-source cryptography libraries
|
|
17
|
+
|
|
18
|
+
## Documentation & References
|
|
19
|
+
We build on the work of leading cryptography projects. For in-depth algorithm details and implementation notes, please refer to:
|
|
15
20
|
- [Spin Research](https://github.com/SpinResearch)
|
|
16
21
|
- [Dalek-Cryptography](https://github.com/dalek-cryptography)
|
|
17
22
|
- [Rust Crypto](https://github.com/RustCrypto)
|
|
18
23
|
|
|
19
|
-
##
|
|
24
|
+
## Usage Examples
|
|
25
|
+
See practical usage and code samples in our [Examples](./docs/EXAMPLES.md).
|
|
20
26
|
|
|
21
27
|
## Disclaimer
|
|
22
|
-
|
|
28
|
+
This SDK leverages several cryptographic crates via our core FFI [layer](./src). Please note that many of these crates have not undergone formal security audits. Use this library at your own risk and always review the underlying cryptographic implementations for your security requirements.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
For questions, support, or to contribute, join our Discord or visit the [GitHub repository](https://github.com/Cryptographic-API-Services/cas-typescript-sdk).
|
|
32
|
+
|
|
23
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cas-typescript-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"test": "npm run rust:test && npm run build && npm run node:test",
|
|
9
9
|
"node:test": "mocha -r ts-node/register ./test-ts/**/*.test.spec.ts --timeout 20000 --recursive",
|
|
10
10
|
"rust:test": "cargo test --release",
|
|
11
|
-
"build": "
|
|
12
|
-
"build:rust": "napi build --release",
|
|
13
|
-
"
|
|
11
|
+
"build:ts": "rimraf lib && tsc",
|
|
12
|
+
"build:rust": "napi build --release --platform",
|
|
13
|
+
"build": "npm run build:rust && npm run build:ts"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
package/index.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/* auto-generated by NAPI-RS */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export declare class Cased25519KeyPairResult {
|
|
4
|
-
privateKey: Array<number>
|
|
5
|
-
publicKey: Array<number>
|
|
6
|
-
constructor(privateKey: Array<number>, publicKey: Array<number>)
|
|
7
|
-
}
|
|
8
|
-
export type CASED25519KeyPairResult = Cased25519KeyPairResult
|
|
9
|
-
|
|
10
|
-
export declare class CasrsaDigitalSignatureResult {
|
|
11
|
-
publicKey: string
|
|
12
|
-
privateKey: string
|
|
13
|
-
signature: Array<number>
|
|
14
|
-
constructor(publicKey: string, privateKey: string, signature: Array<number>)
|
|
15
|
-
}
|
|
16
|
-
export type CASRSADigitalSignatureResult = CasrsaDigitalSignatureResult
|
|
17
|
-
|
|
18
|
-
export declare class CasrsaKeyPairResult {
|
|
19
|
-
privateKey: string
|
|
20
|
-
publicKey: string
|
|
21
|
-
constructor(privateKey: string, publicKey: string)
|
|
22
|
-
}
|
|
23
|
-
export type CASRSAKeyPairResult = CasrsaKeyPairResult
|
|
24
|
-
|
|
25
|
-
export declare class Casshaed25519DalekDigitalSignatureResult {
|
|
26
|
-
publicKey: Array<number>
|
|
27
|
-
signature: Array<number>
|
|
28
|
-
constructor(publicKey: Array<number>, signature: Array<number>)
|
|
29
|
-
}
|
|
30
|
-
export type CASSHAED25519DalekDigitalSignatureResult = Casshaed25519DalekDigitalSignatureResult
|
|
31
|
-
|
|
32
|
-
export declare class CaSx25519SecretPublicKeyResult {
|
|
33
|
-
publicKey: Array<number>
|
|
34
|
-
secretKey: Array<number>
|
|
35
|
-
constructor(publicKey: Array<number>, secretKey: Array<number>)
|
|
36
|
-
}
|
|
37
|
-
export type CASx25519SecretPublicKeyResult = CaSx25519SecretPublicKeyResult
|
|
38
|
-
|
|
39
|
-
export declare class HpkeEncryptResult {
|
|
40
|
-
tag: Array<number>
|
|
41
|
-
ciphertext: Array<number>
|
|
42
|
-
encapsulatedKey: Array<number>
|
|
43
|
-
constructor(tag: Array<number>, ciphertext: Array<number>, encapsulatedKey: Array<number>)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export declare class HpkeKeyResult {
|
|
47
|
-
publicKey: Array<number>
|
|
48
|
-
secretKey: Array<number>
|
|
49
|
-
infoStr: Array<number>
|
|
50
|
-
constructor(publicKey: Array<number>, secretKey: Array<number>, infoStr: Array<number>)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export declare function aes128Decrypt(aesKey: Array<number>, nonce: Array<number>, ciphertext: Array<number>): Array<number>
|
|
54
|
-
|
|
55
|
-
export declare function aes128Encrypt(aesKey: Array<number>, nonce: Array<number>, plaintext: Array<number>): Array<number>
|
|
56
|
-
|
|
57
|
-
export declare function aes128Key(): Array<number>
|
|
58
|
-
|
|
59
|
-
export declare function aes128KeyFromX25519SharedSecret(sharedSecret: Array<number>): Array<number>
|
|
60
|
-
|
|
61
|
-
export declare function aes256Decrypt(aesKey: Array<number>, nonce: Array<number>, ciphertext: Array<number>): Array<number>
|
|
62
|
-
|
|
63
|
-
export declare function aes256Encrypt(aesKey: Array<number>, nonce: Array<number>, plaintext: Array<number>): Array<number>
|
|
64
|
-
|
|
65
|
-
export declare function aes256Key(): Array<number>
|
|
66
|
-
|
|
67
|
-
export declare function aes256KeyFromX25519SharedSecret(sharedSecret: Array<number>): Array<number>
|
|
68
|
-
|
|
69
|
-
export declare function aesNonce(): Array<number>
|
|
70
|
-
|
|
71
|
-
export declare function argon2Hash(password: string): string
|
|
72
|
-
|
|
73
|
-
export declare function argon2Verify(hashedPassword: string, passwordToVerify: string): boolean
|
|
74
|
-
|
|
75
|
-
export declare function ascon128Decrypt(key: Array<number>, nonce: Array<number>, ciphertext: Array<number>): Array<number>
|
|
76
|
-
|
|
77
|
-
export declare function ascon128Encrypt(key: Array<number>, nonce: Array<number>, plaintext: Array<number>): Array<number>
|
|
78
|
-
|
|
79
|
-
export declare function ascon128KeyGenerate(): Array<number>
|
|
80
|
-
|
|
81
|
-
export declare function ascon128NonceGenerate(): Array<number>
|
|
82
|
-
|
|
83
|
-
export declare function bcryptHash(passwordToHash: string): string
|
|
84
|
-
|
|
85
|
-
export declare function bcryptVerify(hashedPassword: string, passwordToVerify: string): boolean
|
|
86
|
-
|
|
87
|
-
export declare function blake2Sha256(dataToHash: Array<number>): Array<number>
|
|
88
|
-
|
|
89
|
-
export declare function blake2Sha256Verify(dataToHash: Array<number>, dataToVerify: Array<number>): boolean
|
|
90
|
-
|
|
91
|
-
export declare function blake2Sha512(dataToHash: Array<number>): Array<number>
|
|
92
|
-
|
|
93
|
-
export declare function blake2Sha512Verify(dataToHash: Array<number>, dataToVerify: Array<number>): boolean
|
|
94
|
-
|
|
95
|
-
export declare function generateEd25519Keys(): Cased25519KeyPairResult
|
|
96
|
-
|
|
97
|
-
export declare function generateInfoStr(): Array<number>
|
|
98
|
-
|
|
99
|
-
export declare function generateRsaKeys(keySize: number): CasrsaKeyPairResult
|
|
100
|
-
|
|
101
|
-
export declare function hmacSign(key: Array<number>, message: Array<number>): Array<number>
|
|
102
|
-
|
|
103
|
-
export declare function hmacVerify(key: Array<number>, message: Array<number>, signature: Array<number>): boolean
|
|
104
|
-
|
|
105
|
-
export declare function hpkeDecrypt(ciphertext: Array<number>, privateKey: Array<number>, encappedKey: Array<number>, tag: Array<number>, infoStr: Array<number>): Array<number>
|
|
106
|
-
|
|
107
|
-
export declare function hpkeEncrypt(plaintext: Array<number>, publicKey: Array<number>, infoStr: Array<number>): HpkeEncryptResult
|
|
108
|
-
|
|
109
|
-
export declare function hpkeGenerateKeypair(): HpkeKeyResult
|
|
110
|
-
|
|
111
|
-
export declare function scryptHash(passwordToHash: string): string
|
|
112
|
-
|
|
113
|
-
export declare function scryptVerify(hashedPassword: string, passwordToVerify: string): boolean
|
|
114
|
-
|
|
115
|
-
export declare function sha256(dataToHash: Array<number>): Array<number>
|
|
116
|
-
|
|
117
|
-
export declare function sha256RsaDigitalSignature(rsaKeySize: number, dataToSign: Array<number>): CASRSADigitalSignatureResult
|
|
118
|
-
|
|
119
|
-
export declare function sha256RsaVerifyDigitalSignature(publicKey: string, dataToVerify: Array<number>, signature: Array<number>): boolean
|
|
120
|
-
|
|
121
|
-
export declare function sha256Verify(dataToHash: Array<number>, dataToVerify: Array<number>): boolean
|
|
122
|
-
|
|
123
|
-
export declare function sha512(dataToHash: Array<number>): Array<number>
|
|
124
|
-
|
|
125
|
-
export declare function sha512RsaDigitalSignature(rsaKeySize: number, dataToSign: Array<number>): CASRSADigitalSignatureResult
|
|
126
|
-
|
|
127
|
-
export declare function sha512RsaVerifyDigitalSignature(publicKey: string, dataToVerify: Array<number>, signature: Array<number>): boolean
|
|
128
|
-
|
|
129
|
-
export declare function sha512Verify(dataToHash: Array<number>, dataToVerify: Array<number>): boolean
|
|
130
|
-
|
|
131
|
-
export declare function signEd25519(privateKey: Array<number>, message: Array<number>): Array<number>
|
|
132
|
-
|
|
133
|
-
export declare function signRsa(privateKey: string, hash: Array<number>): Array<number>
|
|
134
|
-
|
|
135
|
-
export declare function verifyEd25519(publicKey: Array<number>, message: Array<number>, signature: Array<number>): boolean
|
|
136
|
-
|
|
137
|
-
export declare function verifyRsa(publicKey: string, hash: Array<number>, signature: Array<number>): boolean
|
|
138
|
-
|
|
139
|
-
export declare function x25519DiffieHellman(mySecretKey: Array<number>, usersPublicKey: Array<number>): Array<number>
|
|
140
|
-
|
|
141
|
-
export declare function x25519GenerateSecretAndPublicKey(): CASx25519SecretPublicKeyResult
|
package/index.node
DELETED
|
Binary file
|
package/lib/asymmetric/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RSAWrapper = void 0;
|
|
4
|
-
const RSAWrapper_1 = require("./RSAWrapper");
|
|
5
|
-
Object.defineProperty(exports, "RSAWrapper", { enumerable: true, get: function () { return RSAWrapper_1.RSAWrapper; } });
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DigitalSignatureType } from "./digital-signature-factory";
|
|
2
|
-
import { DigitalSignatureFactory } from "./digital-signature-factory";
|
|
3
|
-
import { DigitalSignatureSHA256Wrapper } from "./digital-signaturte-sha-256";
|
|
4
|
-
import { DigitalSignatureSHA512Wrapper } from "./digital-siganture-sha-512";
|
|
5
|
-
import { CASRSADigitalSignatureResult, CASSHAED25519DalekDigitalSignatureResult } from "../../index";
|
|
6
|
-
export { DigitalSignatureFactory, DigitalSignatureSHA256Wrapper, DigitalSignatureSHA512Wrapper, DigitalSignatureType, CASSHAED25519DalekDigitalSignatureResult, CASRSADigitalSignatureResult };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DigitalSignatureType = exports.DigitalSignatureSHA512Wrapper = exports.DigitalSignatureSHA256Wrapper = exports.DigitalSignatureFactory = void 0;
|
|
4
|
-
const digital_signature_factory_1 = require("./digital-signature-factory");
|
|
5
|
-
Object.defineProperty(exports, "DigitalSignatureType", { enumerable: true, get: function () { return digital_signature_factory_1.DigitalSignatureType; } });
|
|
6
|
-
const digital_signature_factory_2 = require("./digital-signature-factory");
|
|
7
|
-
Object.defineProperty(exports, "DigitalSignatureFactory", { enumerable: true, get: function () { return digital_signature_factory_2.DigitalSignatureFactory; } });
|
|
8
|
-
const digital_signaturte_sha_256_1 = require("./digital-signaturte-sha-256");
|
|
9
|
-
Object.defineProperty(exports, "DigitalSignatureSHA256Wrapper", { enumerable: true, get: function () { return digital_signaturte_sha_256_1.DigitalSignatureSHA256Wrapper; } });
|
|
10
|
-
const digital_siganture_sha_512_1 = require("./digital-siganture-sha-512");
|
|
11
|
-
Object.defineProperty(exports, "DigitalSignatureSHA512Wrapper", { enumerable: true, get: function () { return digital_siganture_sha_512_1.DigitalSignatureSHA512Wrapper; } });
|
package/lib/hashers/index.d.ts
DELETED
package/lib/hashers/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Blake2Wrapper = exports.HasherType = exports.HasherFactory = exports.SHAWrapper = void 0;
|
|
4
|
-
const hasher_factory_1 = require("./hasher-factory");
|
|
5
|
-
Object.defineProperty(exports, "HasherFactory", { enumerable: true, get: function () { return hasher_factory_1.HasherFactory; } });
|
|
6
|
-
const hasher_type_1 = require("./hasher-type");
|
|
7
|
-
Object.defineProperty(exports, "HasherType", { enumerable: true, get: function () { return hasher_type_1.HasherType; } });
|
|
8
|
-
const sha_wrapper_1 = require("./sha-wrapper");
|
|
9
|
-
Object.defineProperty(exports, "SHAWrapper", { enumerable: true, get: function () { return sha_wrapper_1.SHAWrapper; } });
|
|
10
|
-
const blake2_wrapper_1 = require("./blake2-wrapper");
|
|
11
|
-
Object.defineProperty(exports, "Blake2Wrapper", { enumerable: true, get: function () { return blake2_wrapper_1.Blake2Wrapper; } });
|
package/lib/hybrid/index.d.ts
DELETED
package/lib/hybrid/index.js
DELETED
package/lib/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./password-hashers/index";
|
|
2
|
-
export * from "./hashers/index";
|
|
3
|
-
export * from "./key_exchange/index";
|
|
4
|
-
export * from "./symmetric/index";
|
|
5
|
-
export * from "./asymmetric/index";
|
|
6
|
-
export * from "./digital-signature";
|
|
7
|
-
export * from "./sponges/index";
|
|
8
|
-
export * from "./message/index";
|
|
9
|
-
export * from "./signature/index";
|
|
10
|
-
export * from "./hybrid/index";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.X25519Wrapper = void 0;
|
|
4
|
-
const x25519_1 = require("./x25519");
|
|
5
|
-
Object.defineProperty(exports, "X25519Wrapper", { enumerable: true, get: function () { return x25519_1.X25519Wrapper; } });
|
package/lib/message/index.d.ts
DELETED
package/lib/message/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Argon2Wrapper } from "./argon2-wrapper";
|
|
2
|
-
import { BCryptWrapper } from "./bcrypt-wrapper";
|
|
3
|
-
import { ScryptWrapper } from "./scrypt-wrapper";
|
|
4
|
-
import { PasswordHasherType } from "./password-hasher-type";
|
|
5
|
-
import { PasswordHasherFactory } from "./password-hasher-factory";
|
|
6
|
-
export { Argon2Wrapper, BCryptWrapper, PasswordHasherFactory, PasswordHasherType, ScryptWrapper, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScryptWrapper = exports.PasswordHasherType = exports.PasswordHasherFactory = exports.BCryptWrapper = exports.Argon2Wrapper = void 0;
|
|
4
|
-
const argon2_wrapper_1 = require("./argon2-wrapper");
|
|
5
|
-
Object.defineProperty(exports, "Argon2Wrapper", { enumerable: true, get: function () { return argon2_wrapper_1.Argon2Wrapper; } });
|
|
6
|
-
const bcrypt_wrapper_1 = require("./bcrypt-wrapper");
|
|
7
|
-
Object.defineProperty(exports, "BCryptWrapper", { enumerable: true, get: function () { return bcrypt_wrapper_1.BCryptWrapper; } });
|
|
8
|
-
const scrypt_wrapper_1 = require("./scrypt-wrapper");
|
|
9
|
-
Object.defineProperty(exports, "ScryptWrapper", { enumerable: true, get: function () { return scrypt_wrapper_1.ScryptWrapper; } });
|
|
10
|
-
const password_hasher_type_1 = require("./password-hasher-type");
|
|
11
|
-
Object.defineProperty(exports, "PasswordHasherType", { enumerable: true, get: function () { return password_hasher_type_1.PasswordHasherType; } });
|
|
12
|
-
const password_hasher_factory_1 = require("./password-hasher-factory");
|
|
13
|
-
Object.defineProperty(exports, "PasswordHasherFactory", { enumerable: true, get: function () { return password_hasher_factory_1.PasswordHasherFactory; } });
|
package/lib/signature/index.d.ts
DELETED
package/lib/signature/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Ed25519Wrapper = void 0;
|
|
4
|
-
const ed25519_wrapper_1 = require("./ed25519-wrapper");
|
|
5
|
-
Object.defineProperty(exports, "Ed25519Wrapper", { enumerable: true, get: function () { return ed25519_wrapper_1.Ed25519Wrapper; } });
|
package/lib/sponges/index.d.ts
DELETED
package/lib/sponges/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AsconWrapper = void 0;
|
|
4
|
-
const ascon_wrapper_1 = require("./ascon-wrapper");
|
|
5
|
-
Object.defineProperty(exports, "AsconWrapper", { enumerable: true, get: function () { return ascon_wrapper_1.AsconWrapper; } });
|
package/lib/symmetric/index.d.ts
DELETED
package/lib/symmetric/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AESWrapper = void 0;
|
|
4
|
-
const aes_wrapper_1 = require("./aes-wrapper");
|
|
5
|
-
Object.defineProperty(exports, "AESWrapper", { enumerable: true, get: function () { return aes_wrapper_1.AESWrapper; } });
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DigitalSignatureType } from "./digital-signature-factory";
|
|
2
|
-
import { DigitalSignatureFactory } from "./digital-signature-factory";
|
|
3
|
-
import { DigitalSignatureSHA256Wrapper } from "./digital-signaturte-sha-256";
|
|
4
|
-
import { DigitalSignatureSHA512Wrapper } from "./digital-siganture-sha-512";
|
|
5
|
-
import { CASRSADigitalSignatureResult, CASSHAED25519DalekDigitalSignatureResult } from "../../index";
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
DigitalSignatureFactory,
|
|
9
|
-
DigitalSignatureSHA256Wrapper,
|
|
10
|
-
DigitalSignatureSHA512Wrapper,
|
|
11
|
-
DigitalSignatureType,
|
|
12
|
-
CASSHAED25519DalekDigitalSignatureResult,
|
|
13
|
-
CASRSADigitalSignatureResult
|
|
14
|
-
};
|
package/src-ts/hashers/index.ts
DELETED
package/src-ts/hybrid/index.ts
DELETED
package/src-ts/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./password-hashers/index";
|
|
2
|
-
export * from "./hashers/index";
|
|
3
|
-
export * from "./key_exchange/index";
|
|
4
|
-
export * from "./symmetric/index";
|
|
5
|
-
export * from "./asymmetric/index";
|
|
6
|
-
export * from "./digital-signature";
|
|
7
|
-
export * from "./sponges/index";
|
|
8
|
-
export * from "./message/index";
|
|
9
|
-
export * from "./signature/index";
|
|
10
|
-
export * from "./hybrid/index";
|
package/src-ts/message/index.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Argon2Wrapper } from "./argon2-wrapper";
|
|
2
|
-
import { BCryptWrapper } from "./bcrypt-wrapper";
|
|
3
|
-
import { ScryptWrapper } from "./scrypt-wrapper";
|
|
4
|
-
|
|
5
|
-
import { PasswordHasherType } from "./password-hasher-type";
|
|
6
|
-
import { PasswordHasherFactory } from "./password-hasher-factory";
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
Argon2Wrapper,
|
|
10
|
-
BCryptWrapper,
|
|
11
|
-
PasswordHasherFactory,
|
|
12
|
-
PasswordHasherType,
|
|
13
|
-
ScryptWrapper,
|
|
14
|
-
};
|
package/src-ts/sponges/index.ts
DELETED