#sm3 #block-cipher #hashing #sm4 #mac #shang-mi

neuedu-cryptos-wasm

包含国密算法的密码库。 A library include SM3, SM4 (Chinese ShangMi) crypto algos

3 releases

0.5.4 Dec 8, 2023
0.5.3 Dec 8, 2023
0.5.2 Dec 8, 2023
0.5.1 Dec 8, 2023
0.5.0 Dec 8, 2023

#1887 in Cryptography

32 downloads per month

MIT/Apache

46KB
311 lines

此密码库实现了中华人民共和国国家密码管理局发布的商用密码算法。
This cryptographic library implements the ShangMi algorithms which issued by the State Cryptography Administration of the People's Republic of China.

支持算法列表(Available Algoruthms)

  • 密码杂凑算法(Cryptographic Hash Algoruthms)

    • SM3 - SM3密码杂凑算法(ShangMi 3 Cryptographic Hash Algoruthm)
    • SHA-1 - 安全散列算法1(Secure Hash Algorithm 1)
    • SHA-2 - 安全散列算法2(Secure Hash Algorithm 2)
    • 了解更多(Learn More)
  • 分组密码算法(Block Cipher Algoruthms)

  • 消息鉴别码算法(Message Authentication Code Algoruthms)

支持分组工作模式列表(Available Operation Modes for Block Cipher)

  • ECB - 电码本(Electronic Codebook)
  • CBC - 密文分组链接(Cipher Block Chaining)
  • CFB - 密文反馈(Cipher Feedback)
  • OFB - 输出反馈(Output Feedback)

Dependencies

~0.9–1.5MB
~31K SLoC