//----------------------------------------------------------------------------
//
//  ise_test_1.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 test1.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[])
{
    /* JPEG_ISE Constructor with Key Only */

    size_t length = 0;
    char * MyKey;

    if (argc > 0)
    {
        length = strlen(argv[0]);
        MyKey = new char [length + 1];
        strcpy (MyKey,argv[0]);
    }
    else
    {
        length = strlen("Bad_Key");
        MyKey = new char [length + 1];
        strcpy (MyKey,"Bad_Key");
    }

    /* Call the constructor with only the key */
    jpeg_ise decrypt_test(MyKey);
	
    delete [] MyKey;
    return 0;
}
