aes_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 aes
8
9 type block struct {
10 blockExpanded
11 }
12
13 func newBlock(c *Block, key []byte) *Block {
14 newBlockExpanded(&c.blockExpanded, key)
15 return c
16 }
17
18 func encryptBlock(c *Block, dst, src []byte) {
19 encryptBlockGeneric(&c.blockExpanded, dst, src)
20 }
21
22 func decryptBlock(c *Block, dst, src []byte) {
23 decryptBlockGeneric(&c.blockExpanded, dst, src)
24 }
25
26 func checkGenericIsExpected() {}
27