[Botan-devel] trivial hash example ?

Christophe Meessen meessen at cppm.in2p3.fr
Mon Jul 2 15:43:39 EDT 2007


Hello,

I need to use a hash function but with pipes. I couldn't find info or
examples on how to do this.

Looking into the source I found what I need in lookup.h. I guess I
should use
HashFunction* myHash = get_hash( "SHA-1");
What is the purpose of retrieve_hash() ?

I also need the same for a cipher but want to use "AES-128/CFB" for
instance.
How do I instantiate such a cipher. Do I need to instantiate it as a
filter ?
I tried have_algorithm( "AES-128/CFB(128)" ) but it returned false.




More information about the botan-devel mailing list