projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4364fc9
)
Extend AVSHA1 so it can be used in future SHA-2 code as well
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 9 Jul 2009 07:14:07 +0000
(07:14 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 9 Jul 2009 07:14:07 +0000
(07:14 +0000)
Originally committed as revision 19386 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/sha1.c
patch
|
blob
|
history
diff --git
a/libavutil/sha1.c
b/libavutil/sha1.c
index
fbff52a
..
a25bdbc
100644
(file)
--- 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);