RetroArch
md5.h
Go to the documentation of this file.
1 /*
2  * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
3  * MD5 Message-Digest Algorithm (RFC 1321).
4  *
5  * Homepage:
6  * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
7  *
8  * Author:
9  * Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
10  *
11  * This software was written by Alexander Peslyak in 2001. No copyright is
12  * claimed, and the software is hereby placed in the public domain.
13  * In case this attempt to disclaim copyright and place the software in the
14  * public domain is deemed null and void, then the software is
15  * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
16  * general public under the following terms:
17  *
18  * Redistribution and use in source and binary forms, with or without
19  * modification, are permitted.
20  *
21  * There's ABSOLUTELY NO WARRANTY, express or implied.
22  *
23  * See md5.c for more information.
24  */
25 
26 #ifdef HAVE_OPENSSL
27 #include <openssl/md5.h>
28 #elif !defined(_MD5_H)
29 #define _MD5_H
30 
31 #include <retro_common_api.h>
32 
34 
35 
36 /* Any 32-bit or wider unsigned integer data type will do */
37 typedef unsigned int MD5_u32plus;
38 
39 typedef struct {
40  MD5_u32plus lo, hi;
41  MD5_u32plus a, b, c, d;
42  unsigned char buffer[64];
43  MD5_u32plus block[16];
44 } MD5_CTX;
45 
46 extern void MD5_Init(MD5_CTX *ctx);
47 extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
48 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
49 
51 
52 #endif
void MD5_Init(MD5_CTX *ctx)
Definition: md5.c:197
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
GLsizeiptr size
Definition: glext.h:6559
void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:208
Definition: ibxm.h:9
const GLubyte * c
Definition: glext.h:9812
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
unsigned int MD5_u32plus
Definition: rhash.h:92
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
Definition: rhash.h:94
GLuint64EXT * result
Definition: glext.h:12211
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
static int block
Definition: psp2.c:31
RETRO_BEGIN_DECLS typedef unsigned int MD5_u32plus
Definition: md5.h:37
Definition: video4linux2.c:51
void MD5_Final(unsigned char *result, MD5_CTX *ctx)
Definition: md5.c:245
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844