X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fversion-parameters.js;fp=lib%2Fversion-parameters.js;h=9af7d49d61eee45b8ee4922abc7f6f66ab30100f;hb=b3d316d4fa45a66db0dd7b08a34e79eb97898180;hp=80a09356c28c3a3bb7cc1afbeb2b570d68e133a2;hpb=75c98d382607b7d6bcfba9f97cc9edabb6f0395b;p=squeep-mystery-box diff --git a/lib/version-parameters.js b/lib/version-parameters.js index 80a0935..9af7d49 100644 --- a/lib/version-parameters.js +++ b/lib/version-parameters.js @@ -15,6 +15,7 @@ const allVersions = { ivBytes: 12, saltBytes: 16, tagBytes: 16, + keyDeriver: 'scrypt', keyBytes: 32, }, 2: { @@ -28,11 +29,12 @@ const allVersions = { ivBytes: 12, saltBytes: 16, tagBytes: 16, + keyDeriver: 'scrypt', keyBytes: 32, }, 3: { version: 3, - algorithm: 'xchacha20-poly1305', // Not yet available... + algorithm: 'xchacha20-poly1305', // Not yet available, but would prefer even more... algOptions: { authTagLength: 16, }, @@ -41,6 +43,87 @@ const allVersions = { ivBytes: 24, saltBytes: 16, tagBytes: 16, + keyDeriver: 'scrypt', + keyBytes: 32, + }, + 4: { + version: 4, + algorithm: 'aes-256-gcm', + algOptions: {}, + versionBytes: 1, + flagsBytes: 1, + ivBytes: 12, + saltBytes: 16, + tagBytes: 16, + keyDeriver: 'shake256', + keyBytes: 32, + }, + 5: { + version: 5, + algorithm: 'chacha20-poly1305', + algOptions: { + authTagLength: 16, + }, + versionBytes: 1, + flagsBytes: 1, + ivBytes: 12, + saltBytes: 16, + tagBytes: 16, + keyDeriver: 'shake256', + keyBytes: 32, + }, + 6: { + version: 6, + algorithm: 'xchacha20-poly1305', // Not yet available, but would prefer even more... + algOptions: { + authTagLength: 16, + }, + versionBytes: 1, + flagsBytes: 1, + ivBytes: 24, + saltBytes: 16, + tagBytes: 16, + keyDeriver: 'shake256', + keyBytes: 32, + }, + 7: { + version: 7, + algorithm: 'aes-256-gcm', + algOptions: {}, + versionBytes: 1, + flagsBytes: 1, + ivBytes: 12, + saltBytes: 16, + tagBytes: 16, + keyDeriver: 'blake2b512', + keyBytes: 32, + }, + 8: { + version: 8, + algorithm: 'chacha20-poly1305', + algOptions: { + authTagLength: 16, + }, + versionBytes: 1, + flagsBytes: 1, + ivBytes: 12, + saltBytes: 16, + tagBytes: 16, + keyDeriver: 'blake2b512', + keyBytes: 32, + }, + 9: { + version: 9, + algorithm: 'xchacha20-poly1305', // Not yet available, but would prefer even more... + algOptions: { + authTagLength: 16, + }, + versionBytes: 1, + flagsBytes: 1, + ivBytes: 24, + saltBytes: 16, + tagBytes: 16, + keyDeriver: 'blake2b512', keyBytes: 32, }, };