Commit Graph

14 Commits (8c54a0b1a91e4038b6fb0dad46543a8895679c61)

Author SHA1 Message Date
antona 8c54a0b1a9 First pass at massive cleanup of ntfsdectypt/decrypt. 2005-07-27 15:55:42 +00:00
antona 0eb4cfbb42 Some more cleanups I missed last time. 2005-07-27 10:48:46 +00:00
antona bb3c2172b8 Run through Lindent and some manual aftercleanups. 2005-07-27 10:30:57 +00:00
antona d723668d27 decrypt.c:
- Finally working desx decryption thanks to Yuval figuring out that ntfs uses
  des encryption when decrypting!!!  (Yuval)
- Make it compile on Linux.  (Anton)
- Add CALG_DES constant for Linux.  (Anton)
2005-07-27 09:18:26 +00:00
antona 7cd7b2416f finally have verified des key expansion to be correct and have test cases for
it and des decryption.  Currently the des test fails.  It appears ntfs does not
use standard des encryption.  )-:  Perhaps it uses the export non-restricted
40-bit des key instead of 56-bit des...
2005-07-26 16:35:00 +00:00
antona 54b65e2b3c Fixes for key order for desx. Still doesn't work but now keys are correct. 2005-07-26 01:32:51 +00:00
antona 261f059e3e - Fix bug I introduced causing the IV to be wrong for AES decryption.
- Fix a bug where we fail to supply the buffer size when exporting the key.
  Not sure how that ever worked...
2005-07-25 23:23:48 +00:00
antona 6377902ed4 Update decryption for desx after more reverse engineering. Still doesn't work
though.  )-:
2005-07-24 14:42:43 +00:00
antona 00c7127551 First attempts at DesX decryption (not working yet!). 2005-07-22 23:45:32 +00:00
antona 93194b37a0 Add a function to ntfsprogs/decrypt.c that expands an on-disk desx key from 128
bits to the needed 192 bits so it can be used for {en,de}cryption.
Note I couldn't face using the completely insane libgcrypt api so I used
openssl's libcrypto instead...  Anyone feel free to swap once we have it
working.
2005-07-21 12:12:37 +00:00
antona e55c6769e1 Apply some updates after doing some reverse engineering. 2005-07-20 10:59:06 +00:00
antona 6292bc5d8f Fix compilation under Cygwin (and make sure it still works on Linux). 2005-07-18 20:47:48 +00:00
antona b48dae0c5f Make ntfsdecrypt compile under Linux. 2005-07-16 07:00:57 +00:00
antona 4ed406e68e Add new utility (make extra) - ntfsdecrypt. (Yuval) 2005-07-16 06:53:40 +00:00