Hi everyone. I am using crypto++ and I want to perform homomorphic operations with the ElGamal algorithm. ElGamal is partially homomorphic as it allows to perform multiplication of encrypted numbers.
It is not possible to perform a multiplication operation directly on an object of type SecByteBlock, so I transform it to Integer. Then I transform that Integer resulting from the multiplication to SecByteBlock again to be able to perform the decryption. But the result is not as expected:
Hi everyone. I am using crypto++ and I want to perform homomorphic operations with the ElGamal algorithm. ElGamal is partially homomorphic as it allows to perform multiplication of encrypted numbers.
This is my code:
It is not possible to perform a multiplication operation directly on an object of type SecByteBlock, so I transform it to Integer. Then I transform that Integer resulting from the multiplication to SecByteBlock again to be able to perform the decryption. But the result is not as expected:
Can someone help me or give me some advice on how to perform the homomorphic operation?