math

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: BSD-3-Clause Imports: 1 Imported by: 8

Documentation

Overview

Package math provides some utility functions for big integers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OmegaNAF

func OmegaNAF(n *big.Int, w uint) (L []int32)

OmegaNAF obtains the window-w Non-Adjacent Form of a positive number n and 1 < w < 32. The returned slice L holds n = sum( L[i]*2^i ).

Reference:

func SignedDigit

func SignedDigit(n *big.Int, w uint) (L []int32)

SignedDigit obtains the signed-digit recoding of n such that n>0 and odd and returns a list L such that n = sum( L[i]*2^(w-1) ) and L[i] are odd numbers in the set {±1, ±3, ..., ±2^(w-1)-1}, where 1 < w < 32.

References:

Types

This section is empty.

Directories

Path Synopsis
Package fp25519 provides prime field arithmetic over GF(2^255-19).
Package fp25519 provides prime field arithmetic over GF(2^255-19).
Package fp448 provides prime field arithmetic over GF(2^448-2^224-1).
Package fp448 provides prime field arithmetic over GF(2^448-2^224-1).

Jump to

Keyboard shortcuts

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