More precise reference for the RSA public key format

This commit is contained in:
Gilles Peskine 2018-03-20 17:52:58 +01:00 committed by itayzafrir
parent 7e19853722
commit 971f7064e9

View File

@ -428,7 +428,7 @@ psa_status_t psa_get_key_information(psa_key_slot_t key,
* is the non-encrypted DER representation defined by PKCS\#8 (RFC 5208)
* as PrivateKeyInfo.
* - For RSA public keys (#PSA_KEY_TYPE_RSA_PUBLIC_KEY), the format
* is the DER representation defined by X.509.
* is the DER representation defined by RFC 5280 as SubjectPublicKeyInfo.
*
* \param key Slot whose content is to be exported. This must
* be an occupied key slot.
@ -458,7 +458,8 @@ psa_status_t psa_export_key(psa_key_slot_t key,
* For standard key types, the output format is as follows:
*
* - For RSA keys (#PSA_KEY_TYPE_RSA_KEYPAIR or #PSA_KEY_TYPE_RSA_PUBLIC_KEY),
* the format is the DER representation defined by X.509.
* is the DER representation of the public key defined by RFC 5280
* as SubjectPublicKeyInfo.
*
* \param key Slot whose content is to be exported. This must
* be an occupied key slot.