Correctly append CFrags to the test vector

pull/195/head
David Núñez 2018-07-14 00:44:24 +02:00
parent e5a822ca5e
commit 64f4a32c10
1 changed files with 1 additions and 3 deletions

View File

@ -212,10 +212,8 @@ vectors = list()
for kfrag in kfrags:
cfrag = pre.reencrypt(kfrag, capsule)
assert cfrag.verify_correctness(capsule)
json_input = { 'kfrag' : hexlify(kfrag), 'cfrag' : hexlify(cfrag) }
vectors.append(json_input)
vectors.append(json_input)
vector_suite = {
'name' : 'Test vectors for Re-Encryption and CFrags',