Some more verbose logs

This commit is contained in:
Markus Doits 2011-01-20 20:23:13 +00:00
parent c9f6f56827
commit b5097b7a41

View File

@ -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;