示例#1
0
 /** Wraps the input stream if it needs to be decrypted. */
 InputStream decrypt(InputStream in) throws IOException {
   if (mCrypto != null) {
     try {
       in = mCrypto.newDecryptingStream(0, in);
     } catch (GeneralSecurityException e) {
       throw new DatabaseException(e);
     }
   }
   return in;
 }