1// Copyright 2017 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 sha256
8
9import "internal/cpu"
10
11var k = _K
12
13//go:noescape
14func sha256block(h []uint32, p []byte, k []uint32)
15
16func block(dig *digest, p []byte) {
17	if !cpu.ARM64.HasSHA2 {
18		blockGeneric(dig, p)
19	} else {
20		h := dig.h[:]
21		sha256block(h, p, k)
22	}
23}
24