Skip to content

Commit

Permalink
Switch to ES8 build of asmcrypto.js
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Feb 9, 2021
1 parent 0e33e64 commit 5b14808
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/crypto/cfb.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @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 cipher from './cipher';
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/cipher/aes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @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.
function aes(length) {
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/cmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @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';

const webCrypto = util.getWebCrypto();
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/eax.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @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 util from '../util';

Expand Down
2 changes: 1 addition & 1 deletion src/crypto/gcm.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @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';

const webCrypto = util.getWebCrypto(); // no GCM support in IE11, Safari 9
Expand Down
4 changes: 2 additions & 2 deletions src/crypto/hash/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* @module crypto/hash
*/

import { Sha1 } from 'asmcrypto.js/dist_es5/hash/sha1/sha1';
import { Sha256 } from 'asmcrypto.js/dist_es5/hash/sha256/sha256';
import { Sha1 } from 'asmcrypto.js/dist_es8/hash/sha1/sha1';
import { Sha256 } from 'asmcrypto.js/dist_es8/hash/sha256/sha256';
import sha224 from 'hash.js/lib/hash/sha/224';
import sha384 from 'hash.js/lib/hash/sha/384';
import sha512 from 'hash.js/lib/hash/sha/512';
Expand Down
4 changes: 2 additions & 2 deletions src/packet/public_key.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* @requires util
*/

import { Sha1 } from 'asmcrypto.js/dist_es5/hash/sha1/sha1';
import { Sha256 } from 'asmcrypto.js/dist_es5/hash/sha256/sha256';
import { Sha1 } from 'asmcrypto.js/dist_es8/hash/sha1/sha1';
import { Sha256 } from 'asmcrypto.js/dist_es8/hash/sha256/sha256';
import type_keyid from '../type/keyid';
import type_mpi from '../type/mpi';
import config from '../config';
Expand Down

0 comments on commit 5b14808

Please sign in to comment.