Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCMSession ¶
A GCMSession stores the state of a GCM authenticated/encrypted session. This includes the read/write nonces, memory buffers, and the GCM cipher itself.
func NewGCMSession ¶
func NewGCMSession(key [32]byte, self, remote id.Signatory) (*GCMSession, error)
NewGCMSession accepts a symmetric secret key and returns a new GCMSession that is configured using the symmetric secret key.
func (*GCMSession) GetReadNonceAndIncrement ¶
func (session *GCMSession) GetReadNonceAndIncrement() [12]byte
func (*GCMSession) GetWriteNonceAndIncrement ¶
func (session *GCMSession) GetWriteNonceAndIncrement() [12]byte
Click to show internal directories.
Click to hide internal directories.