constants

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: AGPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

	// FP12Len represents number of bytes each FP12 (Gt element) takes.
	FP12Len = 12 * 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