sm4

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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