1
2
3
4
5
6
7 package aes
8
9
10
11
12
13 func cryptBlocksChain(c code, iv, key, dst, src *byte, length int)
14
15 func cryptBlocksEnc(b *Block, civ *[BlockSize]byte, dst, src []byte) {
16 if b.fallback != nil {
17 cryptBlocksEncGeneric(b, civ, dst, src)
18 return
19 }
20 cryptBlocksChain(b.function, &civ[0], &b.key[0], &dst[0], &src[0], len(src))
21 }
22
23 func cryptBlocksDec(b *Block, civ *[BlockSize]byte, dst, src []byte) {
24 if b.fallback != nil {
25 cryptBlocksDecGeneric(b, civ, dst, src)
26 return
27 }
28
29 cryptBlocksChain(b.function+128, &civ[0], &b.key[0], &dst[0], &src[0], len(src))
30 }
31
View as plain text