Structureswift-mongodb 0.29.3SCRAM
Keys
SCRAM.ClientResponse.Keys.swift:6@frozen struct Keys@frozen struct Keyswhere Hash:MessageAuthenticationHashimport SCRAM@frozen struct ClientResponse<Hash> where Hash : MessageAuthenticationHashA client’s response to a SCRAM challenge, authenticating the client.
enum SCRAMA namespace for SCRAM-related types.
protocol MessageAuthenticationHash : RandomAccessCollection where Self.Element == UInt8, Self.Index == IntA hash that can be used to generate a message authentication code (MAC).
init(cached: inout Keys?, challenge: SCRAM.Challenge, password: String, received: SCRAM.Message, sent: SCRAM.Start) throws func verify(_ response: SCRAM.ServerResponse) -> Bool Returns true if the given server response is consistent with the server signature computed for this client response.
init(salted: MessageAuthenticationKey<Hash>) init(server: Hash, client: Hash) init(server: Hash, client: Hash, stored: Hash) let client: Hashlet server: Hashlet stored: Hashprotocol Sendable