Move getters to file excluded from android build (#88)
This commit is contained in:
parent
ac353fcbef
commit
d53bd4a351
6 changed files with 26 additions and 20 deletions
|
|
@ -5,7 +5,6 @@ import (
|
|||
"crypto"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"time"
|
||||
|
||||
"golang.org/x/crypto/openpgp"
|
||||
"golang.org/x/crypto/openpgp/packet"
|
||||
|
|
@ -86,8 +85,8 @@ func asymmetricEncrypt(plainMessage *PlainMessage, publicKey, privateKey *KeyRin
|
|||
|
||||
hints := &openpgp.FileHints{
|
||||
IsBinary: plainMessage.IsBinary(),
|
||||
FileName: plainMessage.GetFilename(),
|
||||
ModTime: time.Unix(int64(plainMessage.GetTime()), 0),
|
||||
FileName: plainMessage.Filename,
|
||||
ModTime: plainMessage.getFormattedTime(),
|
||||
}
|
||||
|
||||
if plainMessage.IsBinary() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue