Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Davies-meyer in VHDL

 
Thread Tools Search this Thread
Old 08-22-2006, 01:52 PM   #1
Default Davies-meyer in VHDL


Hi everybody;

I am new in VDHL and crypto also. I would like to implement the
Davies-meyer HASH function ( Hi = Emi(Hi-1)+Hi-1 ) in VHDL. The problem
I am having is that: The block cipher I am having (Kasumi) have 64 bits
input and output and the HASH function(SHA1) is having 160 bits output.
I don't know how can I manage an agrement between them in order to
implement the Davies-meyer.
Can anyone help me in getting an arrangement of those functions or
indicate where I can find literatures or implementations about this.
Thanks all and nice day.
Adam.



Adam
  Reply With Quote
Old 08-22-2006, 06:18 PM   #2
ajjc
 
Posts: n/a
Default Re: Davies-meyer in VHDL
Adam,
I'm confused by your use of SHA1 in your post. Perhaps looking at

http://en.wikipedia.org/wiki/Hash_fu..._block_ciphers

and rephrasing your question would help me understand what you want.

This method(Davies-Meyer) takes a block cipher and creates
a hash fucntion from it. The key size of the block cipher is the size
of the message block being hashed, whereas the message block size of
the stream cipher is the hash value size.

alan

Adam wrote:
> Hi everybody;
>
> I am new in VDHL and crypto also. I would like to implement the
> Davies-meyer HASH function ( Hi = Emi(Hi-1)+Hi-1 ) in VHDL. The problem
> I am having is that: The block cipher I am having (Kasumi) have 64 bits
> input and output and the HASH function(SHA1) is having 160 bits output.
> I don't know how can I manage an agrement between them in order to
> implement the Davies-meyer.
> Can anyone help me in getting an arrangement of those functions or
> indicate where I can find literatures or implementations about this.
> Thanks all and nice day.
> Adam.




ajjc
  Reply With Quote
Old 08-22-2006, 10:50 PM   #3
Adam
 
Posts: n/a
Default Re: Davies-meyer in VHDL

ajjc schrieb:

> Adam,
> I'm confused by your use of SHA1 in your post. Perhaps looking at
>
> http://en.wikipedia.org/wiki/Hash_fu..._block_ciphers
>
> and rephrasing your question would help me understand what you want.
>
> This method(Davies-Meyer) takes a block cipher and creates
> a hash fucntion from it. The key size of the block cipher is the size
> of the message block being hashed, whereas the message block size of
> the stream cipher is the hash value size.
>
> alan


Hi Alan,

Thanks a lot; your message cleared a lot of confusions in my mind. I
was actually miss-lead because I have been given a wrong Davies-meyer
diagram containing a Hash function.
Now everything is clear and once more thanks.

Adam.



Adam
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute an external software from VHDL? And how to interface VHDL with JAVA? becool_nikks Software 0 03-06-2009 07:08 PM
Vending machine using VHDL arie General Help Related Topics 0 03-05-2009 05:45 AM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
VHDL RAM help!:) lastval Hardware 0 11-09-2007 01:40 PM
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46