-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from freedomofpress/libsodium-only
Drop python-ecdsa and port all crypto operations to libsodium
- Loading branch information
Showing
9 changed files
with
217 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
killall flask 2>/dev/null | ||
sudo systemctl restart redis > /dev/null 2>&1 | ||
|
||
# start clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import requests | ||
import commons | ||
|
||
with open("keys/root.public", "r") as f: | ||
fpf_key = f.read() | ||
|
||
with open("keys/intermediate.public", "r") as f: | ||
nr_key = f.read() | ||
|
||
with open("keys/intermediate.sig", "r") as f: | ||
nr_sig = f.read() | ||
|
||
res = requests.post(f"http://{commons.SERVER}/keys", json={"fpf_key": fpf_key, "newsroom_key": nr_key, "newsroom_sig": nr_sig}) | ||
|
||
assert(res.status_code == 200) |
Oops, something went wrong.