Recent

Author Topic: AES256-SHA encryption for WinCE?  (Read 4080 times)

ertank

  • Full Member
  • ***
  • Posts: 244
AES256-SHA encryption for WinCE?
« on: April 09, 2016, 02:20:28 pm »
Hi,

I wonder if there is such a code available indicated in the subject.

In detail; I want to use TAES-CFB (key hashed by SHA256) and Initialization Vector (IV) to be randomly defined by code.

If that's not available, I would like to know what crypt methods are available since hashing will not be enough for my case.

Thanks.

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1248
Re: AES256-SHA encryption for WinCE?
« Reply #1 on: April 09, 2016, 02:48:16 pm »
http://wiki.freepascal.org/DCPcrypt

That code looks device agnostic

Update: Interesting.  PeaZip is opensource, and it reportedly supports AES256 under Win-CE.  If you draw a blank with the above, you could research that.  Source code here: https://github.com/giorgiotani/PeaZip/releases/
« Last Edit: April 09, 2016, 02:56:58 pm by Mike.Cornflake »
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Thaddy

  • Hero Member
  • *****
  • Posts: 8679
Re: AES256-SHA encryption for WinCE?
« Reply #2 on: April 09, 2016, 03:09:42 pm »
AES256 sha is part of mscrypt which is readily available for wince, I believe. Otherwise it should be extremely easy to translate from e.g. the jedi sources.
Most people that want to use threading should learn to patch their jeans first: use a needle.

ertank

  • Full Member
  • ***
  • Posts: 244
Re: AES256-SHA encryption for WinCE?
« Reply #3 on: April 10, 2016, 10:26:04 am »
http://wiki.freepascal.org/DCPcrypt

That code looks device agnostic

Update: Interesting.  PeaZip is opensource, and it reportedly supports AES256 under Win-CE.  If you draw a blank with the above, you could research that.  Source code here: https://github.com/giorgiotani/PeaZip/releases/

After looking at PeaZip code. I realize that it uses sources that I over looked earlier: http://www.wolfgang-ehrhardt.de/index.html
Now, I worked on them several hours and I can use AES256 with fixed IV and no SHA on a WinCE device.

Even there is sha256 available from same source, I will accept this much as enough and continue my main coding. Adapt my PC side crypt code to match WinCE.