-1
votes
1answer
82 views

What length should the padding be when encrypting or signing with RSA?

Does it matter what length the padding is? If so - what length should it be? (Another point: Should it be random?)
3
votes
3answers
460 views

Why hash or salt when signing?

I've seen an example of how to sign using RSA. Besides the signing itself (s = m^d mod n) it also hashes and adds an IV. Why is that needed?