package sm

  1. Overview
  2. No Docs
Pure OCaml Chinese National Cryptographic Algorithm Library (SM2/SM3/SM4/ZUC)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sm-0.1.1.tbz
sha256=4d85071a2448f91c7d6d792c1563ca2690c20e22ba188ed7bd20356e4ba684dc
sha512=0e2bbcaaeeab12a9af1287ff4ae3e0197eb6f2eafdcc337d8baf9feefca0b1575fbc043517033b22b78918d214e9ae613c2db033fd51c97a5ca5a8d28cd2198c

Description

Pure OCaml Chinese National Cryptographic Algorithm Library, supporting SM2 (key derivation, signature generation and verification, encryption and decryption, key exchange, DER/PEM/ASN.1 encoding/decoding), SM3 (digest), SM4 (single-block, CBC, CTR, GCM, streaming context), and ZUC-128 (keystream generation and stream encryption/decryption).

Published: 11 Apr 2026

Dependencies (2)

  1. ocaml >= "4.14.2"
  2. dune >= "3.22"

Dev Dependencies (2)

  1. odoc with-doc
  2. alcotest with-test & < "1.8.0"

Used by

None

Conflicts

None