Skip to content

Commit

Permalink
fix: myinfo encryptedAndSignedPersona to use enc A256GCM
Browse files Browse the repository at this point in the history
  • Loading branch information
Lim Xuan Ping committed Sep 12, 2024
1 parent c9cebab commit 448a51e
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 448a51e

Please sign in to comment.