Skip to content

Commit

Permalink
chacha20_poly1305: Split integrated/non-integrated impls.
Browse files Browse the repository at this point in the history
Split up the implementations so that future refactorings to the
CPU-feature-based dispatching logic will be easier.

The input length checking is done in every function since it
potentially affects the correctness and memory safety of each
assembly language function, and we want to encapsulte the call to
each `unsafe` assembly language function with a safe wrapper.

```
git difftool HEAD^1:src/aead/chacha20_poly1305.rs \
                    src/aead/chacha20_poly1305/mod.rs
git difftool HEAD^1:src/aead/chacha20_poly1305.rs \
                    src/aead/chacha20_poly1305/integrated.rs
```
  • Loading branch information
briansmith committed Jan 17, 2025
1 parent cc18993 commit 9725878
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 290 deletions.
289 changes: 0 additions & 289 deletions src/aead/chacha20_poly1305.rs

This file was deleted.

Loading

0 comments on commit 9725878

Please sign in to comment.