Loading crypto/hmac/hmac.c +2 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, memcpy(&ctx->md_ctx,&ctx->i_ctx,sizeof(ctx->i_ctx)); } void HMAC_Update(HMAC_CTX *ctx, unsigned char *data, int len) void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len) { EVP_DigestUpdate(&(ctx->md_ctx),data,len); } Loading @@ -134,7 +134,7 @@ void HMAC_cleanup(HMAC_CTX *ctx) } unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, unsigned char *d, int n, unsigned char *md, const unsigned char *d, int n, unsigned char *md, unsigned int *md_len) { HMAC_CTX c; Loading crypto/hmac/hmac.h +2 −2 Original line number Diff line number Diff line Loading @@ -85,11 +85,11 @@ typedef struct hmac_ctx_st void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md); void HMAC_Update(HMAC_CTX *ctx,unsigned char *key, int len); void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len); void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); void HMAC_cleanup(HMAC_CTX *ctx); unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, unsigned char *d, int n, unsigned char *md, const unsigned char *d, int n, unsigned char *md, unsigned int *md_len); Loading crypto/md2/md2.h +2 −2 Original line number Diff line number Diff line Loading @@ -81,9 +81,9 @@ typedef struct MD2state_st const char *MD2_options(void); void MD2_Init(MD2_CTX *c); void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); void MD2_Final(unsigned char *md, MD2_CTX *c); unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md); #ifdef __cplusplus } #endif Loading crypto/md2/md2_dgst.c +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ void MD2_Init(MD2_CTX *c) memset(c->data,0,MD2_BLOCK); } void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len) void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len) { register UCHAR *p; Loading crypto/md2/md2_one.c +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ /* This is a separate file so that #defines in cryptlib.h can * map my MD functions to different names */ unsigned char *MD2(unsigned char *d, unsigned long n, unsigned char *md) unsigned char *MD2(const unsigned char *d, unsigned long n, unsigned char *md) { MD2_CTX c; static unsigned char m[MD2_DIGEST_LENGTH]; Loading Loading
crypto/hmac/hmac.c +2 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, memcpy(&ctx->md_ctx,&ctx->i_ctx,sizeof(ctx->i_ctx)); } void HMAC_Update(HMAC_CTX *ctx, unsigned char *data, int len) void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len) { EVP_DigestUpdate(&(ctx->md_ctx),data,len); } Loading @@ -134,7 +134,7 @@ void HMAC_cleanup(HMAC_CTX *ctx) } unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, unsigned char *d, int n, unsigned char *md, const unsigned char *d, int n, unsigned char *md, unsigned int *md_len) { HMAC_CTX c; Loading
crypto/hmac/hmac.h +2 −2 Original line number Diff line number Diff line Loading @@ -85,11 +85,11 @@ typedef struct hmac_ctx_st void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md); void HMAC_Update(HMAC_CTX *ctx,unsigned char *key, int len); void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len); void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); void HMAC_cleanup(HMAC_CTX *ctx); unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, unsigned char *d, int n, unsigned char *md, const unsigned char *d, int n, unsigned char *md, unsigned int *md_len); Loading
crypto/md2/md2.h +2 −2 Original line number Diff line number Diff line Loading @@ -81,9 +81,9 @@ typedef struct MD2state_st const char *MD2_options(void); void MD2_Init(MD2_CTX *c); void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); void MD2_Final(unsigned char *md, MD2_CTX *c); unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md); #ifdef __cplusplus } #endif Loading
crypto/md2/md2_dgst.c +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ void MD2_Init(MD2_CTX *c) memset(c->data,0,MD2_BLOCK); } void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len) void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len) { register UCHAR *p; Loading
crypto/md2/md2_one.c +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ /* This is a separate file so that #defines in cryptlib.h can * map my MD functions to different names */ unsigned char *MD2(unsigned char *d, unsigned long n, unsigned char *md) unsigned char *MD2(const unsigned char *d, unsigned long n, unsigned char *md) { MD2_CTX c; static unsigned char m[MD2_DIGEST_LENGTH]; Loading