19 个版本

0.5.5 2024年6月14日
0.5.4 2023年12月3日
0.5.3 2023年11月28日
0.5.1 2022年12月13日
0.1.0 2020年11月20日

#135 in 密码学

Download history 9658/week @ 2024-04-26 9659/week @ 2024-05-03 11283/week @ 2024-05-10 9959/week @ 2024-05-17 9733/week @ 2024-05-24 9097/week @ 2024-05-31 9817/week @ 2024-06-07 11695/week @ 2024-06-14 9741/week @ 2024-06-21 8281/week @ 2024-06-28 7518/week @ 2024-07-05 7847/week @ 2024-07-12 9740/week @ 2024-07-19 12400/week @ 2024-07-26 9642/week @ 2024-08-02 9971/week @ 2024-08-09

43,411 每月下载量
5 个crate(2 个直接使用) 中使用

MIT 许可证

155KB
3.5K SLoC

shadowsocks-crypto

Build & Test

纯 Rust 编写的 shadowsocks 风格加密算法。

支持的加密算法

流加密算法

  • 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 版本)

AEAD 加密算法:

  • AES_128_CCM, AES_256_CCM
  • AES_128_GCM, AES_256_GCM
  • AES_128_GCM_SIV, AES_256_GCM_SIV
  • CHACHA20_POLY1305 (IETF 版本)
  • XCHACHA20_POLY1305 (IETF 版本)
  • 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 加密算法 (SIP022)

  • AEAD2022_BLAKE3_AES_128_GCM, AEAD2022_BLAKE3_AES_256_GCM
  • AEAD2022_BLAKE3_CHACHA20_POLY1305, AEAD2022_BLAKE3_CHACHA8_POLY1305

依赖项

~0.5–10MB
~92K SLoC