Adds the following API functions:
- API to get signature key IDs for mobile:
func (msg *PGPMessage) GetHexSignatureKeyIDsJson() []byte
- API to get encryption key IDs for mobile:
func (msg *PGPMessage) GetHexEncryptionKeyIDsJson() []byte
- API to get the number of key packets in a PGP message:
func (msg *PGPSplitMessage) GetNumberOfKeyPackets() (int, error)
- API in package `helper` to encrypt a PGP message to an additional key:
func EncryptPGPMessageToAdditionalKey(messageToModify *crypto.PGPSplitMessage, keyRing *crypto.KeyRing, additionalKey *crypto.KeyRing) error
Use the latest version of gomobile instead of the fork of protonmail.
Use go get gomobile in the build script instead of adding it to the
go.mod by default.
Fix the script to work with latest gomobile
* modified build script to work with updated fork of go-mobile
* changed spacing and added trace for easier debugging
* fixed issue with user input overwritten
* removed mentions of make
* use go 1.16 in builds
* disabled some linters
* updated change log
Co-authored-by: wussler <aron@wussler.it>
* changed the go-mobile fork to use PM's fork
* changed build dir in build.sh
* changed the build dir so we need to change the upload source
* fix syntax err in github action
* fixed the error with the new build dir
* added the java package flag for android builds
* removed the other go-mobile forks from the go.sum
Co-authored-by: marin thiercelin <marin.thiercelin@pm.me>