sm: encode outgoing authentication request