mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-02 09:14:23 +01:00
Terminology: prefer "asymmetric" to "public-key"
Most of the documentation and some of the function names use "asymmetric", so use "asymmetric" everywhere. Mention "public-key" in key places to make the relevant functions easy to find if someone is looking for that. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
7668960e43
commit
6cc0a204b9
@ -672,22 +672,24 @@
|
|||||||
#define PSA_ALG_IS_AEAD(alg) \
|
#define PSA_ALG_IS_AEAD(alg) \
|
||||||
(((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_AEAD)
|
(((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_AEAD)
|
||||||
|
|
||||||
/** Whether the specified algorithm is a public-key signature algorithm.
|
/** Whether the specified algorithm is a asymmetric signature algorithm,
|
||||||
|
* also known as public-key signature algorithm.
|
||||||
*
|
*
|
||||||
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
||||||
*
|
*
|
||||||
* \return 1 if \p alg is a public-key signature algorithm, 0 otherwise.
|
* \return 1 if \p alg is an asymmetric signature algorithm, 0 otherwise.
|
||||||
* This macro may return either 0 or 1 if \p alg is not a supported
|
* This macro may return either 0 or 1 if \p alg is not a supported
|
||||||
* algorithm identifier.
|
* algorithm identifier.
|
||||||
*/
|
*/
|
||||||
#define PSA_ALG_IS_SIGN(alg) \
|
#define PSA_ALG_IS_SIGN(alg) \
|
||||||
(((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_SIGN)
|
(((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_SIGN)
|
||||||
|
|
||||||
/** Whether the specified algorithm is a public-key encryption algorithm.
|
/** Whether the specified algorithm is an asymmetric encryption algorithm,
|
||||||
|
* also known as public-key encryption algorithm.
|
||||||
*
|
*
|
||||||
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
||||||
*
|
*
|
||||||
* \return 1 if \p alg is a public-key encryption algorithm, 0 otherwise.
|
* \return 1 if \p alg is an asymmetric encryption algorithm, 0 otherwise.
|
||||||
* This macro may return either 0 or 1 if \p alg is not a supported
|
* This macro may return either 0 or 1 if \p alg is not a supported
|
||||||
* algorithm identifier.
|
* algorithm identifier.
|
||||||
*/
|
*/
|
||||||
@ -1205,9 +1207,9 @@
|
|||||||
|
|
||||||
/** Whether the specified algorithm is a hash-and-sign algorithm.
|
/** Whether the specified algorithm is a hash-and-sign algorithm.
|
||||||
*
|
*
|
||||||
* Hash-and-sign algorithms are public-key signature algorithms structured
|
* Hash-and-sign algorithms are asymmetric (public-key) signature algorithms
|
||||||
* in two parts: first the calculation of a hash in a way that does not
|
* structured in two parts: first the calculation of a hash in a way that
|
||||||
* depend on the key, then the calculation of a signature from the
|
* does not depend on the key, then the calculation of a signature from the
|
||||||
* hash value and the key.
|
* hash value and the key.
|
||||||
*
|
*
|
||||||
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
||||||
|
Loading…
Reference in New Issue
Block a user