mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-04 11:09:00 -04:00
Update mbedtls_pk_wrap_as_opaque() public documentation for RSA & RSA-PSS
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
999930e447
commit
23143dca2a
@ -917,16 +917,20 @@ int mbedtls_pk_load_file( const char *path, unsigned char **buf, size_t *n );
|
|||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
/**
|
/**
|
||||||
* \brief Turn an EC key into an opaque one.
|
* \brief Turn an EC or RSA key into an opaque one.
|
||||||
*
|
*
|
||||||
* \warning This is a temporary utility function for tests. It might
|
* \warning This is a temporary utility function for tests. It might
|
||||||
* change or be removed at any time without notice.
|
* change or be removed at any time without notice.
|
||||||
*
|
*
|
||||||
* \note Only ECDSA keys are supported so far. Signing with the
|
* \note ECDSA & RSA keys are supported.
|
||||||
* specified hash & ECDH key agreement derivation operation
|
* For both key types, signing with the specified hash
|
||||||
* are the only allowed use of that key.
|
* is the only allowed use of that key with PK API.
|
||||||
|
* The RSA key supports RSA-PSS signing with the specified
|
||||||
|
* hash with the PK EXT API.
|
||||||
|
* In addition, the ECDSA key is also allowed for ECDH key
|
||||||
|
* agreement derivation operation using the PSA API.
|
||||||
*
|
*
|
||||||
* \param pk Input: the EC key to import to a PSA key.
|
* \param pk Input: the EC or RSA key to import to a PSA key.
|
||||||
* Output: a PK context wrapping that PSA key.
|
* Output: a PK context wrapping that PSA key.
|
||||||
* \param key Output: a PSA key identifier.
|
* \param key Output: a PSA key identifier.
|
||||||
* It's the caller's responsibility to call
|
* It's the caller's responsibility to call
|
||||||
|
Loading…
x
Reference in New Issue
Block a user