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/policy.rst
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -267,6 +267,28 @@ The usage flags are encoded in a bitmask, which has the type `psa_key_usage_t`.
267
267
268
268
If this flag is present on all keys used in calls to `psa_key_derivation_input_key()` for a key-derivation operation, then it permits calling `psa_key_derivation_verify_bytes()` or `psa_key_derivation_verify_key()` at the end of the operation.
269
269
270
+
.. macro:: PSA_KEY_USAGE_WRAP
271
+
:definition: ((psa_key_usage_t)0x00010000)
272
+
273
+
.. summary::
274
+
Permission to wrap another key with the key.
275
+
276
+
This flag is required to use the key in a key-wrapping operation.
277
+
The flag must be present on keys used with the following APIs:
278
+
279
+
* `psa_wrap_key()`
280
+
281
+
.. macro:: PSA_KEY_USAGE_UNWRAP
282
+
:definition: ((psa_key_usage_t)0x00020000)
283
+
284
+
.. summary::
285
+
Permission to unwrap another key with the key.
286
+
287
+
This flag is required to use the key in a key-unwrapping operation.
288
+
The flag must be present on keys used with the following APIs:
Copy file name to clipboardExpand all lines: doc/crypto/api/ops/algorithms.rst
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,20 @@ Algorithm categories
125
125
126
126
See :secref:`aead-algorithms` for a list of defined AEAD algorithms.
127
127
128
+
.. macro:: PSA_ALG_IS_KEY_WRAP
129
+
:definition: /* specification-defined value */
130
+
131
+
.. summary::
132
+
Whether the specified algorithm is a key wrapping algorithm.
133
+
134
+
.. param:: alg
135
+
An algorithm identifier: a value of type `psa_algorithm_t`.
136
+
137
+
.. return::
138
+
``1`` if ``alg`` is a key-wrapping algorithm, ``0`` otherwise. This macro can return either ``0`` or ``1`` if ``alg`` is not a supported algorithm identifier.
139
+
140
+
See :secref:`key-wrapping-algorithms` for a list of defined key-wrapping algorithms.
0 commit comments