# Functions
DecryptAttachment takes a keypacket and datpacket and returns a decrypted PlainMessage Specifically designed for attachments rather than text messages.
DecryptAttachmentWithKey decrypts a binary file Using a given armored private key and its passphrase.
DecryptBinaryMessageArmored decrypts an armored PGP message given a private key and its passphrase.
DecryptExplicitVerify decrypts a PGP message given a private keyring and a public keyring to verify the embedded signature.
DecryptExplicitVerifyWithContext decrypts a PGP message given a private keyring and a public keyring to verify the embedded signature.
DecryptMessageArmored decrypts an armored PGP message given a private key and its passphrase.
DecryptMessageWithPassword decrypts an armored message with a random token.
DecryptSessionKey decrypts a session key using a given armored private key and its passphrase.
DecryptSessionKeyExplicitVerify decrypts a PGP data packet given a session key and a public keyring to verify the embedded signature.
DecryptSessionKeyExplicitVerifyWithContext decrypts a PGP data packet given a session key and a public keyring to verify the embedded signature.
DecryptVerifyArmoredDetached decrypts an armored pgp message and verify a detached armored encrypted signature given a publicKey, and a privateKey with its passphrase.
DecryptVerifyAttachment decrypts and verifies an attachment split into the keyPacket, dataPacket and an armored (!) signature, given a publicKey, and a privateKey with its passphrase.
DecryptVerifyBinaryDetached decrypts binary encrypted data and verify a detached armored encrypted signature given a publicKey, and a privateKey with its passphrase.
DecryptVerifyMessageArmored decrypts an armored PGP message given a private key and its passphrase and verifies the embedded signature.
EncryptAttachment encrypts a file given a plainData and a fileName.
EncryptAttachmentWithKey encrypts a binary file Using a given armored public key.
EncryptBinaryMessageArmored generates an armored PGP message given a binary data and an armored public key.
EncryptMessageArmored generates an armored PGP message given a plaintext and an armored public key.
EncryptMessageWithPassword encrypts a string with a passphrase using AES256.
EncryptPGPMessageToAdditionalKey decrypts the session key of the input PGPSplitMessage with a private key in keyRing and encrypts it towards the additionalKeys by adding the additional key packets to the input PGPSplitMessage.
EncryptSessionKey encrypts a session key using a given armored public key.
EncryptSignArmoredDetached takes a public key for encryption, a private key and its passphrase for signature, and the plaintext data Returns an armored ciphertext and a detached armored signature.
EncryptSignArmoredDetachedMobile wraps the encryptSignArmoredDetached method to have only one return argument for mobile.
EncryptSignAttachment encrypts an attachment using a detached signature, given a publicKey, a privateKey and its passphrase, the filename, and the unencrypted file data.
EncryptSignBinaryDetached takes a public key for encryption, a private key and its passphrase for signature, and the plaintext data Returns encrypted binary data and a detached armored encrypted signature.
EncryptSignBinaryDetachedMobile wraps the encryptSignBinaryDetached method to have only one return argument for mobile.
EncryptSignMessageArmored generates an armored signed PGP message given a plaintext and an armored public key a private key and its passphrase.
FreeOSMemory can be used to explicitly call the garbage collector and return the unused memory to the OS.
GenerateKey generates a key of the given keyType ("rsa" or "x25519"), encrypts it, and returns an armored string.
GetJsonSHA256Fingerprints returns the SHA256 fingeprints of key and subkeys, encoded in JSON, since gomobile can not handle arrays.
No description provided by the author
NewGo2AndroidReader wraps a native golang Reader to be usable in the mobile app runtime (via gomobile).
NewGo2IOSReader wraps a native golang Reader to be usable in the ios app runtime (via gomobile).
NewMobile2GoReader wraps a MobileReader to be usable in the golang runtime (via gomobile).
NewMobile2GoWriter wraps a writer to be usable in the golang runtime (via gomobile).
NewMobile2GoWriterWithSHA256 wraps a writer to be usable in the golang runtime (via gomobile).
NewMobileReadResult initialize a MobileReadResult with the correct values.
QuickCheckDecrypt checks with high probability if the provided session key can decrypt the encrypted data packet given its 24 byte long prefix.
QuickCheckDecryptReader checks with high probability if the provided session key can decrypt a data packet given its 24 byte long prefix.
SignCleartextMessage signs text given a private keyring, canonicalizes and trims the newlines, and returns the PGP-compliant special armoring.
SignCleartextMessageArmored signs text given a private key and its passphrase, canonicalizes and trims the newlines, and returns the PGP-compliant special armoring.
UpdatePrivateKeyPassphrase decrypts the given armored privateKey with oldPassphrase, re-encrypts it with newPassphrase, and returns the new armored key.
VerifyCleartextMessage verifies PGP-compliant armored signed plain text given the public keyring and returns the text or err if the verification fails.
VerifyCleartextMessageArmored verifies PGP-compliant armored signed plain text given the public key and returns the text or err if the verification fails.
VerifySignatureExplicit calls the reader's VerifySignature() and tries to cast the returned error to a SignatureVerificationError.
# Constants
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Go2AndroidReader is used to wrap a native golang Reader in the golang runtime, to be usable in the android app runtime (via gomobile).
Go2IOSReader is used to wrap a native golang Reader in the golang runtime, to be usable in the iOS app runtime (via gomobile) as a MobileReader.
Mobile2GoReader is used to wrap a MobileReader in the mobile app runtime, to be usable in the golang runtime (via gomobile) as a native Reader.
Mobile2GoWriter is used to wrap a writer in the mobile app runtime, to be usable in the golang runtime (via gomobile).
Mobile2GoWriterWithSHA256 is used to wrap a writer in the mobile app runtime, to be usable in the golang runtime (via gomobile).
MobileReadResult is what needs to be returned by MobileReader.Read.
# Interfaces
MobileReader is the interface that readers in the mobile runtime must use and implement.