This repository was archived by the owner on Aug 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ exports.names = Object.freeze({
2020 'keccak-512' : 0x1D ,
2121 'murmur3-128' : 0x22 ,
2222 'murmur3-32' : 0x23 ,
23+ 'md4' : 0xd4 ,
24+ 'md5' : 0xd5 ,
2325 'blake2b-8' : 0xb201 ,
2426 'blake2b-16' : 0xb202 ,
2527 'blake2b-24' : 0xb203 ,
@@ -364,6 +366,9 @@ exports.codes = Object.freeze({
364366 0x22 : 'murmur3-128' ,
365367 0x23 : 'murmur3-32' ,
366368
369+ 0xd4 : 'md4' ,
370+ 0xd5 : 'md5' ,
371+
367372 // blake2
368373 0xb201 : 'blake2b-8' ,
369374 0xb202 : 'blake2b-16' ,
Original file line number Diff line number Diff line change @@ -72,16 +72,14 @@ module.exports = [
7272 hex : '2c26b46b68ffc68ff99b453c1d30413413' ,
7373 size : 17
7474 } ,
75- /* TODO: murmur3 not listed in constants.js
7675 {
7776 encoding : {
7877 code : 0x22 ,
79- name: 'murmur3'
78+ name : 'murmur3-128 '
8079 } ,
8180 hex : '243ddb9e' ,
8281 size : 4
8382 } ,
84- */
8583 {
8684 encoding : {
8785 code : 0x1b ,
@@ -113,15 +111,14 @@ module.exports = [
113111 } ,
114112 hex : '4bca2b137edc580fe50a88983ef860ebaca36c857b1f492839d6d7392452a63c82cbebc68e3b70a2a1480b4bb5d437a7cba6ecf9d89f9ff3ccd14cd6146ea7e7' ,
115113 size : 64
114+ } ,
115+ {
116+ encoding : {
117+ code : 0xd5 ,
118+ name : 'md5' ,
119+ varint : 'd501'
120+ } ,
121+ hex : 'd41d8cd98f00b204e9800998ecf8427e' ,
122+ size : 16
116123 }
117- /* TODO: md5 not listed in constants.js
118- {
119- encoding: {
120- code: 0xd5,
121- name: 'md5'
122- },
123- hex: 'd41d8cd98f00b204e9800998ecf8427e',
124- size: 16
125- }
126- */
127124]
You can’t perform that action at this time.
0 commit comments