Documentation ¶
Index ¶
- type SM4Key
- func (s SM4Key) Bytes() ([]byte, error)
- func (s SM4Key) Decrypt(ciphertext []byte) ([]byte, error)
- func (s SM4Key) DecryptWithOpts(ciphertext []byte, opts *crypto.EncOpts) ([]byte, error)
- func (s SM4Key) Encrypt(plain []byte) ([]byte, error)
- func (s SM4Key) EncryptWithOpts(plain []byte, opts *crypto.EncOpts) ([]byte, error)
- func (s SM4Key) String() (string, error)
- func (s 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.