PDA

View Full Version : How can a script determine if AES-128 is supported?


njones
06-27-2010, 04:14 PM
My script selects encryption mode based on user configuration via UART protocol. Ideally I'd like my script to say "sorry" if the user tries to select AES-128 mode on a platform that doesn't suport it.

Can I read the firmware ID or something else that would indicate if setting encryption mode to 1 would actually result in encrypted traffic?

I really don't want to have two version of basically the same script to be loaded on hardware with and without encryption...

Jheath
06-27-2010, 09:51 PM
Can I read the firmware ID or something else that would indicate if setting encryption mode to 1 would actually result in encrypted traffic?

A call to the getInfo() function passing a variable of '8' will return the encryption options available for that firmware.

Encyrp = getInfo(8) Possible results:

0 = None (no encryption support)
1 = AES-128
2 = SNAP encryption (coming soon)