ProvSecurity class abstract

A security scheme of the provisioning protocol: it runs the session handshake with the device and protects the data sent afterwards.

EspProv uses it for every request. The package ships Security1 and Security0; implement this class to support another scheme.

Implementers

Constructors

ProvSecurity()

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

decrypt(Uint8List data) → Future<Uint8List>
Recovers the plain data from data, a response received from the device, and returns it.
encrypt(Uint8List data) → Future<Uint8List>
Protects data before it is sent to the device and returns the result.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
securitySession(SessionData responseData) → Future<SessionData?>
Runs one step of the session handshake.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited