public static void decrypt(byte[] dest, int destOffset, InputStream in, int destSize, Decryptor d)
    throws IOException {
    InputStream cin = d.createDecryptionStream(in);
    try {
      IOUtils.readFully(cin, dest, destOffset, destSize);
    } finally {
      cin.close();
    }
  }
Decrypt a block of ciphertext read in from a stream with the given cipher and context
<p>
The decryptor's state will be finalized. It should be reinitialized or returned to the pool.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/Encryption.java