All times are UTC-06:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Altivec Ciphers
PostPosted: Thu Apr 27, 2006 1:47 am 
Offline

Joined: Sat Feb 18, 2006 4:43 am
Posts: 8
I just noticed that there is an mmx optimised AES routine in the kernel.org code, is there somewhere where someone has done Altivec optimised ciphers for the kernel? i could see this as bieng very hand in VPN routers and other such crypto things (encrypted drive)


Top
   
 Post subject:
PostPosted: Thu Apr 27, 2006 6:43 am 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.

I know that libmcrypt should have AltiVec optimisation at some point, but I did not follow progress here due to lack of time.

Altivec optimised OpenSSL features are in the Common Data Security Architecture (CDSA), and is part of Darwin. One could rewrite mod_ssl for Apache to take advantage of this, but I don't know if it would be easy to get this into Linux. Maybe this can help?

I haven't been keeping myself up-to-date in this area regarding Linux, thanks for reminding me to do so. :-)
I did program an ECC crypto system on an 8-bitter a while ago, but I don't think that'll help here...


Best regards,
Johan

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Sun Jun 18, 2006 9:00 am 
Offline

Joined: Fri Feb 17, 2006 12:31 pm
Posts: 10
I recently tried to implement various cipher using AltiVec and normaly you and up at a point where you have to use the value of an AltiVec register as offset to a lookuptable lager than those implementable with vperm.

But there are some ciphers that are nearly perfectly suited for AltiVec like Salsa20. Matthijs van Duin's implentation achieved a througput of more than one byte per 5 cycles on a ppc7410 and ppc7447 messured with the ECRYPT test framework.


Top
   
 Post subject:
PostPosted: Sun Jun 18, 2006 11:33 am 
Offline

Joined: Thu Nov 18, 2004 11:48 am
Posts: 110
you may use multiple perm to get a bigger lookup table

lu


Top
   
 Post subject:
PostPosted: Sun Jun 18, 2006 12:33 pm 
Offline

Joined: Fri Feb 17, 2006 12:31 pm
Posts: 10
have you ever tried to store e.g. 4 8x32 sboxes in 32 128bit regs?^^ scnr


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group