Open
Conversation
d054762 to
8d0c2cb
Compare
8d0c2cb to
b34750c
Compare
b34750c to
a0151be
Compare
Member
|
I suggest just keeping separate NN_memory, NN_test, NN_keystream and perhaps NN_done like: |
Member
|
plus perhaps also get rid of |
Contributor
Author
|
On 6Nov, 2018, at 1:47 PM, karel-m ***@***.***> wrote:
I suggest just keeping separate NN_memory, NN_test, NN_keystream and perhaps NN_done like:
[snip]
After careful consideration I'm leaning toward each callable function in its own file for reasons of consistency. IMO there is not sufficient advantage to combining some functions, each cipher differently, when some optional and sometine required functions need to be called out for linking individually. For example, the inconsistent model for...
streams combining _setup(), setiv(), and _crypt(): rabbit, sober128, sosemanuk
streams combining _setup(),and _crypt(): rc4
streams combining none: chacha, (x)salsa20
...requires calling out what you need that wasn't combined. Confusing.
Implementing the PR as written makes the decision rule consistent, "if you call it, link it".
|
Member
|
I see your point but to me this is "over-consistent" for no (or very little) gain. Anyway, I am strongly against introducing new headers - |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Some stream ciphers had multiple functions in a file. This PR breaks each callable function out into separate files. Common declarations and some definitions unique to that cipher will be found in a separate local .h file for that cipher. Some guards were added to avoid warnings. Leading underscores were added to the names of sober128's helper functions.
Checklist