| 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 |
|
|---|
| 16 | typedef struct {
|
|---|
| 17 | PyObject_HEAD
|
|---|
| 18 | md5_state_t md5; /* the context holder */
|
|---|
| 19 | } md5object;
|
|---|
| 20 |
|
|---|
| 21 | static PyTypeObject MD5type;
|
|---|
| 22 |
|
|---|
| 23 | #define is_md5object(v) ((v)->ob_type == &MD5type)
|
|---|
|
|---|