Verify sign wrapper functionality for uECC

This commit is contained in:
Jarno Lamsa 2019-04-16 16:48:22 +03:00 committed by Hanno Becker
parent e1c5608370
commit 42b83db1eb
4 changed files with 287 additions and 0 deletions

View file

@ -120,10 +120,15 @@ const mbedtls_pk_info_t * mbedtls_pk_info_from_type( mbedtls_pk_type_t pk_type )
case MBEDTLS_PK_ECKEY_DH:
return( &mbedtls_eckeydh_info );
#endif
#if defined(MBEDTLS_USE_TINYCRYPT)
case MBEDTLS_PK_ECDSA:
return( &mbedtls_uecc_ecdsa_info );
#else
#if defined(MBEDTLS_ECDSA_C)
case MBEDTLS_PK_ECDSA:
return( &mbedtls_ecdsa_info );
#endif
#endif /* MBEDTLS_USE_TINYCRYPT */
/* MBEDTLS_PK_RSA_ALT omitted on purpose */
default:
return( NULL );