keys

package
v0.0.0-...-5a51158 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBlockSize = errors.New("invalid key size")
)

Functions

This section is empty.

Types

type SM4Key

type SM4Key struct {
	// contains filtered or unexported fields
}

func NewSM4Key

func NewSM4Key(key []byte, bSize int) (*SM4Key, error)

func (*SM4Key) DecryptRK

func (h *SM4Key) DecryptRK() []uint32

func (*SM4Key) EncryptRK

func (h *SM4Key) EncryptRK() []uint32

func (*SM4Key) Init

func (h *SM4Key) Init()

初始化轮密码

func (*SM4Key) WithSalt

func (h *SM4Key) WithSalt(salt []byte, iter int)

Jump to

Keyboard shortcuts

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