FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-23-2005, 01:30 AM
[email protected]
Guest
 
Posts: n/a
Default data encryption standard

hi,

I am implementing data encryption standard using verilog. can anyone
suggest efficient algorith to implemnt data encryption standard (
especially S-box).

Reply With Quote
  #2 (permalink)  
Old 11-23-2005, 02:43 AM
Ray Andraka
Guest
 
Posts: n/a
Default Re: data encryption standard

[email protected] wrote:
> hi,
>
> I am implementing data encryption standard using verilog. can anyone
> suggest efficient algorith to implemnt data encryption standard (
> especially S-box).
>

The S-Boxes are the easy part. They are just LUTs.
Reply With Quote
  #3 (permalink)  
Old 11-23-2005, 05:37 AM
[email protected]
Guest
 
Posts: n/a
Default Re: data encryption standard

I am implemnting S-box by using case statement.


6'b000000: SB[1]=4'd14;
6'b000010: SB[1]=4'd4;
6'b000100: SB[1]=4'd13;
6'b000110: SB[1]=4'd1;
6'b001000: SB[1]=4'd2;
6'b001010: SB[1]=4'd15;
6'b001100: SB[1]=4'd11;
6'b001110: SB[1]=4'd8;
6'b010000: SB[1]=4'd3;
6'b010010: SB[1]=4'd10;
6'b010100: SB[1]=4'd6;
6'b010110: SB[1]=4'd12;
6'b011000: SB[1]=4'd5;
6'b011010: SB[1]=4'd9;
6'b011100: SB[1]=4'd0;
6'b011110: SB[1]=4'd7;
6'b000001: SB[1]=4'd0;
6'b000011: SB[1]=4'd15;
6'b000101: SB[1]=4'd7;
6'b000111: SB[1]=4'd4;
6'b001001: SB[1]=4'd14;
6'b001011: SB[1]=4'd2;
6'b001101: SB[1]=4'd13;
6'b001111: SB[1]=4'd1;
6'b010001: SB[1]=4'd10;
6'b010011: SB[1]=4'd6;
6'b010101: SB[1]=4'd12;
6'b010111: SB[1]=4'd11;
6'b011001: SB[1]=4'd9;
6'b011011: SB[1]=4'd5;
6'b011101: SB[1]=4'd3;
6'b011111: SB[1]=4'd8;
6'b100000: SB[1]=4'd4;
6'b100010: SB[1]=4'd1;
6'b100100: SB[1]=4'd14;
6'b100110: SB[1]=4'd8;



Is this efficient way?

Or is any other method t o implemnt LUT

Reply With Quote
  #4 (permalink)  
Old 11-23-2005, 08:32 AM
Simon Peacock
Guest
 
Posts: n/a
Default Re: data encryption standard

Depends... Synplify will turn that into a ROM or LUTs depending on what it
thinks is best...

Simon

<[email protected]> wrote in message
news:[email protected] oups.com...
> I am implemnting S-box by using case statement.
>
>
> 6'b000000: SB[1]=4'd14;
> 6'b000010: SB[1]=4'd4;
> 6'b000100: SB[1]=4'd13;
> 6'b000110: SB[1]=4'd1;
> 6'b001000: SB[1]=4'd2;
> 6'b001010: SB[1]=4'd15;
> 6'b001100: SB[1]=4'd11;
> 6'b001110: SB[1]=4'd8;
> 6'b010000: SB[1]=4'd3;
> 6'b010010: SB[1]=4'd10;
> 6'b010100: SB[1]=4'd6;
> 6'b010110: SB[1]=4'd12;
> 6'b011000: SB[1]=4'd5;
> 6'b011010: SB[1]=4'd9;
> 6'b011100: SB[1]=4'd0;
> 6'b011110: SB[1]=4'd7;
> 6'b000001: SB[1]=4'd0;
> 6'b000011: SB[1]=4'd15;
> 6'b000101: SB[1]=4'd7;
> 6'b000111: SB[1]=4'd4;
> 6'b001001: SB[1]=4'd14;
> 6'b001011: SB[1]=4'd2;
> 6'b001101: SB[1]=4'd13;
> 6'b001111: SB[1]=4'd1;
> 6'b010001: SB[1]=4'd10;
> 6'b010011: SB[1]=4'd6;
> 6'b010101: SB[1]=4'd12;
> 6'b010111: SB[1]=4'd11;
> 6'b011001: SB[1]=4'd9;
> 6'b011011: SB[1]=4'd5;
> 6'b011101: SB[1]=4'd3;
> 6'b011111: SB[1]=4'd8;
> 6'b100000: SB[1]=4'd4;
> 6'b100010: SB[1]=4'd1;
> 6'b100100: SB[1]=4'd14;
> 6'b100110: SB[1]=4'd8;
>
>
>
> Is this efficient way?
>
> Or is any other method t o implemnt LUT
>



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
verilog code for the "international data encryption algorithm(IDEA)" neelima Verilog 0 01-23-2007 11:09 AM
verilog code for the "international data encryption algorithm(IDEA)" neelima Verilog 0 01-23-2007 11:09 AM
Please recomend textbook with AES encryption. Frank Verilog 3 04-02-2006 02:37 PM
FPGA Network Encryption Engine Shakith FPGA 2 11-08-2004 12:04 AM


All times are GMT +1. The time now is 01:44 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved