Documentation ¶
Index ¶
- Variables
- func CreateToken(payload string) (string, error)
- func DGenerateKeyPair() ([]byte, []byte)
- func DSign(privkey []byte, message []byte) []byte
- func DVerify(pubkey []byte, message []byte, signature []byte) bool
- func DecodeSB(data string) ([]byte, error)
- func DecodeSS(data string) (string, error)
- func EncodeBS(data []byte) string
- func EncodeSS(data string) string
- func SplitToken(token string) (string, string, string, error)
- func VerifyToken(token string, custom_public_key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Private_key []byte
View Source
var Public_key []byte
Functions ¶
func DGenerateKeyPair ¶
DGenerateKeyPair generates a public and private key pair for Dilithium
func SplitToken ¶
SplitToken decodes a JWT token into its header, payload, and signature
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.