Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAES ¶
DecryptAES decrypts an AES-protected message using GCM.
func EncryptAES ¶
EncryptAES encrypts a message with AES using GCM.
func GenerateAESKey ¶
GenerateAESKey creates a new AES key for encryption.
func GenerateX509Certificate ¶
func GenerateX509Certificate(hostname string, organizationName string, validFrom time.Time, validFor time.Duration, isCertAuthority bool, rsaBits int, ecdsaCurve string) ([]byte, []byte, error)
GenerateX509Certificate generates an X509 certificate for TLS. Based on https://golang.org/src/crypto/tls/generate_cert.go.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.