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

View as plain text