Update fallback (mandatory) AEAD algorithm to OCB

This has been changed in the crypto refresh.
This commit is contained in:
Daniel Huigens 2022-12-06 19:32:27 +01:00 committed by larabr
parent f21e327e69
commit 5391bcc1bc

View File

@ -144,9 +144,9 @@ export async function getPreferredHashAlgo(key, keyPacket, date = new Date(), us
* @async
*/
export async function getPreferredAlgo(type, keys = [], date = new Date(), userIDs = [], config = defaultConfig) {
const defaultAlgo = { // these are all must-implement in rfc4880bis
const defaultAlgo = { // these are all must-implement in the crypto refresh
'symmetric': enums.symmetric.aes128,
'aead': enums.aead.eax,
'aead': enums.aead.ocb,
'compression': enums.compression.uncompressed
}[type];
const preferredSenderAlgo = {