Public Key Encryption - Any hope? + project photos
Deskguy
Posts: 32
Hi,
I've been 'playing' around with some various encryption algorithms - mainly old stuff such as the Enigma machine. However, there are also some newer projects like RC4, and SHA/AES from Obex.
I'm curious as to whether anyone has any thoughts on being able to implement any current form of public key encryption on the Prop? I would plan on it only be used to encrypt a symmetric key - therefore max size of about 32 bytes. Of course, that gets around the problem of slow encryption with public key. However, the big issue is whether or not one could generate a key pair on the prop - I'm assuming that it would be exceedingly difficult. Has anyone tried it, or any guesses as to whether or not it is even feasible?
BTW, for anyone that is interested, I'm attaching a couple of photos of my current project. The programming is not even close to being finished, especially since I keep changing my mind
It has:
- Gadget Gangster board
- Parallax 4 x 20 LCD
- Parallax Keyboard
- 2 micro SD card slots - enables me to have different data on both cards and to duplicate cards
- Smarcard reader/writer
- XBEE radio inside
- Printer from Sparkfun (very cool addition to the project)
- the box was only about $23 from Hammond
Just for fun, I had to use the toggle covers - the red one is for zeroizing the keys and the black one I'm going to use for write protected all 3 cards
The toggle on the side is for the radio on/off. Switch on the top is printer on/off. The button is for the XBEE reset. The key lock is not exactly the most secure thing in the world
There are panel mounted USB and PS2 ports.
David
I've been 'playing' around with some various encryption algorithms - mainly old stuff such as the Enigma machine. However, there are also some newer projects like RC4, and SHA/AES from Obex.
I'm curious as to whether anyone has any thoughts on being able to implement any current form of public key encryption on the Prop? I would plan on it only be used to encrypt a symmetric key - therefore max size of about 32 bytes. Of course, that gets around the problem of slow encryption with public key. However, the big issue is whether or not one could generate a key pair on the prop - I'm assuming that it would be exceedingly difficult. Has anyone tried it, or any guesses as to whether or not it is even feasible?
BTW, for anyone that is interested, I'm attaching a couple of photos of my current project. The programming is not even close to being finished, especially since I keep changing my mind
It has:
- Gadget Gangster board
- Parallax 4 x 20 LCD
- Parallax Keyboard
- 2 micro SD card slots - enables me to have different data on both cards and to duplicate cards
- Smarcard reader/writer
- XBEE radio inside
- Printer from Sparkfun (very cool addition to the project)
- the box was only about $23 from Hammond
Just for fun, I had to use the toggle covers - the red one is for zeroizing the keys and the black one I'm going to use for write protected all 3 cards
The toggle on the side is for the radio on/off. Switch on the top is printer on/off. The button is for the XBEE reset. The key lock is not exactly the most secure thing in the world
There are panel mounted USB and PS2 ports.
David
Comments
PKI is possible, especially with PropGCC doing the heavy lifting. The trick will be cutting loose all the other stuff that most crypto packages bring along, just to get the specific algorithms you need.
You are right, it would be a good way to be able to use some existing code.
Thanks!
Thanks for the help and pointers!
David
The five NIST elliptic curves that have been standardised are designed to allow particularly efficient modular arithmetic with shifts/adds (which can't be done with random primes). In ECC the key value doesn't determine the modulus so the modulus can be chosen carefully.
I stil need to write wrapper code to perform some of the standard public key ops in terms of the elliptic curve operations, as far as I remember.
The advantage of using well vetted C code and the PropGCC compiler is that you can avoid many of the pitfalls associated with these weaknesses.