Ok, long story short: I think I understand that sha256 produces 32 byte hashes (32 characters in length). I think I also understand that the hash length is...
... I'd guess that it's the second strlen(). Since hash_buffer might have NULL bytes in it, strlen will take the null terminator, and think the string ends...
Matt Johnston
matt@...
Apr 5, 2004 4:46 am
149
Matt, Wow, I can't beleive I missed that! I knew it would be something dumb. .. thanks anyways bud! unsigned char hash_buffer[MAXBLOCKSIZE]; -and- ...
... I would in the interest of security pass the length of "out" to this function. ... It's probably best to register sha256 only once and use find_hash() in ...
Thank you so much again! I have cleaned up the code a lot in the last 12 hours. Now that it is working, it makes it easier to clean up! When I am done, I will...
... last ... When ... someone ... You're welcome. I help out because it's what I like doing with my time here. I'm glad the LibTom code could help you out. ...
I've made a set of changes to LTM for v0.30. The release you can be proud of.... muauahahaha I've added a set of helper routines like mp_init_set which will...
Hello everyone, First of all, I am using a modified version of libtomcrypt 0.92. That said, I am having a problem using libtomcrypt to generate RSA keys that...
Hi ! ;) I'm new from today in the group!! I took a look at the doc of LibTomCrypt and I haven't seen a function which generate a (RSA) Key Pair (public and...
Ahh sorry I forgot to point that out. The public key is stored in key.e and the private is in key.d. If you want to encrypt something, just call rsa_exptmod...
Oh yeah, I thought about mentioning that too. Encrypt: rsa_pad(); rsa_exptmod(PK_PUBLIC); Decrypt: rsa_exptmod(PK_PRIVATE); rsa_depad(); And happy birthday...
... You know I do provide wrappers for that right? rsa_sign_hash, rsa_encrypt_key, etc... I provide rsa_exptmod() for two reasons. It simplifies my RSA code ...
Sports several new functions. In particular that new prime generator I was talking about. Along with a few new helper functions and a few bug fixes. I've...
Hi, rsa_make_key uses rand_prime which creates an (n*8+1) bit number (requiring n+1 bytes to represent it), guaranteeing that the number is a suitable modulus...
Trevor Davel
TrevorD@...
Apr 13, 2004 8:36 am
164
So far the changelog for 0.95 reads... v0.95 -- Optimized AES and WHIRLPOOL for SMALL_CODE by taking advantage of the fact the transforms are circulant. AES...
In CTR mode we have no access to the counter value that is used for the encryption of a particular block of plain text. Is it possible for the encrypt function...
... for ... have ... You can directly access the CTR counter. You have to adjust the counter manually though. If you're clever enough you could just use LTM...
Oops... Shows what I get for not testing in windows first... add "bn_mp_init_set.obj bn_mp_init_set_int.obj" to the OBJECTS list and LTM will work fine with...
Dang... my AMD Barton passed away on Sunday... The Zen cooler I had was a bit dirty and seems when my AMD barton shutdown because of heat. When I cleaned it...
... Are you handling the padding required by the SSH spec when the most significant bit of an mpint is set? (see section 5, "mpint", of ...
Matt Johnston
matt@...
Apr 23, 2004 5:50 am
171
Thank you very much Sir for your promt reply. I will see to what you have said. But i was thinking that can be Little Endian/Big Endian be an issue here? ...
... Well not in LibTomMath. The code is platform neutral when it stores/reads the mp_ints. ;-) I think thought Matt will be better qualified to answer SSH...
Got my new box today... specs Intel P4 2.80C [with HT] Northwood ASUS P4P800S Motherboard So far it seems fairly quick for compiling. I managed to go from a ...
I've spent the last hour and a bit [on my new shiny P4 ... ;-)] refactoring the code... current => 30994 lines, 114 files, 271 aloc LTC 0.94 => 29595 lines,...
i m sending the code snippet that i use to convert buffer which contains "e" taken from socket, and is converted to mp_int. now while converting it the...
... Coo, ok well I'm gonna pick on your code cuz it's what I do ;-) ... Never a big fan of struct names [unless it's a link list or tree]. Use a typedef. Less...