crypto-browserify
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -31,5 +31,5 @@ 'use strict'; | ||
} | ||
var hashes = ['sha1', 'sha256', 'sha512', 'md5', 'rmd160'].concat(Object.keys(require('browserify-sign/algos'))) | ||
exports.getHashes = function () { | ||
return ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'] | ||
return hashes; | ||
} | ||
@@ -36,0 +36,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "partial implementation of crypto for the browser", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"homepage": "https://github.com/dominictarr/crypto-browserify", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"dependencies": { | ||
"browserify-aes": "0.4.0", | ||
"browserify-aes": "0.6.0", | ||
"browserify-sign": "2.4.0", | ||
@@ -23,0 +23,0 @@ "pbkdf2-compat": "2.0.1", |
@@ -14,2 +14,5 @@ var test = require('tape'); | ||
out.push(decrypter.update(crypter.final())); | ||
if (cipher.indexOf('gcm') > -1) { | ||
decrypter.setAuthTag(crypter.getAuthTag()); | ||
} | ||
out.push(decrypter.final()); | ||
@@ -16,0 +19,0 @@ t.equals(data.toString('hex'), Buffer.concat(out).toString('hex')); |
var fs = require('fs') | ||
var test = require('tape') | ||
var algorithms = require('../').getHashes() | ||
var algorithms = ['sha1', 'sha256', 'sha512', 'md5', 'rmd160'] | ||
var encodings = [/*'binary',*/ 'hex', 'base64']; | ||
@@ -6,0 +6,0 @@ var vectors = require('hash-test-vectors') |
var test = require('tape') | ||
var algorithms = require('../').getHashes() | ||
var algorithms = ['sha1', 'sha256', 'sha512', 'md5', 'rmd160'] | ||
var vectors = require('hash-test-vectors/hmac') | ||
@@ -6,0 +6,0 @@ var createHmac = require('../create-hmac') |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47645
1201
50
+ Addedbrowserify-aes@0.6.0(transitive)
- Removedbrowserify-aes@0.4.0(transitive)
Updatedbrowserify-aes@0.6.0