Documentation
¶
Overview ¶
パッケージrc4はBruce Schneierの「応用暗号化」で定義されている RC4暗号を実装しています。
RC4は暗号学的に脆弱であり、安全なアプリケーションには使用すべきではありません。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipherは特定のキーを使用したRC4のインスタンスです。
func (*Cipher) XORKeyStream ¶
XORKeyStreamは、キーストリームを使用してsrcとXOR演算した結果をdstに設定します。 Dstとsrcは完全に重なるか、まったく重ならない必要があります。
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.