#include <cstdint>
#include <cstdio>
#include <string>
#include "sgx_eid.h"
#include "ssgx_utils_t_seal_handler.h"
#include "ssgx_utils_t_time.h"
#include "ssgx_utils_t_uuid.h"
#include "ssgx_utils_t_enclave_info.h"
Go to the source code of this file.
|
| namespace | ssgx |
| |
| namespace | ssgx::utils_t |
| | This module provides a comprehensive set of utility classes and functions for secure memory management, time handling, formatted operations, thread management, and other foundational functionalities in a Trusted Execution Environment (TEE).
|
| |
|
| int | ssgx::utils_t::Printf (const char *fmt,...) |
| | Print formatted data to stdout.
|
| |
| std::string | ssgx::utils_t::FormatStr (const char *fmt,...) |
| | Format args according to the format string fmt, and return the result as a string.
|
| |
| void * | ssgx::utils_t::MallocOutside (size_t size) |
| | Allocates size bytes of uninitialized storage outside the enclave.
|
| |
| void * | ssgx::utils_t::CallocOutside (size_t num, size_t size) |
| | Allocates memory outside the enclave for an array of num objects of size and initializes all bytes in the allocated storage to zero.
|
| |
| void | ssgx::utils_t::FreeOutside (void *ptr_outside, size_t size) |
| | Deallocates the space previously allocated by MallocOutside(), CallocOutside().
|
| |
| char * | ssgx::utils_t::StrndupOutside (const char *str_ptr, std::size_t str_len) |
| | Duplicates a fixed-length C-style string to memory allocated outside the enclave.
|
| |
| void * | ssgx::utils_t::MemcpyToOutside (void *dest_outside_enclave, const void *src, std::size_t count) |
| | Copies count bytes from the object pointed to by src to the object outside the enclave pointed to by dest_outside_enclave.
|
| |
| void * | ssgx::utils_t::MemdupOutside (const void *buf_ptr, std::size_t buf_size) |
| | Duplicates a raw memory buffer to memory allocated outside the enclave.
|
| |
| void | ssgx::utils_t::Sleep (uint32_t seconds) |
| | Sleep for a specified number of seconds using OCall.
|
| |