1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */ 2 /* SPDX-License-Identifier: Unlicense */ 3 4 #include "tomcrypt_private.h" 5 6 /** 7 @file ecc_ansi_x963_export.c 8 ECC Crypto, Tom St Denis 9 */ 10 11 #ifdef LTC_MECC 12 13 /** ECC X9.63 (Sec. 4.3.6) uncompressed export 14 @param key Key to export 15 @param out [out] destination of export 16 @param outlen [in/out] Length of destination and final output size 17 Return CRYPT_OK on success 18 */ ecc_ansi_x963_export(const ecc_key * key,unsigned char * out,unsigned long * outlen)19int ecc_ansi_x963_export(const ecc_key *key, unsigned char *out, unsigned long *outlen) 20 { 21 return ecc_get_key(out, outlen, PK_PUBLIC, key); 22 } 23 24 #endif 25