4 ms·
The following line from /honeycomb/crypto.c look very interesting... /* * Computing a "safe" DH-1024 prime can take a very * long time, so a precomp
by throwaway292929 9y ago
The following line from /honeycomb/crypto.c look very interesting...
/*
* Computing a "safe" DH-1024 prime can take a very
* long time, so a precomputed value is provided below.
* You may run dh_genprime to generate a new value.
*/
char *my_dhm_P =
"E4004C1F94182000103D883A448B3F80" \
"2CE4B44A83301270002C20D0321CFD00" \
"11CCEF784C26A400F43DFB901BCA7538" \
"F2C6B176001CF5A0FD16D2C48B1D0C1C" \
"F6AC8E1DA6BCC3B4E1F96B0564965300" \
"FFA1D0B601EB2800F489AA512C4B248C" \
"01F76949A60BB7F00A40B1EAB64BDD48" \
"E8A700D60B7F1200FA8E77B0A979DABF";
- ryanlol 9y agoThose lines aren't very interesting. The comment explains exactly what and why they are. You'll be able to find this same C̶I̶A̶ ̶b̶a̶c̶k̶d̶o̶o̶r̶ DH-1024 prime in tons of other projects: https://github.com/mstorsjo/rtmpdump/blob/master/librtmp/rtmp.c#L42 https://github.com/mstorsjo/rtmpdump/blob/master/librtmp/rtm... https://github.com/travelping/nattcp/blob/master/polarssl.c#L24 https://github.com/travelping/nattcp/blob/master/polarssl.c#...
- throwaway292929 9y agoYou're right, I got over-enthusiastic. And it looks like the C code has been migrated to Python anyway. Also, owners of MikroTik hardware look to be thoroughly owned: elif str(beacon_hdr.os) == '40': beacon_data['os'] = "MikroTik-MIPSBE" elif str(beacon_hdr.os) == '41': beacon_data['os'] = "MikroTik-MIPSLE" elif str(beacon_hdr.os) == '42': beacon_data['os'] = "MikroTik-x86" elif str(beacon_hdr.os) == '43': beacon_data['os'] = "MikroTik-PPC"