Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChaCha20 CTR Encryption #169

Merged
merged 22 commits into from
Apr 18, 2023
Merged

ChaCha20 CTR Encryption #169

merged 22 commits into from
Apr 18, 2023

Commits on Apr 11, 2023

  1. Configuration menu
    Copy the full SHA
    d3f7a0a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d98e4b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70092b9 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. Corrected year in header

    btoms20 committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    bcb5992 View commit details
    Browse the repository at this point in the history
  2. Changed return type to Data. Removed redundant pointer castings. Remo…

    …ved unnecessary array allocations in favor of withUnsafeBytes.
    btoms20 committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    1c7dcfc View commit details
    Browse the repository at this point in the history
  3. Introduced a typed ChaCha20CTR Nonce and Counter struct in order to h…

    …elp enforce parameter constraints and type safety.
    btoms20 committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    56aff30 View commit details
    Browse the repository at this point in the history
  4. Formatting

    btoms20 committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    ab456f5 View commit details
    Browse the repository at this point in the history
  5. Updated tests to use new Nonce and Counter structs. Added additional …

    …test checking for invalid parameters.
    btoms20 committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    9c39e5f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fa934db View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4444431 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5e4fc16 View commit details
    Browse the repository at this point in the history
  9. Moved the bindMemory calls out of the function and copied a note from…

    … a similar situation elsewhere in the codebase.
    btoms20 committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    820660e View commit details
    Browse the repository at this point in the history
  10. Formatting

    btoms20 committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    9926d93 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. Implemented an _encryptContiguous function that prevents having to us…

    …e the withContiguousStorageIfAvailable method. If our DataProtocol is contiguous we encrypt directly, otherwise we consolidate before encrypting. Removed inLen param from chacha20CTR call.
    btoms20 committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    17d166b View commit details
    Browse the repository at this point in the history
  2. Replaced the chacha20CTR function with a direct call to CCryptoBoring…

    …SSL_CRYPTO_chacha_20.
    btoms20 committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    75681f7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2565363 View commit details
    Browse the repository at this point in the history
  4. Formatting

    btoms20 committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    82c9ee6 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. Formatting

    btoms20 committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    a494479 View commit details
    Browse the repository at this point in the history
  2. Replaced unsafe code (unsafeBytes and load) with a more generic and s…

    …afer UInt32 construction.
    btoms20 committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    67dd990 View commit details
    Browse the repository at this point in the history
  3. Replaced counterAsUInt32 definitions with integer literals to avoid s…

    …ymmetric bugs in the load.
    btoms20 committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    7fda9ff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8378522 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. Configuration menu
    Copy the full SHA
    23e9c60 View commit details
    Browse the repository at this point in the history