mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Provide sha1 to outside applications
Patch from Diego Pettenò flameeyesATgmailDOTcom Originally committed as revision 11207 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
84be6e7239
commit
537c8e7a48
@ -16,6 +16,7 @@ OBJS = adler32.o \
|
|||||||
random.o \
|
random.o \
|
||||||
rational.o \
|
rational.o \
|
||||||
rc4.o \
|
rc4.o \
|
||||||
|
sha1.o \
|
||||||
string.o \
|
string.o \
|
||||||
tree.o \
|
tree.o \
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ HEADERS = adler32.h \
|
|||||||
mem.h \
|
mem.h \
|
||||||
random.h \
|
random.h \
|
||||||
rational.h \
|
rational.h \
|
||||||
|
sha1.h
|
||||||
|
|
||||||
NAME=avutil
|
NAME=avutil
|
||||||
LIBVERSION=$(LAVUVERSION)
|
LIBVERSION=$(LAVUVERSION)
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
#define AV_STRINGIFY(s) AV_TOSTRING(s)
|
#define AV_STRINGIFY(s) AV_TOSTRING(s)
|
||||||
#define AV_TOSTRING(s) #s
|
#define AV_TOSTRING(s) #s
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_INT ((49<<16)+(5<<8)+0)
|
#define LIBAVUTIL_VERSION_INT ((49<<16)+(6<<8)+0)
|
||||||
#define LIBAVUTIL_VERSION 49.5.0
|
#define LIBAVUTIL_VERSION 49.6.0
|
||||||
#define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
|
#define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
|
||||||
|
|
||||||
#define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
|
#define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
|
||||||
|
@ -29,6 +29,8 @@ typedef struct AVSHA1 {
|
|||||||
uint32_t state[5];
|
uint32_t state[5];
|
||||||
} AVSHA1;
|
} AVSHA1;
|
||||||
|
|
||||||
|
const int av_sha1_size = sizeof(AVSHA1);
|
||||||
|
|
||||||
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
|
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
|
||||||
|
|
||||||
/* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */
|
/* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */
|
||||||
|
Loading…
Reference in New Issue
Block a user