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