Sockets secure implementations

Rebased on `master`.
Can we share the sslPeerNetData buffer for use here as well? e.g. receiveDataBuffer