Hi,

On Tue, Mar 04, 2014 at 06:23:51PM -0700, Brad Walker wrote:
> I'm trying to understand how to encrypt/decrypt data using SHA1.

SHA1 is not a cipher, therefore you can't use it for en-/decryption.

> I see there is an example for AES and I have it working. But, I can't seem
> to find something equivalent for SHA1..
> 
> Does anyone have a working example for SHA1 that I can use?

Please have a look at tests/hmac.c for SHA1 with HMAC and
tests/sha_speed.c (a benchmark for plain SHA1).

Greetings, Phil

_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to