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

If LocalPreParams are generated out-of-band and then transmitted to the device, are there any security issues? #306

Open
0x10u89 opened this issue Nov 20, 2024 · 0 comments

Comments

@0x10u89
Copy link

0x10u89 commented Nov 20, 2024

// GeneratePreParams finds two safe primes and computes the Paillier secret required for the protocol.
// This can be a time consuming process so it is recommended to do it out-of-band.
// If not specified, a concurrency value equal to the number of available CPU cores will be used.
// If pre-parameters could not be generated before the timeout, an error is returned.
func GeneratePreParams(timeout time.Duration, optionalConcurrency ...int) (*LocalPreParams, error) {
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
return GeneratePreParamsWithContext(ctx, optionalConcurrency...)
}

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

No branches or pull requests

1 participant