mirror of
https://github.com/python/cpython.git
synced 2025-12-02 15:48:58 +00:00
gh-131876: extract _hashlib helpers into a separate directory (#136995)
The `Modules/hashlib.h` helper file is now removed and split into multiple files: * `Modules/_hashlib/hashlib_buffer.[ch]` -- Utilities for getting a buffer view and handling buffer inputs. * `Modules/_hashlib/hashlib_fetch.h` -- Utilities used when fetching a message digest from a digest-like identifier. Currently, this file only contains common error messages as the fetching API is not yet implemented. * `Modules/_hashlib/hashlib_mutex.h` -- Utilities for managing the lock on cryptographic hash objects.
This commit is contained in:
parent
eefd70f0ed
commit
45138d3584
20 changed files with 346 additions and 221 deletions
|
|
@ -15,10 +15,12 @@
|
|||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
#include "hashlib.h"
|
||||
#include "pycore_strhex.h" // _Py_strhex()
|
||||
#include "pycore_typeobject.h"
|
||||
#include "pycore_moduleobject.h"
|
||||
#include "pycore_strhex.h" // _Py_strhex()
|
||||
#include "pycore_typeobject.h"
|
||||
|
||||
#include "_hashlib/hashlib_buffer.h"
|
||||
#include "_hashlib/hashlib_mutex.h"
|
||||
|
||||
// QUICK CPU AUTODETECTION
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue