Const-correctness for toxcore/net_crypto.c