Classic protocol and crypto cleanups.

CF_BUFSIZE here was preexisting, and was too much to cleanup in this go. Any good ideas on that one?