sm4

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

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 (s SM4Key) Bytes() ([]byte, error)

func (SM4Key) Decrypt

func (s SM4Key) Decrypt(ciphertext []byte) ([]byte, error)

func (SM4Key) DecryptWithOpts

func (s SM4Key) DecryptWithOpts(ciphertext []byte, opts *crypto.EncOpts) ([]byte, error)

func (SM4Key) Encrypt

func (s SM4Key) Encrypt(plain []byte) ([]byte, error)

func (SM4Key) EncryptWithOpts

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

func (SM4Key) String

func (s SM4Key) String() (string, error)

func (SM4Key) Type

func (s SM4Key) Type() crypto.KeyType

Jump to

Keyboard shortcuts

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