You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
334 B
C
16 lines
334 B
C
#include "sha1.h"
|
|
#include <stdio.h>
|
|
|
|
int main(){
|
|
SHA1_Result r = sha1file("dummyFile");
|
|
char buffer[41];
|
|
sprintf(buffer, "%x%x%x%x%x", r.h0, r.h1, r.h2, r.h3, r.h4);
|
|
|
|
int i = 0;
|
|
while(buffer[i] != '\0')
|
|
printf("%c", buffer[i++]);
|
|
printf("\n");
|
|
// Expected : 1d135491d20198c382098d477009a910d7e9ca22
|
|
return 0;
|
|
}
|