diff options
author | Richard Levitte <levitte@openssl.org> | 2004-05-30 16:58:33 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-05-30 16:58:33 +0000 |
commit | af2bf07404f393a9b7425a943918830ae08413d3 (patch) | |
tree | 3b6e3c4a15c6a1e209b30fdc984cfae960e56f75 /crypto | |
parent | 8c5dfa4c99b9695369259f80702c51c9f20c7b47 (diff) |
SHA224_Update() and SHA224_Final() aren't implemented, and since
SHA224() uses SHA256_Update() and SHA256_Final() instead, let's just
create aliases in form of macros.
make update
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/sha/sha.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/sha/sha.h b/crypto/sha/sha.h index 35c89375a2..f4dd5277c2 100644 --- a/crypto/sha/sha.h +++ b/crypto/sha/sha.h @@ -89,12 +89,12 @@ extern "C" { #define SHA_LONG unsigned int #endif -#define SHA_LBLOCK 16 +#define SHA_LBLOCK 16U #define SHA_CBLOCK (SHA_LBLOCK*4) /* SHA treats input data as a * contiguous array of 32 bit * wide big-endian values. */ #define SHA_LAST_BLOCK (SHA_CBLOCK-8) -#define SHA_DIGEST_LENGTH 20 +#define SHA_DIGEST_LENGTH 20U typedef struct SHAstate_st { @@ -135,8 +135,13 @@ typedef struct SHA256state_st #ifndef OPENSSL_NO_SHA256 int SHA224_Init(SHA256_CTX *c); +#if 0 int SHA224_Update(SHA256_CTX *c, const void *data, size_t len); int SHA224_Final(unsigned char *md, SHA256_CTX *c); +#else +#define SHA224_Update(c,data,len) SHA256_Update((c),(data),(len)) +#define SHA224_Final(md,c) SHA256_Final((md),(c)) +#endif unsigned char *SHA224(const unsigned char *d, size_t n,unsigned char *md); int SHA256_Init(SHA256_CTX *c); int SHA256_Update(SHA256_CTX *c, const void *data, size_t len); |