<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- src/pycryptopp/cipher/aesmodule.cpp.orig
+++ src/pycryptopp/cipher/aesmodule.cpp
@@ -20,6 +20,8 @@
 #include &lt;src-cryptopp/aes.h&gt;
 #endif
 
+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.";
 
--- src/pycryptopp/cipher/xsalsa20module.cpp.orig
+++ src/pycryptopp/cipher/xsalsa20module.cpp
@@ -16,6 +16,8 @@
 #include &lt;src-cryptopp/salsa.h&gt;
 #endif
 
+typedef unsigned char byte;
+
 static const char* const xsalsa20__doc__ = "_xsalsa20 cipher";
 
 static PyObject *xsalsa20_error;
--- src/pycryptopp/hash/sha256module.cpp.orig
+++ src/pycryptopp/hash/sha256module.cpp
@@ -21,6 +21,8 @@
 #include &lt;src-cryptopp/filters.h&gt;
 #endif
 
+typedef unsigned char byte;
+
 static const char*const sha256___doc__ = "_sha256 hash function";
 
 static PyObject *sha256_error;
--- src/pycryptopp/publickey/rsamodule.cpp.orig
+++ src/pycryptopp/publickey/rsamodule.cpp
@@ -87,7 +87,7 @@
 VerifyingKey_serialize(VerifyingKey *self, PyObject *dummy) {
     std::string outstr;
     StringSink ss(outstr);
-    self-&gt;k-&gt;DEREncode(ss);
+    self-&gt;k-&gt;GetMaterial().Save(ss);
     PyStringObject* result = reinterpret_cast&lt;PyStringObject*&gt;(PyString_FromStringAndSize(outstr.c_str(), outstr.size()));
     if (!result)
         return NULL;
@@ -216,7 +216,7 @@
 SigningKey_serialize(SigningKey *self, PyObject *dummy) {
     std::string outstr;
     StringSink ss(outstr);
-    self-&gt;k-&gt;DEREncode(ss);
+    self-&gt;k-&gt;GetMaterial().Save(ss);
     PyStringObject* result = reinterpret_cast&lt;PyStringObject*&gt;(PyString_FromStringAndSize(outstr.c_str(), outstr.size()));
     if (!result)
         return NULL;</pre></body></html>