IAlgorithmNegotiation class abstract
Interface for algorithm negotiation between cryptographic peers.
- Implementers
- Annotations
-
- @includeInBarrelFile
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createHandshakeMessage(
CryptoPeerCapabilities capabilities) → Map< String, dynamic> - Creates a handshake message containing this peer's capabilities.
-
negotiateAlgorithms(
CryptoPeerCapabilities local, CryptoPeerCapabilities remote, {bool isInitiator = true}) → NegotiationResult? - Negotiates algorithms based on local and remote capabilities. Returns null if no compatible algorithms are found.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseHandshakeMessage(
Map< String, dynamic> message) → CryptoPeerCapabilities - Parses a handshake message from the remote peer.
-
toString(
) → String -
A string representation of this object.
inherited
-
validateNegotiation(
NegotiationResult negotiation) → bool - Validates that the negotiated algorithms are supported and secure.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited