Actually use the parse functions

This commit is contained in:
Jarno Lamsa
2019-04-18 16:13:19 +03:00
committed by Hanno Becker
parent b176092656
commit 9c9e77a8ad
2 changed files with 28 additions and 0 deletions

View File

@@ -172,6 +172,13 @@ static inline mbedtls_rsa_context *mbedtls_pk_rsa( const mbedtls_pk_context pk )
}
#endif /* MBEDTLS_RSA_C */
#if defined(MBEDTLS_USE_TINYCRYPT)
static inline mbedtls_uecc_keypair *mbedtls_uecc_pk( const mbedtls_pk_context pk )
{
return( (mbedtls_uecc_keypair *) (pk).pk_ctx );
}
#endif
#if defined(MBEDTLS_ECP_C)
/**
* Quick access to an EC context inside a PK context.