]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Extend AVSHA1 so it can be used in future SHA-2 code as well
authorkostya <kostya@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 9 Jul 2009 07:14:07 +0000 (07:14 +0000)
committerkostya <kostya@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 9 Jul 2009 07:14:07 +0000 (07:14 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19386 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavutil/sha1.c

index fbff52a17bf7063dcb3a554f56fe7f7fb9f582ef..a25bdbcf1bfb20ef3cea303201e2f42a24b74f1d 100644 (file)
 
 /** 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);