Fix gomobile compilation ssues (#81)

Co-authored-by: marin thiercelin <marin.thiercelin@pm.me>
This commit is contained in:
marinthiercelin 2020-09-28 18:26:31 +02:00 committed by GitHub
parent 16024c21ec
commit 2b8d58d357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 14 deletions

View file

@ -63,17 +63,5 @@ func EncryptSignArmoredDetached(
publicKey, privateKey string,
passphrase, plainData []byte,
) (ciphertext, signature string, err error) {
var message *crypto.PlainMessage = crypto.NewPlainMessage(plainData)
// We encrypt the message
if ciphertext, err = encryptMessageArmored(publicKey, message); err != nil {
return "", "", err
}
// We sign the message
if signature, err = signDetachedArmored(privateKey, passphrase, message); err != nil {
return "", "", err
}
return ciphertext, signature, nil
return encryptSignArmoredDetached(publicKey, privateKey, passphrase, plainData)
}