Unregistered
October 27th, 2001, 14:26
I was trying to test the RSA keys generated by the windows crypto api.
So I generate the key pair and export them to two files.
As the private key's one is encrypted, I had a loot at the pubblic one.
It should be:
BYTE bType;
BYTE bVersion;
WORD reserved;
ALG_ID aiKeyAlg;
DWORD magic; // Has to be RSA1
DWORD bitlen; // # of bits in modulus
DWORD pubexp; // public exponent
// Modulus data follows
I find that keysize=512bits and e=65537(default value)
I looked at the modulus, it is:
54C101F2283AE773F57A3EB03CCF7DD8D61AE197FF8B8AAA632B35AFBF289F26B8DFF3E6D2105C1E5AD5629F00B547974261 2C02C8AA18E4F98CAA1714C17BA
I put it in this useful utility from tmg
http://www.secretashell.com/TMG/rsatool2.zip and I found that is not the product of two prime numbers, but of many little numbers.
This is wrong.
And I cant understand where's my error.
Lookin for help...
sappox
So I generate the key pair and export them to two files.
As the private key's one is encrypted, I had a loot at the pubblic one.
It should be:
BYTE bType;
BYTE bVersion;
WORD reserved;
ALG_ID aiKeyAlg;
DWORD magic; // Has to be RSA1
DWORD bitlen; // # of bits in modulus
DWORD pubexp; // public exponent
// Modulus data follows
I find that keysize=512bits and e=65537(default value)
I looked at the modulus, it is:
54C101F2283AE773F57A3EB03CCF7DD8D61AE197FF8B8AAA632B35AFBF289F26B8DFF3E6D2105C1E5AD5629F00B547974261 2C02C8AA18E4F98CAA1714C17BA
I put it in this useful utility from tmg
http://www.secretashell.com/TMG/rsatool2.zip and I found that is not the product of two prime numbers, but of many little numbers.
This is wrong.
And I cant understand where's my error.
Lookin for help...
sappox