Hi all,

This week i was in doubt to implemment some methods to sign using OpenSSL. I
know that RSA needs the hash algorithm to do the padding scheme and ECDSA
doesn't need.
Another thing that i know is that RSA can only sign things that are smaller
than the size of the key used. I can imagine that the encrypt process
follows the same idea.
I know that to sign, i have to take a hash of some document or message
but, theoretically,
i could encrypt any document? The padding scheme would shrink the message
and them could reveal the same message after deciphering?
My doubt is: and ECDSA? Does it has the same features? I know it doesn't
needs the hash algorithm, but  the message needs to be smaller than the size
of the key? ECDSA signs a message with any size?
Example: an ecdsa key with 192 bits signing a hash sha 512. It could be
signed or it is wrong?

Thanks,

-- 
Rick Lopes de Souza

Reply via email to