aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@gmail.com>2011-01-20 20:23:13 +0000
committerMarkus Doits <markus.doits@gmail.com>2011-01-20 20:23:13 +0000
commitb5097b7a417b13c288adfbd1c0ea4f6d86715cf1 (patch)
treed34dbaa73c8bdbde627a3ed3ef1e3af99bceb05e
parentc9f6f56827ce7b368a009c153d1f9995651f6522 (diff)
downloadopen-keychain-b5097b7a417b13c288adfbd1c0ea4f6d86715cf1.tar.gz
open-keychain-b5097b7a417b13c288adfbd1c0ea4f6d86715cf1.tar.bz2
open-keychain-b5097b7a417b13c288adfbd1c0ea4f6d86715cf1.zip
Some more verbose logs
-rw-r--r--src/org/thialfihar/android/apg/ApgService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/thialfihar/android/apg/ApgService.java b/src/org/thialfihar/android/apg/ApgService.java
index c4a348cb4..b36b5cd0a 100644
--- a/src/org/thialfihar/android/apg/ApgService.java
+++ b/src/org/thialfihar/android/apg/ApgService.java
@@ -385,6 +385,7 @@ public class ApgService extends Service {
InputData _in = new InputData(_inStream, 0); // XXX Size second param?
OutputStream _out = new ByteArrayOutputStream();
+ Log.v(TAG, "About to encrypt");
try {
Apg.encrypt(getBaseContext(), // context
_in, // input stream
@@ -450,6 +451,7 @@ public class ApgService extends Service {
InputStream inStream = new ByteArrayInputStream(pArgs.getString(arg.MESSAGE.name()).getBytes());
InputData in = new InputData(inStream, 0); // XXX what size in second parameter?
OutputStream out = new ByteArrayOutputStream();
+ Log.v(TAG, "About to decrypt");
try {
Apg.decrypt(getBaseContext(), in, out, _passphrase, null, // progress
pArgs.getString(arg.SYMMETRIC_PASSPHRASE.name()) != null // symmetric
@@ -469,6 +471,7 @@ public class ApgService extends Service {
}
return false;
}
+ Log.v(TAG, "Decrypted");
pReturn.putString(ret.RESULT.name(), out.toString());
return true;