add ed tests, fix veri

This commit is contained in:
~hatteb-mitlyd 2014-04-29 17:26:44 -07:00
parent 61815d2c11
commit 03baa8c519

View File

@ -16,19 +16,19 @@
u2_noun pk)
{
c3_y sig_y[64];
c3_y pub_y[64];
c3_w ret;
c3_y pub_y[32];
c3_w ret;
c3_y* mes_y;
c3_w mesm_w = u2_met(3, s);
c3_w mesm_w = u2_met(3, m);
memset(sig_y, 0, 64);
memset(pub_y, 0, 64);
memset(pub_y, 0, 32);
mes_y = c3_malloc(mesm_w);
u2_cr_bytes(0, 64, sig_y, s);
u2_cr_bytes(0, 64, pub_y, pk);
u2_cr_bytes(0, 32, pub_y, pk);
u2_cr_bytes(0, mesm_w, mes_y, m);
ret = ed25519_verify(sig_y, mes_y, mesm_w, pub_y) == 1 ? u2_yes : u2_no;