I am using VC++6.0
I am attempting to implement the TEA for a Oracle server. I am plannng to write the algorithm in C++(C), then add it to a shared library.
I am new with C++ and I am having some difficlulty, mainly in two basic areas:
1. I want to extract, for test purposes from the keyborad the key and message. Howeve, I cout the prompt for key, then cout the prompt for message. I cin.getline(k,15,'\n') for the key and the same for the message. If I go over the key specified limit I am not able to enter the message at all. When I cout the key and message the key is returned fine 16 chars etc, but the message isn't even prompted to enter. I see what's going wrong, but I really need to know how to resolve it.
2. The second issue folows on from this. I want to accept an inputted message and key. I use an array to take the inputs. I then want to use the 32bit (4byte) pieces of the message and key for binary operations. So I want to take the eg 16 character key, and use the first 4 chars, then 2nd 4, etc..etc.. How do I do this...??? Also with the message???