File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2121 pprint (client .details )
2222
2323 # client generates its keypair
24- public_key = client .generate_keypair ()
24+ public_key_client = client .generate_keypair ()
2525 # optionally, the secret key can be obtained by calling export_secret_key()
2626 # and the client can later be re-instantiated with the key pair:
27- # secret_key = client.export_secret_key()
27+ # secret_key_client = client.export_secret_key()
2828 # store key pair, wait... (session resumption):
29- # client = oqs.KeyEncapsulation(kemalg, secret_key )
29+ # client = oqs.KeyEncapsulation(kemalg, secret_key_client )
3030
3131 # the server encapsulates its secret using the client's public key
32- ciphertext , shared_secret_server = server .encap_secret (public_key )
32+ ciphertext , shared_secret_server = server .encap_secret (public_key_client )
3333
3434 # the client decapsulates the server's ciphertext to obtain the shared secret
3535 shared_secret_client = client .decap_secret (ciphertext )
You can’t perform that action at this time.
0 commit comments