Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
fix: add missing dbl-sha2-256 (#44)
Browse files Browse the repository at this point in the history
Fixes #38.
  • Loading branch information
vmx authored and daviddias committed Jan 4, 2018
1 parent 0bb2bcf commit 4421157
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/constants.js
Expand Up @@ -6,6 +6,7 @@ exports.names = Object.freeze({
'sha1': 0x11,
'sha2-256': 0x12,
'sha2-512': 0x13,
'dbl-sha2-256': 0x56,
'sha3-224': 0x17,
'sha3-256': 0x16,
'sha3-384': 0x15,
Expand Down Expand Up @@ -344,6 +345,7 @@ exports.codes = Object.freeze({
0x11: 'sha1',
0x12: 'sha2-256',
0x13: 'sha2-512',
0x56: 'dbl-sha2-256',
0x17: 'sha3-224',
0x16: 'sha3-256',
0x15: 'sha3-384',
Expand Down Expand Up @@ -686,6 +688,7 @@ exports.defaultLengths = Object.freeze({
0x11: 20,
0x12: 32,
0x13: 64,
0x56: 32,
0x17: 28,
0x16: 32,
0x15: 48,
Expand Down

0 comments on commit 4421157

Please sign in to comment.