#include "encryption_Tutorial_structs.h"
#include "encryption_Tutorial_cat.h"
#include <stdio.h>
#include <stdlib.h>
int32_t main_encryptionTutorial (int32_t argc, const char *const *argv)
{
{
{
#if defined(LINK_ENC_SIMPLE)
#else
#endif
{
{
}
{
ENCRYPTIONTABLE insertions[3];
{
}
{
printf ("Opened the encryption_Tutorial database to be "
"encrypted.\n");
}
{
{
{
printf (
"Opened the encryption_Tutorial database "
"to be decrypted.\n");
}
}
}
{
{
}
else
{
}
}
{
}
{
}
{
db, tables,
RDM_LEN (tables), NULL, 0, NULL);
}
{
{
}
else
{
}
}
{
insertions[0].id = rdmBCD;
insertions[1].id = rdmBCD;
insertions[2].id = rdmBCD;
db, tables,
RDM_LEN (tables), NULL, 0, NULL);
}
{
uint32_t counter;
for (counter = 0;
counter++)
{
char outBuffer[100];
&insertions[counter].
id,
RDM_FALSE, outBuffer,
sizeof (outBuffer), NULL);
printf ("BCD Inserted: %s\n", outBuffer);
db, TABLE_ENCRYPTIONTABLE, &insertions[counter],
sizeof (insertions[counter]), NULL);
}
{
}
else
{
}
}
{
}
{
db, tables,
RDM_LEN (tables), NULL);
{
{
db, TABLE_ENCRYPTIONTABLE, &cursor);
}
{
}
{
ENCRYPTIONTABLE row;
cursor, &row, sizeof (row), NULL);
{
char outBuffer[100];
sizeof (outBuffer), NULL);
printf ("BCD Retrieved: %s\n", outBuffer);
}
}
{
}
}
}
}
}
}
}
{
printf (
"There was an error in this Tutorial (%s - %s)\n",
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}