constants

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package constants declares system-wide constants.

Index

Constants

View Source
const (
	// NumberOfEntropyBytes defines number of bytes of entropy used to seed RNG.
	NumberOfEntropyBytes = 256

	// MB represents number of bytes each BIG takes.
	MB = int(Curve.MODBYTES)

	// BIGLen is alias for MB.
	BIGLen = MB

	// ECPLen represents number of bytes each ECP takes.
	ECPLen = MB + 1

	// ECPLenUC represents number of bytes each ECP takes in uncompressed form.
	ECPLenUC = 2*MB + 1

	// ECP2Len represents number of bytes each ECP2 takes.
	ECP2Len = 4 * MB

	// SecretKeyType defines PEM Type for Coconut Secret Key.
	SecretKeyType = "COCONUT SECRET KEY"

	// VerificationKeyType defines PEM Type for Coconut Verification Key.
	VerificationKeyType = "COCONUT VERIFICATION KEY"

	/* #nosec G101 */
	// ThresholdSecretKeyType defines PEM Type for Coconut Threshold Secret Key.
	ThresholdSecretKeyType = "COCONUT THRESHOLD SECRET KEY"

	// ThresholdVerificationKeyType defines PEM Type for Coconut Threshold Verification Key.
	ThresholdVerificationKeyType = "COCONUT THRESHOLD VERIFICATION KEY"

	// ElGamalPublicKeyType defines PEM Type for Coconut-specific ElGamal Public Key.
	ElGamalPublicKeyType = "COCONUT-ELGAMAL PUBLIC KEY"

	// ElGamalPrivateKeyType defines PEM Type for Coconut-specific ElGamal Private Key.
	ElGamalPrivateKeyType = "COCONUT-ELGAMAL PRIVATE KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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