fix: workaround missing sha512 support in forge.hmac

This commit is contained in:
Friedel Ziegelmayer
2016-05-20 16:27:11 +02:00
parent 3037541d3c
commit 87a30e2e9b
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,8 @@ const cipherMap = {
const hashMap = {
SHA1: 'sha1',
SHA256: 'sha256',
SHA512: 'sha512'
// workaround for https://github.com/digitalbazaar/forge/issues/401
SHA512: forge.md.sha512.create()
}
// Generates a set of keys for each party by stretching the shared key.