mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-10 07:36:28 -04:00
Update KEYPAIR macros to PSA 1.0
This commit is contained in:
parent
8813fef228
commit
3d158ebd2f
@ -3271,7 +3271,7 @@ static int ssl_write_client_key_exchange( mbedtls_ssl_context *ssl )
|
|||||||
|
|
||||||
/* Generate ECDH private key. */
|
/* Generate ECDH private key. */
|
||||||
status = psa_generate_key( handshake->ecdh_psa_privkey,
|
status = psa_generate_key( handshake->ecdh_psa_privkey,
|
||||||
PSA_KEY_TYPE_ECC_KEYPAIR( handshake->ecdh_psa_curve ),
|
PSA_KEY_TYPE_ECC_KEY_PAIR( handshake->ecdh_psa_curve ),
|
||||||
MBEDTLS_PSA_ECC_KEY_BITS_OF_CURVE( handshake->ecdh_psa_curve ),
|
MBEDTLS_PSA_ECC_KEY_BITS_OF_CURVE( handshake->ecdh_psa_curve ),
|
||||||
NULL, 0 );
|
NULL, 0 );
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user