sm4

package
v0.0.0-...-02f8a93 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 16

Variables

This section is empty.

Functions

func NewCipher

func NewCipher(key []byte) (cipher.Block, error)

NewCipher security warning: this function is provided as part of cipher.Block spec. The expanded key could be left in heap memory after use, or copied around by GC or OS. Unfortunately *automatic* destroying the expanded key is rather complicated in Go. See https://github.com/golang/go/issues/18645 Also see https://github.com/awnumar/memguard

Types

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Jump to

Keyboard shortcuts

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