13 releases

Uses new Rust 2021

0.4.1 Jul 19, 2022
0.3.6 Mar 13, 2022
0.2.4 Apr 18, 2021
0.2.0 Mar 23, 2021
0.1.0 Nov 20, 2020

#90 in Cryptography

Download history 506/week @ 2022-04-22 603/week @ 2022-04-29 913/week @ 2022-05-06 896/week @ 2022-05-13 720/week @ 2022-05-20 803/week @ 2022-05-27 796/week @ 2022-06-03 2304/week @ 2022-06-10 1910/week @ 2022-06-17 1305/week @ 2022-06-24 1846/week @ 2022-07-01 1351/week @ 2022-07-08 1816/week @ 2022-07-15 1354/week @ 2022-07-22 1228/week @ 2022-07-29 1260/week @ 2022-08-05

5,834 downloads per month
Used in 3 crates (via shadowsocks)

MIT license

205KB
5.5K SLoC

shadowsocks-crypto

Build & Test

shadowsocks' flavored cryptographic algorithm in pure Rust.

Supported Ciphers

Stream Ciphers:

  • SS_TABLE
  • SS_RC4_MD5
  • AES_128_CTR, AES_192_CTR, AES_256_CTR
  • AES_128_CFB1, AES_128_CFB8, AES_128_CFB128, AES_192_CFB1, AES_192_CFB8, AES_192_CFB128, AES_256_CFB1, AES_256_CFB8, AES_256_CFB128
  • AES_128_OFB, AES_192_OFB, AES_256_OFB
  • CAMELLIA_128_CTR, CAMELLIA_192_CTR, CAMELLIA_256_CTR
  • CAMELLIA_128_CFB1, CAMELLIA_128_CFB8, CAMELLIA_128_CFB128, CAMELLIA_192_CFB1, CAMELLIA_192_CFB8, CAMELLIA_192_CFB128, CAMELLIA_256_CFB1, CAMELLIA_256_CFB8, CAMELLIA_256_CFB128
  • CAMELLIA_128_OFB, CAMELLIA_192_OFB, CAMELLIA_256_OFB
  • RC4
  • CHACHA20 (IETF Version)

AEAD Ciphers:

  • AES_128_CCM, AES_256_CCM
  • AES_128_GCM, AES_256_GCM
  • AES_128_GCM_SIV, AES_256_GCM_SIV
  • CHACHA20_POLY1305 (IETF Version)
  • XCHACHA20_POLY1305 (IETF Version)
  • AES_128_OCB_TAGLEN128, AES_192_OCB_TAGLEN128, AES_256_OCB_TAGLEN128
  • AES_SIV_CMAC_256, AES_SIV_CMAC_384, AES_SIV_CMAC_512

AEAD 2022 Ciphers (SIP022):

  • AEAD2022_BLAKE3_AES_128_GCM, AEAD2022_BLAKE3_AES_256_GCM
  • AEAD2022_BLAKE3_CHACHA20_POLY1305, AEAD2022_BLAKE3_CHACHA8_POLY1305

Dependencies

~0.5–3.5MB
~72K SLoC