mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-25 02:02:57 -03:00
call sodium_init()
This commit is contained in:
parent
e7ce68c245
commit
b710adea5d
1 changed files with 5 additions and 0 deletions
5
main.c
5
main.c
|
@ -9,6 +9,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <sodium/core.h>
|
||||||
#include <sodium/randombytes.h>
|
#include <sodium/randombytes.h>
|
||||||
#include <sodium/utils.h>
|
#include <sodium/utils.h>
|
||||||
|
|
||||||
|
@ -498,6 +499,10 @@ int main(int argc,char **argv)
|
||||||
#endif
|
#endif
|
||||||
int tret;
|
int tret;
|
||||||
|
|
||||||
|
if (sodium_init() < 0) {
|
||||||
|
fprintf(stderr,"sodium_init() failed\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
ge_initeightpoint();
|
ge_initeightpoint();
|
||||||
filters_init();
|
filters_init();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue