Closed polewskm closed 3 months ago
Hi @polewskm ,
thanks for snippet. Is it actually working under linux? I don't see calls to Encode
`Decode` ?
Assuming the code is for derivation part here: https://github.com/dvsekhvalnov/jose-jwt/blob/master/jose-jwt/jwa/EcdhKeyManagement.cs#L92 ?
Yes, my implementation is working on Linux. To be clear, you would have to:
ConcatKDF.DeriveKey
to NOT use ECDiffieHellmanCng
(notice the ...Cng
suffix here)SP800_56A_CONCAT
in LinuxSP800_56A_CONCAT
yourselfSP800_56A_CONCAT
on Linux using ECDiffieHellman
(notice that lack of ...Cng
in the suffix here)...Cng
classes cannot be used on Linux as they are Windows onlySp800_56a is easy to bring, have it somewhere in Go version of lib.
So if you have working version, mind PR then? :)
Sure can do. It might be a week or two before I submit a PR though.
Will greatly appreciate, thank you.
@dvsekhvalnov @polewskm is there a PR for this?
@deepak-sidhyati , haven't seen PR so far.
Can may be find some time to port it over myself, but can't commit on timeline.
Sorry, I have been terrible busy with other projects and haven't found the time to work on this yet.
Looking forward to this one getting ready to be used as well.
Looking forward to this one getting ready to be used as well.
Just want to let you know. I got the code snippet posted by @polewskm and followed his instructions on what should be done. I was able to run the existing unit test for the ConcatKDF class but invoking my method (@polewskm's code) and it passed! Which is great. I'll change the code that uses the ConcatKDF to invoke this new method and see if the unit tests pass overall. I'll come up with a PR in the next few days and you guys can review if it makes sense or not.
Hi @digaomatias , great news, PRs always welcome :)
v5.0.0 released to nuget.org
https://github.com/dvsekhvalnov/jose-jwt/releases/tag/v5.0.0
See the following: https://github.com/polewskm/jose-jwt-ecdh