ctr_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 && !arm64 && !s390x && !ppc64 && !ppc64le) || purego
   6  
   7  package aes
   8  
   9  func ctrBlocks1(b *Block, dst, src *[BlockSize]byte, ivlo, ivhi uint64) {
  10  	ctrBlocks(b, dst[:], src[:], ivlo, ivhi)
  11  }
  12  
  13  func ctrBlocks2(b *Block, dst, src *[2 * BlockSize]byte, ivlo, ivhi uint64) {
  14  	ctrBlocks(b, dst[:], src[:], ivlo, ivhi)
  15  }
  16  
  17  func ctrBlocks4(b *Block, dst, src *[4 * BlockSize]byte, ivlo, ivhi uint64) {
  18  	ctrBlocks(b, dst[:], src[:], ivlo, ivhi)
  19  }
  20  
  21  func ctrBlocks8(b *Block, dst, src *[8 * BlockSize]byte, ivlo, ivhi uint64) {
  22  	ctrBlocks(b, dst[:], src[:], ivlo, ivhi)
  23  }
  24