From 77da69c37d5888c7335131ce18da472b5ac9552c Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 26 Apr 2018 01:16:16 +0200 Subject: [PATCH] Identity signer update --- RNS/Identity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RNS/Identity.py b/RNS/Identity.py index 8a614ae..19e55da 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -275,15 +275,15 @@ class Identity: def sign(self, message): if self.prv != None: - signer = self.prv.signer( + signature = self.prv.sign( + message, padding.PSS( mgf=padding.MGF1(hashes.SHA256()), salt_length=padding.PSS.MAX_LENGTH ), hashes.SHA256() ) - signer.update(message) - return signer.finalize() + return signature else: raise KeyError("Signing failed because identity does not hold a private key")