Include asmCrypto via npm
This commit is contained in:
parent
edd51d6052
commit
cfe058596f
|
@ -31,7 +31,6 @@
|
|||
"afterEach": true,
|
||||
"escape": true,
|
||||
"unescape": true,
|
||||
"asmCrypto": true,
|
||||
"postMessage": true
|
||||
}
|
||||
}
|
|
@ -14,12 +14,7 @@ module.exports = function(grunt) {
|
|||
'src/crypto/public_key/elgamal.js',
|
||||
'src/crypto/public_key/index.js',
|
||||
'src/crypto/public_key/rsa.js',
|
||||
'src/crypto/cfb.js',
|
||||
'src/crypto/crypto.js',
|
||||
'src/crypto/index.js',
|
||||
'src/crypto/pkcs1.js',
|
||||
'src/crypto/random.js',
|
||||
'src/crypto/signature.js',
|
||||
'src/crypto/*.js',
|
||||
'src/encoding/*.js',
|
||||
'src/hkp/*.js',
|
||||
'src/keyring/*.js',
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
"whatwg-fetch": "~0.11.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"asmcrypto": "git://github.com/openpgpjs/asmcrypto.js.git#openpgp_build",
|
||||
"es6-promise": "^1.0.0",
|
||||
"node-fetch": "^1.3.3",
|
||||
"node-localstorage": "~1.1.2",
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
* @module crypto/hash
|
||||
*/
|
||||
var sha = require('./sha.js'),
|
||||
asmCrypto = require('asmcrypto'),
|
||||
rusha = require('./rusha.js'),
|
||||
config = require('../../config')
|
||||
config = require('../../config'),
|
||||
util = require('../../util.js');
|
||||
|
||||
var rusha_obj = new rusha();
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
// asmCrypto global object (AES CFB, SHA1, SHA256, SHA512)
|
||||
require('./asmcrypto.js');
|
||||
|
||||
module.exports = {
|
||||
/** @see module:crypto/cipher */
|
||||
cipher: require('./cipher'),
|
||||
|
|
|
@ -39,6 +39,7 @@ module.exports = SymEncryptedIntegrityProtected;
|
|||
var util = require('../util.js'),
|
||||
crypto = require('../crypto'),
|
||||
enums = require('../enums.js'),
|
||||
asmCrypto = require('asmcrypto'),
|
||||
nodeCrypto = util.getNodeCrypto(),
|
||||
Buffer = util.getNodeBuffer();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user