psa_crypto_ecp: remove support for secp224k1
Since this curve is not supported in PSA (and it will not ever be in the future), we save a few bytes. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
39faa9cad4
commit
19ec9e4f66
1 changed files with 1 additions and 6 deletions
|
@ -77,14 +77,9 @@ static int check_ecc_parameters(psa_ecc_family_t family, size_t *bits)
|
|||
case PSA_ECC_FAMILY_SECP_K1:
|
||||
switch (*bits) {
|
||||
case 192:
|
||||
/* secp224k1 is not and will not be supported in PSA (#3541). */
|
||||
case 256:
|
||||
return PSA_SUCCESS;
|
||||
/* secp224k1 is not and will not be supported in PSA (#3541).
|
||||
* Note: secp224k1 has 224-bit coordinates but 225-bit private
|
||||
* keys which are rounded up to 232 for their representation. */
|
||||
case 224:
|
||||
case 232:
|
||||
return PSA_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue