Extract secret-handshake into separate lib

This commit is contained in:
Pedro Ferreira
2017-06-05 00:27:44 +02:00
parent 761b503c95
commit 21af5fba09
9 changed files with 72 additions and 393 deletions

View File

@@ -1,17 +0,0 @@
import hashlib
import pytest
from nacl.public import PrivateKey
from ssb.shs import SecretHandShake
@pytest.fixture()
def appkey():
return hashlib.sha256(b'app_key').digest()
def test_client_challenge(appkey):
pk = PrivateKey.generate()
shs = SecretHandShake(pk, application_key=appkey)
assert shs.client_challenge