mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-19 20:47:57 +00:00
RSA key generation: require e=65537
This commit is contained in:
parent
a130219ac0
commit
20a77aeac7
|
@ -3423,6 +3423,13 @@ psa_status_t psa_generate_random(uint8_t *output,
|
||||||
* The key is generated randomly.
|
* The key is generated randomly.
|
||||||
* Its location, policy, type and size are taken from \p attributes.
|
* Its location, policy, type and size are taken from \p attributes.
|
||||||
*
|
*
|
||||||
|
* The following type-specific considerations apply:
|
||||||
|
* - For RSA keys (#PSA_KEY_TYPE_RSA_KEYPAIR),
|
||||||
|
* the public exponent is 65537.
|
||||||
|
* The modulus is a product of two probabilistic primes
|
||||||
|
* between 2^{n-1} and 2^n where n is the bit size specified in the
|
||||||
|
* attributes.
|
||||||
|
*
|
||||||
* \param[in] attributes The attributes for the new key.
|
* \param[in] attributes The attributes for the new key.
|
||||||
* \param[out] handle On success, a handle to the newly created key.
|
* \param[out] handle On success, a handle to the newly created key.
|
||||||
* \c 0 on failure.
|
* \c 0 on failure.
|
||||||
|
|
Loading…
Reference in a new issue