Implement stream cipher and some other misc details for crub

This commit is contained in:
Jared Hance 2014-05-20 15:42:57 -04:00
parent 2b78c702aa
commit 890c7fadd2
3 changed files with 4 additions and 4 deletions

View File

@ -1749,7 +1749,7 @@ u2_raft_work(u2_reck* rec_u)
ron = u2_cke_jam(u2nc(u2k(rec_u->now), ovo));
c3_assert(rec_u->key);
ron = u2_dc("en:crua", u2k(rec_u->key), ron);
ron = u2_dc("en:crub", u2k(rec_u->key), ron);
len_w = u2_cr_met(5, ron);
bob_w = c3_malloc(len_w * 4L);

View File

@ -495,8 +495,8 @@ u2_reck_init(u2_reck* rec_u, c3_w kno_w, u2_noun ken)
}
#if 0
rec_u->toy.sham = u2_reck_wish(rec_u, "sham");
rec_u->toy.shen = u2_reck_wish(rec_u, "en:crua");
rec_u->toy.shed = u2_reck_wish(rec_u, "de:crua");
rec_u->toy.shen = u2_reck_wish(rec_u, "en:crub");
rec_u->toy.shed = u2_reck_wish(rec_u, "de:crub");
rec_u->toy.cyst = u2_reck_wish(rec_u, "cyst");
#endif
u2_reck_time(rec_u);

View File

@ -996,7 +996,7 @@ _sist_rest(u2_reck* rec_u)
if ( rec_u->key ) {
u2_noun dep;
dep = u2_dc("de:crua", u2k(rec_u->key), ron);
dep = u2_dc("de:crub", u2k(rec_u->key), ron);
if ( u2_no == u2du(dep) ) {
uL(fprintf(uH, "record (%s) is corrupt (k)\n", ful_c));
u2_lo_bail(rec_u);