mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-15 10:46:40 +00:00

This primarily affects the lightweight build, which will not include these (fairly large) modules in the main bundle file.
18 lines
514 B
JavaScript
18 lines
514 B
JavaScript
/**
|
|
* This file is needed to dynamic import the legacy ciphers.
|
|
* Separate dynamic imports are not convenient as they result in multiple chunks.
|
|
*/
|
|
|
|
import { TripleDES } from './des';
|
|
import CAST5 from './cast5';
|
|
import TwoFish from './twofish';
|
|
import BlowFish from './blowfish';
|
|
import enums from '../../enums';
|
|
|
|
export const legacyCiphers = new Map([
|
|
[enums.symmetric.tripledes, TripleDES],
|
|
[enums.symmetric.cast5, CAST5],
|
|
[enums.symmetric.blowfish, BlowFish],
|
|
[enums.symmetric.twofish, TwoFish]
|
|
]);
|