utils

package
v0.0.0-...-3f429c2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPrimitiveRoot

func FindPrimitiveRoot(p *big.Int) *big.Int

func GenerateLargePrime

func GenerateLargePrime(bits int) (*big.Int, error)

GenerateLargePrime param: bit: number of prime

func GeneratePrivateKey

func GeneratePrivateKey(p *big.Int) (*big.Int, error)

func GeneratePubKey

func GeneratePubKey(g, p, a *big.Int) *big.Int

func GenerateSharedKey

func GenerateSharedKey(PubKey, p, PriKey *big.Int) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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