md5.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4  * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
5  * MD5 Message-Digest Algorithm (RFC 1321).
6  *
7  * Homepage:
8  * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
9  *
10  * Author:
11  * Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
12  *
13  * This software was written by Alexander Peslyak in 2001. No copyright is
14  * claimed, and the software is hereby placed in the public domain.
15  * In case this attempt to disclaim copyright and place the software in the
16  * public domain is deemed null and void, then the software is
17  * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
18  * general public under the following terms:
19  *
20  * Redistribution and use in source and binary forms, with or without
21  * modification, are permitted.
22  *
23  * There's ABSOLUTELY NO WARRANTY, express or implied.
24  *
25  * See md5.c for more information.
26  */
27 
28 #include <stdint.h>
29 
34 typedef uint32_t MD5_u32plus;
35 
40 typedef struct {
42  MD5_u32plus a, b, c, d;
43  unsigned char buffer[64];
44  MD5_u32plus block[16];
45 } MD5_CTX;
46 
52 void MD5_Init(MD5_CTX *ctx);
53 
61 void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
62 
69 void MD5_Final(unsigned char *result, MD5_CTX *ctx);
void MD5_Init(MD5_CTX *ctx)
Init MD5 context.
Definition: md5.cpp:207
void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
Update MD5 context.
Definition: md5.cpp:218
MD5_u32plus lo
Definition: md5.h:41
uint32_t MD5_u32plus
Integer type to use.
Definition: md5.h:34
MD5_u32plus d
Definition: md5.h:42
void MD5_Final(unsigned char *result, MD5_CTX *ctx)
Finalize MD5 context.
Definition: md5.cpp:258
MD5 context.
Definition: md5.h:40


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48