Skip to content

v0.1.5

Latest

Choose a tag to compare

@shaogme shaogme released this 22 Jul 07:36
· 19 commits to master since this release
3d10439

What's Changed

  • v0.1.5 by @ShaoG-R in #41
  • v0.1.5 by @ShaoG-R in #42

新特性与重构 | New Features & Refactoring

1. 对称加密模块重构为 AEAD (Symmetric Encryption Module Refactored to AEAD)

为了更准确地反映其功能并与现代密码学领域的标准术语保持一致,我们将 symmetric 模块全面重构为 aead(带关联数据的认证加密)。此次重构旨在提升代码的清晰度和专业性。

To more accurately reflect its functionality and align with standard terminology in modern cryptography, the symmetric module has been comprehensively refactored to aead (Authenticated Encryption with Associated Data). This refactoring aims to improve the clarity and professionalism of the codebase.

  • 核心概念与 Trait 重命名 (Core Concept and Trait Renaming)

    • 中文: 本次重构的核心是将“对称加密”的概念具体化为“AEAD”。所有相关的 Trait 名称都进行了相应更新,以准确表示其作为 AEAD 方案的角色。
    • English: The core of this refactoring was to specify the concept of "symmetric encryption" as "AEAD". All related trait names have been updated accordingly to accurately represent their roles as AEAD schemes.
    • 变更详情 (Change Details):
      • SymmetricCipher -> AeadCipher
      • SymmetricEncryptor -> AeadEncryptor
      • SymmetricDecryptor -> AeadDecryptor
  • 模块与目录结构调整 (Module and Directory Structure Adjustment)

    • 中文: 整个项目中的模块、目录和文件路径都已更新,以反映从 symmetric 到 aead 的转变。
    • English: Modules, directories, and file paths throughout the project have been updated to reflect the transition from symmetric to aead.
    • 影响范围 (Affected Paths):
      • benches/symmetric/ -> benches/aead/
      • src/schemes/symmetric.rs -> src/schemes/aead.rs
      • src/systems/symmetric/ -> src/systems/aead/
      • 所有相关的 use 路径已在整个代码库中更新。 (All relevant use paths have been updated throughout the codebase.)
  • 实现与测试代码更新 (Implementation and Test Code Updates)

    • 中文: aes_gcm 和 chacha20_poly1305 的具体实现已更新,以实现新的 Aead 相关 Trait。同时,单元测试也已更新,以确保重构后的功能正确无误。
    • English: The concrete implementations of aes_gcm and chacha20_poly1305 have been updated to implement the new Aead-related traits. Unit tests have also been updated to ensure the functionality remains correct after refactoring.
    • 影响范围 (Affected Implementations):
      • src/systems/aead/aes_gcm.rs
      • src/systems/aead/chacha20_poly1305.rs
  • 文档、示例与错误信息更新 (Updates to Documentation, Examples, and Error Messages)

    • 中文: README 文件、API 文档注释、示例代码以及错误类型 Error::Symmetric 的描述均已更新,以反映新的 aead 术语,确保用户文档的一致性。
    • English: The README files, API documentation comments, example code, and the description for the Error::Symmetric error type have been updated to reflect the new aead terminology, ensuring consistency in user-facing documentation.
    • 影响范围 (Affected Files):
      • README.md, README_CN.md
      • examples/hybrid_encryption.rs
      • src/errors.rs

Full Changelog: v0.1.4...v0.1.5