NCrypt - unable to use Serpent (?)
Hi all,
I have been using ncrypt ( 0.5.5, 0.6.11, 0.7.0 ) with Rijndael/aes. After en-/de-crypting using Serpent the contents of the file turns into garbage: Code:
Any ideas? Mike |
I did recompile 0.6.11 on a 32bit box ( statically ) and moved it to the 64bit... it en- & de-crypts properly...
I got no idea what is going on... gcc on 64bit: Quote:
and 32: Quote:
|
ncrypt was last updated in 2005. You may want to migrate to something else.
I can confirm that the ncrypt serpent implementation is broken. I suppose I could try to fix it, but it is better just to find another program. |
Quote:
I thought the system hardware is broken.... Well, the 32bit static works fine(if there is a need for that) - otherwise I will find an alternative... Thanks again! Mike |
I fixed it, but let me clean the code up a bit and I'll post the solution.
They used 'unsigned long' which is 4 bytes on 32-bit systems and 8-bytes on 64-bit systems. So, I removed all 'unsigned long' and replaced them with 'uint32_t' from the stdint.h standard library definition. This fixes the problem. |
1 Attachment(s)
Ok, I attached a working version of ncrypt. Change the ending to '.txz' and extract it. It should compile and work now.
I couldn't fix all the type conversion warnings, but they're not serious. |
Quote:
Perfect! Thank you metaschima ! EDIT: There is one problem with the modified code: it does not accept passwords imported from a file... ncrypt: unable to find a password in file ./a |
All times are GMT -5. The time now is 01:39 AM. |