diff --git a/pkg/urbit/jets/e/secp.c b/pkg/urbit/jets/e/secp.c index 286d99a9f..6a4c6ce63 100644 --- a/pkg/urbit/jets/e/secp.c +++ b/pkg/urbit/jets/e/secp.c @@ -8,20 +8,22 @@ static urcrypt_secp_context* sec_u; /* call at process start */ -void u3e_secp_init() +void +u3je_secp_init() { c3_y ent_y[32]; ent_getentropy(ent_y, 32); sec_u = malloc(urcrypt_secp_prealloc_size()); if ( 0 != urcrypt_secp_init(sec_u, ent_y) ) { - u3l_log("%s\r\n", "u3e_secp_init failed"); + u3l_log("u3e_secp_init failed\r\n"); abort(); } } /* call at process end */ -void u3e_secp_stop() +void +u3je_secp_stop() { urcrypt_secp_destroy(sec_u); free(sec_u); @@ -58,7 +60,7 @@ _cqes_in_order(u3_atom a) else { c3_y i_y; c3_w *buf_w = a_u->buf_w; - // loop from most to least significant bytes + // loop from most to least significant words for ( i_y = 8; i_y > 0; ) { c3_w b_w = buf_w[i_y], o_w = now_w[--i_y]; diff --git a/pkg/urbit/noun/manage.c b/pkg/urbit/noun/manage.c index 17ea65f4f..332efaf77 100644 --- a/pkg/urbit/noun/manage.c +++ b/pkg/urbit/noun/manage.c @@ -1678,8 +1678,8 @@ _cm_signals(void) # endif } -extern void u3e_secp_init(void); -extern void u3e_secp_stop(void); +extern void u3je_secp_init(void); +extern void u3je_secp_stop(void); static void _cm_crypto() @@ -1692,7 +1692,7 @@ _cm_crypto() abort(); } - u3e_secp_init(); + u3je_secp_init(); } /* u3m_init(): start the environment. @@ -1745,7 +1745,7 @@ u3m_init(void) void u3m_stop() { - u3e_secp_stop(); + u3je_secp_stop(); } /* u3m_boot(): start the u3 system. return next event, starting from 1.