@sebastienrousseau/crypto-testing 0.0.34 → 0.0.36

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/README.md CHANGED
@@ -110,12 +110,12 @@ Crypto Service provides a complete cryptography stack across 14 specialized pack
110
110
 
111
111
  | Package | Role | Description |
112
112
  | :------------------------------------------------------------------------------------------------------------------------------------------------ | :--------------- | :----------------------------------------------------------------------------------------------------------------------------- |
113
- | [`@sebastienrousseau/crypto-api`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-api) | API Schemas | Shared TypeScript types and utilities for the Crypto Service Suite, defining the canonical API surface. |
113
+ | [`@sebastienrousseau/crypto-api`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-api) | API docs | Postman collection types and a Postman-to-Markdown converter; the server's API contract is its OpenAPI document. |
114
114
  | [`@sebastienrousseau/crypto-benchmarks`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-benchmarks) | Benchmarks | Benchmarks comparing classical and post-quantum cryptography: ops/sec, latency and throughput. |
115
115
  | [`@sebastienrousseau/crypto-cbom`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-cbom) | CBOM | Cryptographic Bill of Materials generator and auditor (CycloneDX 1.6, SPDX 3.0). |
116
116
  | [`@sebastienrousseau/crypto-cli`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-cli) | Terminal CLI | Command-line interface: hashing, key generation, encryption, signing, HPKE, Argon2id and CBOM scans, with an interactive menu. |
117
117
  | [`@sebastienrousseau/crypto-edge`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-edge) | Edge Runtime | Edge-runtime cryptographic operations using the Web Crypto API, optimized for Cloudflare Workers, Vercel Edge, and Deno. |
118
- | [`@sebastienrousseau/crypto-kms`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-kms) | Cloud KMS | Unified KMS interface: AWS KMS and local providers implemented; GCP, Azure and Vault are stubs. |
118
+ | [`@sebastienrousseau/crypto-kms`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-kms) | Cloud KMS | Unified KMS interface: AWS KMS, Google Cloud KMS, Vault Transit and local providers; Azure is a stub. |
119
119
  | [`@sebastienrousseau/crypto-lib`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-lib) | Core Library | Core library: post-quantum ML-KEM, ML-DSA and SLH-DSA, plus classical, modern and OpenPGP cryptography for TypeScript. |
120
120
  | [`@sebastienrousseau/crypto-lsp`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-lsp) | IDE Analysis | Language server that flags weak and quantum-vulnerable cryptography in the editor, with quick fixes. |
121
121
  | [`@sebastienrousseau/crypto-mcp`](https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-mcp) | AI Agents | Model Context Protocol server exposing cryptography tools to AI assistants and agents. |
