crypto: fix nits in CipherBase
crypto: fix some nits in Hmac
crypto: fix nits in Hash
crypto: fix nits in Sign
crypto: fix nits in Verify
crypto: refactor diffie-hellman