Source file src/crypto/sha512/sha512block_arm64.go

     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  
     7  package sha512
     8  
     9  import "internal/cpu"
    10  
    11  func 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
    20  func blockAsm(dig *digest, p []byte)
    21  

View as plain text