16 #ifndef SSP21_CRYPTOERROR_H 17 #define SSP21_CRYPTOERROR_H 20 #include "ser4cpp/util/Uncopyable.h" 21 #include "ssp21/util/ErrorCategory.h" 66 static const char* name;
73 inline std::error_code make_error_code(
CryptoError err)
75 return std::error_code(static_cast<int>(err), CryptoErrorCategory::get());
83 struct is_error_code_enum<
ssp21::CryptoError> :
public true_type {};
SSP21-cpp main namespace.
A buffer had an insufficient or incorrect size.
A calculated digital signature did not authenticate.
The TTL on a message is expired.
X25519 DH operation failed. Bad public key?
No validate session for authenticating user data.
A calculated MAC did not match the specified MAC.
A rollback of the monotonic clock was detected.
The nonce on a received message has been replayed.
Received a session message with no user data.
The session time has reached a configured maximum value.
A nonce has reached a configured maximum value.
a procedure cannot be executed b/c of an undefined algorithm
attempted operation with a buffer with the wrong length
attempted operation with bad key type