#cipher #cryptography #block-cipher #public-key #encryption-key

wedpr_l_libsm

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

5 releases

Uses old Rust 2015

0.3.5 Apr 9, 2021
0.3.4 Apr 2, 2021
0.3.2 Mar 16, 2021
0.3.1 Dec 23, 2020
0.3.0 Dec 23, 2020

#79 in #block-cipher

Download history 178/week @ 2024-11-13 274/week @ 2024-11-20 140/week @ 2024-11-27 80/week @ 2024-12-04 172/week @ 2024-12-11 72/week @ 2024-12-18 92/week @ 2024-12-25 12/week @ 2025-01-01 24/week @ 2025-01-08 119/week @ 2025-01-15 7/week @ 2025-01-22 232/week @ 2025-02-05 150/week @ 2025-02-12 121/week @ 2025-02-19 48/week @ 2025-02-26

551 downloads per month
Used in 5 crates (4 directly)

Apache-2.0

82KB
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
~24K SLoC