Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

RC6 Encryption Algorithm / round level inversion in VHDL

Status
Not open for further replies.

RD86

Newbie level 2
Joined
Apr 15, 2005
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
Hi,

Would you please tell me how to write the following questions' code in
VHDL if you know and understand RC6 Encryption Algorithm / round level
Inversion?I will appreciate your help.Thank you.

Q1.
•Input

•128-bit plain text
• stored in four 32-bit registers A,B,C,D
•round keys S[0],S[1],S[2],...,S[43]

•Output

•128-bit cipher text
•stored in A,B,C,D

Q2.The following RC6 Algorithm should not be a VHDL code
would you please help to change it into a VHDL code if you know?
It should follow Q1.Thank you.

B = B + S[0]; D = D + S[1] --pre whitening
for i = 1 to 20 do --whitening
{

t = (B*(2B+1)) <<< 5;
u = (D*(2D+1) <<<5;
A = ((A xor t) <<<u) + S[2i];
C = ((C xor u) <<<t) + S[2i +1];
(A, B, C, D) = (B, C, D, A)
}
A = A + S[2r+2]; C = C + S[2r+3]; --post whitening
 

Re: 2 questions

Hi,

Does anybody know those two questions?Would you please
help to answer them in VHDL ?I will appreciate you.Thank you.

Added after 2 minutes:

Hi,

Does anybody know those two questions?Would you please
help to answer them in VHDL ?I will appreciate you.Thank you.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top