mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-20 16:17:40 +00:00

Beside SHA1 fingerprint hash, Connector/C now also supports SHA224 (OpenSSL and GnuTLS only), SHA256, SHA384 and SHA512 fingerprint hashes.
23 lines
476 B
C
23 lines
476 B
C
#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
|