parent
c5758a18b7
commit
7f096c85dc
@ -1,5 +1,5 @@
|
||||
example.c
|
||||
nsha1.h
|
||||
src/example.c
|
||||
src/sha1.h
|
||||
;!run!;
|
||||
gcc example.c
|
||||
gcc src/example.c -I src
|
||||
;!end!;
|
@ -1,9 +1,9 @@
|
||||
#include "nsha1.h"
|
||||
#include "sha1.h"
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
int main(){
|
||||
NSHA1_Result r = nsha1file("test");
|
||||
SHA1_Result r = SHA1_sha1file("test");
|
||||
char buffer[41];
|
||||
printf("%x%x%x%x%x", r.h0, r.h1, r.h2, r.h3, r.h4);
|
||||
return 0;
|
Loading…
Reference in New Issue