safeprime

package module
v0.0.0-...-215fbc7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 3 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

safeprime

Go binding for OpenSSL's safe prime generator.

Generating large safe prime numbers (e.g., of 2k bits) can take prohibitively long in pure Go. This library provides a Go binding for OpenSSL's much faster BN_generate_prime_ex.

Documentation

Overview

Package safeprime is a small wrapper around openssl's BN_generate_prime_ex for generating safe primes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(bitsize int) (*big.Int, error)

Generate uses openssl's BN_generate_prime_ex to generate a new safe prime of the given size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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