Documentation ¶
Overview ¶
Package root provides root keys which are used to derive new chain and root keys in a ratcheting session.
Index ¶
Constants ¶
View Source
const DerivedSecretsSize = 64
DerivedSecretsSize is the size of the derived secrets for root keys.
View Source
const KdfInfo string = "WhisperRatchet"
KdfInfo is used as the info for message keys to derive secrets using a Key Derivation Function
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key is a structure for RootKeys, which are used to derive a new set of chain and root keys for every round trip of messages.
func (*Key) CreateChain ¶
func (k *Key) CreateChain(theirRatchetKey ecc.ECPublicKeyable, ourRatchetKey *ecc.ECKeyPair) (*session.KeyPair, error)
CreateChain creates a new RootKey and ChainKey from the recipient's ratchet key and our private key.
Click to show internal directories.
Click to hide internal directories.