RT3065: automatically generate a missing EC public key
[openssl.git] / crypto / mdc2 / mdc2.h
index 793a8a0f13fb9fe764eac07f3ea8b32163409250..72778a521236aed7dcb4b0f7bbe7dcd68ff3e1a2 100644 (file)
@@ -74,7 +74,7 @@ extern "C" {
  
 typedef struct mdc2_ctx_st
        {
-       int num;
+       unsigned int num;
        unsigned char data[MDC2_BLOCK];
        DES_cblock h,hh;
        int pad_type; /* either 1 or 2, default 1 */
@@ -82,9 +82,9 @@ typedef struct mdc2_ctx_st
 
 
 int MDC2_Init(MDC2_CTX *c);
-int MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len);
+int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len);
 int MDC2_Final(unsigned char *md, MDC2_CTX *c);
-unsigned char *MDC2(const unsigned char *d, unsigned long n,
+unsigned char *MDC2(const unsigned char *d, size_t n,
        unsigned char *md);
 
 #ifdef  __cplusplus