package/dist/keys.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const TEST_KEYS: {
2
2
  readonly ed25519: {
3
- readonly publicKey: "d75a980182b10ab7d54bfed3c964073a0ee172f3daa3f4a18446b7e8c38f1dd5";
3
+ readonly publicKey: "d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a";
4
4
  readonly privateKey: "9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60";
5
5
  };
6
6
  readonly x25519: {
@@ -8,7 +8,7 @@ export declare const TEST_KEYS: {
8
8
  readonly privateKey: "77076d0a7318a57d3c16c17251b26645df4c2f87ebc0992ab177fba51db92c2a";
9
9
  };
10
10
  readonly p256: {
11
- readonly publicKey: "0437c1b9e44bcb3d97a78b8b5e71f5e3e5a4a0e7d6b8c2f1e0d9c8b7a6f5e4d3c2b1a09f8e7d6c5b4a3029f8e7d6c5b4a3029f8e7d6c5b4a3029f8e7d6c5b4a302";
11
+ readonly publicKey: "0460fed4ba255a9d31c961eb74c6356d68c049b8923b61fa6ce669622e60f29fb67903fe1008b8bc99a41ae9e95628bc64f2f1b20c2d7e9f5177a3c294d4462299";
12
12
  readonly privateKey: "c9afa9d845ba75166b5c215767b1d6934e50c3db36e89b127b8a622b120f6721";
13
13
  };
14
14
  readonly aes256: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef";
@@ -17,8 +17,8 @@ export declare const TEST_KEYS: {
17
17
  export declare const TEST_VECTORS: {
18
18
  readonly plaintext: "The quick brown fox jumps over the lazy dog";
19
19
  readonly sha256: "d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592";
20
- readonly sha3_256: "a80f839cd4f83f6c3dafc87feae470045e4eb0d366397d5c6ce34ba1739f734d";
21
- readonly blake3: "8e7e26d7e72a04d2ed173f90a72ec2a3bf3bb38890c9a2f95f3ab0e18a1e1a4a";
20
+ readonly sha3_256: "69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04";
21
+ readonly blake3: "2f1514181aadccd913abd94cfa592701a5686ab23f8df1dff1b74710febc6d4a";
22
22
  };
23
23
  export declare const RFC_VECTORS: {
24
24
  readonly rfc8439_chacha20_poly1305: {
@@ -34,7 +34,7 @@ export declare const RFC_VECTORS: {
34
34
  readonly salt: "000102030405060708090a0b0c";
35
35
  readonly info: "f0f1f2f3f4f5f6f7f8f9";
36
36
  readonly l: 42;
37
- readonly prk: "077709362c2e32df0ddc3f0dc47bba6390b6c73bb50f9c3122ec844ad7c2b3e0";
37
+ readonly prk: "077709362c2e32df0ddc3f0dc47bba6390b6c73bb50f9c3122ec844ad7c2b3e5";
38
38
  readonly okm: "3cb25f25faacd57a90434f64d0362f2a2d2d0a90cf1a5a4c5db02d56ecc4c5bf34007208d5b887185865";
39
39
  };
40
40
  readonly nist_aes256_gcm: {
package/dist/keys.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RFC_VECTORS = exports.TEST_VECTORS = exports.TEST_KEYS = void 0;
4
4
  exports.TEST_KEYS = {
5
5
  ed25519: {
6
- publicKey: "d75a980182b10ab7d54bfed3c964073a0ee172f3daa3f4a18446b7e8c38f1dd5",
6
+ publicKey: "d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a",
7
7
  privateKey: "9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60",
8
8
  },
9
9
  x25519: {
@@ -11,7 +11,7 @@ exports.TEST_KEYS = {
11
11
  privateKey: "77076d0a7318a57d3c16c17251b26645df4c2f87ebc0992ab177fba51db92c2a",
12
12
  },
13
13
  p256: {
14
- publicKey: "0437c1b9e44bcb3d97a78b8b5e71f5e3e5a4a0e7d6b8c2f1e0d9c8b7a6f5e4d3c2b1a09f8e7d6c5b4a3029f8e7d6c5b4a3029f8e7d6c5b4a3029f8e7d6c5b4a302",
14
+ publicKey: "0460fed4ba255a9d31c961eb74c6356d68c049b8923b61fa6ce669622e60f29fb67903fe1008b8bc99a41ae9e95628bc64f2f1b20c2d7e9f5177a3c294d4462299",
15
15
  privateKey: "c9afa9d845ba75166b5c215767b1d6934e50c3db36e89b127b8a622b120f6721",
16
16
  },
17
17
  aes256: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
@@ -20,8 +20,8 @@ exports.TEST_KEYS = {
20
20
  exports.TEST_VECTORS = {
21
21
  plaintext: "The quick brown fox jumps over the lazy dog",
22
22
  sha256: "d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592",
23
- sha3_256: "a80f839cd4f83f6c3dafc87feae470045e4eb0d366397d5c6ce34ba1739f734d",
24
- blake3: "8e7e26d7e72a04d2ed173f90a72ec2a3bf3bb38890c9a2f95f3ab0e18a1e1a4a",
23
+ sha3_256: "69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04",
24
+ blake3: "2f1514181aadccd913abd94cfa592701a5686ab23f8df1dff1b74710febc6d4a",
25
25
  };
26
26
  exports.RFC_VECTORS = {
27
27
  rfc8439_chacha20_poly1305: {
@@ -37,7 +37,7 @@ exports.RFC_VECTORS = {
37
37
  salt: "000102030405060708090a0b0c",
38
38
  info: "f0f1f2f3f4f5f6f7f8f9",
39
39
  l: 42,
40
- prk: "077709362c2e32df0ddc3f0dc47bba6390b6c73bb50f9c3122ec844ad7c2b3e0",
40
+ prk: "077709362c2e32df0ddc3f0dc47bba6390b6c73bb50f9c3122ec844ad7c2b3e5",
41
41
  okm: "3cb25f25faacd57a90434f64d0362f2a2d2d0a90cf1a5a4c5db02d56ecc4c5bf34007208d5b887185865",
42
42
  },
43
43
  nist_aes256_gcm: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebastienrousseau/crypto-testing",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "Test utilities for crypto-lib: deterministic keys, known-answer test vectors, mocks and fixtures for fast, reproducible CI.",
5
5
  "author": "Sebastien Rousseau <sebastienrousseau@users.noreply.github.com>",
6
6
  "license": "MIT OR Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "dist/**/*.d.ts.map"
35
35
  ],
36
36
  "dependencies": {
37
- "@sebastienrousseau/crypto-lib": "0.0.34"
37
+ "@sebastienrousseau/crypto-lib": "0.0.36"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@sebastienrousseau/mocha-config": "^0.0.7",
@@ -69,6 +69,7 @@
69
69
  "build": "tsc --build tsconfig.json",
70
70
  "clean": "rimraf ./coverage ./dist ./docs",
71
71
  "test": "c8 --check-coverage --lines 100 --branches 100 --functions 100 --reporter=lcov --reporter=text mocha --config=.mocharc.cjs",
72
+ "test:run": "mocha --config=.mocharc.cjs",
72
73
  "docs": "typedoc",
73
74
  "lint": "eslint src __tests__",
74
75
  "lint:fix": "eslint --cache --fix src __tests__",