When is EVP_MD_CTX_reset() needed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm expecting the answer to be "not in your use case" but I'm fishing for 
something I might have overlooked.

The man page says:
       EVP_MD_CTX_reset()
           Resets the digest context ctx.  This can be used to reuse an
           already existing context.

I have a subroutine that does:
  EVP_DigestInit_ex
  EVP_DigestUpdate
  EVP_DigestFinal_ex

That code is reusing a ctx.  The init often gets a new digest.  It works 
without the reset.

What does "reuse" mean?  When would EVP_MD_CTX_reset() be necessary?


-- 
These are my opinions.  I hate spam.






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux