MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / cursorMAC

Function cursorMAC

internal/httpapi/pagination.go:128–132  ·  view source on GitHub ↗

cursorMAC computes HMAC-SHA256 of payload under secret. Mirrors approvaltoken.signMAC so the two signing paths stay convention-identical.

(secret, payload []byte)

Source from the content-addressed store, hash-verified

126// cursorMAC computes HMAC-SHA256 of payload under secret. Mirrors
127// approvaltoken.signMAC so the two signing paths stay convention-identical.
128func cursorMAC(secret, payload []byte) []byte {
129 mac := hmac.New(sha256.New, secret)
130 mac.Write(payload)
131 return mac.Sum(nil)
132}

Callers 2

EncodeCursorFunction · 0.85
DecodeCursorFunction · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected