module

XMPP::ScramDowngradeProtection

XEP-0474: SASL SCRAM Downgrade Protection

Constants

RECORD_SEPARATOR = '\u001E'
UNIT_SEPARATOR = '\u001F'

Class methods

calculate_hash(mechanisms : Array(String), channel_binding_types : Array(String), algorithm : OpenSSL::Algorithm) : String
Source
check_downgrade(selected_mechanism : AuthMechanism, available_mechanisms : Array(String), tls_available : Bool) : Bool

Retained as a public policy helper for callers selecting mechanisms.

Source
select_mechanism(preferred_order : Array(AuthMechanism), available_mechanisms : Array(String), tls_available : Bool) : AuthMechanism | Nil
Source
verify!(server_hash : String | Nil, mechanisms : Array(String), channel_binding_types : Array(String), algorithm : OpenSSL::Algorithm) : Nil
Source