mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-06-27 04:21:49 +00:00
fix: workaround missing sha512 support in forge.hmac
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user