Skip to content

Incorrect EC key size defaults to 256bits #13

@KostasTsiounis

Description

@KostasTsiounis

In the ECKey.generate(int numbits), where the key size is provided as a parameter, if the key is not in [192, 224, 256, 384, 521], secp256r1 is used as the default curve without any indication. In this scenario, I feel a more appropriate action would be to throw an exception.

See line

curveidx = 2;

Metadata

Metadata

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