sm4

package
v2.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

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) Bytes

func (sm4Key *SM4Key) Bytes() ([]byte, error)

func (*SM4Key) Decrypt

func (sm4Key *SM4Key) Decrypt(crypted []byte) ([]byte, error)

func (*SM4Key) DecryptWithOpts

func (sm4Key *SM4Key) DecryptWithOpts(crypted []byte, opts *crypto.EncOpts) ([]byte, error)

func (*SM4Key) Encrypt

func (sm4Key *SM4Key) Encrypt(plain []byte) ([]byte, error)

func (*SM4Key) EncryptWithOpts

func (sm4Key *SM4Key) EncryptWithOpts(plain []byte, opts *crypto.EncOpts) ([]byte, error)

func (*SM4Key) String

func (sm4Key *SM4Key) String() (string, error)

func (*SM4Key) Type

func (sm4Key *SM4Key) Type() crypto.KeyType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL