Documentation ¶
Index ¶
- func CheckError(e error)
- func CreateCookie(ip string, payload *CookiePayload, privkey *ecdsa.PrivateKey, ...) string
- func CreateHash(ip string, sso_cookie *Cookie) []byte
- func PrintPublicKey(pubkey crypto.PublicKey)
- func ReadECCPrivateKeyPem(filename string) (*ecdsa.PrivateKey, error)
- func ReadECCPublicKeyPem(filename string, Pubkey crypto.PublicKey) (interface{}, error)
- func VerifyCookie(ip string, sso_cookie *Cookie, pubkey *ecdsa.PublicKey) bool
- type Cookie
- type CookiePayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(e error)
func CreateCookie ¶
func CreateCookie(ip string, payload *CookiePayload, privkey *ecdsa.PrivateKey, expiry time.Duration) string
func CreateHash ¶
func PrintPublicKey ¶
func ReadECCPrivateKeyPem ¶
func ReadECCPrivateKeyPem(filename string) (*ecdsa.PrivateKey, error)
func ReadECCPublicKeyPem ¶
Types ¶
type CookiePayload ¶
Click to show internal directories.
Click to hide internal directories.