diff options
author | Ulf Möller <ulf@openssl.org> | 2000-02-03 18:22:01 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-02-03 18:22:01 +0000 |
commit | 9dbc41d7eed7d69da54dc81082794845c50ad482 (patch) | |
tree | 3c59e6df13deb5eed99501dc7fffac681fb7e1eb /crypto/hmac | |
parent | 82fc1d9c28e834549f61e4c91b3f6bbdf4c48153 (diff) |
Document hash functions.
Diffstat (limited to 'crypto/hmac')
-rw-r--r-- | crypto/hmac/hmac.c | 4 | ||||
-rw-r--r-- | crypto/hmac/hmac.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index 5c349bbb56..23b7c98f8f 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -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); } @@ -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; diff --git a/crypto/hmac/hmac.h b/crypto/hmac/hmac.h index f928975fcd..223eeda7f3 100644 --- a/crypto/hmac/hmac.h +++ b/crypto/hmac/hmac.h @@ -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); |