Documentation ¶ Index ¶ type CBC func NewCBC(iv, key, content []byte) *CBC func (cbc *CBC) Decrypt() ([]byte, error) func (cbc *CBC) Encrypt() ([]byte, error) type Signable func NewSignable(sort bool, parts ...string) *Signable func (sign *Signable) IsEqual(signature string) bool func (sign *Signable) Sign() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type CBC ¶ type CBC struct { // contains filtered or unexported fields } func NewCBC ¶ func NewCBC(iv, key, content []byte) *CBC func (*CBC) Decrypt ¶ func (cbc *CBC) Decrypt() ([]byte, error) CBC解密数据 func (*CBC) Encrypt ¶ func (cbc *CBC) Encrypt() ([]byte, error) 加密数据 type Signable ¶ type Signable struct { // contains filtered or unexported fields } func NewSignable ¶ func NewSignable(sort bool, parts ...string) *Signable func (*Signable) IsEqual ¶ func (sign *Signable) IsEqual(signature string) bool 对比签名 func (*Signable) Sign ¶ func (sign *Signable) Sign() string 生成签名 Source Files ¶ View all Source files cbc.go pkcs7.go sign.go Click to show internal directories. Click to hide internal directories.