Jump to content


Photo
* * * * * 1 votes

SHA-1, SHA-2 hash, HMAC and AES function


  • Please log in to reply
13 replies to this topic

#1 Ton Plomp

Ton Plomp

    How many lines per hour? Zero!

  • Premium Member
  • 1,973 posts
  • Location:Netherlands
  • Version:LabVIEW 2012
  • Since:2000

Posted 16 September 2011 - 11:16 AM

*
POPULAR

I would like to offer my SHA-1, SHA-2 HMAC and AES files to OpenG to add to the MD5 library (I suppose we need to rename that palette).

You can find these functions currently in the LAVA Code Repository.
The code is currently in 2010, but I can backsave to 2009.

Ton

#2 jgcode

jgcode

    LabVIEW Renegade

  • OpenG
  • PipPipPipPipPipPip
  • 2,397 posts
  • Location:Australia
  • Version:LabVIEW 2009
  • Since:2005

Posted 16 September 2011 - 11:51 AM

Hey Ton, having these functions in OpenG sounds like a great idea. :thumbup1:

#3 mje

mje

    The 500 club

  • Premium Member
  • 813 posts
  • Location:Milford MA USA
  • Version:LabVIEW 2011
  • Since:1997

Posted 16 September 2011 - 12:42 PM

Sweet!

#4 Jim Kring

Jim Kring

    packages everywhere!

  • JKI
  • 1,901 posts
  • Location:Lafayette, CA
  • Version:LabVIEW 2011
  • Since:1995

Posted 16 September 2011 - 03:16 PM

Kudos!

#5 Ton Plomp

Ton Plomp

    How many lines per hour? Zero!

  • Premium Member
  • 1,973 posts
  • Location:Netherlands
  • Version:LabVIEW 2012
  • Since:2000

Posted 16 September 2011 - 04:41 PM

Does anybody have a good name for such a functionset?

#6 Jim Kring

Jim Kring

    packages everywhere!

  • JKI
  • 1,901 posts
  • Location:Lafayette, CA
  • Version:LabVIEW 2011
  • Since:1995

Posted 16 September 2011 - 04:50 PM

Does anybody have a good name for such a functionset?


OpenG Cryptography Library

#7 jgcode

jgcode

    LabVIEW Renegade

  • OpenG
  • PipPipPipPipPipPip
  • 2,397 posts
  • Location:Australia
  • Version:LabVIEW 2009
  • Since:2005

Posted 16 September 2011 - 11:50 PM


OpenG Cryptography Library


Vargas has Crypto-G, other names I can think of are Encryption or Security.
But I think Cryptography is best.

#8 mje

mje

    The 500 club

  • Premium Member
  • 813 posts
  • Location:Milford MA USA
  • Version:LabVIEW 2011
  • Since:1997

Posted 17 September 2011 - 11:40 AM

Cryptography is nice, but also implies some levels if security that are used when handling data passed to the methods which most definitely can't be satisfied in G code. I'd say encryption or even simply hashing is a more honest description.

#9 Wouter

Wouter

    Very Active

  • Members
  • PipPipPip
  • 103 posts
  • Version:LabVIEW 2011
  • Since:2006

Posted 19 September 2011 - 10:39 PM

Maybe some more could be added aswell. I say
- AES, http://www.soslabvie...library-labview
- HillCipher, available also somewhere on the web
- CeasarCipher (easy)
- Blowfish

-edit- oh and the output of the md5 and SHA VI's have to be the same in my opinion. I believe the VI's of Ton have 3 different output formats.

Edited by Wouter, 19 September 2011 - 10:50 PM.


#10 jgcode

jgcode

    LabVIEW Renegade

  • OpenG
  • PipPipPipPipPipPip
  • 2,397 posts
  • Location:Australia
  • Version:LabVIEW 2009
  • Since:2005

Posted 19 September 2011 - 11:42 PM

- HillCipher, available also somewhere on the web


Christian Loew implemented it for Reference Design for Adding Licensing to LabVIEW Real-Time Applications (I have used the code for a licensing requirement - its really good) and he also has it available here.

#11 Wouter

Wouter

    Very Active

  • Members
  • PipPipPip
  • 103 posts
  • Version:LabVIEW 2011
  • Since:2006

Posted 28 December 2011 - 11:42 AM

Question what exactly needs to be done before the code gets reviewed for OpenG? I guess that the diagrams need some cleaning up. But anything else?

#12 jgcode

jgcode

    LabVIEW Renegade

  • OpenG
  • PipPipPipPipPipPip
  • 2,397 posts
  • Location:Australia
  • Version:LabVIEW 2009
  • Since:2005

Posted 28 December 2011 - 12:11 PM

Question what exactly needs to be done before the code gets reviewed for OpenG? I guess that the diagrams need some cleaning up. But anything else?


I have already discussed this offline with Ton.
After some minor changes that Ton wants to make the package will be submitted for review by OpenG.
So the ball is already rolling...

#13 Ton Plomp

Ton Plomp

    How many lines per hour? Zero!

  • Premium Member
  • 1,973 posts
  • Location:Netherlands
  • Version:LabVIEW 2012
  • Since:2000

Posted 28 December 2011 - 02:09 PM

One of the things that needs to be done is have good unit -test VIs.

The current set I have is created by the NIST and is very thourough. Currently all the functions pass these, however I need make that a single-test routine (running about 5-10 minutes).

Ton

#14 Igor Titov

Igor Titov

    Are we there yet?

  • Premium Member
  • 5 posts
  • Version:LabVIEW 2011
  • Since:2007

Posted 04 June 2012 - 09:32 PM

As I already posted somewhere here (on AES implementation in native LabView), I created AES encrypt/decrypt VIs and they are ready to be downloaded at http://vigods.com/to...curity/aes.html (and to be used absolutely for free :thumbup1: ).