etcimon / botan

Block & stream ciphers, public key crypto, hashing, KDF, MAC, PKCS, TLS, ASN.1, BER/DER, etc.
Other
86 stars 22 forks source link

How to use blowfish? #28

Closed Abscissa closed 7 years ago

Abscissa commented 7 years ago

I've been trying to go through the docs, but I'm still at a complete loss: If I want to create blowfish hashes, paramaterized by complexity (as is a large part of the point of blowfish, vs say SHA2), then...how do I do that in botan?

etcimon commented 7 years ago

You should look at how cryptobox is implemented. For blowfish you would replace Serpent with Blowfish. So basically, you'd be using the getCipher function from botan.libstate.lookup and manipulate it as a KeyedFilter/Filterable object through a Pipe.

etcimon commented 7 years ago

Although, I think you're talking about passhash?

Abscissa commented 7 years ago

Yes, I was indeed. Thanks.