1 unstable release

0.1.2 Apr 17, 2021
0.1.1 Nov 20, 2020
0.1.0 Nov 20, 2020

#2137 in Cryptography

Download history 27/week @ 2024-07-20 38/week @ 2024-07-27 13/week @ 2024-08-03 11/week @ 2024-08-10 7/week @ 2024-08-17 6/week @ 2024-08-24 4/week @ 2024-08-31 8/week @ 2024-09-07 2/week @ 2024-09-14 26/week @ 2024-09-21 28/week @ 2024-09-28 13/week @ 2024-10-05 35/week @ 2024-10-12 5/week @ 2024-10-19 6/week @ 2024-10-26 15/week @ 2024-11-02

63 downloads per month
Used in aes-keywrap-rs

MIT license

580KB
11K SLoC

Rust Crypto

Contents

🚧 Interested but not implemented yet ✅ Implemented ❌ Not Interested

Hardware Acceleration

X86/X86-64:

  • ✅ AES
  • ✅ CLMUL
  • ❌ SHA(SHA1)
  • ✅ SHA(SHA2-256)

AArch64:

  • ✅ AES
  • ✅ PMULL
  • ❌ SHA1
  • ✅ SHA2 (SHA2-256)
  • ❌ SHA512 (SHA2-512)
  • ❌ SHA3
  • ❌ SM3
  • ❌ SM4

Digest Algorithms

  • ✅ MD2
  • ✅ MD4
  • ✅ MD5
  • ❌ MD6
  • ✅ SHA1
  • ✅ SHA2-224
  • ✅ SHA2-256
  • ✅ SHA2-384
  • ✅ SHA2-512
  • 🚧 SHA3-256
  • 🚧 SHA3-384
  • 🚧 SHA3-512
  • ✅ SM3
  • ❌ BLAKE2b
  • ❌ BLAKE2s
  • ❌ BLAKE3
  • ❌ RIPEMD
  • ❌ Whirlpool
  • 🚧 GOST

Symmetric Key Encryption (Block Alogrithms)

  • ❌ DES
  • ❌ 3DES
  • ✅ RC2 (or: ARC2)
  • 🚧 RC5
  • ❌ RC6
  • ✅ AES
  • ✅ SM4
  • ✅ Camellia
  • ✅ ARIA
  • 🚧 GOST(Magma、Kuznyechik)
  • ❌ Blowfish
  • ❌ Twofish
  • ❌ Threefish

Stream Cipher Alogrithms

  • ✅ RC4
  • ✅ Chacha20
  • 🚧 ZUC (in Chinese: 祖冲之算法)

Asymmetric Cryptographic Algorithm

  • 🚧 RSA
  • ❌ ED25519
  • 🚧 SM2 (基于椭圆曲线:签名算法、密钥交换算法、加密算法)
  • 🚧 SM9 (基于离散对数的机制:签名算法、密钥交换算法、加密算法)

Authenticated Encryption (AE) Algorithms

  • ✅ Chacha20Poly1305 (RFC7539)
  • ✅ Chacha20Poly1305OpenSSH (chacha20-poly1305@openssh.com)
  • ✅ AES-CCM
  • ✅ AES-OCB
  • ✅ AES-GCM
  • ✅ AES-GCM-SIV
  • ✅ AES-SIV (AesSivCmac256、AesSivCmac384、AesSivCmac512)
  • ✅ CAMELLIA-CCM
  • ✅ CAMELLIA-GCM
  • ✅ CAMELLIA-GCM-SIV
  • ✅ ARIA-CCM
  • ✅ ARIA-GCM
  • ✅ ARIA-GCM-SIV
  • ✅ SM4-CCM
  • ✅ SM4-GCM
  • ✅ SM4-GCM-SIV

Encryption Algorithms

  • ✅ AES-ECB
  • ✅ AES-CBC
  • ✅ AES-CFB1
  • ✅ AES-CFB8
  • ✅ AES-CFB64
  • ✅ AES-CFB128
  • ✅ AES-OFB
  • ✅ AES-CTR
  • ✅ CAMELLIA-CBC
  • ✅ CAMELLIA-CFB1
  • ✅ CAMELLIA-CFB8
  • ✅ CAMELLIA-CFB64
  • ✅ CAMELLIA-CFB128
  • ✅ CAMELLIA-OFB
  • ✅ CAMELLIA-CTR
  • ✅ ARIA-CBC
  • ✅ ARIA-CFB1
  • ✅ ARIA-CFB8
  • ✅ ARIA-CFB64
  • ✅ ARIA-CFB128
  • ✅ ARIA-OFB
  • ✅ ARIA-CTR
  • ✅ SM4-CBC
  • ✅ SM4-CFB1
  • ✅ SM4-CFB8
  • ✅ SM4-CFB64
  • ✅ SM4-CFB128
  • ✅ SM4-OFB
  • ✅ SM4-CTR

Key Derivation Function (KDF)

  • ✅ HKDF
  • 🚧 Scrypt
  • ❌ PBKDF2

Message Authentication Code (MAC)

  • ✅ HMAC
  • ✅ Poly1305
  • ✅ GMAC
  • ✅ CBC-Mac
  • ✅ CMac

Others

  • 🚧 bcrypt

No runtime deps