Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare Pycryptopp for Crypto++ changes for byte #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pycryptopp/cipher/aesmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ typedef int Py_ssize_t;
#include <src-cryptopp/aes.h>
#endif

// https://github.com/weidai11/cryptopp/issues/442
typedef unsigned char byte;

static const char*const aes___doc__ = "_aes counter mode cipher\n\
You are advised to run aes.start_up_self_test() after importing this module.";

Expand Down
3 changes: 3 additions & 0 deletions src/pycryptopp/cipher/xsalsa20module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ typedef int Py_ssize_t;
#include <src-cryptopp/salsa.h>
#endif

// https://github.com/weidai11/cryptopp/issues/442
typedef unsigned char byte;

static const char* const xsalsa20__doc__ = "_xsalsa20 cipher";

static PyObject *xsalsa20_error;
Expand Down
3 changes: 3 additions & 0 deletions src/pycryptopp/hash/sha256module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ typedef int Py_ssize_t;
#include <src-cryptopp/filters.h>
#endif

// https://github.com/weidai11/cryptopp/issues/442
typedef unsigned char byte;

static const char*const sha256___doc__ = "_sha256 hash function";

static PyObject *sha256_error;
Expand Down