Comment 15 for bug 502291

Revision history for this message
Guddu (anurag-chourasia) wrote :

G'day All,

I download the V2.3 ZIP from Github and applied the changes from this patch over it (Resulting Code Set Attached).

Apart from indentation changes I did the following change to make things work.

RSA.py
=====

Change

EMSA_PKCS1_V1_5_ENCODE(m, blockLen)
to
self.EMSA_PKCS1_V1_5_ENCODE(m, blockLen)

Change

def EMSA_PKCS1_V1_5_ENCODE(hash, emLen):
to
def EMSA_PKCS1_V1_5_ENCODE(self, hash, emLen):

Once i got it all working, signing fails with the error "RSA key format is not supported"

The Private Key that I am using is in the XML attached to this bug report (Element Tag name is RSASK)

Appreciate if you could tell me what might be going wrong here.

Regards,
Anurag