main #17

Merged
ccyj merged 10 commits from sangge/tpre-python:main into main 2023-10-19 14:59:05 +08:00
Showing only changes of commit 5edb151b05 - Show all commits

View File

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