RetroArch
Functions | Variables
crypt.c File Reference
#include <Python.h>
Include dependency graph for crypt.c:

Functions

static void manipulate (uint8_t *key)
 
static PyObject * pkg_crypt (PyObject *self, PyObject *args)
 
static PyObject * register_sha1_callback (PyObject *self, PyObject *args)
 
PyMODINIT_FUNC initpkgcrypt (void)
 

Variables

static PyObject * sha1_callback = NULL
 
static PyMethodDef cryptMethods []
 

Function Documentation

◆ initpkgcrypt()

PyMODINIT_FUNC initpkgcrypt ( void  )
Here is the call graph for this function:

◆ manipulate()

static void manipulate ( uint8_t key)
static
Here is the caller graph for this function:

◆ pkg_crypt()

static PyObject* pkg_crypt ( PyObject *  self,
PyObject *  args 
)
static
Here is the call graph for this function:

◆ register_sha1_callback()

static PyObject* register_sha1_callback ( PyObject *  self,
PyObject *  args 
)
static

Variable Documentation

◆ cryptMethods

PyMethodDef cryptMethods[]
static
Initial value:
= {
{"pkgcrypt", pkg_crypt, METH_VARARGS, "C implementation of pkg.py's crypt function"},
{"register_sha1_callback", register_sha1_callback, METH_VARARGS, "Register a callback to python's SHA1 function, so we don't have to bother with creating our own implementation."},
{NULL, NULL, 0, NULL}
}
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static PyObject * pkg_crypt(PyObject *self, PyObject *args)
Definition: crypt.c:47
static PyObject * register_sha1_callback(PyObject *self, PyObject *args)
Definition: crypt.c:93

◆ sha1_callback

PyObject* sha1_callback = NULL
static