def generate(self, n_length=2048, q=61, t=2030, sigma=8): ''' Creates BV key pair :param n_length: :param q: TODO docmument me! :param t: TODO docmument me! :param sigma: TODO docmument me! :return: Tuple of (public key, secret key) ''' key_generator = BV.key_gen() key_pair = key_generator.generate_key(n_length, q, t, sigma) self.public_key = PublicKey(key_pair.pk) self.secret_key = SecretKey(key_pair.sk) return (self.public_key, self.secret_key)
def __init__(self, *args, **kwargs): super(correctness_test, self).__init__(*args, **kwargs) keys = BV.key_gen() self.keys = keys.generate_key(2048, 61, 2030, 8)
def __init__(self, *args, **kwargs): super(multiplication_test, self).__init__(*args, **kwargs) keys = BV.key_gen() self.keys = keys.generate_key(2048, 61, 2030, 8)
def __init__(self, *args, **kwargs): super(miscellaneous, self).__init__(*args, **kwargs) keys = BV.key_gen() self.keys = keys.generate_key(2048, 61, 2030, 8)