diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-07-10 15:50:49 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-07-10 15:50:49 +0000 |
commit | 451ae257242c4e10b6f1e816e14638bb45ad762b (patch) | |
tree | 00d26ab4b1cc6ba2e34dbc25d1b14c437d7d6197 /libavutil/sha1.h | |
parent | 71ecc16b091a9418773d5897e3ef8ee1a6d68f56 (diff) | |
download | ffmpeg-451ae257242c4e10b6f1e816e14638bb45ad762b.tar.gz |
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.
Originally committed as revision 19394 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/sha1.h')
-rw-r--r-- | libavutil/sha1.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/sha1.h b/libavutil/sha1.h index b9a43cdd39..cf7c4a656b 100644 --- a/libavutil/sha1.h +++ b/libavutil/sha1.h @@ -31,6 +31,7 @@ struct AVSHA1; * 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 @@ void av_sha1_init(struct AVSHA1* context); * @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 @@ void av_sha1_update(struct AVSHA1* context, const uint8_t* data, unsigned int le * * @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]); |