Documentation
¶
Index ¶
- func CreateCA(filenamePrefix, org, country, county, city, street, zipcode, email string, ...) (*x509.Certificate, *rsa.PrivateKey, error)
- func CreateCrt(...) error
- func Decode(encData []byte, key string) ([]byte, error)
- func Encode(data []byte, key string) ([]byte, error)
- func FileHash(filename string) (string, error)
- func GenerateAES256Key() string
- func Hash256(data []byte) string
- func InitSecureStore(filename string) *storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCA ¶
func CreateCA(filenamePrefix, org, country, county, city, street, zipcode, email string, years int) (*x509.Certificate, *rsa.PrivateKey, error)
func CreateCrt ¶
func CreateCrt(filenamePrefix, org, country, county, city, street, zipcode, email, ip, secret string, port int64, years int, ca *x509.Certificate, caKey *rsa.PrivateKey) error
func GenerateAES256Key ¶
func GenerateAES256Key() string
func InitSecureStore ¶
func InitSecureStore(filename string) *storage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.