mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-14 02:06:39 +00:00
Add (non-experimental) GCM
Also, set it as the preferred AEAD algorithm.
This commit is contained in:
parent
5078b8a66d
commit
b6dc112eb3
@ -58,7 +58,7 @@ export default {
|
|||||||
* @memberof module:config
|
* @memberof module:config
|
||||||
* @property {Integer} preferredAEADAlgorithm Default AEAD mode {@link module:enums.aead}
|
* @property {Integer} preferredAEADAlgorithm Default AEAD mode {@link module:enums.aead}
|
||||||
*/
|
*/
|
||||||
preferredAEADAlgorithm: enums.aead.eax,
|
preferredAEADAlgorithm: enums.aead.gcm,
|
||||||
/**
|
/**
|
||||||
* Chunk Size Byte for Authenticated Encryption with Additional Data (AEAD) mode
|
* Chunk Size Byte for Authenticated Encryption with Additional Data (AEAD) mode
|
||||||
* Only has an effect when aeadProtect is set to true.
|
* Only has an effect when aeadProtect is set to true.
|
||||||
|
@ -197,6 +197,7 @@ export default {
|
|||||||
aead: {
|
aead: {
|
||||||
eax: 1,
|
eax: 1,
|
||||||
ocb: 2,
|
ocb: 2,
|
||||||
|
gcm: 3,
|
||||||
experimentalGCM: 100 // Private algorithm
|
experimentalGCM: 100 // Private algorithm
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user