Browse Source

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
tags/v0.6
Kostya Shishkov 16 years ago
parent
commit
01cc628845
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavutil/sha1.c

+ 2
- 1
libavutil/sha1.c View File

@@ -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);


Loading…
Cancel
Save