internal

package
v4.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: MIT, BSD-3-Clause, MIT Imports: 0 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addc64

func Addc64(cin, a, b uint64) (ret, cout uint64)

Adds 2 64bit digits in constant time. Returns result and carry (1 or 0)

func Subc64

func Subc64(bIn, a, b uint64) (ret, bOut uint64)

Substracts 2 64bit digits in constant time. Returns result and borrow (1 or 0)

Types

type Uint128

type Uint128 struct {
	H, L uint64
}

helper used for Uint128 representation

func Mul64

func Mul64(a, b uint64) (res Uint128)

Multiplies 2 64bit digits in constant time

Jump to

Keyboard shortcuts

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