FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* Get the size in bytes for WOLFSSL_EVP_PKEY key
 *
 * pkey WOLFSSL_EVP_PKEY structure to get key size of
 *
 * returns the size of a key on success which is the maximum size of a
 *         signature
 */
Get the size in bytes for WOLFSSL_EVP_PKEY key
pkey WOLFSSL_EVP_PKEY structure to get key size of

returns the size of a key on success which is the maximum size of a
signature
Get the size in bytes for WOLFSSL_EVP_PKEY key pkey WOLFSSL_EVP_PKEY structure to get key size of returns the size of a key on success which is the maximum size of a signature
int wolfSSL_EVP_PKEY_size(WOLFSSL_EVP_PKEY *pkey)
{
    if (pkey == NULL) return 0;
    WOLFSSL_ENTER("EVP_PKEY_size");
    switch (pkey->type) {
#ifndef NO_RSA
    case EVP_PKEY_RSA:
        return (int)wolfSSL_RSA_size((const WOLFSSL_RSA*)(pkey->rsa));
#endif 
#ifdef HAVE_ECC
    case EVP_PKEY_EC:
        if (pkey->ecc == NULL || pkey->ecc->internal == NULL) {
            WOLFSSL_MSG("No ECC key has been set");
            break;
        }
        return wc_ecc_size((ecc_key*)(pkey->ecc->internal));
#endif 
    default:
        break;
    }
    return 0;
}
int wolfSSL_EVP_PKEY_size ( WOLFSSL_EVP_PKEY * pkey ) { if ( pkey == NULL ) return 0 ; WOLFSSL_ENTER ( " " ) ; switch ( pkey -> type ) { #ifndef NO_RSA case EVP_PKEY_RSA : return ( int ) wolfSSL_RSA_size ( ( const WOLFSSL_RSA * ) ( pkey -> rsa ) ) ; #endif #ifdef HAVE_ECC case EVP_PKEY_EC : if ( pkey -> ecc == NULL || pkey -> ecc -> internal == NULL ) { WOLFSSL_MSG ( " " ) ; break ; } return wc_ecc_size ( ( ecc_key * ) ( pkey -> ecc -> internal ) ) ; #endif default : break ; } return 0 ; }
Get the size in bytes for WOLFSSL_EVP_PKEY key
 pkey WOLFSSL_EVP_PKEY structure to get key size of
Get the size in bytes for WOLFSSL_EVP_PKEY key pkey WOLFSSL_EVP_PKEY structure to get key size of
/* !NO_RSA */ /* HAVE_ECC */