File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/crypto/internal/boring Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ func (h *sha224Hash) AppendBinary(b []byte) ([]byte, error) {
303
303
b = byteorder .BeAppendUint32 (b , d .h [5 ])
304
304
b = byteorder .BeAppendUint32 (b , d .h [6 ])
305
305
b = byteorder .BeAppendUint32 (b , d .h [7 ])
306
+ b = append (b , d .x [:d .nx ]... )
306
307
b = append (b , make ([]byte , len (d .x )- int (d .nx ))... )
307
308
b = byteorder .BeAppendUint64 (b , uint64 (d .nl )>> 3 | uint64 (d .nh )<< 29 )
308
309
return b , nil
@@ -323,6 +324,7 @@ func (h *sha256Hash) AppendBinary(b []byte) ([]byte, error) {
323
324
b = byteorder .BeAppendUint32 (b , d .h [5 ])
324
325
b = byteorder .BeAppendUint32 (b , d .h [6 ])
325
326
b = byteorder .BeAppendUint32 (b , d .h [7 ])
327
+ b = append (b , d .x [:d .nx ]... )
326
328
b = append (b , make ([]byte , len (d .x )- int (d .nx ))... )
327
329
b = byteorder .BeAppendUint64 (b , uint64 (d .nl )>> 3 | uint64 (d .nh )<< 29 )
328
330
return b , nil
You can’t perform that action at this time.
0 commit comments