LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-20-2015, 06:16 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Embedded bootloader encryption


This isn't a Linux question, but I don't know where else to turn.

I need to write an encrypted bootloader for a dsPIC33, and I don't know what encryption algorithm to use, or even where to start looking. It needs to be a moderately strong symmetrical algorithm that doesn't take up a lot of code space. So I guess that provides some boundaries. The value of the program it will be protecting is not particularly high, but I have a lot of time invested in developing it. Mostly, I don't want to see a knockoff of my product appear on ebay with my code installed, and the IP thief referring questions to me - which I have run into before.

I don't need help with coding or any of that. I just need a starting point with the names of some publicly available encryption algorithms that would be appropriate for my needs.
 
Old 04-20-2015, 10:53 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Based on metaschima's post here, I decided to try twofish first.

http://www.linuxquestions.org/questi...0/#post5346410
 
Old 04-20-2015, 11:04 PM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Symmetric encryption algorithms would be AES (Rijndael), Twofish, Serpent, Threefish.
 
1 members found this post helpful.
Old 04-21-2015, 12:12 AM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Hi veerain,

Of those, which is the simplest to implement with the smallest code footprint? It's just going to be used to flash new firmware into either a dsPIC33FJ64MC802 or a dsPIC33FJ128MC802. I haven't gotten the twofish test to work yet. I'm going through the platform.h at the moment to try to set that up for Linux. After that, I'll do the same on the dsPIC33.
 
Old 04-21-2015, 12:24 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Well I don't know which is simplest and also smallest. But theefish part of skein is the newest one.
 
Old 04-22-2015, 11:18 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Thanks for the help, veerain. Getting the twofish code from the author's site to work was a problem, as it was written for Borland C, as well as being old. Combine that with a newbie to keys and encryption, and you see the problem. But, I've managed to get one of the public versions going, and have cut the object size down to something manageable on the PIC. More importantly, it actually worked! =) So, looks like this is a go.

Cheers!
 
Old 04-22-2015, 11:56 PM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Many have ported skein and threefish to embedded systems. See skein website.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
Linux password encryption and data encryption Tux-Slack Programming 4 06-20-2007 06:46 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration