fix
[libpgclient.git] / src / md5.h
blobe718575d1f77a2b4d7016940f7fe6af3f8d624f4
1 /*Copyright (c) Brian B.
3 This library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public
5 License as published by the Free Software Foundation; either
6 version 3 of the License, or (at your option) any later version.
7 See the file LICENSE included with this distribution for more
8 information.
9 */
10 #ifndef __MD5_H__
11 #define __MD5_H__
13 #include <stdio.h>
14 #include <stdint.h>
15 #include <string.h>
16 #include <stdlib.h>
18 typedef struct{
19 uint64_t size;
20 uint32_t buffer[4];
21 uint8_t input[64];
22 uint8_t digest[16];
23 } md5_t;
25 void md5_init(md5_t *ctx);
26 void md5_update(md5_t *ctx, uint8_t *input, size_t input_len);
27 void md5_final(md5_t *ctx);
29 #endif