Documentation ¶
Index ¶
- func CheckHashPassphrase(publication *models.Publication, hashPassphrase []byte) bool
- func CheckPassphrase(publication *models.Publication, passphrase string) bool
- func DecryptData(publication *models.Publication, link models.Link, reader io.ReadSeeker) (bytes.Buffer, error)
- func HasGoodKey(publication *models.Publication) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHashPassphrase ¶
func CheckHashPassphrase(publication *models.Publication, hashPassphrase []byte) bool
CheckHashPassphrase check if the hash is good by decrypting the key check and compare it to the license id
func CheckPassphrase ¶
func CheckPassphrase(publication *models.Publication, passphrase string) bool
CheckPassphrase create and store the hash and call the check for hashed pass phrse
func DecryptData ¶
func DecryptData(publication *models.Publication, link models.Link, reader io.ReadSeeker) (bytes.Buffer, error)
DecryptData decrypt data from the stream
func HasGoodKey ¶
func HasGoodKey(publication *models.Publication) bool
HasGoodKey check if the Publication contains hashed pass phrase or pass phrase and these information are good
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.