Documentation ¶
Overview ¶
Package crypto provides functions and types for cryptographic operations (DNSSEC, TLS, ARGON2)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCertRequest ¶
func NewCertRequest(domain string)
NewCertRequest requests a new TLS certificate
func PasswordHash ¶
PasswordHash hashes a plaintext string and returns an argon2 hash byte slice
func RandomString ¶
func RandomString() string
RandomString returns a securely generated random string
Types ¶
type AcmeUser ¶
type AcmeUser struct { Email string Registration *registration.Resource // contains filtered or unexported fields }
AcmeUser implements acme.User
func (*AcmeUser) GetPrivateKey ¶
func (u *AcmeUser) GetPrivateKey() crypto.PrivateKey
func (AcmeUser) GetRegistration ¶
func (u AcmeUser) GetRegistration() *registration.Resource
type DNSSECKey ¶
type DNSSECKey struct { Base string `json:"base"` // base key filename prefix Key string `json:"key"` // DNSKEY Private string `json:"private"` // private key DSKeyTag int `json:"dskeytag"` // DS key tag DSAlgo int `json:"dsalgo"` // DS algorithm DSDigestType int `json:"dsdigesttype"` // DS digest type DSDigest string `json:"dsdigest"` // DS digest DSRecordString string `json:"dsrecordstring"` // full DS record in zone file format }
DNSSECKey stores all attributes for a DNSSEC signing key
Click to show internal directories.
Click to hide internal directories.