mirror of https://github.com/yandex/odyssey.git
25 lines
494 B
C
25 lines
494 B
C
#ifndef SHAPITO_MD5_H
|
|
#define SHAPITO_MD5_H
|
|
|
|
/*
|
|
* Shapito.
|
|
*
|
|
* Protocol-level PostgreSQL client library.
|
|
*/
|
|
|
|
typedef struct shapito_md5 shapito_md5_t;
|
|
|
|
struct shapito_md5
|
|
{
|
|
uint32_t state[4];
|
|
uint64_t count;
|
|
uint8_t buffer[64];
|
|
};
|
|
|
|
void shapito_md5_init(shapito_md5_t*);
|
|
void shapito_md5_update(shapito_md5_t*, void *inputptr, size_t len);
|
|
void shapito_md5_final(shapito_md5_t*, uint8_t digest[16]);
|
|
void shapito_md5_tostring(char *dest, uint8_t digest[16]);
|
|
|
|
#endif /* SHAPITO_MD5_H */
|