// Copyright 2024 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package sha3import ()func init() {fips140.CAST("cSHAKE128", func() error { := []byte{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, } := []byte{0xd2, 0x17, 0x37, 0x39, 0xf6, 0xa1, 0xe4, 0x6e,0x81, 0xe5, 0x70, 0xe3, 0x1b, 0x10, 0x4c, 0x82,0xc5, 0x48, 0xee, 0xe6, 0x09, 0xf5, 0x89, 0x52,0x52, 0xa4, 0x69, 0xd4, 0xd0, 0x76, 0x68, 0x6b, } := NewCShake128(, ) .Write()if := .Sum(nil); !bytes.Equal(, ) {returnerrors.New("unexpected result") }returnnil })}
The pages are generated with Goldsv0.7.3-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.