From 10512fc50e6184397206a41c157c09d9b02e9e1a Mon Sep 17 00:00:00 2001 From: David Timber Date: Sat, 11 Jan 2020 18:03:47 +1100 Subject: staged resolv_worker * replaced RNG from `rnd` to `mbedtls_ctr_drbg` * use of `uint_fastN_t` where appropriate * heartbeat protocol draft * improved worker scheduling mech --- src/proone-mask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/proone-mask.c') diff --git a/src/proone-mask.c b/src/proone-mask.c index 1cfabde..ba138a9 100644 --- a/src/proone-mask.c +++ b/src/proone-mask.c @@ -29,7 +29,7 @@ int main (const int argc, const char **args) { goto END; } - type = prne_str2data_type(args[1]); + type = prne_data_type_fstr(args[1]); switch (type) { case PRNE_DATA_TYPE_BIN: case PRNE_DATA_TYPE_CSTR: { @@ -59,7 +59,7 @@ int main (const int argc, const char **args) { goto END; } - getrandom(&salt, sizeof(uint8_t), 0); + getrandom(&salt, sizeof(salt), 0); mask_result = prne_dvault_mask(type, salt, read_size, buf); if (mask_result.result == PRNE_DVAULT_MASK_OK) { -- cgit