Skip to content

Releases: GmSSL/GmSSL-Nodejs

GmSSL-Nodejs v1.0.3

31 May 09:06

Choose a tag to compare

GmSSL-Nodejs v1.0.3

GmSSL Node.js binding — Chinese National Standard Cryptographic Algorithms (SM2/SM3/SM4/SM9/ZUC) for Node.js.

Features

  • N-API native addon wrapping all GmSSL C library functions
  • TypeScript wrappers with full type definitions for all algorithms
  • SM2 — Key generation, sign/verify, encrypt/decrypt, PEM/DER import/export, streaming signature
  • SM3 — Hash, HMAC-SM3, PBKDF2-SM3
  • SM4 — Block cipher (ECB, CBC, CTR, GCM modes)
  • SM9 — Identity-Based Cryptography (sign/encrypt master keys, user keys)
  • ZUC — Stream cipher
  • Certificate — X.509 cert parsing, verification, public key extraction
  • Random — Cryptographically secure random bytes

CI/CD

  • Linux (Ubuntu 22.04) and macOS (macOS 14) CI workflows
  • Node.js 18, 20, 22 support
  • Automated build and test on every push

Tests

  • 49 tests across 6 test suites, all passing
  • Known test vectors verified for SM3, SM3-HMAC, SM3-PBKDF2, SM4

Dependencies

Installation

npm install gmssl-node

Fixes in v1.0.3

  • Update copyright years from 2014-2024 to 2014-2026
  • Fix README.md to use correct package name gmssl-node
  • Cross-platform test compatibility fix for SM4-CBC

🤖 Generated with Claude Code