Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidKind for key. ErrInvalidKind = errors.New("invalid kind") )
View Source
var Module = fx.Options( fx.Provide(NewRSA), fx.Provide(NewEd25519), fx.Provide(NewGenerator), )
Module for fx.
Functions ¶
This section is empty.
Types ¶
type Ed25519 ¶ added in v1.10.3
type Ed25519 struct {
// contains filtered or unexported fields
}
Ed25519 cypher.
func NewEd25519 ¶ added in v1.10.3
func NewEd25519(privateKey ed25519.PrivateKey) *Ed25519
NewEd25519 cypher.
type Generator ¶ added in v1.10.3
type Generator struct {
// contains filtered or unexported fields
}
Generator of key pairs.
func NewGenerator ¶ added in v1.10.3
NewGenerator of key pairs.
type RSA ¶ added in v1.10.3
type RSA struct {
// contains filtered or unexported fields
}
RSA cypher.
func NewRSA ¶ added in v1.10.3
func NewRSA(publicKey *rsa.PublicKey, privateKey *rsa.PrivateKey) *RSA
NewRSA cypher.
Click to show internal directories.
Click to hide internal directories.