Results 41 comments of Brent Shambaugh

I can help with this if you want.

This ramble thread may not make sense to many. I'm trying to go through the https://github.com/decentralized-identity/did-jwt/blob/master/src/xc20pEncryption.ts code and seeing how I can map over to JWE for P-256.

psudocode for what I think a code chunk might look like: const kek = concatKDF(sharedSecret, keyLen, alg) const res = aeskw(kek)(cek) /// maybe this is what "using Concat KDF and...

I feel like I have to match all (or most) of these interfaces for JWE encryption/decryption with P-256: https://github.com/decentralized-identity/did-jwt/blob/master/src/JWE.ts#L11-L66

Aside from RFC7516 and RFC7518 this is the best documentation I have found for JWE: https://www.youtube.com/watch?v=0r-ZDqpYYYI (JSON Web Encryption[JWE] - JWT_3 -- 100bytes.com)

Here is how Transmute does it for P-384: https://github.com/transmute-industries/did-key.js/blob/c9a478da12508fefd8018d82ab95638ea6980dd7/packages/did-key-web-crypto/README.md#ecdh-esa256kw

Here are some of my notes ![ed25519Encryption](https://user-images.githubusercontent.com/4206177/162118937-53bfe40b-9d57-4780-9b78-ec11e76b8762.PNG) I realize I have not read every word in RFC 7516 and RFC 7518. I will do this tomorrow. Like a drunkard walking...

I believe xc20encrpyter should be replaced with a function using aes-gcm instead or possibly kept as xc20encrypter (chacha20-poly1305). it corresponds to the "ec" parameter. a256kw corresponds to the "alg" parameter....

compare content encryption algorithm "aes-gcm" with key wrapping "a256kw"

@mirceanis , I have a big checklist of what I need to do, and this doesn't hit the top. Thanks for outlining this. I'll keep it in mind for another...