Documentation ¶
Index ¶
- func MustEC256() *ecdsa.PrivateKey
- func MustEC384() *ecdsa.PrivateKey
- func MustRSA2048() *rsa.PrivateKey
- func MustRSA4096() *rsa.PrivateKey
- func NewEC256(tb testing.TB) *ecdsa.PrivateKey
- func NewEC384(tb testing.TB) *ecdsa.PrivateKey
- func NewRSA2048(tb testing.TB) *rsa.PrivateKey
- func NewRSA4096(tb testing.TB) *rsa.PrivateKey
- type Generator
- type Keys
- func (ks *Keys) MustEC256() *ecdsa.PrivateKey
- func (ks *Keys) MustEC384() *ecdsa.PrivateKey
- func (ks *Keys) MustRSA2048() *rsa.PrivateKey
- func (ks *Keys) MustRSA4096() *rsa.PrivateKey
- func (ks *Keys) NewEC256(tb testing.TB) *ecdsa.PrivateKey
- func (ks *Keys) NewEC384(tb testing.TB) *ecdsa.PrivateKey
- func (ks *Keys) NewRSA2048(tb testing.TB) *rsa.PrivateKey
- func (ks *Keys) NewRSA4096(tb testing.TB) *rsa.PrivateKey
- func (ks *Keys) NextEC256() (*ecdsa.PrivateKey, error)
- func (ks *Keys) NextEC384() (*ecdsa.PrivateKey, error)
- func (ks *Keys) NextRSA2048() (*rsa.PrivateKey, error)
- func (ks *Keys) NextRSA4096() (*rsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustEC256 ¶
func MustEC256() *ecdsa.PrivateKey
func MustEC384 ¶ added in v0.12.2
func MustEC384() *ecdsa.PrivateKey
func MustRSA2048 ¶ added in v0.12.2
func MustRSA2048() *rsa.PrivateKey
func MustRSA4096 ¶ added in v0.12.2
func MustRSA4096() *rsa.PrivateKey
func NewRSA2048 ¶
func NewRSA2048(tb testing.TB) *rsa.PrivateKey
func NewRSA4096 ¶
func NewRSA4096(tb testing.TB) *rsa.PrivateKey
Types ¶
type Generator ¶ added in v1.5.0
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateEC256Key ¶ added in v1.5.0
func (g *Generator) GenerateEC256Key() (*ecdsa.PrivateKey, error)
func (*Generator) GenerateEC384Key ¶ added in v1.5.0
func (g *Generator) GenerateEC384Key() (*ecdsa.PrivateKey, error)
func (*Generator) GenerateRSA2048Key ¶ added in v1.5.0
func (g *Generator) GenerateRSA2048Key() (*rsa.PrivateKey, error)
func (*Generator) GenerateRSA4096Key ¶ added in v1.5.0
func (g *Generator) GenerateRSA4096Key() (*rsa.PrivateKey, error)
type Keys ¶ added in v0.12.2
type Keys struct {
// contains filtered or unexported fields
}
func (*Keys) MustEC256 ¶ added in v0.12.2
func (ks *Keys) MustEC256() *ecdsa.PrivateKey
func (*Keys) MustEC384 ¶ added in v0.12.2
func (ks *Keys) MustEC384() *ecdsa.PrivateKey
func (*Keys) MustRSA2048 ¶ added in v0.12.2
func (ks *Keys) MustRSA2048() *rsa.PrivateKey
func (*Keys) MustRSA4096 ¶ added in v0.12.2
func (ks *Keys) MustRSA4096() *rsa.PrivateKey
func (*Keys) NewRSA2048 ¶ added in v0.12.2
func (ks *Keys) NewRSA2048(tb testing.TB) *rsa.PrivateKey
func (*Keys) NewRSA4096 ¶ added in v0.12.2
func (ks *Keys) NewRSA4096(tb testing.TB) *rsa.PrivateKey
func (*Keys) NextRSA2048 ¶ added in v1.0.0
func (ks *Keys) NextRSA2048() (*rsa.PrivateKey, error)
func (*Keys) NextRSA4096 ¶ added in v1.0.0
func (ks *Keys) NextRSA4096() (*rsa.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.