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

Add support for explicit entropy source in NTRUEncryptionKeyGenerationParameters #653

Closed
wants to merge 1 commit into from

Conversation

hf
Copy link
Contributor

@hf hf commented Jan 30, 2020

It was not possible to use any other entropy source other than CryptoServicesRegistrar#getSecureRandom().

Even worse, the provided parameters use the SecureRandom from the registrar present at class load time which makes it difficult to customize the entropy source used by NTRUEncrypt.

Change is backward compatible, tho I'm planning on opening another PR that deprecates the existing parameters and uses another method of obtaining the standard NTRU parameters where one can specify the entropy source at generation time.

It was not possible to use any other entropy source other than
CrytpoServicesRegistrar#getSecureRandom(). Even worse, the provided
parameters use the SecureRandom from the registrar *present at class
load time* which makes it difficult to customize the SecureRandom used
by NTRUEncrypt.
@bcgit
Copy link
Collaborator

bcgit commented Mar 11, 2020

Thanks for the patch. Now merged with minor changes. Will show up in next beta (165b10).

@bcgit bcgit closed this Mar 11, 2020
ok3141 pushed a commit to ok3141/bc-java that referenced this pull request Apr 14, 2020
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.

None yet

2 participants