*
* @since_tizen 3.0
*
- * @return #YACA_ERROR_NONE on success
- * @retval #YACA_ERROR_NONE Successful
- *
* @see yaca_initialize()
*/
-int yaca_cleanup(void);
+void yaca_cleanup(void);
/**
* @brief Allocates the memory.
* @see #yaca_padding_e
*/
typedef enum {
- /** Padding. Property type is #yaca_padding_e. */
+ /**
+ * Padding for the sign/verify operation. Property type is #yaca_padding_e.
+ *
+ * This property can be set at the latest before the *_finalize() call.
+ */
YACA_PROPERTY_PADDING,
/** GCM Additional Authentication Data. Property type is a buffer (e.g. char*) */
return ret;
}
-API int yaca_cleanup(void)
+API void yaca_cleanup(void)
{
/* calling cleanup twice on the same thread is a NOP */
if (!current_thread_initialized)
- return YACA_ERROR_NONE;
+ return;
/* per thread cleanup */
ERR_remove_thread_state(NULL);
current_thread_initialized = false;
}
pthread_mutex_unlock(&init_mutex);
-
- return YACA_ERROR_NONE;
}
API int yaca_malloc(size_t size, void **memory)