Skip to content
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