github.com/birneee/aes6@v0.0.0-20240131140838-9e8f775f7eae/cipher_asm.go (about)

     1  //go:build amd64 || arm64 || ppc64 || ppc64le
     2  
     3  package aes6
     4  
     5  import (
     6  	_ "unsafe"
     7  )
     8  
     9  //go:linkname encryptBlockAsm crypto/aes.encryptBlockAsm
    10  func encryptBlockAsm(nr int, xk *uint32, dst, src *byte)
    11  
    12  // copy from crypto/aes
    13  type aesCipherAsm struct {
    14  	aesCipher
    15  }
    16  
    17  // copy from crypto/aes
    18  type aesCipherGCM struct {
    19  	aesCipherAsm
    20  }