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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include "PackedArray.h" | |
/* | |
PackedArray serialization test | |
BUILD: | |
1. Grab PackedArray.[ch] from https://github.com/gpakosz/PackedArray, drop them in this dir |
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
// OBJECTIVE: Find the smallest ASCII-only password length guaranteed to | |
// trigger KDF collisions for AES-256 | |
// TEST 1 (binary ASCII): Find the smallest N for which: | |
// 2^7 + 2^14 + 2^21 + ... + 2^(7*N) > 2^256 | |
// TEST 2 (printable ASCII): Find the smallest N for which: | |
// 95^1 + 95^2 + 95^3 + ... + 95^N > 2^256 | |
// TEST 3 (alphanumeric ASCII): Find the smallest N for which: | |
// 62^1 + 62^2 + 62^3 + ... + 62^N > 2^256 | |
// COMPILE: | |
// gcc -o test-keyspace test-keyspace.c -lgmp |
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
*** kore-2.0.0/src/pool.c.orig Fri Aug 5 10:21:29 2016 | |
--- kore-2.0.0/src/pool.c Fri Aug 5 11:04:37 2016 | |
*************** | |
*** 21,26 **** | |
--- 21,35 ---- | |
#include "kore.h" | |
+ // FIX: macOS <= Mavericks doesn't define MAP_ANONYMOUS | |
+ #ifndef MAP_ANONYMOUS |
NewerOlder