<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV>This code is wrong (I sent a message about that last night). I know how
to write a better code<BR>(faster/less mallocs) than one you intialy wrote and
I hope to do it tonight. The basic idea is <BR>to implement following
operations:<BR> - add int to bignum<BR> -
mul bignum by int<BR> - div bignum by int<BR>where bignum is
a binary buffer that MSCrypto returns. After that converting that buffer
(bignum)<BR>to and from dec string is a piece of cake:<BR>
bignum-->dec string<BR> dec_str
= "";<BR> while(bignum != 0)
{<BR>
dec _str += convert_to_char(bignum % 10);<BR>
bignum = bignum /
10;<BR>
}<BR><BR> dec string->bignum<BR>
bignum = 0;<BR>
for(i = 0; i < strlen(dec_string);i++) {<BR>
bignum = bignum *
10;<BR>
bignum = bignum + convert_to_int(dec_str[i]);<BR>
}<BR><BR><SPAN class=264265719-22092003><FONT
face=Arial color=#0000ff size=2> </FONT></SPAN></DIV>
<DIV><SPAN
class=264265719-22092003> </SPAN></DIV></BLOCKQUOTE></BODY></HTML>