Commits

Anonymous committed 6a8a72b

bug fix

Comments (0)

Files changed (1)

ctypescrypto/digest.py

         if result != 1 :
             raise DigestError, "Unable to finalize digest"
         self.digest_finalized = True
-        return self.digest_out.value[:length.value]
+        return self.digest_out.raw[:length.value]
 
     def _clean_ctx(self):
         try: