Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bwesterb/go-exptable

Speed up modular exponentiation of Go's big.Int's using precomputed tables
https://github.com/bwesterb/go-exptable

cryptography go golang modular-exponentiation precomputed-table

Last synced: about 2 months ago
JSON representation

Speed up modular exponentiation of Go's big.Int's using precomputed tables

Awesome Lists containing this project

README

        

go-exptable
===========

Compute tables to speed up Go's `math/big.Int` modular exponentiation
for fixed base.

```go
var table exptable.Table
table.Compute(&base, &m, 4) // precomputes table for the given base
table.Exp(&result, &exponent) // sets result to base^exponent modulo m
```

[Documentation at godoc.](https://godoc.org/github.com/bwesterb/go-exptable)