sm4

package
v0.0.0-...-8ad0a2a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.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