Error reporting interface. More...
Enumerations | |
enum | EpidStatus { kEpidNoErr = 0, kEpidSigValid = 0, kEpidSigInvalid = 1, kEpidSigRevokedInGroupRl = 2, kEpidSigRevokedInPrivRl = 3, kEpidSigRevokedInSigRl = 4, kEpidSigRevokedInVerifierRl = 5, kEpidErr = -999, kEpidNotImpl, kEpidBadArgErr, kEpidNoMemErr, kEpidMemAllocErr, kEpidMathErr, kEpidDivByZeroErr, kEpidUnderflowErr, kEpidHashAlgorithmNotSupported, kEpidRandMaxIterErr, kEpidDuplicateErr, kEpidInconsistentBasenameSetErr, kEpidMathQuadraticNonResidueError, kEpidOutOfSequenceError } |
Return status for SDK functions. More... | |
Functions | |
char const * | EpidStatusToString (EpidStatus e) |
Returns string representation of error code. More... | |
Error reporting interface.
This module defines the return status type. It also provides tools for interactions with status values, such as converting them to a string.
enum EpidStatus |
Return status for SDK functions.
Convention for status values is as follows:
Enumerator | |
---|---|
kEpidNoErr | no error |
kEpidSigValid | Signature is valid. |
kEpidSigInvalid | Signature is invalid. |
kEpidSigRevokedInGroupRl | Signature revoked in GroupRl. |
kEpidSigRevokedInPrivRl | Signature revoked in PrivRl. |
kEpidSigRevokedInSigRl | Signature revoked in SigRl. |
kEpidSigRevokedInVerifierRl | Signature revoked in VerifierRl. |
kEpidErr | unspecified error |
kEpidNotImpl | not implemented error |
kEpidBadArgErr | incorrect arg to function |
kEpidNoMemErr | not enough memory for the operation |
kEpidMemAllocErr | insufficient memory allocated for operation |
kEpidMathErr | internal math error |
kEpidDivByZeroErr | an attempt to divide by zero |
kEpidUnderflowErr | a value became less than minimum supported level |
kEpidHashAlgorithmNotSupported | unsupported hash algorithm type |
kEpidRandMaxIterErr | reached max iteration for random number generation |
kEpidDuplicateErr | argument would add duplicate entry |
kEpidInconsistentBasenameSetErr | set basename conflicts with arguments |
kEpidMathQuadraticNonResidueError | quadratic Non-Residue Error |
kEpidOutOfSequenceError | operation was performed out of sequence |
char const* EpidStatusToString | ( | EpidStatus | e | ) |
Returns string representation of error code.
e | The status value. |