summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-12-01 14:02:37 +0900
committerjaseg <git@jaseg.net>2018-12-01 14:02:37 +0900
commita818c94fc4474afcdebdf6eea80608c130830db1 (patch)
treefc3d512a2476992c7139a89b06a31773072a1147 /src/demo.c
parente613f1b9a2e8006527aec57adebd28f01a6b2390 (diff)
downloadsecure-hid-a818c94fc4474afcdebdf6eea80608c130830db1.tar.gz
secure-hid-a818c94fc4474afcdebdf6eea80608c130830db1.tar.bz2
secure-hid-a818c94fc4474afcdebdf6eea80608c130830db1.zip
Replace word lists by PGP word lists
from https://en.wikipedia.org/wiki/PGP_word_list
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demo.c b/src/demo.c
index 8329c62..b47dc71 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -243,8 +243,8 @@ int pairing_check(struct NoiseState *st, const char *buf) {
if (strncasecmp(p, "and", plen)) { /* ignore "and" */
int num = -1;
for (int i=0; i<256; i++) {
- if ((!strncasecmp(p, adjectives[i], plen) && plen == strlen(adjectives[i]))
- || (!strncasecmp(p, nouns[i], plen) && plen == strlen(nouns[i] ))) {
+ if ((!strncasecmp(p, even[i], plen) && plen == strlen(even[i]))
+ || (!strncasecmp(p, odd[i], plen) && plen == strlen(odd[i] ))) {
//LOG_PRINTF(" idx=%02d h=%02x i=%02x adj=%s n=%s plen=%d s=%s\n", idx, st->handshake_hash[idx], i, adjectives[i], nouns[i], plen, p);
num = i;
break;