Versions in this module Expand all Collapse all v0 v0.1.1 Apr 22, 2024 v0.1.0 Apr 21, 2024 Changes in this version + func CheckPasswordHash(hash, password []byte) error + func DecodeKey(keyEnc string) (*[32]byte, error) + func DecryptAsym(ciphertext io.Reader, publicKey, privateKey *[32]byte) (io.Reader, error) + func DecryptSym(ciphertext io.Reader, secretKey *[32]byte) (io.Reader, error) + func DecryptSymInMemory(ciphertext []byte, key *[32]byte) ([]byte, error) + func DefaultTLSConfig() *tls.Config + func ECDHExchange(remotePubKeyData []byte, privKeyData []byte) (sharedKey []byte, pubKey []byte, err error) + func EncryptAsym(plaintext io.Reader, publicKey, privateKey *[32]byte) (io.Reader, error) + func EncryptSym(plaintext io.Reader, secretKey *[32]byte) (io.Reader, error) + func EncryptSymInMemory(plaintext []byte, key *[32]byte) ([]byte, error) + func Hash(tag string, data []byte) []byte + func HashPassword(password []byte) ([]byte, error) + func NewTLSCert(subjectName string, san []string, expiration time.Time, ...) (certPEM, privateKeyPEM []byte, err error)