FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/curve448.c
/* Import curve448 private and public keys from a byte arrays.
 *
 * piv     [in]  Array holding private key.
 * privSz  [in]  Number of bytes of data in private key array.
 * pub     [in]  Array holding public key.
 * pubSz   [in]  Number of bytes of data in public key array.
 * key     [in]  Curve448 private/public key.
 * endian  [in]  Endianness of encoded numbers in byte arrays.
 * 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.
 */
Import curve448 private and public keys from a byte arrays.
piv     [in]  Array holding private key.
privSz  [in]  Number of bytes of data in private key array.
pub     [in]  Array holding public key.
pubSz   [in]  Number of bytes of data in public key array.
key     [in]  Curve448 private/public key.
endian  [in]  Endianness of encoded numbers in byte arrays.
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.
Import curve448 private and public keys from a byte arrays . piv [ in ] Array holding private key . privSz [ in ] Number of bytes of data in private key array . pub [ in ] Array holding public key . pubSz [ in ] Number of bytes of data in public key array . key [ in ] Curve448 private / public key . endian [ in ] Endianness of encoded numbers in byte arrays . 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_import_private_raw_ex(const byte* priv, word32 privSz,
                                      const byte* pub, word32 pubSz,
                                      curve448_key* key, int endian)
{
    int ret;
    ret = wc_curve448_import_private_ex(priv, privSz, key, endian);
    if (ret == 0) {
        return wc_curve448_import_public_ex(pub, pubSz, key, endian);
    }
    return ret;
}
int wc_curve448_import_private_raw_ex ( const byte * priv , word32 privSz , const byte * pub , word32 pubSz , curve448_key * key , int endian ) { int ret ; ret = wc_curve448_import_private_ex ( priv , privSz , key , endian ) ; if ( ret == 0 ) { return wc_curve448_import_public_ex ( pub , pubSz , key , endian ) ; } return ret ; }
Import curve448 private and public keys from a byte arrays.
Import curve448 private and public keys from a byte arrays .
/* import private part */ /* import public part */