<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 crypto `import "crypto"` crypto包搜集了常用的密碼(算法)常量。 ## Index * [type PublicKey](#PublicKey) * [type PrivateKey](#PrivateKey) * [type Hash](#Hash) * [func (h Hash) Available() bool](#Hash.Available) * [func (h Hash) Size() int](#Hash.Size) * [func (h Hash) New() hash.Hash](#Hash.New) * [func RegisterHash(h Hash, f func() hash.Hash)](#RegisterHash) ## type [PublicKey](https://github.com/golang/go/blob/master/src/crypto/crypto.go#L82 "View Source") ``` type PublicKey interface{} ``` 代表一個使用未指定算法的公鑰。 ## type [PrivateKey](https://github.com/golang/go/blob/master/src/crypto/crypto.go#L85 "View Source") ``` type PrivateKey interface{} ``` 代表一個使用未指定算法的私鑰。 ## type [Hash](https://github.com/golang/go/blob/master/src/crypto/crypto.go#L15 "View Source") ``` type Hash uint ``` Hash用來識別/標識另一個包里實現的加密函數。 ``` const ( MD4 Hash = 1 + iota // 導入code.google.com/p/go.crypto/md4 MD5 // 導入crypto/md5 SHA1 // 導入crypto/sha1 SHA224 // 導入crypto/sha256 SHA256 // 導入crypto/sha256 SHA384 // 導入crypto/sha512 SHA512 // 導入crypto/sha512 MD5SHA1 // 未實現;MD5+SHA1用于TLS RSA RIPEMD160 // 導入code.google.com/p/go.crypto/ripemd160 ) ``` ### func (Hash) [Available](https://github.com/golang/go/blob/master/src/crypto/crypto.go#L67 "View Source") ``` func (h Hash) Available() bool ``` 報告是否有hash函數注冊到該標識值。 ### func (Hash) [Size](https://github.com/golang/go/blob/master/src/crypto/crypto.go#L45 "View Source") ``` func (h Hash) Size() int ``` 返回給定hash函數返回值的字節長度。 ### func (Hash) [New](https://github.com/golang/go/blob/master/src/crypto/crypto.go#L56 "View Source") ``` func (h Hash) New() hash.Hash ``` 創建一個使用給定hash函數的hash.Hash接口,如果該標識值未注冊hash函數,將會panic。 ## func [RegisterHash](https://github.com/golang/go/blob/master/src/crypto/crypto.go#L74 "View Source") ``` func RegisterHash(h Hash, f func() hash.Hash) ``` 注冊一個返回給定hash接口實例的函數,并指定其標識值,該函數應在實現hash接口的包的init函數中調用。
                  <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>

                              哎呀哎呀视频在线观看