Documentation ¶
Index ¶
- func NewCFB8(block cipher.Block, iv []byte, decrypt bool) cipher.Stream
- type Cfb8
- type EncryptionHolder
- type Packet
- func (p *Packet) ReadByte() byte
- func (p *Packet) ReadInt() uint32
- func (p *Packet) ReadLong() uint64
- func (p *Packet) ReadShort() uint16
- func (p *Packet) ReadString() string
- func (p *Packet) ReadVarInt() uint
- func (p *Packet) WriteByte(r byte)
- func (p *Packet) WriteInt(r uint32)
- func (p *Packet) WriteLong(r uint64)
- func (p *Packet) WriteShort(r uint16)
- func (p *Packet) WriteString(str string)
- func (p *Packet) WriteVarInt(r uint)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cfb8 ¶
type Cfb8 struct {
// contains filtered or unexported fields
}
CFB stream with 8 bit segment size See http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
func (*Cfb8) XORKeyStream ¶
type EncryptionHolder ¶
type EncryptionHolder struct { LocalBoundCryptoStream cipher.Stream RemoteBoundCryptoStream cipher.Stream }
func NewEncryptionHolder ¶
func NewEncryptionHolder(sharedSecret []byte) EncryptionHolder
func (EncryptionHolder) DecryptPacket ¶
func (c EncryptionHolder) DecryptPacket(p []byte) Packet
func (EncryptionHolder) EncryptPacket ¶
func (c EncryptionHolder) EncryptPacket(p Packet) []byte
Click to show internal directories.
Click to hide internal directories.