Seeding Hash-functions

  • Thread starter Thread starter Jesper Stocholm
  • Start date Start date
J

Jesper Stocholm

I am currently using the SHA1-implementation (from
SHA1CryptoServiceProvider) in the framework to create a chain of hash-
values. Usually, in the technical description of hash-functions, it is
possible to seed the algorithm with an initialization vector (IV). Is this
also possible when using SHA1? I have browsed the reference for the Class,
but I cannot find any indications of it being possible.

Of course it is possible to simply append a seed to the input, but I was
looking for a constructor, that would allow me to pass IV directly to the
algorithm.

Is this possible?
 
AFAIK, you need to salt it manually. The PasswordDeriveBytes class allows
you to provide a salt, as well as specify how many iterations you'd like.

-mike
MVP
 
Back
Top