is_data_encrypted


Description:

public bool is_data_encrypted (uint8[] data)

Determines whether or not the given data is encrypted by this module.

It does this check by verifying that the magic number is the one put in place by the encryption functions.

The data must be at least pass_encryption_extra_length bytes in length. If the passed byte array is smaller than required, the behaviour is undefined.

If the data pointer is NULL, the behaviour is undefined

Returns:

true if the data is encrypted by this module.


Namespace: ToxEncryptSave
Package: toxcore