/* * Copyright (C) 2017 - This file is part of libecc project * * Authors: * Ryad BENADJILA * Arnaud EBALARD * Jean-Pierre FLORI * * Contributors: * Nicolas VIVET * Karim KHALFALLAH * * This software is licensed under a dual BSD and GPL v2 license. * See LICENSE file at the root folder of the project. */ #include void priv_key_print(const char *msg, const ec_priv_key *priv) { int ret; MUST_HAVE(msg != NULL, ret, err); ret = priv_key_check_initialized(priv); EG(ret, err); nn_print(msg, &(priv->x)); err: return; } void pub_key_print(const char *msg, const ec_pub_key *pub) { int ret; MUST_HAVE(msg != NULL, ret, err); ret = pub_key_check_initialized(pub); EG(ret, err); ec_point_print(msg, &(pub->y)); err: return; }