<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # package rc4 `import "crypto/rc4"` rc4包實現了RC4加密算法,參見Bruce Schneier's Applied Cryptography。 ## Index * [type KeySizeError](#KeySizeError) * [func (k KeySizeError) Error() string](#KeySizeError.Error) * [type Cipher](#Cipher) * [func NewCipher(key []byte) (\*Cipher, error)](#NewCipher) * [func (c \*Cipher) Reset()](#Cipher.Reset) * [func (c \*Cipher) XORKeyStream(dst, src []byte)](#Cipher.XORKeyStream) ## type [KeySizeError](https://github.com/golang/go/blob/master/src/crypto/rc4/rc4.go#L20 "View Source") ``` type KeySizeError int ``` ### func (KeySizeError) [Error](https://github.com/golang/go/blob/master/src/crypto/rc4/rc4.go#L22 "View Source") ``` func (k KeySizeError) Error() string ``` ## type [Cipher](https://github.com/golang/go/blob/master/src/crypto/rc4/rc4.go#L15 "View Source") ``` type Cipher struct { // 內含隱藏或非導出字段 } ``` Cipher是一個使用特定密鑰的RC4實例,本類型實現了cipher.Stream接口。 ### func [NewCipher](https://github.com/golang/go/blob/master/src/crypto/rc4/rc4.go#L28 "View Source") ``` func NewCipher(key []byte) (*Cipher, error) ``` NewCipher創建并返回一個新的Cipher。參數key是RC4密鑰,至少1字節,最多256字節。 ### func (\*Cipher) [Reset](https://github.com/golang/go/blob/master/src/crypto/rc4/rc4.go#L47 "View Source") ``` func (c *Cipher) Reset() ``` Reset方法會清空密鑰數據,以便將其數據從程序內存中清除(以免被破解) ### func (\*Cipher) [XORKeyStream](https://github.com/golang/go/blob/master/src/crypto/rc4/rc4_asm.go#L13 "View Source") ``` func (c *Cipher) XORKeyStream(dst, src []byte) ``` XORKeyStream方法將src的數據與秘鑰生成的偽隨機位流取XOR并寫入dst。dst和src可指向同一內存地址;但如果指向不同則其底層內存不可重疊。 ## Bugs [?](https://github.com/golang/go/blob/master/src/crypto/rc4/rc4.go#L9 "View Source") RC4被廣泛使用,但設計上的缺陷使它很少用于較新的協議中。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看