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//go:build !purego 6 7package sha512 8 9import "internal/cpu" 10 11func block(dig *digest, p []byte) { 12 if cpu.ARM64.HasSHA512 { 13 blockAsm(dig, p) 14 return 15 } 16 blockGeneric(dig, p) 17} 18 19//go:noescape 20func blockAsm(dig *digest, p []byte) 21