You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/crypto/api/keys/management.rst
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,23 +180,20 @@ Implementations are permitted to define additional key formats and options.
180
180
.. summary::
181
181
The *OneAsymmetricKey* key format for RSA and elliptic curve key-pairs.
182
182
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?
184
184
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.
187
186
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`.
189
190
OneAsymmetricKey is an update to the PKCS#8 *PrivateKeyInfo* format defined by :RFC-title:`5208`.
190
191
Encoding of specific key types is defined in other documents:
191
192
192
193
* :RFC-title:`8017` defines the encoding of RSA keys.
193
194
* :RFC-title:`5915` defines the encoding of Weierstrass elliptic curve keys.
194
195
* :RFC-title:`8410` defines the encoding of Montgomery and Edwards elliptic curve keys.
195
196
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
-
200
197
When exporting a key in this format:
201
198
202
199
* The public key is always included in the output.
@@ -221,6 +218,11 @@ Implementations are permitted to define additional key formats and options.
0 commit comments