crypto: remove async functions.
This commit is contained in:
parent
a443b88f92
commit
bec4264fcf
@ -23,16 +23,6 @@ var crypto = exports;
|
||||
|
||||
crypto.hash = backend.hash;
|
||||
|
||||
/**
|
||||
* Hash with chosen algorithm (async).
|
||||
* @function
|
||||
* @param {String} alg
|
||||
* @param {Buffer} data
|
||||
* @returns {Buffer}
|
||||
*/
|
||||
|
||||
crypto.hashAsync = backend.hashAsync;
|
||||
|
||||
/**
|
||||
* Hash with ripemd160.
|
||||
* @function
|
||||
@ -78,15 +68,6 @@ crypto.hash160 = backend.hash160;
|
||||
|
||||
crypto.hash256 = backend.hash256;
|
||||
|
||||
/**
|
||||
* Hash with sha256 twice (async).
|
||||
* @function
|
||||
* @param {Buffer} data
|
||||
* @returns {Buffer}
|
||||
*/
|
||||
|
||||
crypto.hash256Async = backend.hash256Async;
|
||||
|
||||
/**
|
||||
* Create an HMAC.
|
||||
* @function
|
||||
@ -98,17 +79,6 @@ crypto.hash256Async = backend.hash256Async;
|
||||
|
||||
crypto.hmac = backend.hmac;
|
||||
|
||||
/**
|
||||
* Create an HMAC (async).
|
||||
* @function
|
||||
* @param {String} alg
|
||||
* @param {Buffer} data
|
||||
* @param {Buffer} key
|
||||
* @returns {Buffer} HMAC
|
||||
*/
|
||||
|
||||
crypto.hmacAsync = backend.hmacAsync;
|
||||
|
||||
/**
|
||||
* Perform key derivation using PBKDF2.
|
||||
* @function
|
||||
@ -349,17 +319,6 @@ if (native)
|
||||
|
||||
crypto.encipher = backend.encipher;
|
||||
|
||||
/**
|
||||
* Encrypt with aes-256-cbc (async).
|
||||
* @function
|
||||
* @param {Buffer} data
|
||||
* @param {Buffer} key - 256 bit key.
|
||||
* @param {Buffer} iv - 128 bit initialization vector.
|
||||
* @returns {Promise}
|
||||
*/
|
||||
|
||||
crypto.encipherAsync = backend.encipherAsync;
|
||||
|
||||
/**
|
||||
* Decrypt with aes-256-cbc.
|
||||
* @function
|
||||
@ -371,17 +330,6 @@ crypto.encipherAsync = backend.encipherAsync;
|
||||
|
||||
crypto.decipher = backend.decipher;
|
||||
|
||||
/**
|
||||
* Decrypt with aes-256-cbc (async).
|
||||
* @function
|
||||
* @param {Buffer} data
|
||||
* @param {Buffer} key - 256 bit key.
|
||||
* @param {Buffer} iv - 128 bit initialization vector.
|
||||
* @returns {Promise}
|
||||
*/
|
||||
|
||||
crypto.decipherAsync = backend.decipherAsync;
|
||||
|
||||
/**
|
||||
* memcmp in constant time (can only return true or false).
|
||||
* This protects us against timing attacks when
|
||||
|
||||
Loading…
Reference in New Issue
Block a user