refactor: 修改demo.py: 删除GenerateKeyPair的参数

This commit is contained in:
dqy 2023-10-19 11:11:01 +08:00
parent a8cd0c1f71
commit 5edb151b05

View File

@ -1,14 +1,14 @@
from tpre import *
# 1
pk_a, sk_a = GenerateKeyPair(1, ())
pk_a, sk_a = GenerateKeyPair()
m = b"hello world"
# 2
capsule_ct = Encrypt(pk_a, m)
# 3
pk_b, sk_b = GenerateKeyPair(1, ())
pk_b, sk_b = GenerateKeyPair()
N = 5
T = 2