Method SSL.Cipher.MACAlgorithm()->hash_packet()


Method hash_packet

string hash_packet(object packet, int|void adjust_len)

Description

Generates a header and creates a HMAC hash for the given packet.

Parameter packet

Packet to generate a MAC hash for.

Parameter adjust_len

Added to sizeof(packet) to get the packet length.

Returns

Returns the MAC hash for the packet.