Documentation ¶
Index ¶
- func DecryptWithPrivateKey(ct []byte, priv *rsa.PrivateKey) ([]byte, error)
- func EncryptPDF(path string) error
- func EncryptPDFDirectory(p string) error
- func EncryptWithPublicKey(msg []byte, pub *rsa.PublicKey) ([]byte, error)
- func GenerateIndex(root string) error
- func GetCert() (*x509.Certificate, error)
- func GetPDFPassword() (string, error)
- func GetPDFSizes() (map[string]int64, error)
- func GetPassword() (string, error)
- func GetPrivateKey() (*rsa.PrivateKey, error)
- func GetReadSeeker(file *os.File) *bytes.Reader
- func IsEarly(cert *x509.Certificate) bool
- func IsExpired(cert *x509.Certificate) bool
- func LoadIndex() (*searchtree.BinarySearchTree, error)
- func SaveCert(keypath string, c X509) error
- func SaveEncryptionFiles() error
- func SaveFile(path string, content *bytes.Buffer) error
- type X509
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithPrivateKey ¶
func DecryptWithPrivateKey(ct []byte, priv *rsa.PrivateKey) ([]byte, error)
func EncryptPDF ¶
func EncryptPDFDirectory ¶
func EncryptWithPublicKey ¶
func GenerateIndex ¶
func GetCert ¶
func GetCert() (*x509.Certificate, error)
func GetPDFPassword ¶
func GetPDFSizes ¶
func GetPassword ¶
func GetPrivateKey ¶
func GetPrivateKey() (*rsa.PrivateKey, error)
func IsEarly ¶
func IsEarly(cert *x509.Certificate) bool
func IsExpired ¶
func IsExpired(cert *x509.Certificate) bool
func LoadIndex ¶
func LoadIndex() (*searchtree.BinarySearchTree, error)
func SaveEncryptionFiles ¶
func SaveEncryptionFiles() error
Types ¶
Click to show internal directories.
Click to hide internal directories.