-
Notifications
You must be signed in to change notification settings - Fork 237
Use Iterator<Item = u8>
instead of Expander
#1317
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
Open
carloskiki
wants to merge
23
commits into
RustCrypto:master
Choose a base branch
from
carloskiki:expandmsg-rework
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6f022b9
make hash_to_field output an array
carloskiki 4a0553a
use primitive array instead of `hybrid_array::Array`
carloskiki c4b4c04
fix: all uses of hash_to_field in other crates
carloskiki e42fdf5
ed448-goldilocks v0.14.0-pre.2 (#1293)
tarcieri 8aef23d
Merge remote-tracking branch 'rust-crypto/master'
carloskiki 8bf8531
Merge remote-tracking branch 'rust-crypto/master'
carloskiki 8735cba
Use `Iterator` instead of `Expander`
carloskiki 1798532
chore:fmt
carloskiki 504a1dd
fix: elliptic-curves tests
carloskiki 14b902f
fix: k256 tests
carloskiki a7fef27
fix: voprf lifetime errors
carloskiki 1f7abce
nit: `collect` instead of `from_iter`
carloskiki f791d15
nit: more idiomatic code
carloskiki 3bb770e
nit: more idiomatic code
carloskiki 2302105
nit: clearer procedure
carloskiki 9412675
fix: make it compile
carloskiki 0e5ec56
chore: fmt
carloskiki bf56ba8
fix: compilation errors
carloskiki 6e0339d
`ExpandMsg` add associated type to remove trait lifetime
carloskiki 7a67db1
fix: downstream users
carloskiki b6f7b53
fix: use static as placeholder lifetime
carloskiki 4752c70
separate `ExpandMsgXmd` and `ExpandedXmd`
carloskiki c0ec7da
chore: fmt
carloskiki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets turn this into a
debug_assert!
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the logic here is succinct enough to not need a dbg assert. Since
len_in_bytes <= 255 * b_in_bytes
,len_in_bytes / b_in_bytes <= 255
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me!