Documentation ¶
Overview ¶
Package arc4 provides multiple implementations of RC4-based socket encryption methods. WARNING: RC4 is widely deemed as UNSAFE by cryptography specialists. We only are providing this package for backward compatibility with existing implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCipher ¶
type AuthCipher struct { ServerEncryptionKey []byte ServerDecryptionKey []byte // contains filtered or unexported fields }
AuthCipher creates two ARC4 states for sending and recieving. They are created from pre-generated seeds, computed along with the session key.
func (*AuthCipher) Decrypt ¶
func (c *AuthCipher) Decrypt(data, tag []byte) error
func (*AuthCipher) Encrypt ¶
func (c *AuthCipher) Encrypt(data, tag []byte) error
type CipherTBC ¶
type CipherTBC struct {
// contains filtered or unexported fields
}
CipherTBC implements Vanilla encryption but with an HMAC key.
type CipherVanilla ¶
type CipherVanilla struct {
// contains filtered or unexported fields
}
CipherVanilla implements Vanilla-style encryption (Not ARC4, what even is this?) some kind of basic xor counter cipher
func (*CipherVanilla) Decrypt ¶
func (v *CipherVanilla) Decrypt(data, tag []byte) error
func (*CipherVanilla) Encrypt ¶
func (v *CipherVanilla) Encrypt(data, tag []byte) error
Click to show internal directories.
Click to hide internal directories.