1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package sha512 6 7 import "internal/cpu" 8 9 func block(dig *digest, p []byte) { 10 if cpu.ARM64.HasSHA512 { 11 blockAsm(dig, p) 12 return 13 } 14 blockGeneric(dig, p) 15 } 16 17 //go:noescape 18 func blockAsm(dig *digest, p []byte) 19