github.com/emmansun/gmsm@v0.29.1/sm3/sm3block_ppc64x.go (about)

     1  // Copyright 2024 Sun Yimin. All rights reserved.
     2  // Use of this source code is governed by a MIT-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build (ppc64 || ppc64le) && !purego
     6  
     7  package sm3
     8  
     9  //go:noescape
    10  func blockASM(dig *digest, p []byte, buffer *uint32)
    11  
    12  func block(dig *digest, p []byte) {
    13  	var buffer [8]uint32 // 32 bytes buffer, avoid stack usage in asm code
    14  	blockASM(dig, p, &buffer[0])
    15  }