Struct

FwupdPluginSecureBytes

since: 2.1.8

Description [src]

struct FuSecureBytes {
  /* No available fields */
}

A GByteArray that has its contents cleared to zero before being deallocated, for holding sensitive data such as keys, tokens or passwords.

Available since: 2.1.8

Functions

fu_secure_bytes_get_contents

Reads a blob of data from a file into a FuSecureBytes, clearing any temporary copy of the plaintext so it is not left behind in freed heap memory.

since: 2.1.8

fu_secure_bytes_new

Creates a secure byte array that is cleared when deallocated.

since: 2.1.8

fu_secure_bytes_new_from_bytes

Creates a secure byte array that is cleared when deallocated.

since: 2.1.9

Instance methods

fu_secure_bytes_free

Clears the contents to zero before the backing buffer is unreffed.

since: 2.1.8

fu_secure_bytes_get_data

Returns the data of the secure buffer.

unstable since: 2.2.1

fu_secure_bytes_get_size

Returns the size of the secure buffer.

unstable since: 2.2.1

fu_secure_bytes_set_contents

Writes a FuSecureBytes to a filename with specific permissions, creating the parent directories as required.

unstable since: 2.2.1