diff --git a/modules/processing/static.py b/modules/processing/static.py index 0ea0042c8..9d3cf1df2 100644 --- a/modules/processing/static.py +++ b/modules/processing/static.py @@ -718,6 +718,11 @@ def _get_digital_signers(self): return retlist signature = self.pe.write()[address+8:] + + # BIO.MemoryBuffer expects an argument of type 'str' + if type(signature) is bytearray: + signature = str(signature) + bio = BIO.MemoryBuffer(signature) if bio: