a geicko-2 based round robin ranking system designed to test c++ battleship submissions battleship.dunkirk.sh
at main 469 B view raw
1// Copyright 2019 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 gc && !purego && (ppc64 || ppc64le) 6 7package chacha20 8 9const bufSize = 256 10 11//go:noescape 12func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) 13 14func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) 16}