mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 05:45:49 +01:00
Remove obsolete use of key policy structure in API text
This commit is contained in:
parent
1fe90fab30
commit
80b39ae753
@ -663,10 +663,8 @@
|
|||||||
* Then you may create and use a key as follows:
|
* Then you may create and use a key as follows:
|
||||||
* - Set the key usage field using #PSA_ALG_ANY_HASH, for example:
|
* - Set the key usage field using #PSA_ALG_ANY_HASH, for example:
|
||||||
* ```
|
* ```
|
||||||
* psa_key_policy_set_usage(&policy,
|
* psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_SIGN); // or VERIFY
|
||||||
* PSA_KEY_USAGE_SIGN, //or PSA_KEY_USAGE_VERIFY
|
* psa_set_key_algorithm(&attributes, PSA_xxx_SIGNATURE(PSA_ALG_ANY_HASH));
|
||||||
* PSA_xxx_SIGNATURE(PSA_ALG_ANY_HASH));
|
|
||||||
* psa_set_key_policy(handle, &policy);
|
|
||||||
* ```
|
* ```
|
||||||
* - Import or generate key material.
|
* - Import or generate key material.
|
||||||
* - Call psa_asymmetric_sign() or psa_asymmetric_verify(), passing
|
* - Call psa_asymmetric_sign() or psa_asymmetric_verify(), passing
|
||||||
|
Loading…
Reference in New Issue
Block a user