Versions in this module Expand all Collapse all v0 v0.2.17 Jun 25, 2023 v0.0.1 Jun 25, 2023 Changes in this version + const NonceLength + const NonceSymbols + func DecryptAES256GCM(aesKey, associatedData, nonce, ciphertext string) (plaintext string, err error) + func DecryptOAEP(ciphertext string, privateKey *rsa.PrivateKey) (message string, err error) + func DecryptPKCS1v15(ciphertext string, privateKey *rsa.PrivateKey) (message string, err error) + func EncryptOAEPWithCertificate(message string, certificate *x509.Certificate) (ciphertext string, err error) + func EncryptOAEPWithPublicKey(message string, publicKey *rsa.PublicKey) (ciphertext string, err error) + func EncryptPKCS1v15WithCertificate(message string, certificate *x509.Certificate) (ciphertext string, err error) + func EncryptPKCS1v15WithPublicKey(message string, publicKey *rsa.PublicKey) (ciphertext string, err error) + func GenerateNonce() (string, error) + func GetCertificateSerialNumber(certificate x509.Certificate) string + func IsCertExpired(certificate x509.Certificate, now time.Time) bool + func IsCertValid(certificate x509.Certificate, now time.Time) bool + func IsCertificateExpired(certificate x509.Certificate, now time.Time) bool + func IsCertificateValid(certificate x509.Certificate, now time.Time) bool + func LoadCertificate(certificateStr string) (certificate *x509.Certificate, err error) + func LoadCertificateWithPath(path string) (certificate *x509.Certificate, err error) + func LoadPrivateKey(privateKeyStr string) (privateKey *rsa.PrivateKey, err error) + func LoadPrivateKeyWithPath(path string) (privateKey *rsa.PrivateKey, err error) + func LoadPublicKey(publicKeyStr string) (publicKey *rsa.PublicKey, err error) + func LoadPublicKeyWithPath(path string) (publicKey *rsa.PublicKey, err error) + func SignSHA256WithRSA(source string, privateKey *rsa.PrivateKey) (signature string, err error)