HkdfEnc class

Encryption context of the encrypted handshake (docs/protocol.md section 6.1).

key names the shared enigma; info follows the pre-agreed formula (both sides derive it from the bid instead of transmitting it); salt/nonce are fresh randoms; aad carries the encryption time as binary (transmitted Base64-encoded, tag-authenticated); tag/ciphertext are filled in by the encryption.

Constructors

HkdfEnc(String key, {required Uint8List info, required Uint8List salt, required Uint8List nonce, required Uint8List aad, Uint8List? tag})
HkdfEnc.create(String key, {required int bid, DateTime? time})
Build an encryption context with fresh random salt/nonce (server side).
factory

Properties

aad → Uint8List
final
ciphertext ↔ Uint8List?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
info → Uint8List
final
key → String
final
nonce → Uint8List
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
salt → Uint8List
final
tag ↔ Uint8List?
getter/setter pair
time → DateTime
The encryption time carried by aad.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDict() → Map<String, String>
Serialise into the wire bundle ('enigma' field, docs/protocol.md section 6.1).
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(Map<Object?, Object?> bundle, {required int bid}) → HkdfEnc?
Rebuild the encryption context from the wire bundle (client side).