Status codes
| Code | Meaning |
|---|---|
YUENIX_OK |
Success |
YUENIX_ERR_INVALID_ARGUMENT |
A null pointer, out-of-range value or wrong struct_size |
YUENIX_ERR_UNSUPPORTED |
The plan or GPU does not support the request |
YUENIX_ERR_KEY_MISMATCH |
Objects come from different key families or plans |
YUENIX_ERR_LEVEL |
Ciphertext level too low, or levels incompatible |
YUENIX_ERR_AUTHENTICATION |
GCM tag or AAD verification failed |
YUENIX_ERR_STATE |
Call out of order, for example evaluating before admission completes |
YUENIX_ERR_FORMAT |
Malformed or incompatible serialized data |
YUENIX_ERR_OUT_OF_MEMORY |
GPU or host allocation failed |
YUENIX_ERR_CUDA |
CUDA runtime error |
YUENIX_ERR_INTERNAL |
Unexpected internal failure; please report it |
yuenix_last_error(ctx) returns a readable message for the most recent failure on a context. The message is meant for logs. Do not parse it.