aboutsummaryrefslogtreecommitdiff
path: root/src/proone-mask.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-01-11 18:03:47 +1100
committerDavid Timber <mieabby@gmail.com>2020-01-11 18:03:47 +1100
commit10512fc50e6184397206a41c157c09d9b02e9e1a (patch)
tree5f0779032edf0f0710400ae6c99b9a3f2977735d /src/proone-mask.c
parent129e12d7685a6ea99fde514ad104a0368a19033d (diff)
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
Diffstat (limited to 'src/proone-mask.c')
-rw-r--r--src/proone-mask.c4
1 files changed, 2 insertions, 2 deletions
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) {