@sebastienrousseau/crypto-mcp 0.0.36 → 0.0.38

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.
Files changed (2) hide show
  1. package/README.md +27 -19
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -63,25 +63,33 @@ Add the server to your `claude_desktop_config.json` or `.cursor/mcp.json`:
63
63
 
64
64
  ## Tools Exposed
65
65
 
66
- | Tool Name | Description | Key Parameters |
67
- | ------------------------ | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
68
- | `crypto_generate_key` | Generate a key in the server; returns its handle and public key | `type` (rsa, ecc, ed25519, ml-kem-768, symmetric-256, hmac-sha256), `modulusLength`, `curve` |
69
- | `crypto_key_list` | List held key handles with type and public metadata | none |
70
- | `crypto_key_destroy` | Wipe a key and invalidate its handle | `keyHandle` |
71
- | `crypto_key_import` | Load a key from a file in `CRYPTO_MCP_KEY_DIR` into a handle | `path`, `kind` (symmetric-256, hmac-sha256; raw keys only) |
72
- | `crypto_encrypt` | AEAD-encrypt under a key handle (a new key if none is given) | `plaintext`, `keyHandle`, `algorithm` (aes-256-gcm, chacha20-poly1305) |
73
- | `crypto_decrypt` | Authenticate and decrypt an AEAD ciphertext | `ciphertext`, `keyHandle`, `iv`, `authTag`, `algorithm` |
74
- | `crypto_sign` | Sign with a key handle; the algorithm follows the key | `data`, `keyHandle` |
75
- | `crypto_verify` | Verify against a public key PEM or a key handle | `data`, `signature`, `publicKey` or `keyHandle` |
76
- | `crypto_hash` | Compute a digest | `data`, `algorithm` (sha256, sha384, sha512, sha3-256, blake2b512) |
77
- | `crypto_kem_encapsulate` | ML-KEM-768 encapsulation; the shared secret becomes a key handle | `publicKey` |
78
- | `crypto_kem_decapsulate` | ML-KEM-768 decapsulation with a key handle | `keyHandle`, `ciphertext` |
79
- | `crypto_kms_wrap` | Wrap the DEK behind a key handle under a KMS-held KEK | `provider`, `keyId`, `keyHandle` |
80
- | `crypto_kms_unwrap` | Unwrap a DEK into a new key handle | `provider`, `keyId`, `wrappedKey` |
81
- | `crypto_inspect_key` | Classify a PEM or OpenPGP armored key and fingerprint it | `keyData` |
82
- | `crypto_audit_cbom` | Classify algorithm names into a CBOM | `algorithms` |
83
-
84
- Signature algorithms by key type: `ed25519` signs Ed25519, `rsa` signs RSASSA-PSS (SHA-256, MGF1-SHA-256, 32-byte salt), `ecc` signs ECDSA with SHA-256 (SHA-384 on P-384, DER-encoded), and `hmac-sha256` computes HMAC-SHA256.
66
+ | Tool Name | Description | Key Parameters |
67
+ | ------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
68
+ | `crypto_generate_key` | Generate a key in the server; returns its handle and public key | `type` (rsa, ecc, ed25519, x25519, ml-kem-512/768/1024, ml-dsa-44/65/87, symmetric-256, hmac-sha256), `modulusLength`, `curve` |
69
+ | `crypto_key_list` | List held key handles with type and public metadata | none |
70
+ | `crypto_key_destroy` | Wipe a key and invalidate its handle | `keyHandle` |
71
+ | `crypto_key_import` | Load a key from a file in `CRYPTO_MCP_KEY_DIR` into a handle | `path`, `kind` (symmetric-256, hmac-sha256; raw keys only) |
72
+ | `crypto_encrypt` | AEAD-encrypt under a key handle (a new key if none is given) | `plaintext`, `keyHandle`, `algorithm` (aes-256-gcm, chacha20-poly1305) |
73
+ | `crypto_decrypt` | Authenticate and decrypt an AEAD ciphertext | `ciphertext`, `keyHandle`, `iv`, `authTag`, `algorithm` |
74
+ | `crypto_sign` | Sign with a key handle; the algorithm follows the key | `data`, `keyHandle` |
75
+ | `crypto_verify` | Verify against a public key PEM or a key handle | `data`, `signature`, `publicKey` or `keyHandle` |
76
+ | `crypto_hash` | Compute a digest | `data`, `algorithm` (sha256, sha384, sha512, sha3-256, blake2b512) |
77
+ | `crypto_kem_encapsulate` | ML-KEM (512, 768 or 1024) encapsulation; the shared secret becomes a key handle | `publicKey`, `level` |
78
+ | `crypto_kem_decapsulate` | ML-KEM decapsulation with a key handle | `keyHandle`, `ciphertext`, `level` |
79
+ | `crypto_kms_wrap` | Wrap the DEK behind a key handle under a KMS-held KEK | `provider`, `keyId`, `keyHandle` |
80
+ | `crypto_kms_unwrap` | Unwrap a DEK into a new key handle | `provider`, `keyId`, `wrappedKey` |
81
+ | `crypto_hybrid_kem_encapsulate` | Hybrid X25519 + ML-KEM encapsulation; the combined shared secret becomes a key handle | `x25519PublicKey`, `mlKemPublicKey`, `level` |
82
+ | `crypto_hybrid_kem_decapsulate` | Hybrid X25519 + ML-KEM decapsulation with x25519 and ml-kem key handles | `x25519KeyHandle`, `mlKemKeyHandle`, `x25519EphemeralPublic`, `mlKemCiphertext`, `level` |
83
+ | `crypto_hybrid_kem_multi_encapsulate` | Wrap one key for several recipients (X25519 + ML-KEM-768, AES-256-GCM key wrapping) | `recipients`, `keyHandle` |
84
+ | `crypto_hybrid_kem_multi_decapsulate` | Recover a multi-recipient key into a new key handle | `x25519KeyHandle`, `mlKemKeyHandle`, `recipients` or the recipient's fields, `recipientId` |
85
+ | `crypto_stream_encrypt` | Post-quantum hybrid STREAM encryption (X25519 + ML-KEM-768, XChaCha20-Poly1305) with truncation protection | `plaintext`, `x25519PublicKey`, `mlKemPublicKey`, `chunkSize` |
86
+ | `crypto_stream_decrypt` | Decrypt a STREAM ciphertext with x25519 and ml-kem-768 key handles | `ciphertext`, `x25519KeyHandle`, `mlKemKeyHandle`, `chunkSize` |
87
+ | `crypto_stream_multi_encrypt` | STREAM encryption for several recipients | `plaintext`, `recipients`, `chunkSize` |
88
+ | `crypto_stream_multi_decrypt` | Decrypt a multi-recipient STREAM ciphertext with one recipient's key handles | `ciphertext`, `x25519KeyHandle`, `mlKemKeyHandle`, `recipientId`, `chunkSize` |
89
+ | `crypto_inspect_key` | Classify a PEM or OpenPGP armored key and fingerprint it | `keyData` |
90
+ | `crypto_audit_cbom` | Classify algorithm names into a CBOM | `algorithms` |
91
+
92
+ Signature algorithms by key type: `ed25519` signs Ed25519, `rsa` signs RSASSA-PSS (SHA-256, MGF1-SHA-256, 32-byte salt), `ecc` signs ECDSA with SHA-256 (SHA-384 on P-384, DER-encoded), `ml-dsa-44`, `ml-dsa-65` and `ml-dsa-87` sign ML-DSA (FIPS 204), and `hmac-sha256` computes HMAC-SHA256.
85
93
 
