FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/curve448.c
/* Export the curve448 private and public keys in raw form.
 *
 * key     [in]      Curve448 private key.
 * priv    [in]      Array to hold private key.
 * privSz  [in/out]  On in, the number of bytes in private key array.
 *                   On out, the number bytes put into private key array.
 * pub     [in]      Array to hold public key.
 * pubSz   [in/out]  On in, the number of bytes in public key array.
 *                   On out, the number bytes put into public key array.
 * endian  [in]      Endianness to use when encoding number in array.
 * returns BAD_FUNC_ARG when a parameter is NULL,
 *         ECC_BAD_ARG_E when privSz is less than CURVE448_KEY_SIZE or pubSz is
 *         less than CURVE448_PUB_KEY_SIZE,
 *         0 otherwise.
 */
Export the curve448 private and public keys in raw form.
key     [in]      Curve448 private key.
priv    [in]      Array to hold private key.
privSz  [in/out]  On in, the number of bytes in private key array.
On out, the number bytes put into private key array.
pub     [in]      Array to hold public key.
pubSz   [in/out]  On in, the number of bytes in public key array.
On out, the number bytes put into public key array.
endian  [in]      Endianness to use when encoding number in array.
returns BAD_FUNC_ARG when a parameter is NULL,
ECC_BAD_ARG_E when privSz is less than CURVE448_KEY_SIZE or pubSz is
less than CURVE448_PUB_KEY_SIZE,
0 otherwise.
Export the curve448 private and public keys in raw form . key [ in ] Curve448 private key . priv [ in ] Array to hold private key . privSz [ in / out ] On in the number of bytes in private key array . On out the number bytes put into private key array . pub [ in ] Array to hold public key . pubSz [ in / out ] On in the number of bytes in public key array . On out the number bytes put into public key array . endian [ in ] Endianness to use when encoding number in array . returns BAD_FUNC_ARG when a parameter is NULL ECC_BAD_ARG_E when privSz is less than CURVE448_KEY_SIZE or pubSz is less than CURVE448_PUB_KEY_SIZE 0 otherwise .
int wc_curve448_export_key_raw_ex(curve448_key* key, byte* priv, word32 *privSz,
                                  byte* pub, word32 *pubSz, int endian)
{
    int ret;
    ret = wc_curve448_export_private_raw_ex(key, priv, privSz, endian);
    if (ret == 0) {
        ret = wc_curve448_export_public_ex(key, pub, pubSz, endian);
    }
    return ret;
}
int wc_curve448_export_key_raw_ex ( curve448_key * key , byte * priv , word32 * privSz , byte * pub , word32 * pubSz , int endian ) { int ret ; ret = wc_curve448_export_private_raw_ex ( key , priv , privSz , endian ) ; if ( ret == 0 ) { ret = wc_curve448_export_public_ex ( key , pub , pubSz , endian ) ; } return ret ; }
Export the curve448 private and public keys in raw form.
Export the curve448 private and public keys in raw form .
/* export private part */ /* export public part */