Commit Graph

21 Commits (06052dafcfa5b4d178fafae67a4eab5ee9cd8a9c)

Author SHA1 Message Date
szaka 06052dafcf Replaced all occurances of ENOTSUP to EOPNOTSUPP to be in better harmony
with the kernel driver
2005-08-01 22:10:38 +00:00
antona 79e9e30ee3 Use libgcrypt instead of openssl for desx_key_expand's MD5 hashing. 2005-07-28 16:18:20 +00:00
antona 5b087e6d8a Fix a core dump. 2005-07-28 15:14:40 +00:00
antona f67d8fcee1 Use double indirection in case libgcrypt clones the key for you hack for
closing the des cipher.
2005-07-28 11:27:31 +00:00
antona 2546690ee1 Add EFS structure definitions to layout.h and adapt ntfsdecrypt for it.
More fixes/cleanups to decrypt.c.
This was all Yuval's work but I did some renaming afterwards and some
whitespace cleanups.
2005-07-28 10:36:31 +00:00
antona 0a18d2fce7 Fix some stupid mistakes from the cleanup. 2005-07-27 21:33:00 +00:00
antona 997e23fb15 Fixes to last cleanup. 2005-07-27 18:17:31 +00:00
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