// 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 hmacimport ()func init() {fips140.CAST("HMAC-SHA2-256", func() error { := []byte{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, } := []byte{0xf0, 0x8d, 0x82, 0x8d, 0x4c, 0x9e, 0xad, 0x3d,0xdc, 0x12, 0x9c, 0x4e, 0x70, 0xc4, 0x19, 0x2a,0x4f, 0x12, 0x73, 0x23, 0x73, 0x77, 0x66, 0x05,0x10, 0xee, 0x57, 0x6b, 0x3a, 0xc7, 0x14, 0x41, } := New(sha256.New, ) .Write() .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.