Skip to content
Snippets Groups Projects
Commit 341a22b3 authored by Charles Wright's avatar Charles Wright
Browse files

Fixing length -- example.com is 11 not 10 chars

parent d6bafa1f
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,10 @@ from _bsspeke_cffi import ffi, lib
def bsspeke_setup():
client = ffi.new("bsspeke_client_ctx *")
lib.bsspeke_client_init(client, b"@alice:example.com", 18, b"example.com", 10, b"P@ssword1", 9)
lib.bsspeke_client_init(client, b"@alice:example.com", 18, b"example.com", 11, b"P@ssword1", 9)
server = ffi.new("bsspeke_server_ctx *")
lib.bsspeke_server_init(server, b"example.com", 10, b"@alice:example.com", 18)
lib.bsspeke_server_init(server, b"example.com", 11, b"@alice:example.com", 18)
print("Message 1")
blind = bytes(32)
......@@ -30,10 +30,10 @@ def bsspeke_setup():
def bsspeke_login(user_params):
client = ffi.new("bsspeke_client_ctx *")
lib.bsspeke_client_init(client, b"@alice:example.com", 18, b"example.com", 10, b"P@ssword1", 9)
lib.bsspeke_client_init(client, b"@alice:example.com", 18, b"example.com", 11, b"P@ssword1", 9)
server = ffi.new("bsspeke_server_ctx *")
lib.bsspeke_server_init(server, b"example.com", 10, b"@alice:example.com", 18)
lib.bsspeke_server_init(server, b"example.com", 11, b"@alice:example.com", 18)
P,V,phf_blocks,phf_iterations = user_params
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment