Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ECDH and ECMR "alg" values #29

Open
tgross35 opened this issue Apr 17, 2023 · 0 comments
Open

Support ECDH and ECMR "alg" values #29

tgross35 opened this issue Apr 17, 2023 · 0 comments

Comments

@tgross35
Copy link
Contributor

From https://manpages.ubuntu.com/manpages/bionic/man1/jose-jwk-exc.1.html:

The ECDH algorithm performs a standard elliptic curve multiplication such that the public value of \p rem is multiplied by the private value of \p.
The ECMR algorithm has three modes of operation. Where the local key has a private key (the "d" property), it performs exactly like ECDH. If the local key does not have a private key and the remote key does have a private key, elliptic curve addition is performed on the two values. Otherwise, if neither the local key nor the remote key have a private key, the remote key is subtracted from the local key using elliptic curve subtraction. When using ECMR, be sure to validate the content of your inputs to avoid triggering the incorrect operation

I'm not sure what the scope of this project is meant to be, but this format is used with clevis/tang so is at least somewhat common

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

No branches or pull requests

1 participant