mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-07-08 04:40:36 +00:00
Change key type when getting CKA_EC_PARAMS
This commit is contained in:
parent
b03bc43f22
commit
18f5389525
|
@ -375,7 +375,7 @@ int mbedtls_pk_setup_pkcs11( mbedtls_pk_context *ctx,
|
|||
attributes[0].type = CKA_EC_PARAMS;
|
||||
attributes[0].pValue = ecParams;
|
||||
attributes[0].ulValueLen = sizeof( ecParams );
|
||||
rv = C_GetAttributeValue( hSession, hPrivateKey, attributes, 1 );
|
||||
rv = C_GetAttributeValue( hSession, hPublicKey, attributes, 1 );
|
||||
if( rv != CKR_OK )
|
||||
return( pkcs11_err_to_mbedtls_pk_err( rv ) );
|
||||
params_asn1.tag = ecParams[0];
|
||||
|
|
Loading…
Reference in a new issue