LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2010, 12:32 AM   #1
iqra
Member
 
Registered: May 2010
Posts: 34

Rep: Reputation: 15
Question I want to compare two cryptographics techniques


Hi..!

i m working on very simple agaent and manager of SNMP. i want to comapre DES and AES cryptographic algorithm that i will use in communication being carried out between agent and manager.

i want to know that which paramter i should select through which i can do this comaprison (that which technique is better for secure communication?)

for example the paramters like CPU USAGE, SYSTEM UP TIME, NO.OF PROCESS, MEMORY CAPACITY, STORAGE CAPACITY etc...
can i use these paramter for comparision? i mean by using both (AED & DES)techniques for secure communication if find out these parameters, will these help me to analyze that which technique is better?

please help me out i am so confused about these paramters!

thanx
Regards
 
Old 05-28-2010, 07:50 AM   #2
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Rep: Reputation: 16
I've not got access to my library at mo so...

http://searchsecurity.techtarget.com...797792,00.html
http://www.nexiondata.com/products/o...ypt/desaes.htm

There's loads more, see google search

I'd also suggest looking at block modes... http://en.wikipedia.org/wiki/Block_c...s_of_operation

A good reference book is Applied Cryptography: Protocols, Algorithms and Source Code in C
 
Old 05-28-2010, 01:41 PM   #3
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
The short answer is "Use AES". DES is completely broken, and Triple-DES is deprecated.
 
Old 05-29-2010, 01:38 AM   #4
iqra
Member
 
Registered: May 2010
Posts: 34

Original Poster
Rep: Reputation: 15
@ brazilnut

thanx.. these are helpful links but actually these are to understand cryptography and i need to know their performance through some paramters.... that i still didnt get!!

tuxdev
yes! AES is much better than DES but for my project i have to compare the results of both.
for example i will note down the time taken to encrypt and decrypt the message by both techniques.

other than time what can i check or note????

Regards!
 
Old 05-29-2010, 07:48 AM   #5
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Rep: Reputation: 16
When you find the source code for your implementation (library) there is usually a benchmark app included so you can test (and check for errors).

To understand the performance you do sort of need to have some understanding of crypto. For instance if you get a data error (say one bit is wrong in one block) then using certain block modes it may be impossible to recover all blocks after, or you may just lose one block, etc (I provided a link above which explained that).

Certain implementations of the code are faster than others either because of the language or just the way it was written. Some versions have optimised code included for specific processors, etc...



Here's some more google results for ya...

http://www.cryptopp.com/benchmarks.html
http://forums.sun.com/thread.jspa?threadID=558004
http://gladman.plushost.co.uk/oldsit...esr1/index.php


What library are you using?
 
Old 05-29-2010, 09:44 AM   #6
iqra
Member
 
Registered: May 2010
Posts: 34

Original Poster
Rep: Reputation: 15
Thanx! for your help.!
and for these useful links.

well i dont know about library. as i have simple client and server application and
i just have to secure there communication and find out the results.

i m doing it in simple C language on Linux (Fedora) platform.

Regards.
 
Old 05-29-2010, 11:13 AM   #7
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
It's completely and utterly *pointless* to even consider broken and deprecated algorithms. The other AES candidates like Twofish or Serpent are reasonable to compare with, not DES or Triple-DES. You're not really learning anything when you're stuck on such algorithms.
 
Old 05-29-2010, 11:19 AM   #8
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Tuxdev is absolutely correct:
Quote:
It's completely and utterly *pointless* to even consider broken and deprecated algorithms. The other AES candidates like Twofish or Serpent are reasonable to compare with, not DES or Triple-DES. You're not really learning anything when you're stuck on such algorithms.
Strike 2:
Quote:
well I dont know about library. as I have simple client and server application and I just have to secure their communication and find out the results.
So you're not even evaluating the algorithms themselves - you're just timing two different implementations (and apparently not even interested in examining the code).

Good luck!

IMHO .. PSM

PS:
Suggestion:
Quote:
1. Find (or write) a program (any! program) that does DES
2. Find a program that does AES
3. Use the "time" command to get timings
4. Write up your results and turn in your assignment
5. Understand this is *not* the way you'd approach the problem in the "real world" (outside of school)

Last edited by paulsm4; 05-29-2010 at 11:25 AM.
 
Old 05-29-2010, 11:41 AM   #9
iqra
Member
 
Registered: May 2010
Posts: 34

Original Poster
Rep: Reputation: 15
ahaaan... i understand what u people are saying...and thankful to you as u r giving me your time but my problem is that my project topic is approved by my teachers. and the topic was secure simple network management system. in SNMP DES is already implemented even 3DES and AES.
when i told my supervisors they asked me to do analysis of both algorithms. because they can not change my topic.... so its just my department's head's requirement :-( i cant do any thing so just trying to do what they assigned. well i will try my level best to do something different regarding this.

hope you understands my problem.

and again thanks for nice suggestions.

Regards!
 
Old 05-29-2010, 12:35 PM   #10
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
As for a specific implementation, OpenSSL is pretty much the top open-source C solution out there.
 
Old 05-30-2010, 04:14 AM   #11
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Rep: Reputation: 16
Some more research for you...

http://tools.ietf.org/html/rfc3826
http://tools.ietf.org/html/rfc3414
 
  


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
Find Techniques SBN Linux - General 6 04-05-2008 12:30 AM
Techniques of TV dlynch912 General 1 04-17-2006 04:54 AM
Data hiding techniques npuetz Linux - General 4 06-24-2005 01:06 PM
Advanced macro techniques The_Nerd Programming 1 11-15-2004 03:21 PM
kernel a.out/ELF and cryptographics.. name_in_use450 Linux - General 0 08-06-2004 07:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:23 PM.

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