Documentation ¶
Index ¶
- type SM4Key
- func (sm4Key *SM4Key) Bytes() ([]byte, error)
- func (sm4Key *SM4Key) Decrypt(crypted []byte) ([]byte, error)
- func (sm4Key *SM4Key) DecryptWithOpts(crypted []byte, opts *crypto.EncOpts) ([]byte, error)
- func (sm4Key *SM4Key) Encrypt(plain []byte) ([]byte, error)
- func (sm4Key *SM4Key) EncryptWithOpts(plain []byte, opts *crypto.EncOpts) ([]byte, error)
- func (sm4Key *SM4Key) String() (string, error)
- func (sm4Key *SM4Key) Type() crypto.KeyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SM4Key ¶
type SM4Key struct {
Key []byte
}
func (*SM4Key) DecryptWithOpts ¶
func (*SM4Key) EncryptWithOpts ¶
Click to show internal directories.
Click to hide internal directories.