22 releases

0.5.8 Nov 2, 2024
0.5.5 Jun 14, 2024
0.5.4 Dec 3, 2023
0.5.3 Nov 28, 2023
0.1.0 Nov 20, 2020

#152 in Cryptography

Download history 11141/week @ 2024-08-21 11689/week @ 2024-08-28 10697/week @ 2024-09-04 7974/week @ 2024-09-11 11693/week @ 2024-09-18 9548/week @ 2024-09-25 11110/week @ 2024-10-02 9513/week @ 2024-10-09 11198/week @ 2024-10-16 12408/week @ 2024-10-23 11958/week @ 2024-10-30 10816/week @ 2024-11-06 13709/week @ 2024-11-13 14082/week @ 2024-11-20 14231/week @ 2024-11-27 11638/week @ 2024-12-04

55,480 downloads per month
Used in 5 crates (2 directly)

MIT license

155KB
3.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
  • SM4_GCM, SM4_CCM

AEAD 2022 Ciphers (SIP022):

  • AEAD2022_BLAKE3_AES_128_GCM, AEAD2022_BLAKE3_AES_256_GCM
  • AEAD2022_BLAKE3_CHACHA20_POLY1305, AEAD2022_BLAKE3_CHACHA8_POLY1305

Dependencies

~0.2–8.5MB
~87K SLoC