Documentation ¶
Overview ¶
A (not so extensible) Ciphersuite for Format 2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EInvalidInput = errors.New("EInvalidInput")
View Source
var ENextKE = errors.New("Next KE Algo")
View Source
var ENextKeyRing = errors.New("Next Key Ring")
View Source
var ENoPublicKey = errors.New("No Public Key")
Functions ¶
func Register_EncryptionAlgorithm ¶
func Register_EncryptionAlgorithm(e *EncryptionAlgorithm)
func Register_KeyExchangeAlgoritm ¶
func Register_KeyExchangeAlgoritm(e *KeyExchangeAlgoritm)
Types ¶
type Curve25519_KeyRing ¶
func (Curve25519_KeyRing) Algo ¶
func (c Curve25519_KeyRing) Algo() string
func (Curve25519_KeyRing) IsKeyRing ¶
func (c Curve25519_KeyRing) IsKeyRing()
type Curve25519_PublicKey ¶
type Curve25519_PublicKey [32]byte
func (*Curve25519_PublicKey) Algo ¶
func (c *Curve25519_PublicKey) Algo() string
func (*Curve25519_PublicKey) IsPublicKey ¶
func (c *Curve25519_PublicKey) IsPublicKey()
type EncryptionAlgorithm ¶
type EncryptionAlgorithm struct { Name string Block func(e EncryptionKeyData) cipher.BlockMode Stream func(e EncryptionKeyData) cipher.Stream AEAD func(e EncryptionKeyData) cipher.AEAD }
type EncryptionKeyData ¶
type EncryptionKeyData interface {
// contains filtered or unexported methods
}
func NextKE ¶
func NextKE() (EncryptionKeyData, []byte, error)
func NextKeyRing ¶
func NextKeyRing() (EncryptionKeyData, error)
type KeyExchangeAlgoritm ¶
Click to show internal directories.
Click to hide internal directories.