Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFromTable ¶
ComputeFromTable computes g^x mod N with the pre-computation table.
func ComputeFromTableParallel ¶
ComputeFromTableParallel computes g^x mod N with the pre-computation table in parallel.
Types ¶
type PreTable ¶
type PreTable struct {
// contains filtered or unexported fields
}
PreTable only allows to pre-compute a power of 2 for the base g. base[0] should be g and n[0] is 0. base[i] = g^{2^{n[i]}} mod N
Click to show internal directories.
Click to hide internal directories.