86
94
  ### Key handles
87
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebastienrousseau/crypto-mcp",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "Model Context Protocol (MCP) server that gives AI assistants and agents cryptography tools: key generation, encryption, ML-KEM, ML-DSA signing, hashing, streaming encryption, KMS and CBOM.",
5
5
  "author": "Sebastien Rousseau <sebastienrousseau@users.noreply.github.com>",
6
6
  "license": "MIT OR Apache-2.0",
@@ -28,8 +28,8 @@
28
28
  "dist/**/*.d.ts.map"
29
29
  ],
30
30
  "dependencies": {
31
- "@sebastienrousseau/crypto-kms": "0.0.36",
32
- "@sebastienrousseau/crypto-lib": "0.0.36"
31
+ "@sebastienrousseau/crypto-kms": "0.0.38",
32
+ "@sebastienrousseau/crypto-lib": "0.0.38"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/chai": "^5.2.3",
@@ -72,7 +72,7 @@
72
72
  "scripts": {
73
73
  "build": "tsc --build tsconfig.json",
74
74
  "clean": "rimraf ./coverage ./dist ./docs",
75
- "test": "c8 --check-coverage --lines 100 --branches 100 --functions 100 --reporter=lcov --reporter=text mocha --config=.mocharc.cjs",
75
+ "test": "c8 --check-coverage --statements 100 --lines 100 --branches 100 --functions 100 --reporter=lcov --reporter=text mocha --config=.mocharc.cjs",
76
76
  "test:run": "mocha --config=.mocharc.cjs",
77
77
  "docs": "typedoc",
78
78
  "lint": "eslint src __tests__",