gst_plugins_base/gst-libs/gst/rtsp/md5.h
changeset 8 4a7fac7dd34a
equal deleted inserted replaced
7:71e347f905f2 8:4a7fac7dd34a
       
     1 #ifndef MD5_H
       
     2 #define MD5_H
       
     3 
       
     4 #include "_stdint.h"
       
     5 
       
     6 #ifndef uint32
       
     7 typedef uint32_t uint32;
       
     8 #endif
       
     9 
       
    10 struct MD5Context
       
    11 {
       
    12   uint32 buf[4];
       
    13   uint32 bits[2];
       
    14   unsigned char in[64];
       
    15 };
       
    16 
       
    17 extern void MD5Init (struct MD5Context *ctx);
       
    18 extern void MD5Update (struct MD5Context *ctx, const char *buf,
       
    19     unsigned len);
       
    20 extern void MD5Final (unsigned char digest[16], struct MD5Context *ctx);
       
    21 extern void MD5Transform (uint32 buf[4], uint32 in[16]);
       
    22 
       
    23 /*
       
    24  * This is needed to make RSAREF happy on some MS-DOS compilers.
       
    25  */
       
    26 typedef struct MD5Context MD5_CTX;
       
    27 
       
    28 #endif /* !MD5_H */