Documentation
¶
Overview ¶
Package brainpool provides generator functions for Brainpool Elliptic Curves
Index ¶
- func GenerateP160r1() (*rome.ECKey, error)
- func GenerateP160t1() (*rome.ECKey, error)
- func GenerateP192r1() (*rome.ECKey, error)
- func GenerateP192t1() (*rome.ECKey, error)
- func GenerateP224r1() (*rome.ECKey, error)
- func GenerateP224t1() (*rome.ECKey, error)
- func GenerateP256r1() (*rome.ECKey, error)
- func GenerateP256t1() (*rome.ECKey, error)
- func GenerateP320r1() (*rome.ECKey, error)
- func GenerateP320t1() (*rome.ECKey, error)
- func GenerateP384r1() (*rome.ECKey, error)
- func GenerateP384t1() (*rome.ECKey, error)
- func GenerateP512r1() (*rome.ECKey, error)
- func GenerateP512t1() (*rome.ECKey, error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateP160r1 ¶
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 ¶
GenerateP160t1 will create a new Brainpool P160t1 elliptic curve public/private key pair
func GenerateP192r1 ¶
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 ¶
GenerateP192t1 will create a new Brainpool P192t1 elliptic curve public/private key pair
func GenerateP224r1 ¶
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 ¶
GenerateP224t1 will create a new Brainpool P224t1 elliptic curve public/private key pair
func GenerateP256r1 ¶
GenerateP256r1 will create a new Brainpool P256r1 elliptic curve public/private key pair
func GenerateP256t1 ¶
GenerateP256t1 will create a new Brainpool P256t1 elliptic curve public/private key pair
func GenerateP320r1 ¶
GenerateP320r1 will create a new Brainpool elliptic curve public/private key pair
func GenerateP320t1 ¶
GenerateP320t1 will create a new Brainpool elliptic curve public/private key pair
func GenerateP384r1 ¶
GenerateP384r1 will create a new Brainpool elliptic curve public/private key pair
func GenerateP384t1 ¶
GenerateP384t1 will create a new Brainpool elliptic curve public/private key pair
func GenerateP512r1 ¶
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 ¶
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.