brainpool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

Package brainpool provides generator functions for Brainpool Elliptic Curves

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateP160r1

func GenerateP160r1() (*rome.ECKey, error)

GenerateP160r1 will create a new Brainpool P160r elliptic curve public/private key pair

Example
package main

import (
	"fmt"

	"github.com/go-compile/rome/brainpool"
)

func main() {
	key, err := brainpool.GenerateP160r1()
	if err != nil {
		panic(err)
	}

	fmt.Printf("Curve: %s\n", key.Public().Name())
}
Output:

Curve: P160r1

func GenerateP160t1

func GenerateP160t1() (*rome.ECKey, error)

GenerateP160t1 will create a new Brainpool P160t1 elliptic curve public/private key pair

func GenerateP192r1

func GenerateP192r1() (*rome.ECKey, error)

GenerateP192r1 will create a new Brainpool P192r1 elliptic curve public/private key pair

Example
package main

import (
	"fmt"

	"github.com/go-compile/rome/brainpool"
)

func main() {
	key, err := brainpool.GenerateP192r1()
	if err != nil {
		panic(err)
	}

	fmt.Printf("Curve: %s\n", key.Public().Name())
}
Output:

Curve: P192r1

func GenerateP192t1

func GenerateP192t1() (*rome.ECKey, error)

GenerateP192t1 will create a new Brainpool P192t1 elliptic curve public/private key pair

func GenerateP224r1

func GenerateP224r1() (*rome.ECKey, error)

GenerateP224r1 will create a new Brainpool P224r1 elliptic curve public/private key pair

Example
package main

import (
	"fmt"

	"github.com/go-compile/rome/brainpool"
)

func main() {
	key, err := brainpool.GenerateP224r1()
	if err != nil {
		panic(err)
	}

	fmt.Printf("Curve: %s\n", key.Public().Name())
}
Output:

Curve: P224r1

func GenerateP224t1

func GenerateP224t1() (*rome.ECKey, error)

GenerateP224t1 will create a new Brainpool P224t1 elliptic curve public/private key pair

func GenerateP256r1

func GenerateP256r1() (*rome.ECKey, error)

GenerateP256r1 will create a new Brainpool P256r1 elliptic curve public/private key pair

func GenerateP256t1

func GenerateP256t1() (*rome.ECKey, error)

GenerateP256t1 will create a new Brainpool P256t1 elliptic curve public/private key pair

func GenerateP320r1

func GenerateP320r1() (*rome.ECKey, error)

GenerateP320r1 will create a new Brainpool elliptic curve public/private key pair

func GenerateP320t1

func GenerateP320t1() (*rome.ECKey, error)

GenerateP320t1 will create a new Brainpool elliptic curve public/private key pair

func GenerateP384r1

func GenerateP384r1() (*rome.ECKey, error)

GenerateP384r1 will create a new Brainpool elliptic curve public/private key pair

func GenerateP384t1

func GenerateP384t1() (*rome.ECKey, error)

GenerateP384t1 will create a new Brainpool elliptic curve public/private key pair

func GenerateP512r1

func GenerateP512r1() (*rome.ECKey, error)

GenerateP512r1 will create a new Brainpool elliptic curve public/private key pair

Example
package main

import (
	"fmt"

	"github.com/go-compile/rome/brainpool"
)

func main() {
	key, err := brainpool.GenerateP512r1()
	if err != nil {
		panic(err)
	}

	fmt.Printf("Curve: %s\n", key.Public().Name())
}
Output:

Curve: P512r1

func GenerateP512t1

func GenerateP512t1() (*rome.ECKey, error)

GenerateP512t1 will create a new Brainpool elliptic curve public/private key pair

Example
package main

import (
	"fmt"

	"github.com/go-compile/rome/brainpool"
)

func main() {
	key, err := brainpool.GenerateP512t1()
	if err != nil {
		panic(err)
	}

	fmt.Printf("Curve: %s\n", key.Public().Name())
}
Output:

Curve: P512t1

Types

This section is empty.

Directories

Path Synopsis
Package brainpool provides the elliptic curves specified in rfc 5639
Package brainpool provides the elliptic curves specified in rfc 5639

Jump to

Keyboard shortcuts

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