Sorry if this is misplaced... the as3crypto group doesn't seem to get much love.

I'm trying to decrypt a payload using a public key that's been encrypted using 
the paired private key. This is RSA. I can get the decryption to work in 
openSSL, but am having trouble with as3crypto.

Does as3crypto even support public key decryption? I have the following snippet:

        var rsa:RSAKey = PEM.readRSAPublicKey(SERVER_PUBLIC_KEY);
        rsa.decrypt(data, decryptedResult, data.length);

When I readRSAPublicKey, I create a new RSAKey with the modulus and the public 
expt (PEM.as line 89). But, without the 3rd D parameter, the RSAKey apprears to 
be unable to decrypt. Technically I get an exception in BigInteger.as line 
1196, but it's because the RSAKey.d var is null.

How do I get this parameter out of the read public key?

Any help is appreciated, thanks. 

Reply via email to