Did you try a typical casting? When I convert INT to HEX I use printf (%x,table[i]) or int i= (int) table[i];
greetings On 7 ene, 00:26, khumayun <[email protected]> wrote: > Hey Guys, > I have finally got my HMAC output to a byte array that was > initialize as a hex. So all the values are in Hexadecimal and I want > to just take the first six values and convert them to decimal. At the > moment, I am developing on ubuntu 9.1 but I intend to port this to > freebsd maybe on a solaris box. > > Point is that I have not really done the little/big endian operations > before and i would need to first do little endian to get this thing to > work on ubuntu which is on a intel processor and later port this code > to a sun box. > could someone help me how I might be able to convert a byte array > which has hex values in C++ (not .net which has a bitconverter class) > to a byte array with decimals so I can output a 6 digit decimal value > from that HMAC hashed byte array? > > your help would be very much appreciated. > thanks!
-- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
