Mailing List Archive

twofish without block mode...
Hello,

I have a program to windows that I want to port to
Linux (so I will use Linux all day at work), the
program encrypt some files with twofish without any
block chiper (like cbc, cfb, ecb, etc), so I need to
encrypt and decrypt in this way.

I started to search at Internet and found basic two
libs the libmcrypt and libgcrypt, the libmcrypt
unhapilly doesn't appear to work WITHOUT block chipers
(or you choose ebc, ecb, etc, or die ), so i started
to check the libgcrypt. :)

Well, The .info file is very informative, but with a
lot of information (i'm a little confused) and not
examples code. :(

The good think I found on libmcrypt is that it have
two .c examples file, why not add something like in
libgcrypt ?

Well, let's to my problem, can someone send me a basic
example code encode and decode of twofish without
block chipers with libgcrypt ?

obs: If doesn't have with twofish can be other
algorithm, i think i can make it work with twofish....
I need a example that work.. hehehe

Thkz a lot.

Regards,






_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/
Re: twofish without block mode... [ In reply to ]
On Mon, 22 Nov 2004 14:00:44 -0300 (ART), zgrp unknow said:

> Well, let's to my problem, can someone send me a basic
> example code encode and decode of twofish without
> block chipers with libgcrypt ?

Twofish is a block cipher and can't me turned into a stream cipher.
Stream ciphers are a different class of algorithm. Well, you may use
CFB mode which has similar properties.

Why do you want to use a stream cipher at all. Correct use of stream
ciphers isn't easy. Before you start to do something like this you
definitely should get your hands on literature (no, Applied
Cryptography isn't enough - get Ferguson and Schneier's Practical
Cryptography).


Salam-Shalom,

Werner