Skip to content

Commit 862d06a

Browse files
committed
Progressed understanding of outstanding issues
1 parent 81ed688 commit 862d06a

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

doc/crypto/api/keys/management.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,23 +180,20 @@ Implementations are permitted to define additional key formats and options.
180180
.. summary::
181181
The *OneAsymmetricKey* key format for RSA and elliptic curve key-pairs.
182182

183-
.. todo:: Decide if this format should be named ``PSA_KEY_FORMAT_PKCS8`` instead.
183+
.. todo:: Should this be named ``PSA_KEY_FORMAT_PKCS8`` instead?
184184

185-
Or if this should be a synonym?
186-
Note that OneAsymmetricKey is identical to PrivateKeyInfo (PKCS#8) if version==1, but extends it when version==2.
185+
Technically I think not: PKCS#8 defines both *PrivateKeyInfo* and *EncryptedPrivateKeyInfo*, OneAsymmetricKey (version 1) is synonymous with PrivateKeyInfo.
187186

188-
OneAsymmetricKey is defined by :RFC-title:`5958`.
187+
Perhaps ``PSA_KEY_FORMAT_PRIVATE_KEY_INFO`` could be a synonym of OneAsymmetricKey?
188+
189+
OneAsymmetricKey is defined by :RFC-title:`5958#2`.
189190
OneAsymmetricKey is an update to the PKCS#8 *PrivateKeyInfo* format defined by :RFC-title:`5208`.
190191
Encoding of specific key types is defined in other documents:
191192

192193
* :RFC-title:`8017` defines the encoding of RSA keys.
193194
* :RFC-title:`5915` defines the encoding of Weierstrass elliptic curve keys.
194195
* :RFC-title:`8410` defines the encoding of Montgomery and Edwards elliptic curve keys.
195196

196-
.. todo:: OneAsymmetricKey also supports encryption and authentication of the key data.
197-
198-
Provide the necessary references, and link to the related key wrapping/unwrapping APIs.
199-
200197
When exporting a key in this format:
201198

202199
* The public key is always included in the output.
@@ -221,6 +218,11 @@ Implementations are permitted to define additional key formats and options.
221218
* `PSA_KEY_FORMAT_OPTION_EC_POINT_COMPRESSED` (for Weierstrass elliptic curve keys)
222219
* `PSA_KEY_FORMAT_OPTION_SPECIFIED_EC_DOMAIN` (for Weierstrass elliptic curve keys)
223220

221+
.. todo:: RFC 5958/PKCS#8 also supports encryption and authentication of the key data.
222+
223+
This would either be a *EncryptedPrivateKeyInfo* structure (PKCS#8) or one of the CMS content types.
224+
This requires one or more additional format specifiers.
225+
224226
.. typedef:: uint32_t psa_key_format_option_t
225227

226228
.. summary::

0 commit comments

Comments
 (0)