Jason Smethers wrote:
Is it possible to encrypt data with an ECC private key and decrypt it
with an ECC public key?
After walking away from it for a while, I've figured out why it the ECC
decryptor wasn't working. ECIES addes additonal data to the ciphertext,
so you have to calculate the ciphertext length to pass to the decryptor:
unsigned int ciphertextLength = encryptor.CiphertextLength(gTestDataSize);
This still leaves the above question unanswered for me. It also seems to
also be unanswered every other time it was asked in the mailing list.
So, can any ECC experts out there enlighten the rest of us? Are ECC keys
designed to only allow simplex communication from an ECC private
encryptor key to a public decryptor key, or is there something further
that needs to be done to create an ECC public key for encryption that
MakePublicKey does not do, or is the constructor for the ECIES Encryptor
in Crypto++ 5.2.1 simply buggy?
Again, any help would be greatly appreciated.
Thanks
- Jason