reset password
Author Message
Vanquish39
Posts: 134
Posted 17:00 Nov 25, 2011 |

Upon "receiving" the message the receiver first reads the BigInteger values (using an ObjectInputStream), then "encrypts" them using the proper key generated in Part 1 of the assignment using the ElGammal algorithm.  The resulting BigInteger is then converted back to an array of bytes using the toByteArray() method, with the result being the digest array that you will now use to check to see if the message has been tampered with. 

 

So the receiver will receive 2 signatures and a message.  Do we encrypt both of these signatures?  and do we make a byte array from both of these encrypted values?

 

sorry for double post.  The above part was solved.  I don't really encrypt it, i just find the v1 and v2.

 

So i wrote the algorithm to find v1 and v2 but the problem is they are both taking reallly long to calculate.  Is this supposed to happen? 

Last edited by Vanquish39 at 18:27 Nov 25, 2011.