crypt

How can I create a Crypt::RSA object from modulus, exponent, and private exponent?

I'm trying to port the following php functionality over to perl: public function loadKey($mod, $exp, $type = 'public') { $rsa = new Crypt_RSA(); $rsa->signatureMode = CRYPT_RSA_SIGNATURE_PKCS1; $rsa->setHash('sha256'); $rsa->modulus = new Math_BigInteger(Magicsig::base64_url_decode($mod), 256); $rsa->k = strlen($rsa-...

Problem verifying in C# what was signed in Java (RSA)

Hi, I was hoping I might get some help here so that I might finally solve this frustrating problem. On the java side of things they sign with the following code: public static void main(String[] args) throws Exception { if (args.length < 2) printInfoAndExit(); String cmd = args[0]; Security.addProvider(new BouncyCa...