Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyManager ¶
type KeyManager struct { sync.Mutex // KeyData contains validFrom|validUntil|pubkey|signature // the client will verify the signature (made with the masterKey) KeyData []byte // PrivKey is the ephemeral key used to sign a session. Also used // in ECDH with the the client to derive symmetric keys to encrypt the communication PrivKey *ecdsa.PrivateKey // MasterPubKeyPEM is masterKey public key in PEM format MasterPubKeyPEM []byte // contains filtered or unexported fields }
func (*KeyManager) GetActiveKey ¶
func (k *KeyManager) GetActiveKey() (ecdsa.PrivateKey, []byte)
GetActiveKey returns the currently active signing key as well as KeyData associated with it
func (*KeyManager) Init ¶
func (k *KeyManager) Init()
Click to show internal directories.
Click to hide internal directories.