1 unstable release

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

#1581 in Cryptography

Download history 16/week @ 2024-06-14 17/week @ 2024-06-21 30/week @ 2024-06-28 9/week @ 2024-07-05 22/week @ 2024-07-12 29/week @ 2024-07-19 35/week @ 2024-07-26 15/week @ 2024-08-02 12/week @ 2024-08-09 8/week @ 2024-08-16 5/week @ 2024-08-23 4/week @ 2024-08-30 8/week @ 2024-09-06 3/week @ 2024-09-13 20/week @ 2024-09-20 22/week @ 2024-09-27

54 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