Package list golang-github-minio-sha256-simd / 649be62
Fix/linter nits (#51) * avx512: actually use the 'trial' buffer * chore: remove an unused error return value Steven Allen authored 2 years ago Frank Wessels committed 2 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
103103 }
104104
105105 trail := make([]byte, 0, 128)
106 trail = append(trail, d.x[:d.nx]...)
106107
107108 len := d.len
108109 // Padding. Add a 1 bit and 0 bits until 56 bytes mod 64.
109110 var tmp [64]byte
110111 tmp[0] = 0x80
111112 if len%64 < 56 {
112 trail = append(d.x[:d.nx], tmp[0:56-len%64]...)
113 trail = append(trail, tmp[0:56-len%64]...)
113114 } else {
114 trail = append(d.x[:d.nx], tmp[0:64+56-len%64]...)
115 trail = append(trail, tmp[0:64+56-len%64]...)
115116 }
116117 d.nx = 0
117118
374375 }
375376
376377 // Invoke assembly and send results back
377 func (a512srv *Avx512Server) blocks() (err error) {
378 func (a512srv *Avx512Server) blocks() {
378379
379380 inputs := [16][]byte{}
380381 for i := range inputs {
396397 delete(a512srv.digests, uid) // Delete entry from hashmap
397398 }
398399 }
399 return
400400 }
401401
402402 func (a512srv *Avx512Server) Write(uid uint64, p []byte) (nn int, err error) {