generateSignature

fun generateSignature(frameBytes: ByteArray, linkId: UByte, timestamp: UInt, secretKey: ByteArray): ByteArray

Generates the 6-byte MAVLink signature using the frameBytes. If the secretKey's size is less than 32 then it is padded with zeroes. If the size is more than 32, then only the first 32 bytes are taken.

Refer: MAVLink Message Signing