size_t *value_len);
/**
- * @brief Destroys the crypto context. Must be called on all contexts that are
- * no longer used. Passing #YACA_CONTEXT_NULL is allowed.
- *
- * @since_tizen 3.0
- *
- * @param[in,out] ctx Crypto context
- *
- * @see #yaca_context_h
- *
- */
-void yaca_context_destroy(yaca_context_h ctx);
-
-/**
* @brief Returns the minimum required size of the output buffer for a single crypto function call.
*
* @since_tizen 3.0
size_t *output_len);
/**
+ * @brief Destroys the crypto context. Must be called on all contexts that are
+ * no longer used. Passing #YACA_CONTEXT_NULL is allowed.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in,out] ctx Crypto context
+ *
+ * @see #yaca_context_h
+ *
+ */
+void yaca_context_destroy(yaca_context_h ctx);
+
+/**
* @}
*/
int yaca_key_extract_parameters(const yaca_key_h key, yaca_key_h *params);
/**
- * @brief Release the key created by the library. Passing YACA_KEY_NULL is allowed.
- *
- * @since_tizen 3.0
- *
- * @param[in,out] key Key to be released
- *
- * @see yaca_key_import()
- * @see yaca_key_export()
- * @see yaca_key_generate()
- */
-void yaca_key_destroy(yaca_key_h key);
-
-/**
* @brief Derives a shared secret using Diffie-Helmann or EC Diffie-Helmann key exchange protocol.
*
* @since_tizen 3.0
yaca_key_h *key);
/**
+ * @brief Release the key created by the library. Passing YACA_KEY_NULL is allowed.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in,out] key Key to be released
+ *
+ * @see yaca_key_import()
+ * @see yaca_key_export()
+ * @see yaca_key_generate()
+ */
+void yaca_key_destroy(yaca_key_h key);
+
+/**
* @}
*/
*/
/**
- * @brief Calculates a digest of a buffer.
- *
- * @since_tizen 3.0
- *
- * @remarks The @a digest should be freed using yaca_free()
- *
- * @param[in] algo Digest algorithm (select #YACA_DIGEST_SHA256 if unsure)
- * @param[in] data Data from which the digest is to be calculated
- * @param[in] data_len Length of the data. Can be 0.
- * @param[out] digest Message digest, will be allocated by the library
- * @param[out] digest_len Length of message digest (depends on algorithm)
- *
- * @return #YACA_ERROR_NONE on success, negative on error
- * @retval #YACA_ERROR_NONE Successful
- * @retval #YACA_ERROR_INVALID_PARAMETER Required parameters have incorrect values (NULL,
- * invalid algo)
- * @retval #YACA_ERROR_OUT_OF_MEMORY Out of memory error
- * @retval #YACA_ERROR_INTERNAL Internal error
- *
- * @see #yaca_digest_algorithm_e
- * @see yaca_free()
- */
-int yaca_simple_calculate_digest(yaca_digest_algorithm_e algo,
- const char *data,
- size_t data_len,
- char **digest,
- size_t *digest_len);
-
-/**
* @brief Encrypts data using a symmetric cipher.
*
* @since_tizen 3.0
size_t *plaintext_len);
/**
+ * @brief Calculates a digest of a buffer.
+ *
+ * @since_tizen 3.0
+ *
+ * @remarks The @a digest should be freed using yaca_free()
+ *
+ * @param[in] algo Digest algorithm (select #YACA_DIGEST_SHA256 if unsure)
+ * @param[in] data Data from which the digest is to be calculated
+ * @param[in] data_len Length of the data. Can be 0.
+ * @param[out] digest Message digest, will be allocated by the library
+ * @param[out] digest_len Length of message digest (depends on algorithm)
+ *
+ * @return #YACA_ERROR_NONE on success, negative on error
+ * @retval #YACA_ERROR_NONE Successful
+ * @retval #YACA_ERROR_INVALID_PARAMETER Required parameters have incorrect values (NULL,
+ * invalid algo)
+ * @retval #YACA_ERROR_OUT_OF_MEMORY Out of memory error
+ * @retval #YACA_ERROR_INTERNAL Internal error
+ *
+ * @see #yaca_digest_algorithm_e
+ * @see yaca_free()
+ */
+int yaca_simple_calculate_digest(yaca_digest_algorithm_e algo,
+ const char *data,
+ size_t data_len,
+ char **digest,
+ size_t *digest_len);
+
+/**
* @brief Creates a signature using asymmetric private key.
*
* @since_tizen 3.0