Documentation ¶
Overview ¶
sas provides the means to do SAS between keys
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SAS ¶
type SAS struct { KeyPair crypto.Curve25519KeyPair Secret []byte }
SAS contains the key pair and secret for SAS.
func (SAS) CalculateMAC ¶
CalculateMACFixes returns a base64 encoded, 32 byte long MAC of input.
func (SAS) CalculateMACLongKDF ¶
CalculateMACLongKDF returns a base64 encoded, 256 byte long MAC of input.
func (SAS) GenerateBytes ¶
GenerateBytes creates length bytes from the shared secret and info.
func (*SAS) SetTheirKey ¶
SetTheirKey sets the key of the other party and computes the shared secret.
Click to show internal directories.
Click to hide internal directories.