Documentation
¶
Overview ¶
Package registration contains functions for generating data for registration. This includes base key and user ID generation
Index ¶
- func CreateClientHMAC(sessionKey, encryptedKey []byte, h func() hash.Hash) []byte
- func GenerateBaseKey(g *cyclic.Group, peerPubKey *cyclic.Int, ownPrivKey *cyclic.Int, h hash.Hash) *cyclic.Int
- func SignWithTimestamp(rand io.Reader, priv *rsa.PrivateKey, timestampNano int64, ...) ([]byte, error)
- func VerifyClientHMAC(sessionKey, encryptedKey []byte, h func() hash.Hash, receivedHmac []byte) bool
- func VerifyWithTimestamp(serverPubKey *rsa.PublicKey, timestampNano int64, userPubKeyPem string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientHMAC ¶
CreateClientHMAC constructs an HMAC on the encrypted client key.
func GenerateBaseKey ¶
func GenerateBaseKey(g *cyclic.Group, peerPubKey *cyclic.Int, ownPrivKey *cyclic.Int, h hash.Hash) *cyclic.Int
GenerateBaseKey generates a Base Key from DHKX using RSA Keys g is the group used in RSA peerPubKey is the RSA PublicKey of the peer ownPrivKey is the RSA PrivateKey of the caller h is the hash to be used on the DHKX sessionKey Returns base key to be used in CMIX
func SignWithTimestamp ¶
func SignWithTimestamp(rand io.Reader, priv *rsa.PrivateKey, timestampNano int64, userPubKeyPem string) ([]byte, error)
SignWithTimestamp signs a hash of the timestamp and the user's public key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.