F.Y.I.
To complete the path set for JCS [1], I'm now adding a matching encryption
container.
The following is an example of content encryption using this scheme:
{
"encryptedKey": {
"algorithm": "ECDH-ES",
"publicKey": {
"type": "EC",
"curve": "P-256",
"x": "mPUKT_bAWGHIhg0TpjjqVsP1rXWQu_vwVOHHtNkdYoA",
"y": "8BQAsImGeAS46fyWw5MhYfGTT0IjBpFw2SS34Dv4Irs"
},
"ephemeralKey": {
"type": "EC",
"curve": "P-256",
"x": "6D1p7CKDY2OPd5p4lWVIEsPP2C5Dd_acjPb9B9LJ0k4",
"y": "5mgTVac-kqu6MOxshaVztXtM6vLAfhLIBO-Y5b_5Ktw"
}
},
"algorithm": "A128CBC-HS256",
"iv": "-WGASYtmJG-GIDGrKHmArQ",
"tag": "d_UPDB3LdA72EyxWsTi3Uw",
"cipherText": "EjPuAUfYNc9JuWmyRZDkaK5e0VjFQrytj5NXEl32CRc"
}
Anders
1] https://cyberphone.github.io/openkeystore/resources/docs/jcs.html
_______________________________________________
jose mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/jose