[mnet-devel] Re: [mnet-cvs]fixes to crypto51 build stuff
Zooko
zooko at zooko.com
Wed Apr 2 15:17:02 BST 2003
> Modified Files:
> wrappedrsa.cpp
> Log Message:
...
> * now using the OS's RNG in wrappedrsa.cpp
...
> @@ -4,6 +4,7 @@
> #include "wrappedrsa.h"
> #include "cryptlib.h"
> #include "filters.h"
> +#include "osrng.h"
>
> WrappedRSAFunction::WrappedRSAFunction(const Integer &n,const Integer &e)
> {
> @@ -80,7 +81,8 @@
> {
> throw Exception(Exception::OTHER_ERROR, "WrappedRSAFunction: Private key not available");
> }
> - return invertibleFunction->CalculateInverse(NullRNG(), x);
> + static NonblockingRng myrng;
> + return invertibleFunction->CalculateInverse(myrng, x);
> }
>
> std::string WrappedRSAFunction::PrivateKeyEncoding()
Sweet! Now we can use this in place of "randsource" and "win_entropy"!
--Z
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel
More information about the Mnet-devel
mailing list