aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;