pqcrypto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const DigestLength = 32

DigestLength sets the signature digest exact length

View Source
const DilithiumPublicKeyLength = dilithium.CryptoPublicKeyBytes
View Source
const DilithiumSignatureLength = dilithium.CryptoBytes

Variables

This section is empty.

Functions

func DilithiumPKToAddress

func DilithiumPKToAddress(publicKey []byte) common.Address

func GenerateDilithiumKey

func GenerateDilithiumKey() (*dilithium.Dilithium, error)

func HexToDilithium

func HexToDilithium(hexSeedStr string) (*dilithium.Dilithium, error)

HexToDilithium parses a hex seed (not extended hex seed).

func LoadDilithium

func LoadDilithium(file string) (*dilithium.Dilithium, error)

LoadDilithium loads Dilithium from the given file having hex seed (not extended hex seed).

func Sign

func Sign(digestHash []byte, d *dilithium.Dilithium) ([]byte, error)

func ToDilithiumUnsafe

func ToDilithiumUnsafe(seed []byte) *dilithium.Dilithium

ToDilithiumUnsafe blindly converts a binary blob to a private key. It should almost never be used unless you are sure the input is valid and want to avoid hitting errors due to bad origin encoding (0 prefixes cut off).

Types

This section is empty.

Jump to

Keyboard shortcuts

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