Lines Matching refs:algorithm
5979 hash: function hash(algorithm) {
5980 var hash = crypto.createHash(algorithm);
38306 function Sign(algorithm) {
38308 var data = algorithms[algorithm];
38341 function Verify(algorithm) {
38343 var data = algorithms[algorithm];
38375 function createSign(algorithm) {
38376 return new Sign(algorithm);
38379 function createVerify(algorithm) {
38380 return new Verify(algorithm);
38621 var curveId = curves[pub.data.algorithm.curve.join('.')];
38622 if (!curveId) throw new Error('unknown curve ' + pub.data.algorithm.curve.join('.'));
70133 subtype = ndata.algorithm.algorithm.join('.');
70147 ndata.algorithm.params.pub_key = asn1.DSAparam.decode(ndata.subjectPublicKey.data, 'der');
70150 data: ndata.algorithm.params
70166 subtype = ndata.algorithm.algorithm.join('.');
70174 curve: ndata.algorithm.curve,
70179 ndata.algorithm.params.priv_key = asn1.DSAparam.decode(ndata.subjectPrivateKey, 'der');
70182 params: ndata.algorithm.params
70218 var salt = data.algorithm.decrypt.kde.kdeparams.salt;
70219 var iters = parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(), 10);
70220 var algo = aesid[data.algorithm.decrypt.cipher.algo.join('.')];
70221 var iv = data.algorithm.decrypt.cipher.iv;
78222 var _exports = module.exports = function SHA(algorithm) {
78223 algorithm = algorithm.toLowerCase();
78224 var Algorithm = _exports[algorithm];
78225 if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)');