mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-10-14 00:59:29 +00:00

'use strict' is unnecessary inside modules because module code is always strict mode code. Ref: https://www.ecma-international.org/ecma-262/6.0/#sec-strict-mode-code
35 lines
914 B
JavaScript
35 lines
914 B
JavaScript
/**
|
|
* @requires crypto/cipher/aes
|
|
* @requires crypto/cipher/blowfish
|
|
* @requires crypto/cipher/cast5
|
|
* @requires crypto/cipher/twofish
|
|
* @module crypto/cipher
|
|
*/
|
|
|
|
import aes from './aes.js';
|
|
import desModule from './des.js';
|
|
import cast5 from './cast5.js';
|
|
import twofish from './twofish.js';
|
|
import blowfish from './blowfish.js';
|
|
|
|
export default {
|
|
/** @see module:crypto/cipher/aes */
|
|
aes128: aes(128),
|
|
aes192: aes(192),
|
|
aes256: aes(256),
|
|
/** @see module:crypto/cipher/des.originalDes */
|
|
des: desModule.originalDes,
|
|
/** @see module:crypto/cipher/des.des */
|
|
tripledes: desModule.des,
|
|
/** @see module:crypto/cipher/cast5 */
|
|
cast5: cast5,
|
|
/** @see module:crypto/cipher/twofish */
|
|
twofish: twofish,
|
|
/** @see module:crypto/cipher/blowfish */
|
|
blowfish: blowfish,
|
|
/** Not implemented */
|
|
idea: function() {
|
|
throw new Error('IDEA symmetric-key algorithm not implemented');
|
|
}
|
|
};
|