presto-main/src/main/java/io/prestosql/spiller/AesSpillCipher.java/AesSpillCipher/decrypt
class AesSpillCipher:    @Override
    public int decrypt(byte[] encryptedData, int inputOffset, int length, byte[] destination, int destinationOffset)
    {
        checkArgument(encryptedData.length - inputOffset >= length, "encryptedData too small for length argument");
        checkArgument(destination.length - destinationOffset >= decryptedMaxLength(length), "destination buffer too small for decrypted output");
        Cipher cipher = createDecryptCipher(key, new IvParameterSpec(encryptedData, inputOffset, ivBytes));
        try {
            return cipher.doFinal(encryptedData, inputOffset + ivBytes, length - ivBytes, destination, destinationOffset);
        }
        catch (GeneralSecurityException e) {
            throw new PrestoException(GENERIC_INTERNAL_ERROR, "Cannot decrypt previously encrypted data: " + e.getMessage(), e);
        }
    }