kaijajan / as3crypto

Automatically exported from code.google.com/p/as3crypto
1 stars 0 forks source link

RSAKey canDecrypt and canEncrypt flags not set in RSAKey.generate() method #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run RSAKey.generate(...) to generate a key.

What is the expected output? What do you see instead?
Expect a private key where both canDecrypt and canEncrypt are == true

Since these flags are only set in the constructor, and generate() calls the 
constructor with dummy values, these flags are not set correctly.

It should be a simple fix to add key.canEncrypt = true, and key.canDecrypt = 
true before generate() returns.

Original issue reported on code.google.com by andrewwe...@gmail.com on 12 Jan 2011 at 3:54

GoogleCodeExporter commented 9 years ago
Thanks! Implemented your flags-fix in a fork on GitHub: 
https://github.com/timkurvers/as3-crypto
Credited in the actual commit and changelog.

If you would prefer to be credited with your name instead of your partial 
e-mail, please let me know.

Kind regards,

Tim Kurvers

Original comment by TimKurvers on 3 Oct 2011 at 4:21

GoogleCodeExporter commented 9 years ago
You can go ahead and credit by name.  Thanks.

-Andrew Westberg

Original comment by andrewwe...@gmail.com on 3 Oct 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Have you pulled in issue #54 patch I posted here as well?  If you've not 
already done it, I'll go ahead and fork on github and send you a pull request.

-Andrew

Original comment by andrewwe...@gmail.com on 3 Oct 2011 at 7:15