From 503ac614ea91b4fdd9d5f6f467a2efcad900a7e1 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 23 Apr 2024 18:07:21 +0200 Subject: added string key utilities --- ecp/util/util.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'ecp/util/util.h') diff --git a/ecp/util/util.h b/ecp/util/util.h index 83c4c14..f9a6bb4 100644 --- a/ecp/util/util.h +++ b/ecp/util/util.h @@ -1,8 +1,5 @@ -int ecp_util_load_key(ecp_ecdh_public_t *public, ecp_ecdh_private_t *private, char *filename); -int ecp_util_save_key(ecp_ecdh_public_t *public, ecp_ecdh_private_t *private, char *filename); +int ecp_util_read_key(int fd, ecp_ecdh_public_t *public, ecp_ecdh_private_t *private); +int ecp_util_write_key(int fd, ecp_ecdh_public_t *public, ecp_ecdh_private_t *private); -int ecp_util_load_pub(ecp_ecdh_public_t *public, char *filename); -int ecp_util_save_pub(ecp_ecdh_public_t *public, char *filename); - -int ecp_util_load_node(ECPNode *node, char *filename); -int ecp_util_save_node(ECPNode *node, char *filename); +int ecp_util_load_key(char *filename, ecp_ecdh_public_t *public, ecp_ecdh_private_t *private); +int ecp_util_save_key(char *filename, ecp_ecdh_public_t *public, ecp_ecdh_private_t *private); \ No newline at end of file -- cgit v1.2.3