Namespace: go.std.crypto.rc4
v1.0Contents
Summary
Provides a low-level interface to the crypto/rc4 package.
Package rc4 implements RC4 encryption, as defined in Bruce Schneier's
Applied Cryptography.
RC4 is cryptographically broken and should not be used for secure
applications.
Index
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
NewCipher
Function v1.0(NewCipher key)
NewCipher creates and returns a new Cipher. The key argument should be the
RC4 key, at least 1 byte and at most 256 bytes.
Go input arguments: (key []byte)
Go returns: (*Cipher, error)
Joker input arguments: [^arrayOfByte key]
Joker returns: [^*Cipher, ^Error]
Types
-
*Cipher
Concrete Type v1.0A Cipher is an instance of RC4 using a particular key.
-
Reset
Receiver for *Cipher v1.0([])
Reset zeros the key data and makes the Cipher unusable.
Deprecated: Reset can't guarantee that the key will be entirely removed from
the process's memory.
-
XORKeyStream
Receiver for *Cipher v1.0([dst src])
XORKeyStream sets dst to the result of XORing src with the key stream.
Dst and src must overlap entirely or not at all.
-
*KeySizeError
Concrete Type v1.0 -
Cipher
Concrete Type v1.0A Cipher is an instance of RC4 using a particular key.
-
KeySizeError
Concrete Type v1.0 -
Error
Receiver for KeySizeError v1.0([])
-
arrayOfCipher
Concrete Type v1.0A Cipher is an instance of RC4 using a particular key.
-
arrayOfKeySizeError
Concrete Type v1.0