Documentation ¶
Index ¶
- Constants
- func LoadPrivateKeyFromString(key string) (*rsa.PrivateKey, error)
- func LoadRSAPublicKey(key string) (*rsa.PublicKey, error)
- func Sign(message Message, privateKey *rsa.PrivateKey) ([]byte, error)
- func Verify(signature []byte, message Message, publicKey *rsa.PublicKey) (bool, error)
- type Message
Constants ¶
View Source
const (
TimeWindow = 5 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func LoadPrivateKeyFromString ¶
func LoadPrivateKeyFromString(key string) (*rsa.PrivateKey, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.