Recent

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

ertank

  • Sr. Member
  • ****
  • Posts: 274
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: 1260
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: 14197
  • Probably until I exterminate Putin.
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.
Specialize a type, not a var.

ertank

  • Sr. Member
  • ****
  • Posts: 274
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.

 

TinyPortal © 2005-2018