mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Constrain interruptible key generation to key-pairs
Erroring on a symmetric-key type would actually be an extra line of code. In theory we could try to save that one line of code, but it is premature optimisation at this point. Also, this is a predominantly asymmetric crypto feature, it is less confusing/more user friendly if we don't allow symmetric keys here. Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
211ebb51da
commit
7311600fd5
@ -5280,8 +5280,7 @@ uint32_t psa_generate_key_iop_get_num_ops(psa_generate_key_iop_t *operation);
|
|||||||
* \param[in] attributes The attributes for the new key.
|
* \param[in] attributes The attributes for the new key.
|
||||||
* The following attributes are required for all
|
* The following attributes are required for all
|
||||||
* keys:
|
* keys:
|
||||||
* * The key type. It must not be an asymmetric
|
* * The key type. It must be an asymmetric key-pair.
|
||||||
* public key.
|
|
||||||
* * The key size. It must be a valid size for the
|
* * The key size. It must be a valid size for the
|
||||||
* key type.
|
* key type.
|
||||||
* The following attributes must be set for keys
|
* The following attributes must be set for keys
|
||||||
|
Loading…
x
Reference in New Issue
Block a user