2023-08-09 13:11:46 -04:00
|
|
|
#include "haggis.h"
|
|
|
|
#include "haggis_private.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
haggis_checksum cksum;
|
|
|
|
FILE *f;
|
|
|
|
int i, ret;
|
|
|
|
|
|
|
|
cksum.tag = sha256;
|
|
|
|
for (i = 0; i < 32; i++) {
|
2024-02-11 01:09:21 -05:00
|
|
|
cksum.sha256[i] = (uint8_t)i;
|
2023-08-09 13:11:46 -04:00
|
|
|
}
|
|
|
|
f = fopen("output/sha256", "w");
|
|
|
|
ret = haggis_store_cksum(f, &cksum);
|
|
|
|
fclose(f);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|