AES functions?
true
Posts: 307
Has anyone written / is willing to share any AES functions for NetLinx?
If not (and maybe even if so - I need to start working on this now) I'll work on an AES library for NetLinx.
EDIT: I'm working on it. Encryption is done (128,192,256 bits).
If not (and maybe even if so - I need to start working on this now) I'll work on an AES library for NetLinx.
EDIT: I'm working on it. Encryption is done (128,192,256 bits).
0
Comments
Attached is a sample project of AES in ECB mode (everything should be included, let me know if it isn't).
In debugger, watch the variables "source" "result" and "operation" and play around with it to see it in action. You can also watch "aes_key" and "aes_bits" to change your key and key bit size, respectively.
Supports 128, 192 and 256 bit keys, 128 bit blocks only (as is AES standard).
For example "Hello World" as input to your code returns
71 32 73 3C 4E 36 A4 4D 27 4D 40 08 09 1D 24 F3
but online (function:AES, Mode:ECB, using your key) returns
01 02 03 04 87 66 43 82 12 34 56 7A DD EE FF 00
What am I missing something? I'd love to be able to use this.
Speed might not be as fast as Duet but it isn't particularly slow either...I wouldn't do bulk storage with for example.
Can you share that code?
Thank you
Fabrizio L
NX processors run the same Duet code as NI processors, so the same .jar would run on NX masters.
Thank you