// Abstract interface for secure storage. class SecureStorageInterface { public:
SecureStorageInterface() = default; virtual ~SecureStorageInterface() = default;
// SecureStorageInterface is neither copyable nor moveable
SecureStorageInterface(const SecureStorageInterface&) = delete;
SecureStorageInterface& operator=(const SecureStorageInterface&) = delete;
// Opens a file in secure storage named |filename|. // // Returns NO_ERROR on success, negative error code on failure. virtualint open(constchar* filename) = 0;
// Deletes a file in secure storage named |filename|. // // Returns NO_ERROR on success, negative error code on failure. virtualint delete_file(constchar* filename) = 0;
// Reads |size| bytes into |buf| from the file starting at offset |off|. The // file must have been previously opened by open(). // // Returns number of bytes read on success, negative error code on failure. virtualint read(uint64_t off, void* buf, size_t size) const = 0;
// Gets the size of the file in secure storage previously opened with open() // and stores it in |size|. // // Returns NO_ERROR on success, negative error code on failure. virtualint get_file_size(uint64_t* size) const = 0;
// Writes |size| bytes from |buf| into the file starting at offset |off|. // The file must have been previously opened by open(). // // Returns number of bytes written on succes, negative error code on // failure. virtualint write(uint64_t off, constvoid* buf, size_t size) const = 0;
};
} // namespace avb
#endif// SECURE_STORAGE_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.