signature

package
v0.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSNAPAsymmetricSignature

func GenerateSNAPAsymmetricSignature(clientSecret string, timestamp time.Time, privateKey *rsa.PrivateKey) (string, error)

GenerateSNAPAsymmetricSignature generates a signature for the given client secret and timestamp using the private key

func GenerateSNAPSymmetricSignature

func GenerateSNAPSymmetricSignature(httpMethod, endpointUrl, accessToken, clientSecret string, timestamp time.Time, body []byte) (string, error)

func ParsePrivateKey added in v0.9.4

func ParsePrivateKey(private []byte) (*rsa.PrivateKey, error)

func ParsePublicKey added in v0.9.4

func ParsePublicKey(pub []byte) (*rsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL