Skip to content

Commit

Permalink
Update 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 11, 2024
1 parent c9cebab commit 63befb1
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 63befb1

Please sign in to comment.