This repository was archived by the owner on Aug 24, 2021. It is now read-only.
File tree 3 files changed +39
-9
lines changed
3 files changed +39
-9
lines changed Original file line number Diff line number Diff line change 39
39
"bs58" : " ^3.0.0"
40
40
},
41
41
"devDependencies" : {
42
- "aegir" : " ^3.0.1 " ,
42
+ "aegir" : " ^9.1.2 " ,
43
43
"buffer-equal" : " 1.0.0" ,
44
44
"chai" : " ^3.5.0" ,
45
45
"pre-commit" : " ^1.1.2"
Original file line number Diff line number Diff line change
1
+ /* eslint quote-props: off */
2
+ /* eslint key-spacing: off */
1
3
'use strict'
2
4
3
5
exports . names = {
4
- sha1 : 0x11 ,
5
- 'sha2-256' : 0x12 ,
6
- 'sha2-512' : 0x13 ,
7
- sha3 : 0x14 ,
8
- blake2b : 0x40 ,
9
- blake2s : 0x41
6
+ 'sha1' : 0x11 ,
7
+ 'sha2-256' : 0x12 ,
8
+ 'sha2-512' : 0x13 ,
9
+ 'sha3-224' : 0x17 ,
10
+ 'sha3-256' : 0x16 ,
11
+ 'sha3-384' : 0x15 ,
12
+ 'sha3-512' : 0x14 ,
13
+ 'shake-128' : 0x18 ,
14
+ 'shake-256' : 0x19 ,
15
+ 'keccak-224' : 0x1A ,
16
+ 'keccak-256' : 0x1B ,
17
+ 'keccak-384' : 0x1C ,
18
+ 'keccak-512' : 0x1D ,
19
+ 'blake2b' : 0x40 ,
20
+ 'blake2s' : 0x41
10
21
}
11
22
12
23
exports . codes = {
13
24
0x11 : 'sha1' ,
14
25
0x12 : 'sha2-256' ,
15
26
0x13 : 'sha2-512' ,
16
- 0x14 : 'sha3' ,
27
+ 0x17 : 'sha3-224' ,
28
+ 0x16 : 'sha3-256' ,
29
+ 0x15 : 'sha3-384' ,
30
+ 0x14 : 'sha3-512' ,
31
+ 0x18 : 'shake-128' ,
32
+ 0x19 : 'shake-256' ,
33
+ 0x1A : 'keccak-224' ,
34
+ 0x1B : 'keccak-256' ,
35
+ 0x1C : 'keccak-384' ,
36
+ 0x1D : 'keccak-512' ,
17
37
0x40 : 'blake2b' ,
18
38
0x41 : 'blake2s'
19
39
}
@@ -22,7 +42,16 @@ exports.defaultLengths = {
22
42
0x11 : 20 ,
23
43
0x12 : 32 ,
24
44
0x13 : 64 ,
45
+ 0x17 : 28 ,
46
+ 0x16 : 32 ,
47
+ 0x15 : 48 ,
25
48
0x14 : 64 ,
49
+ 0x18 : 32 ,
50
+ 0x19 : 64 ,
51
+ 0x1A : 28 ,
52
+ 0x1B : 32 ,
53
+ 0x1C : 48 ,
54
+ 0x1D : 64 ,
26
55
0x40 : 64 ,
27
56
0x41 : 32
28
57
}
Original file line number Diff line number Diff line change 1
1
/* eslint-env mocha */
2
+ /* eslint max-nested-callbacks: off */
2
3
'use strict'
3
4
4
5
const expect = require ( 'chai' ) . expect
@@ -260,7 +261,7 @@ describe('mh', () => {
260
261
sha1 : 0x11 ,
261
262
'sha2-256' : 0x12 ,
262
263
'sha2-512' : 0x13 ,
263
- sha3 : 0x14 ,
264
+ ' sha3-512' : 0x14 ,
264
265
blake2b : 0x40 ,
265
266
blake2s : 0x41
266
267
}
You can’t perform that action at this time.
0 commit comments