Codebase list libcryptx-perl / 543c1e9b-9bbc-47df-9309-5f6cdec0f044/main src / ltc / pk / ecc / ecc_ansi_x963_export.c
543c1e9b-9bbc-47df-9309-5f6cdec0f044/main

Tree @543c1e9b-9bbc-47df-9309-5f6cdec0f044/main (Download .tar.gz)

ecc_ansi_x963_export.c @543c1e9b-9bbc-47df-9309-5f6cdec0f044/mainraw · history · blame

/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */

#include "tomcrypt_private.h"

/**
  @file ecc_ansi_x963_export.c
  ECC Crypto, Tom St Denis
*/

#ifdef LTC_MECC

/** ECC X9.63 (Sec. 4.3.6) uncompressed export
  @param key     Key to export
  @param out     [out] destination of export
  @param outlen  [in/out]  Length of destination and final output size
  Return CRYPT_OK on success
*/
int ecc_ansi_x963_export(const ecc_key *key, unsigned char *out, unsigned long *outlen)
{
   return ecc_get_key(out, outlen, PK_PUBLIC, key);
}

#endif