quote_generate
The quote_generate
syscall generates an Intel® SGX attestation quote with specified user data.
The syscall number is 371.
Synopsis
ssize_t quote_generate(const void *userdata, size_t userdata_size, void *buf, size_t bufsize);
Return value
On success, the attestation quote is written into buf
, and the number of bytes written is returned.
On error, a negative result will be returned with information about the error.
The raw syscall returns the negative error number.
If using the C library wrapper, the return value is -1
and the error number is stored in errno
.
Errors
|
|
|
|
|
An error occurred while generating the quote |
Example
See Python example for quote_generate
to see how you can call the quote_generate
syscall from Python code using the ctypes
library.