Classic protocol and crypto cleanups.

Good catch, actually it's not needed even there, this cleanup can be even nicer. I'll move it even higher, right after BN_bn2mpi().