ecctools
ecctools copied to clipboard
error compiling keygen.c
i am getting errors compiling keygen.c
keygen.c:152:66: warning: unknown conversion type character ‘\x0a’ in format [-Wformat=]
152 | fprintf(stderr,"OpenSSL error: %l\n",err);
| ^~
keygen.c:152:48: warning: too many arguments for format [-Wformat-extra-args]
152 | fprintf(stderr,"OpenSSL error: %l\n",err);
| ^~~~~~~~~~~~~~~~~~~~~
keygen.c:135:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-resul
]
135 | fread(buffer_key,1,bytes,fd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
keygen.c:145:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-resul
]
145 | fread(buffer_key,1,bytes,fd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
keygen.c:158:25: warning: ignoring return value of ‘getrandom’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
158 | getrandom(buffer_key,bytes,GRND_NONBLOCK);
OK, those are only Warnings
keygen.c:145:25: warning:
i am going to try to correct them, but your program is already compiled you can try to run it
./keygen -b 256