MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / HMACHash

Method HMACHash

pkg/crypto/keyservice.go:108–114  ·  view source on GitHub ↗
(ctx context.Context, payload []byte, label string)

Source from the content-addressed store, hash-verified

106}
107
108func (ks *keyService) HMACHash(ctx context.Context, payload []byte, label string) ([]byte, error) {
109 key, err := ks.aes128Key(ctx, label)
110 if err != nil {
111 return nil, err
112 }
113 return HMACHash(key, payload)
114}
115
116func (ks *keyService) Unwrap(ctx context.Context, ciphertext []byte, label string) ([]byte, error) {
117 key, err := ks.vault.Key(ctx, label)

Callers

nothing calls this directly

Calls 2

aes128KeyMethod · 0.95
HMACHashFunction · 0.85

Tested by

no test coverage detected