packet/header_protector library
Properties
- quickPacket → Uint8List
-
final
Functions
-
applyHeaderProtection(
Uint8List packet, int pnOffset, Uint8List hpKey, int pnLength) → Uint8List - Applies Header Protection (XORing the first byte and the Packet Number) using the result of AES-ECB(HP Key, Sample).
-
decodeTruncatedPN(
Uint8List array, int offset, int length) → int -
main(
) → void -
removeHeaderProtection(
{required Uint8List array, required int pnOffset, required Uint8List hpKey}) → int - Reverses the Header Protection mechanism, unmasking the first header byte and the Packet Number field.