Skip to content

Conversation

@larabr
Copy link
Collaborator

@larabr larabr commented Feb 2, 2024

With the standardisation of the Brainpool curves as part of the crypto-refresh, we are renaming the NIST curves to avoid ambiguities.
This is a breaking change, as NIST curves identifiers and values in enums.curves have been renamed:

  • the identifiers enums.curve.p256, .p384, .p521 are now marked as @deprecated
  • the new identifiers are, respectively: enums.curve.nistP256, .nistP384, .nistP521.
  • the corresponding values have been changed from 'p256','p384','p521' to 'nistP256', 'nistP384', 'nistP521'.

Affected high-level API functions:

  • in generateKey, the options.curve argument will expect the updated string values
  • Key.getAlgorithmInfo() will return the updated curve values

… `.nistP{256, 384, 521}`

Also, cleanup `enums.curves` removing internal aliases which are no longer relevant.
@larabr larabr requested a review from twiss February 2, 2024 10:56
@larabr larabr merged commit f64dc3f into openpgpjs:v6 Feb 2, 2024
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.

2 participants