source: vendor/python/2.5/Modules/md5module.c@ 3364

Last change on this file since 3364 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 7.1 KB
Line 
1
2/* MD5 module */
3
4/* This module provides an interface to the RSA Data Security,
5 Inc. MD5 Message-Digest Algorithm, described in RFC 1321.
6 It requires the files md5c.c and md5.h (which are slightly changed
7 from the versions in the RFC to avoid the "global.h" file.) */
8
9
10/* MD5 objects */
11
12#include "Python.h"
13#include "structmember.h"
14#include "md5.h"
15
16typedef struct {
17 PyObject_HEAD
18 md5_state_t md5; /* the context holder */
19} md5object;
20
21static PyTypeObject MD5type;
22
23#define is_md5object(v) ((v)->ob_type == &MD5type)