Skip to content

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

@0x10u89

Description

@0x10u89

// 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...)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions