mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
20 lines
649 B
C
20 lines
649 B
C
|
|
/*
|
||
|
|
* Utilities used when fetching a message digest from a digest-like identifier.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef _HASHLIB_HASHLIB_FETCH_H
|
||
|
|
#define _HASHLIB_HASHLIB_FETCH_H
|
||
|
|
|
||
|
|
#include "Python.h"
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Internal error messages used for reporting an unsupported hash algorithm.
|
||
|
|
* The algorithm can be given by its name, a callable or a PEP-247 module.
|
||
|
|
* The same message is raised by Lib/hashlib.py::__get_builtin_constructor()
|
||
|
|
* and _hmacmodule.c::find_hash_info().
|
||
|
|
*/
|
||
|
|
#define _Py_HASHLIB_UNSUPPORTED_ALGORITHM "unsupported hash algorithm %S"
|
||
|
|
#define _Py_HASHLIB_UNSUPPORTED_STR_ALGORITHM "unsupported hash algorithm %s"
|
||
|
|
|
||
|
|
#endif // !_HASHLIB_HASHLIB_FETCH_H
|