You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree! The problem is not decrypt, but rather encrypt that adds the y value even when ECDH was done with Curve25519 or Curve448. Decrypt then just echoes the unprotected header that was passed in. This is also only a problem for unprotected header since protected one is serialized as JSON then base64url encoded, so undefined is never a part of it.
What happened?
This is a very minor point, but it might confuse some folks less familiar with OKP.
decrypted unprotectedHeader epk contains undefined y point for kty okp.
I would not expect to see a
y
point forX25519
ever, even if it was undefined.Version
4.3.8
Runtime
Node.js
Runtime Details
v14.15.5
Code to reproduce
Required
The text was updated successfully, but these errors were encountered: