|
|
@@ -352,8 +352,8 @@ async def main(): |
|
|
|
|
|
|
|
if args.shared_key is not None: |
|
|
|
skdata = pathlib.Path(args.shared_key).read_bytes() |
|
|
|
lorakwargs = dict(shared_key=skdata) |
|
|
|
commsinitargs = (lorakwargs['shared_key'], ) |
|
|
|
lorakwargs = dict(shared=skdata) |
|
|
|
commsinitargs = (make_pktbuf(lorakwargs['shared']), None, None) |
|
|
|
else: |
|
|
|
privkeydata = pathlib.Path(args.privkey).read_text().strip() |
|
|
|
privkey = X25519.frombytes(codecs.decode(privkeydata, 'hex')) |
|
|
|