[Botan-devel] trivial hash example ?

Jack Lloyd lloyd at randombit.net
Mon Jul 2 15:53:35 EDT 2007


On Mon, Jul 02, 2007 at 09:47:48PM +0200, Christophe Meessen wrote:
> Christophe Meessen a ?crit :
> > Hello,
> >
> > I need to use a hash function but with pipes. I couldn't find info or
> > examples on how to do this.
> >   
> Oops: I ment without pipes of course. There are plenty examples with pipes.

Oh. Yes. use get_hash to get a HashFunction*, or if you're using a
fixed hash you can just instantiate it directly (a SHA_160 or
whatever).

Primitive ciphers (eg, AES) can be used as BlockCipher* (from
Botan::get_block_cipher) or named (Botan::AES) in ECB mode. The
cipher mode implementations all use the filter/pipe code.

-Jack



More information about the botan-devel mailing list