[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [depictor] branch master updated: Switch from pycrypto to cryptodome



This is an automated email from the git hooks/post-receive script.

tom pushed a commit to branch master
in repository depictor.

The following commit(s) were added to refs/heads/master by this push:
     new 4567fb3  Switch from pycrypto to cryptodome
4567fb3 is described below

commit 4567fb3f821d427c1ca5d3b8b61918ff45464705
Author: Tom Ritter <tom@xxxxxxxxx>
AuthorDate: Wed Jun 22 11:47:53 2022 -0400

    Switch from pycrypto to cryptodome
---
 website.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/website.py b/website.py
index dd9198e..879e7cf 100755
--- a/website.py
+++ b/website.py
@@ -14,7 +14,7 @@ import datetime
 import subprocess
 
 from base64 import b64decode
-from Crypto.PublicKey import RSA
+from Cryptodome.PublicKey import RSA
 
 import stem.version
 import stem.descriptor.remote
@@ -759,7 +759,7 @@ class WebsiteWriter:
 		key = key.replace("\n", "")
 		keyDER = b64decode(key)
 		keyPub = RSA.importKey(keyDER)
-		return str(keyPub.size() + 1)
+		return str(keyPub.size_in_bits())
 
 	def _write_authority_keys(self):
 		"""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits