mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
Update fallback (mandatory) AEAD algorithm to OCB
This has been changed in the crypto refresh.
This commit is contained in:
parent
f21e327e69
commit
5391bcc1bc
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user