#endif
/**
- * @defgroup Non-Crypto Yet Another Crypto API - non crypto related functions.
+ * @addtogroup CAPI_YACA_ENCRYPTION_MODULE
+ * @{
+ */
+
+/**
+ * Note: Non-Crypto Yet Another Crypto API - non crypto related functions.
*
*
- * @{
*/
/**
size_t input_len,
size_t *output_len);
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
/**
- * @defgroup Advanced-Digest Advanced API for the message digests.
+ * @addtogroup CAPI_YACA_INTEGRITY_MODULE
+ * @{
+ */
+
+/**
+ * Note: Advanced-Digest Advanced API for the message digests.
*
*
- * @{
*/
/**
*/
int yaca_digest_finalize(yaca_context_h ctx, char *digest, size_t *digest_len);
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
/**
- * @defgroup Advanced-Encryption-Symmetric Advanced API for the symmetric encryption.
+ * @addtogroup CAPI_YACA_ENCRYPTION_MODULE
+ * @{
+ */
+
+/**
+ * Note: Advanced-Encryption-Symmetric Advanced API for the symmetric encryption.
*
*
- * @{
*/
/**
char *plaintext,
size_t *plaintext_len);
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
-#define TIZEN_ERROR_YACA -0x01E30000
+/**
+ * @addtogroup CAPI_YACA_ENCRYPTION_MODULE
+ * @{
+ */
/**
- * @defgroup Error Yet another Crypto API - error enums.
+ * Note: Error Yet another Crypto API - error enums.
*
- * @{
*/
+/* define it temporary until this code goes into capi-base-common package */
+#ifndef TIZEN_ERROR_YACA
+#define TIZEN_ERROR_YACA -0x01E30000
+#endif
+
/**
* @brief Enumeration of YACA error values.
*
YACA_ERROR_INVALID_PASSWORD = TIZEN_ERROR_YACA | 0x03
} yaca_error_e;
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
/**
- * @defgroup Key Advanced API for the key and IV handling.
+ * @addtogroup CAPI_YACA_KEY_MODULE
+ * @{
+ */
+
+/**
+ * Note: Key Advanced API for the key and IV handling.
*
*
- * @{
*/
/**
*/
void yaca_key_destroy(yaca_key_h key);
-/**@}*/
/**
- * @defgroup Key-Derivation Advanced API for the key derivation.
+ * Note: Key-Derivation Advanced API for the key derivation.
*
*
- * @{
*/
/**
size_t key_bit_len,
yaca_key_h *key);
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
/**
- * @defgroup Advanced-Encryption-Asymmetric Advanced API for the asymmetric encryption.
+ * @addtogroup CAPI_YACA_ENCRYPTION_MODULE
+ * @{
+ */
+
+/**
+ * Note Advanced-Encryption-Asymmetric Advanced API for the asymmetric encryption.
*
*
* @remarks Seal does more than just encrypt. It first generates the encryption key and IV,
* then encrypts whole message using this key (and selected symmetric algorithm).
* Finally it encrypts symmetric key with public key.
*
- * @{
*/
/**
char *plaintext,
size_t *plaintext_len);
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
/**
- * @defgroup Advanced-Integrity Advanced API for the integrity handling - HMAC, CMAC and digital signature.
+ * @addtogroup CAPI_YACA_INTEGRITY_MODULE
+ * @{
+ */
+
+/**
+ * Note: Advanced-Integrity Advanced API for the integrity handling - HMAC, CMAC and digital signature.
*
*
- * @{
*/
/**
const char *signature,
size_t signature_len);
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
/**
- * @defgroup Simple-API Simple API.
+ * @addtogroup CAPI_YACA_SIMPLE_MODULE
+ * @{
+ */
+
+/**
+ * Note: Simple-API Simple API.
*
* @remarks This is simple API.
* Design constraints:
* - GCM and CCM chaining is not supported
* - All outputs are allocated by the library
*
- * @{
*/
/**
char **mac,
size_t *mac_len);
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */
#endif
/**
- * @defgroup Crypto-Types Yet Another Crypto API - types.
+ * @addtogroup CAPI_YACA_ENCRYPTION_MODULE
+ * @{
+ */
+
+/**
+ * Note: Crypto-Types Yet Another Crypto API - types.
*
*
- * @{
*/
/**
YACA_PADDING_PKCS1_PSS,
} yaca_padding_e;
-/**@}*/
+/**
+ * @}
+ */
#ifdef __cplusplus
} /* extern */