From 3931da4947d0846b1a00aefce575f6aaf88a33b0 Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Wed, 18 Sep 2019 17:40:38 +0200 Subject: [PATCH] Removed some unused code --- week4.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/week4.py b/week4.py index 6d27a34..1b1ff82 100644 --- a/week4.py +++ b/week4.py @@ -3,8 +3,6 @@ # A truth value, thus either true or false, s.t. each cipher is an entry in the bloodtype comptability matrix. from secrets import SystemRandom -import time -from math import pow import numpy as np from crypto.week1 import BloodType, convert_from_string_to_enum, blood_cell_compatibility_lookup @@ -59,9 +57,6 @@ class ElGamal: return m def ogen(self): - # Here, q = 2p+1, thus we actually need to use the p here, instead of - # self.order, but as we do not know p yet, .e we - # TODO: Use p instead of self.order, s.t. self.order = 2p+1 s = SystemRandom().randint(1, self.order) h = s**2 % self.order return self.gen_, h