When you execute
ssh-keygen -t ssh-dss
it generates two files: one containing the public and the other, the private key.
The ssh-keygen man-page says it always generates a 1024bit key, but when I open the public key file, I always get a 580 characters line (which would be 4640 bits in ASCII).
Am I missing something or thinking about it wrong? I've tried reading the algorithm, but it's very hard to calculate, considering the size of the prime numbers involved.
Is there a way I can validate if it's a 1024bit key from the quantity of characters in the id_dsa.pub file?