Win CE CryptoAPI w/ files on hidden partition - ?

From: sergeir (anonymous_at_discussions.microsoft.com)
Date: 08/27/04


Date: Thu, 26 Aug 2004 22:52:31 -0700

Good morning experts,

we came across a potential problem in Windows CE 4.2. One
of our customers wants to have a higher than normal
security device, running WIndows CE 4.2.

Here is what they plan to do. The only persistent storage
is a flash disk. The only file system is that flash disk
file system and that flash disk partition is marked hidden
for Windows CE by using MountFlags=1 value for IDE
profile. So user really sees no files at all, but registry
persists on that flash disk correctly.

However, the files on that hidden partition of a flash
disk are stored in encrypted form and are accessible to
customer application. Crypto API 2 is used to
encrypt/decrypt files. In case if flash disk or device is
stolen, it would not be possible to retrieve data from
such flash disk.

Customer has reported recently, that this approach would
work well if a flash disk is formatted FAT and partition
is notrmal, i.e. not hidden.

However, Crypto API 2 function CryptDecrypt() returns an
error [bad data], when exact same code is used for files
on hidden partition, as described above. When partition
not marked as hidden, it works as customer wants.

Does anybody have a clue ? Any help is highly appreciated.

Sincerely

Sergei



Relevant Pages

  • Re: AutoFormat and AutoMount
    ... automatically check/format/mount the flash disk upon boot. ... ; Support BINFS Section ... How are creating partition? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Parallels/Windows2000->app install problem
    ... When I put the flash disk into the USB slot, Parallels has a dialogue box telling me that it has detected the new USB device Flash Disk, and asks if I want it to be automatically connecte3d to the virtual machine Microsoft Windows 2000. ... Perhaps this is more of a Windows problem, but since I am pretty clueless in such things, I am asking for help in what I have to do either with Parallels and/or Windows 2000 so I can install for my new application. ...
    (comp.sys.mac.apps)
  • Re: Parallels/Windows2000->app install problem
    ... install an application to run on Windows from a USB flash disk. ... Microsoft Windows 2000. ...
    (comp.sys.mac.apps)
  • Re: Parallels/Windows2000->app install problem
    ... install an application to run on Windows from a USB flash disk. ... Microsoft Windows 2000. ...
    (comp.sys.mac.apps)
  • Re: Parallels/Windows2000->app install problem
    ... install an application to run on Windows from a USB flash disk. ... Microsoft Windows 2000. ... either with Parallels and/or Windows 2000 so I can install (and use the ...
    (comp.sys.mac.apps)