Class: PaddingPacket

PaddingPacket()

Constructor

new PaddingPacket()

Source:

Methods

(async) createPadding(length)

Create random padding.

Parameters:
Name Type Description
length Number

The length of padding to be generated.

Source:
Throws:

if padding generation was not successful

Type
Error

read(bytes)

Read a padding packet

Parameters:
Name Type Description
bytes Uint8Array | ReadableStream.<Uint8Array>
Source:

write() → {Uint8Array}

Write the padding packet

Source:
Returns:

The padding packet.

Type
Uint8Array