Commit 0959b276 authored by kostya's avatar kostya

Extend AVSHA1 so it can be used in future SHA-2 code as well

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19386 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1012a3a4
...@@ -25,9 +25,10 @@ ...@@ -25,9 +25,10 @@
/** hash context */ /** hash context */
typedef struct AVSHA1 { typedef struct AVSHA1 {
uint8_t digest_len; ///< digest length in 32-bit words
uint64_t count; ///< number of bytes in buffer uint64_t count; ///< number of bytes in buffer
uint8_t buffer[64]; ///< 512-bit buffer of input values used in hash updating 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; } AVSHA1;
const int av_sha1_size = sizeof(AVSHA1); const int av_sha1_size = sizeof(AVSHA1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment