some tweaks
[mkp224o.git] / ed25519 / amd64-51-30k / hram.c
blobf020f6f635551c973dee0874d86e364bfc7ef715
1 #include "crypto_hash_sha512.h"
2 #include "hram.h"
4 void get_hram(unsigned char *hram, const unsigned char *sm, const unsigned char *pk, unsigned char *playground, unsigned long long smlen)
6 unsigned long long i;
8 for (i = 0;i < 32;++i) playground[i] = sm[i];
9 for (i = 32;i < 64;++i) playground[i] = pk[i-32];
10 for (i = 64;i < smlen;++i) playground[i] = sm[i];
12 crypto_hash_sha512(hram,playground,smlen);