Add YACA_ERROR_SIGNATURE_INVALID error code. Mentioned in the doxygen. 76/65776/2
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Tue, 12 Apr 2016 11:30:02 +0000 (13:30 +0200)
committerMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Wed, 13 Apr 2016 06:35:20 +0000 (23:35 -0700)
Change-Id: Ieff9d6a8408c878b7ff9656f637382abab23f742

api/yaca/error.h
api/yaca/sign.h

index 9a192f4..e8d11ed 100644 (file)
@@ -37,7 +37,8 @@ enum __yaca_error_code {
        YACA_ERROR_OPENSSL_FAILURE = -3,
        YACA_ERROR_NOT_SUPPORTED = -4,
        YACA_ERROR_TOO_BIG_ARGUMENT = -5,
-       YACA_ERROR_OUT_OF_MEMORY = -6
+       YACA_ERROR_OUT_OF_MEMORY = -6,
+       YACA_ERROR_SIGNATURE_INVALID = -7
 };
 
 #ifdef __cplusplus
index 0f0855e..217d15d 100644 (file)
@@ -113,7 +113,7 @@ int yaca_verify_update(yaca_ctx_h ctx,
  * @param[in]     mac_len  Size of the MAC or the signature.
  *
  * @return 0 on success, negative on error (@see error.h).
- * TODO: CRYTPO_ERROR_SIGNATURE_INVALID when verification fails.
+ * TODO: YACA_ERROR_SIGNATURE_INVALID when verification fails.
  */
 int yaca_verify_final(yaca_ctx_h ctx,
                      const char *mac,