mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-22 06:11:31 +03:00
Implement stream cipher and some other misc details for crub
This commit is contained in:
parent
2b78c702aa
commit
890c7fadd2
2
v/raft.c
2
v/raft.c
@ -1749,7 +1749,7 @@ u2_raft_work(u2_reck* rec_u)
|
|||||||
|
|
||||||
ron = u2_cke_jam(u2nc(u2k(rec_u->now), ovo));
|
ron = u2_cke_jam(u2nc(u2k(rec_u->now), ovo));
|
||||||
c3_assert(rec_u->key);
|
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);
|
len_w = u2_cr_met(5, ron);
|
||||||
bob_w = c3_malloc(len_w * 4L);
|
bob_w = c3_malloc(len_w * 4L);
|
||||||
|
4
v/reck.c
4
v/reck.c
@ -495,8 +495,8 @@ u2_reck_init(u2_reck* rec_u, c3_w kno_w, u2_noun ken)
|
|||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
rec_u->toy.sham = u2_reck_wish(rec_u, "sham");
|
rec_u->toy.sham = u2_reck_wish(rec_u, "sham");
|
||||||
rec_u->toy.shen = u2_reck_wish(rec_u, "en:crua");
|
rec_u->toy.shen = u2_reck_wish(rec_u, "en:crub");
|
||||||
rec_u->toy.shed = u2_reck_wish(rec_u, "de:crua");
|
rec_u->toy.shed = u2_reck_wish(rec_u, "de:crub");
|
||||||
rec_u->toy.cyst = u2_reck_wish(rec_u, "cyst");
|
rec_u->toy.cyst = u2_reck_wish(rec_u, "cyst");
|
||||||
#endif
|
#endif
|
||||||
u2_reck_time(rec_u);
|
u2_reck_time(rec_u);
|
||||||
|
2
v/sist.c
2
v/sist.c
@ -996,7 +996,7 @@ _sist_rest(u2_reck* rec_u)
|
|||||||
if ( rec_u->key ) {
|
if ( rec_u->key ) {
|
||||||
u2_noun dep;
|
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) ) {
|
if ( u2_no == u2du(dep) ) {
|
||||||
uL(fprintf(uH, "record (%s) is corrupt (k)\n", ful_c));
|
uL(fprintf(uH, "record (%s) is corrupt (k)\n", ful_c));
|
||||||
u2_lo_bail(rec_u);
|
u2_lo_bail(rec_u);
|
||||||
|
Loading…
Reference in New Issue
Block a user