summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-07-09 07:14:07 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-07-09 07:14:07 +0000
commit01cc62884528f26cc440738a66422830c1b86cd5 (patch)
tree146aa21e5b8805db895a5c7826ce2995802e5f5e /libavutil
parent4364fc9a0d630183dbb4c676062d4369181131f1 (diff)
Extend AVSHA1 so it can be used in future SHA-2 code as well
Originally committed as revision 19386 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/sha1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/sha1.c b/libavutil/sha1.c
index fbff52a17b..a25bdbcf1b 100644
--- a/libavutil/sha1.c
+++ b/libavutil/sha1.c
@@ -25,9 +25,10 @@
/** hash context */
typedef struct AVSHA1 {
+ uint8_t digest_len; ///< digest length in 32-bit words
uint64_t count; ///< number of bytes in buffer
uint8_t buffer[64]; ///< 512-bit buffer of input values used in hash updating
- uint32_t state[5]; ///< current hash value
+ uint32_t state[8]; ///< current hash value
} AVSHA1;
const int av_sha1_size = sizeof(AVSHA1);