MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / hmacGenKey

Function hmacGenKey

util.go:30–37  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

28}
29
30func hmacGenKey(args ...string) error {
31 buf := make([]byte, auth.HMACSignatureSize)
32 if _, err := rand.Read(buf); err != nil {
33 return fmt.Errorf("CSPRNG failure: %w", err)
34 }
35 fmt.Println(hex.EncodeToString(buf))
36 return nil
37}
38
39func hmacSign(args ...string) error {
40 if len(args) != 3 {

Callers 1

runFunction · 0.85

Calls 2

ErrorfMethod · 0.80
ReadMethod · 0.45

Tested by

no test coverage detected