Fix more typos about the encryption protocol.
Verify that the encryption type is properly normalized.
Make the `test_connection` method more useful by returning the operation result.

Expose a method to get the last operation result.