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

Method Decrypt

pkg/crypto/keyservice.go:41–41  ·  view source on GitHub ↗

Decrypt decrypts messages of variable length using AES 128 GCM. The encryption key is referenced using the label.

(ctx context.Context, ciphertext []byte, label string)

Source from the content-addressed store, hash-verified

39 // Decrypt decrypts messages of variable length using AES 128 GCM.
40 // The encryption key is referenced using the label.
41 Decrypt(ctx context.Context, ciphertext []byte, label string) ([]byte, error)
42
43 // ServerCertificate returns the X.509 certificate and private key of the given label.
44 ServerCertificate(ctx context.Context, label string) (tls.Certificate, error)

Callers 6

TestMemKeyVaultFunction · 0.95
EncryptJoinAcceptFunction · 0.65
UnwrapKeyFunction · 0.65
getEndDeviceMethod · 0.65
getGatewayMethod · 0.65
listGatewaysMethod · 0.65

Implementers 2

keyServicepkg/crypto/keyservice.go
mockKeyServicepkg/crypto/cryptoutil/keyservice_cache

Calls

no outgoing calls

Tested by 1

TestMemKeyVaultFunction · 0.76