//----------------------------------------------------------------------------
//
//  ise_test_16.cpp
//
//  Authors: Joe Jarchow, Geoffrey Griffith, Joseph Kadhim, Shinya Daigaku
//           Andrew Pouzeshi
//
//  Sponsor: Tom Lookabaugh, Assistant Professor of Computer Science
//           University of Colorado
//
//  Senior Project: Team ISE (Image Selective Encryption)
//----------------------------------------------------------------------------


// This file is designed to test the ISE production code with test16.sh

#include <stdlib.h>     
#include <iostream>
#include <fstream> 
#include <string>
#include "rijndael-api-fst.h"
#include "ise.h"

using namespace std;

int main(int argc, char * argv[])
{
    /* Encrypt_File Function with Invalid Input File */
  int err = 0;
    char MyKey [] = "enterthekey";
    char MyJpeg [] = "non_existant_images/bad.jpg";

    /* Call the constructor with key and input file name */
    jpeg_ise encrypt_test(MyKey, MyJpeg);

    err = encrypt_test.encrypt_file();
    if (err != 0)
    {
      cout << "Test 16: encrypt() correctly returned error " << err << " due to non-existant file." << endl;
    }
    else
    {
      cout << "Test 16: encrypt() failed to return error due to non-existant file." << endl;
    }

    return 0;
}
