Source file src/crypto/sha256/sha256block_arm64.go
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 7 package sha256 8 9 import "internal/cpu" 10 11 var k = _K 12 13 //go:noescape 14 func sha256block(h []uint32, p []byte, k []uint32) 15 16 func 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