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

Switch to c2-chacha crate for ChaCha20-IETF #84

Merged
merged 1 commit into from
Mar 13, 2020
Merged

Switch to c2-chacha crate for ChaCha20-IETF #84

merged 1 commit into from
Mar 13, 2020

Conversation

str4d
Copy link
Owner

@str4d str4d commented Mar 13, 2020

Improves encryption throughput by around 60% over standard, and around 10% when compiled with the AVX2 flag, because c2-chacha uses AVX2 when available.

Part of #57.

Improves encryption throughput by around 60% over standard, and around
10% when compiled with the AVX2 flag, because c2-chacha uses AVX2 when
available.
@codecov
Copy link

codecov bot commented Mar 13, 2020

Codecov Report

Merging #84 into master will increase coverage by 1.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
+ Coverage   49.69%   50.72%   +1.03%     
==========================================
  Files          23       23              
  Lines        1793     1790       -3     
==========================================
+ Hits          891      908      +17     
+ Misses        902      882      -20
Impacted Files Coverage Δ
age/src/primitives/stream.rs 90.68% <100%> (+2.02%) ⬆️
rage/src/bin/rage-keygen/main.rs 0% <0%> (ø) ⬆️
age/src/format.rs 90% <0%> (+1.11%) ⬆️
age/src/protocol.rs 81.63% <0%> (+2.04%) ⬆️
age/src/primitives/armor.rs 75.91% <0%> (+2.18%) ⬆️
age/src/keys.rs 58.14% <0%> (+2.73%) ⬆️
age/src/openssh.rs 55.22% <0%> (+2.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3cb8f69...7688048. Read the comment docs.

@str4d str4d merged commit 507de70 into master Mar 13, 2020
@str4d str4d deleted the 57-c2-chacha branch March 13, 2020 23:02
@@ -21,7 +21,8 @@ age-core = { version = "0.3.1", path = "../age-core" }
base64 = "0.11"

# - ChaCha20-Poly1305 from RFC 7539
chacha20poly1305 = "0.3"
c2-chacha = "0.2"
chacha20poly1305 = "0.4"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, you should be able to do:

chacha20poly1305 = { version = "0.4", default = false }

...which will eliminate the chacha20 dependency, which is redundant if you're using c2-chacha

/cc @cryptocorrosion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants