Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | to be confirmed |
RFC? / Specification | no |
Version | v1.x |
At the moment, the packages web-token/jwt-signature
and web-token/jwt-encryption
come with a bunch of algorithms.
This causes some problems and unnecessary requirements (OpenSSL, libSodium...) for applications that use a limited list of algorithms (e.g. HSxxx
).
This can be linked to the #97 that introduces new algorithms.
The idea is to remove the algorithms from the two packages listed above and create dedicated packages.
These dedicated packages will be required for v1.x
of the project to avoid BC breaks, but will be decoupled for next major revisions and only suggested.
Following packages will be created:
- For signature:
web-token/jwt-signature-algorithm-none
:none
algorithmweb-token/jwt-signature-algorithm-rsa
: allRSxxx
andPSxxx
algorithmsweb-token/jwt-signature-algorithm-ecdsa
: allESxxx
algorithmsweb-token/jwt-signature-algorithm-eddsa
:EdDSA
algorithmweb-token/jwt-signature-algorithm-hmac
: allHSxxx
algorithms
- For encryption:
web-token/jwt-encryption-algorithm-aeskw
: allAxxxKW
algorithmsweb-token/jwt-encryption-algorithm-aesgcmkw
: allAxxxGCMKW
algorithmsweb-token/jwt-encryption-algorithm-dir
:dir
algorithmweb-token/jwt-encryption-algorithm-ecdh-es
: allECDH-ES
algorithmsweb-token/jwt-encryption-algorithm-pbes2
: allPBES2-HSxxx+AyyyKW
algorithmsweb-token/jwt-encryption-algorithm-rsa
: allRSA*
algorithmsweb-token/jwt-encryption-algorithm-aescbc
: allAxxxCBC+HSyyy
algorithmsweb-token/jwt-encryption-algorithm-aesgcm
: allAxxxGCM
algorithms