Subject: [jose] ECDH-ES in Java for JWE

From: <[email-masked]>
Date: Thu, 31 May 2012 17:06:23 +0200

I whipped something up that I think is not completely bogus.

Encryption:
https://code.google.com/p/openinfocard/source/browse/trunk/src/org/xmldap/json/WebToken.java#699

Decryption:
https://code.google.com/p/openinfocard/source/browse/trunk/src/org/xmldap/json/WebToken.java#644

KDFConcatGenerator:
https://code.google.com/p/openinfocard/source/browse/trunk/src/org/xmldap/crypto/KDFConcatGenerator.java

JUNIT test cases:
https://code.google.com/p/openinfocard/source/browse/trunk/testsrc/org/xmldap/json/WebTokenTest.java#723

I know the code needs more work to make it adhere to the spec. Currently I am not using the epk field but x and y but the semantic should be the same I hope.

Have fun
Axel