Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-13-2006, 20:18
Peter[Pan]
 
Posts: n/a
miracl output

I was working on some stuff from the miracl library (first time i used it) i have a little problem with outputting the bignums, heres my problem.

From reading the manual i see there is cotnum and cotstr:

Cotnum goes to FILE * and cotstr can go to CHAR *

so naturally i used cotstr, the problem is every so often when the bignum starts with a leading 0 it doesnt output it.

Example: 0F33 -> "F33"

I fixed this by manually looping through all the bignums and throwing them through a %.2X sprintf but this is kinda lame, there is a way to maybe force miracl to present that leading zero ?

Thanks.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Q: How can I get this kind of output from X64DBG? Stingered General Discussion 3 01-13-2018 07:15


All times are GMT +8. The time now is 20:08.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )