rsaenh: moved functionality from new_key to CPGenKey and CPDeriveKey
Michael Jung
mjung at iss.tu-darmstadt.de
Tue Nov 30 15:06:06 CST 2004
Hi,
this is a new version of a patch I've sent before. I regenerated it for the
current LibTomCrypt based implementation of rsaenh.
Original message:
The new_key helper function in rsaenh.c tries to do too much: Besides
allocating the memory resources needed by the key object, it generates the
actual binary key value (either derived from a hash, from a byte array or
from the random number generator). This is a waste of cpu time if the key
object will be used to import a key from a BLOB, and is especially wastefull
for RSA keys.
The attached patch moves functionality, which is specific to either CPGenKey,
CPDeriveKey or CPImportKey, from new_key into those functions.
Bye,
Michael
Changelog:
Moved code specific to CPGenKey, CPDeriveKey or CPImportKey from new_key
into the respective function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsaenh.diff
Type: text/x-diff
Size: 16439 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041130/5f22cc8f/rsaenh.bin
More information about the wine-patches
mailing list