have puck bail for seeds larger than 32 bytes

also add size-odors
This commit is contained in:
~hatteb-mitlyd 2014-04-19 14:17:35 -07:00
parent 58757c46a2
commit 61815d2c11

View File

@ -16,16 +16,20 @@
c3_y pub_y[32];
c3_y sec_y[64];
c3_y sed_y[32];
c3_y mes_y;
c3_w met_w;
u2_noun a = u2_frag(u2_cv_sam, cor);
if ( (u2_none == a) || (u2_no == u2_stud(a)) ) {
return u2_bl_bail(wir_r, c3__exit);
}
mes_y = u2_met(3, a);
met_w = u2_met(3, a);
if ( met_w > 32 ) {
return u2_bl_bail(wir_r, c3__exit);
}
memset(sed_y, 0, 32);
u2_cr_bytes(0, mes_y, sed_y, a);
u2_cr_bytes(0, met_w, sed_y, a);
ed25519_create_keypair(pub_y, sec_y, sed_y);
return u2_ci_bytes(32, pub_y);
}