Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the size of a RSA signature in bytes?

Tags:

rsa

crypto++

I'm currently using Crypto++ to generate a signature for a block of data. I expected the signature to be 20 bytes ( SHA 1 Hash) , as my understanding was that the signature is just an encrypted hash. But when checking with maxsignaturelength and signature length , it seems that it is 192 bytes. Is it normal?

like image 633
saracan Avatar asked Feb 28 '23 14:02

saracan


1 Answers

The size of the signature is the size of the RSA modulus in bytes.

like image 143
President James K. Polk Avatar answered Mar 12 '23 06:03

President James K. Polk