mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
Some more verbose logs
This commit is contained in:
parent
c9f6f56827
commit
b5097b7a41
@ -385,6 +385,7 @@ public class ApgService extends Service {
|
|||||||
InputData _in = new InputData(_inStream, 0); // XXX Size second param?
|
InputData _in = new InputData(_inStream, 0); // XXX Size second param?
|
||||||
|
|
||||||
OutputStream _out = new ByteArrayOutputStream();
|
OutputStream _out = new ByteArrayOutputStream();
|
||||||
|
Log.v(TAG, "About to encrypt");
|
||||||
try {
|
try {
|
||||||
Apg.encrypt(getBaseContext(), // context
|
Apg.encrypt(getBaseContext(), // context
|
||||||
_in, // input stream
|
_in, // input stream
|
||||||
@ -450,6 +451,7 @@ public class ApgService extends Service {
|
|||||||
InputStream inStream = new ByteArrayInputStream(pArgs.getString(arg.MESSAGE.name()).getBytes());
|
InputStream inStream = new ByteArrayInputStream(pArgs.getString(arg.MESSAGE.name()).getBytes());
|
||||||
InputData in = new InputData(inStream, 0); // XXX what size in second parameter?
|
InputData in = new InputData(inStream, 0); // XXX what size in second parameter?
|
||||||
OutputStream out = new ByteArrayOutputStream();
|
OutputStream out = new ByteArrayOutputStream();
|
||||||
|
Log.v(TAG, "About to decrypt");
|
||||||
try {
|
try {
|
||||||
Apg.decrypt(getBaseContext(), in, out, _passphrase, null, // progress
|
Apg.decrypt(getBaseContext(), in, out, _passphrase, null, // progress
|
||||||
pArgs.getString(arg.SYMMETRIC_PASSPHRASE.name()) != null // symmetric
|
pArgs.getString(arg.SYMMETRIC_PASSPHRASE.name()) != null // symmetric
|
||||||
@ -469,6 +471,7 @@ public class ApgService extends Service {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Log.v(TAG, "Decrypted");
|
||||||
|
|
||||||
pReturn.putString(ret.RESULT.name(), out.toString());
|
pReturn.putString(ret.RESULT.name(), out.toString());
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user