1
// Copyright 2012 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.
9
// defined in asm_$GOARCH.s
11
func encryptBlockAsm(nr int, xk *uint32, dst, src *byte)
12
func decryptBlockAsm(nr int, xk *uint32, dst, src *byte)
13
func expandKeyAsm(nr int, key *byte, enc *uint32, dec *uint32)
17
func encryptBlock(xk []uint32, dst, src []byte) {
19
encryptBlockAsm(len(xk)/4-1, &xk[0], &dst[0], &src[0])
21
encryptBlockGo(xk, dst, src)
24
func decryptBlock(xk []uint32, dst, src []byte) {
26
decryptBlockAsm(len(xk)/4-1, &xk[0], &dst[0], &src[0])
28
decryptBlockGo(xk, dst, src)
31
func expandKey(key []byte, enc, dec []uint32) {
42
expandKeyAsm(rounds, &key[0], &enc[0], &dec[0])
44
expandKeyGo(key, enc, dec)