This repository was archived by the owner on Aug 24, 2021. It is now read-only.
File tree 2 files changed +15
-13
lines changed 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({
20
20
'keccak-512' : 0x1D ,
21
21
'murmur3-128' : 0x22 ,
22
22
'murmur3-32' : 0x23 ,
23
+ 'md4' : 0xd4 ,
24
+ 'md5' : 0xd5 ,
23
25
'blake2b-8' : 0xb201 ,
24
26
'blake2b-16' : 0xb202 ,
25
27
'blake2b-24' : 0xb203 ,
@@ -364,6 +366,9 @@ exports.codes = Object.freeze({
364
366
0x22 : 'murmur3-128' ,
365
367
0x23 : 'murmur3-32' ,
366
368
369
+ 0xd4 : 'md4' ,
370
+ 0xd5 : 'md5' ,
371
+
367
372
// blake2
368
373
0xb201 : 'blake2b-8' ,
369
374
0xb202 : 'blake2b-16' ,
Original file line number Diff line number Diff line change @@ -72,16 +72,14 @@ module.exports = [
72
72
hex : '2c26b46b68ffc68ff99b453c1d30413413' ,
73
73
size : 17
74
74
} ,
75
- /* TODO: murmur3 not listed in constants.js
76
75
{
77
76
encoding : {
78
77
code : 0x22 ,
79
- name: 'murmur3'
78
+ name : 'murmur3-128 '
80
79
} ,
81
80
hex : '243ddb9e' ,
82
81
size : 4
83
82
} ,
84
- */
85
83
{
86
84
encoding : {
87
85
code : 0x1b ,
@@ -113,15 +111,14 @@ module.exports = [
113
111
} ,
114
112
hex : '4bca2b137edc580fe50a88983ef860ebaca36c857b1f492839d6d7392452a63c82cbebc68e3b70a2a1480b4bb5d437a7cba6ecf9d89f9ff3ccd14cd6146ea7e7' ,
115
113
size : 64
114
+ } ,
115
+ {
116
+ encoding : {
117
+ code : 0xd5 ,
118
+ name : 'md5' ,
119
+ varint : 'd501'
120
+ } ,
121
+ hex : 'd41d8cd98f00b204e9800998ecf8427e' ,
122
+ size : 16
116
123
}
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
- */
127
124
]
You can’t perform that action at this time.
0 commit comments