#cipher

cryptape-sm

A Rust Library of China's Standards of Encryption Algorithms (SM2/3/4)

1 unstable release

Uses old Rust 2015

0.3.0 Sep 3, 2019

#56 in #cipher

Download history 27/week @ 2023-10-26 20/week @ 2023-11-02 24/week @ 2023-11-09 22/week @ 2023-11-16 27/week @ 2023-11-23 19/week @ 2023-11-30 17/week @ 2023-12-07 21/week @ 2023-12-14 20/week @ 2023-12-21 10/week @ 2023-12-28 25/week @ 2024-01-04 25/week @ 2024-01-11 18/week @ 2024-01-18 15/week @ 2024-01-25 10/week @ 2024-02-01 22/week @ 2024-02-08

68 downloads per month
Used in 2 crates (via hasher)

Apache-2.0

74KB
2K SLoC

Libsm

Libsm is an open source pure rust library of China Cryptographic Algorithm Standards. It is completed by a collaborative effort between the Cryptape Technology LLC. and BEIHANG KNOC LAB. And now this project is maintained by Cryptape Technology LLC.

GM/T Algorithms

Libsm implements the following GM/T cryptographic algorithms:

  • SM2 (GM/T 0003-2012): elliptic curve cryptographic schemes including digital signature scheme, public key encryption, (authenticated) key exchange protocol and one recommended 256-bit prime field curve sm2p256v1.
  • SM3 (GM/T 0004-2012): cryptographic hash function with 256-bit digest length.
  • SM4 (GM/T 0002-2012): block cipher with 128-bit key length and 128-bit block size, also named SMS4.

Documents

License

Libsm is currently under the Apache 2.0 license.

Dependencies

~1.5MB
~30K SLoC