An open API service indexing awesome lists of open source software.

https://github.com/shadowsocks/crypto2

The fastest cryptographic library in the galaxy
https://github.com/shadowsocks/crypto2

crypto

Last synced: about 2 months ago
JSON representation

The fastest cryptographic library in the galaxy

Awesome Lists containing this project

README

        

# Rust Crypto

[![License](https://img.shields.io/github/license/shadowsocks/crypto2.svg)](https://github.com/shadowsocks/crypto2)
[![Build & Test](https://github.com/shadowsocks/crypto2/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/shadowsocks/crypto2/actions/workflows/rust.yml)
[![crates.io](https://img.shields.io/crates/v/crypto2.svg)](https://crates.io/crates/crypto2)

An all-in-one cryptographic algorithm library in Rust.

## Supported Details

๐Ÿšง 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 ([email protected])
- โœ… 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