f01bcc8f62
Updates resumable hash implementation to Go 1.8 equivalent. This should be a major speedup, since it includes a number of optimizations from Go 1.7. Signed-off-by: Stephen J Day <stephen.day@docker.com>
13 lines
354 B
Go
13 lines
354 B
Go
// Copyright 2016 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package sha256
|
|
|
|
// featureCheck reports whether the CPU supports the
|
|
// SHA256 compute intermediate message digest (KIMD)
|
|
// function code.
|
|
func featureCheck() bool
|
|
|
|
var useAsm = featureCheck()
|