-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beside SHA1 fingerprint hash, Connector/C now also supports SHA224 (OpenSSL and GnuTLS only), SHA256, SHA384 and SHA512 fingerprint hashes.
- Loading branch information
Showing
12 changed files
with
189 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef _ma_hash_h_ | ||
#define _ma_hash_h_ | ||
|
||
/*! Hash algorithms */ | ||
#define MA_HASH_MD5 1 | ||
#define MA_HASH_SHA1 2 | ||
#define MA_HASH_SHA224 3 | ||
#define MA_HASH_SHA256 4 | ||
#define MA_HASH_SHA384 5 | ||
#define MA_HASH_SHA512 6 | ||
|
||
/*! Hash digest sizes */ | ||
#define MA_MD5_HASH_SIZE 16 | ||
#define MA_SHA1_HASH_SIZE 20 | ||
#define MA_SHA224_HASH_SIZE 28 | ||
#define MA_SHA256_HASH_SIZE 32 | ||
#define MA_SHA384_HASH_SIZE 48 | ||
#define MA_SHA512_HASH_SIZE 64 | ||
|
||
#define MA_MAX_HASH_SIZE 64 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.