Switch to ES8 build of asmcrypto.js

This commit is contained in:
Daniel Huigens 2020-04-27 21:37:51 +02:00
parent 0e33e641af
commit 5b148089c3
7 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@
* @module crypto/cfb * @module crypto/cfb
*/ */
import { AES_CFB } from 'asmcrypto.js/dist_es5/aes/cfb'; import { AES_CFB } from 'asmcrypto.js/dist_es8/aes/cfb';
import stream from 'web-stream-tools'; import stream from 'web-stream-tools';
import cipher from './cipher'; import cipher from './cipher';

View File

@ -2,7 +2,7 @@
* @requires asmcrypto.js * @requires asmcrypto.js
*/ */
import { AES_ECB } from 'asmcrypto.js/dist_es5/aes/ecb'; import { AES_ECB } from 'asmcrypto.js/dist_es8/aes/ecb';
// TODO use webCrypto or nodeCrypto when possible. // TODO use webCrypto or nodeCrypto when possible.
function aes(length) { function aes(length) {

View File

@ -6,7 +6,7 @@
* @module crypto/cmac * @module crypto/cmac
*/ */
import { AES_CBC } from 'asmcrypto.js/dist_es5/aes/cbc'; import { AES_CBC } from 'asmcrypto.js/dist_es8/aes/cbc';
import util from '../util'; import util from '../util';
const webCrypto = util.getWebCrypto(); const webCrypto = util.getWebCrypto();

View File

@ -24,7 +24,7 @@
* @module crypto/eax * @module crypto/eax
*/ */
import { AES_CTR } from 'asmcrypto.js/dist_es5/aes/ctr'; import { AES_CTR } from 'asmcrypto.js/dist_es8/aes/ctr';
import CMAC from './cmac'; import CMAC from './cmac';
import util from '../util'; import util from '../util';

View File

@ -23,7 +23,7 @@
* @module crypto/gcm * @module crypto/gcm
*/ */
import { AES_GCM } from 'asmcrypto.js/dist_es5/aes/gcm'; import { AES_GCM } from 'asmcrypto.js/dist_es8/aes/gcm';
import util from '../util'; import util from '../util';
const webCrypto = util.getWebCrypto(); // no GCM support in IE11, Safari 9 const webCrypto = util.getWebCrypto(); // no GCM support in IE11, Safari 9

View File

@ -11,8 +11,8 @@
* @module crypto/hash * @module crypto/hash
*/ */
import { Sha1 } from 'asmcrypto.js/dist_es5/hash/sha1/sha1'; import { Sha1 } from 'asmcrypto.js/dist_es8/hash/sha1/sha1';
import { Sha256 } from 'asmcrypto.js/dist_es5/hash/sha256/sha256'; import { Sha256 } from 'asmcrypto.js/dist_es8/hash/sha256/sha256';
import sha224 from 'hash.js/lib/hash/sha/224'; import sha224 from 'hash.js/lib/hash/sha/224';
import sha384 from 'hash.js/lib/hash/sha/384'; import sha384 from 'hash.js/lib/hash/sha/384';
import sha512 from 'hash.js/lib/hash/sha/512'; import sha512 from 'hash.js/lib/hash/sha/512';

View File

@ -24,8 +24,8 @@
* @requires util * @requires util
*/ */
import { Sha1 } from 'asmcrypto.js/dist_es5/hash/sha1/sha1'; import { Sha1 } from 'asmcrypto.js/dist_es8/hash/sha1/sha1';
import { Sha256 } from 'asmcrypto.js/dist_es5/hash/sha256/sha256'; import { Sha256 } from 'asmcrypto.js/dist_es8/hash/sha256/sha256';
import type_keyid from '../type/keyid'; import type_keyid from '../type/keyid';
import type_mpi from '../type/mpi'; import type_mpi from '../type/mpi';
import config from '../config'; import config from '../config';