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

Throw error in blake2b hashing when size is unreasonable. #62

Merged
merged 5 commits into from
Nov 18, 2019
Merged

Throw error in blake2b hashing when size is unreasonable. #62

merged 5 commits into from
Nov 18, 2019

Conversation

dspearson
Copy link
Contributor

Relates to: #12.

@codecov-io
Copy link

codecov-io commented Nov 5, 2019

Codecov Report

Merging #62 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #62      +/-   ##
=========================================
+ Coverage    97.7%   97.7%   +<.01%     
=========================================
  Files          17      17              
  Lines         784     786       +2     
  Branches        2       2              
=========================================
+ Hits          766     768       +2     
  Misses         16      16              
  Partials        2       2
Impacted Files Coverage Δ
src/caesium/crypto/generichash.clj 97.05% <100%> (+0.18%) ⬆️

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 f2650a4...7f532f8. Read the comment docs.

(b/call! blake2b buf msg key))
buf))
(if-not (zero?
(if (or salt personal)
Copy link
Owner

Choose a reason for hiding this comment

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

I'd be a little happier if this was factored out into a let to clarify that it's the result of calling blake2b, I think the nesting makes it tricky to read.

Copy link
Contributor Author

@dspearson dspearson Nov 13, 2019

Choose a reason for hiding this comment

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

If I understood you correctly, I just addressed this in 8acf2b8 (and 50f961b, fixing a stupid branching error).

Copy link
Owner

@lvh lvh left a comment

Choose a reason for hiding this comment

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

Looks great modulo the style comment I mentioned :)

@dspearson dspearson requested a review from lvh November 14, 2019 15:54
@lvh lvh merged commit 743450f into lvh:master Nov 18, 2019
@lvh
Copy link
Owner

lvh commented Nov 18, 2019

Looks great, thanks!

@dspearson dspearson deleted the issue-12-blake2b-safety branch November 20, 2019 08:33
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.

3 participants