Commit 46c5f652 authored by michael's avatar michael

put state[5] last so no padding is needed on arch where uint64_t needs 8byte alignment


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8379 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a6fdf165
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
#include "sha1.h" #include "sha1.h"
typedef struct AVSHA1 { typedef struct AVSHA1 {
uint32_t state[5];
uint64_t count; uint64_t count;
uint8_t buffer[64]; uint8_t buffer[64];
uint32_t state[5];
} AVSHA1; } AVSHA1;
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
......
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