comparison ezBAMQC/src/htslib/cram/md5.h @ 0:dfa3745e5fd8

Uploaded
author youngkim
date Thu, 24 Mar 2016 17:12:52 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:dfa3745e5fd8
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4
5 /*
6 * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
7 * MD5 Message-Digest Algorithm (RFC 1321).
8 *
9 * Homepage:
10 * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
11 *
12 * Author:
13 * Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
14 *
15 * This software was written by Alexander Peslyak in 2001. No copyright is
16 * claimed, and the software is hereby placed in the public domain.
17 * In case this attempt to disclaim copyright and place the software in the
18 * public domain is deemed null and void, then the software is
19 * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
20 * general public under the following terms:
21 *
22 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted.
24 *
25 * There's ABSOLUTELY NO WARRANTY, express or implied.
26 *
27 * See md5.c for more information.
28 */
29
30 #ifdef HAVE_OPENSSL
31 #include <openssl/md5.h>
32 #elif !defined(_MD5_H)
33 #define _MD5_H
34
35 /* Any 32-bit or wider unsigned integer data type will do */
36 typedef unsigned int MD5_u32plus;
37
38 typedef struct {
39 MD5_u32plus lo, hi;
40 MD5_u32plus a, b, c, d;
41 unsigned char buffer[64];
42 MD5_u32plus block[16];
43 } MD5_CTX;
44
45 extern void MD5_Init(MD5_CTX *ctx);
46 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
47 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
48
49 #endif
50
51 #ifdef __cplusplus
52 }
53 #endif
54