Skip to content

Commit

Permalink
Merge pull request #684 from lwinxp/main
Browse files Browse the repository at this point in the history
fix: myinfo encryptedAndSignedPersona to use enc A256GCM
  • Loading branch information
LoneRifle authored Sep 12, 2024
2 parents c9cebab + 448a51e commit 707250c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express/myinfo/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports =
const encryptedAndSignedPersona = await new jose.CompactEncrypt(
Buffer.from(sign),
)
.setProtectedHeader({ alg: 'RSA-OAEP', enc: 'A128CBC-HS256' })
.setProtectedHeader({ alg: 'RSA-OAEP', enc: 'A256GCM' })
.encrypt(publicKey)
return encryptedAndSignedPersona
}
Expand Down

0 comments on commit 707250c

Please sign in to comment.