Documentation
¶
Overview ¶
Package scalar128 implements the fast generation of random 128-bit scalars for the purpose of batch verification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixRawRangeVartime ¶
func FixRawRangeVartime(rawScalar *[scalar.ScalarSize]byte)
FixRawRangeVartime adjusts the raw scalar to be in the correct range, in variable-time.
From the paper:
Of course, it is also safe to simply generate z_i as a uniform random b-bit integer, disregarding the negligible chance that z_i == 0; but this requires minor technical modifications to the security guarantees stated below, so we prefer to require z != 0.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is a random 128-bit scalar generator.
func NewGenerator ¶
NewGenerator constructs a new random scalar generator, using entropy from the provided source.
Click to show internal directories.
Click to hide internal directories.