Skip to content

Commit 047987b

Browse files
committed
WIP
1 parent cfcddaf commit 047987b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test-bootstrapping.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,14 @@ async function main () {
382382

383383
// I think we don't need the salt, simply because no precomputation attack is possible here
384384

385+
// 2 options
386+
// alg: dir - https://datatracker.ietf.org/doc/html/draft-ietf-jose-json-web-algorithms-18#section-4.5 - directly using a symmetric shared secret using ECDH and HKDF?
387+
// alg: A256KW - https://datatracker.ietf.org/doc/html/draft-ietf-jose-json-web-algorithms-18#section-4.4
388+
// I still think you'd use A256KW... which ends up with its own CEK encrypting the DEK
389+
// Then you provide a password to do the encryption
390+
// that password could be ECDH plus HKDF-Extract?
391+
392+
385393

386394

387395
// console.log(nobleEd.utils.randomPrivateKey());

0 commit comments

Comments
 (0)