gcm_noasm.mx raw

   1  // Copyright 2024 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 (!amd64 && !s390x && !ppc64 && !ppc64le && !arm64) || purego
   6  
   7  package gcm
   8  
   9  func checkGenericIsExpected() {}
  10  
  11  type gcmPlatformData struct{}
  12  
  13  func initGCM(g *GCM) {}
  14  
  15  func seal(out []byte, g *GCM, nonce, plaintext, data []byte) {
  16  	sealGeneric(out, g, nonce, plaintext, data)
  17  }
  18  
  19  func open(out []byte, g *GCM, nonce, ciphertext, data []byte) error {
  20  	return openGeneric(out, g, nonce, ciphertext, data)
  21  }
  22