diff sha1.h @ 752:1e5bfdf9054d libavutil

Prepare SHA code to handle SHA-2 as well. For now rename files and functions and leave av_sha1_* functions for compatibility until next major bump.
author kostya
date Fri, 10 Jul 2009 15:50:49 +0000
parents 860d74503de2
children e34e8d654ded
line wrap: on
line diff
--- a/sha1.h	Thu Jul 09 07:29:03 2009 +0000
+++ b/sha1.h	Fri Jul 10 15:50:49 2009 +0000
@@ -31,6 +31,7 @@
  * Initializes SHA-1 hashing.
  *
  * @param context pointer to the function context (of size av_sha_size)
+ * @deprecated use av_sha_init() instead
  */
 void av_sha1_init(struct AVSHA1* context);
 
@@ -40,6 +41,7 @@
  * @param context hash function context
  * @param data    input data to update hash with
  * @param len     input data length
+ * @deprecated use av_sha_update() instead
  */
 void av_sha1_update(struct AVSHA1* context, const uint8_t* data, unsigned int len);
 
@@ -48,6 +50,7 @@
  *
  * @param context hash function context
  * @param digest  buffer where output digest value is stored
+ * @deprecated use av_sha_final() instead
  */
 void av_sha1_final(struct AVSHA1* context, uint8_t digest[20]);