Update an obsolete use of psa_import_key in documentation

psa_import_key now takes an attribute structure, not a type.
This commit is contained in:
Gilles Peskine 2019-05-15 19:50:17 +02:00
parent 98dd779eb5
commit 806051f17e

View file

@ -3294,10 +3294,10 @@ psa_status_t psa_key_derivation_input_key(psa_crypto_generator_t *generator,
* public key type corresponding to the type of * public key type corresponding to the type of
* private_key. That is, this function performs the * private_key. That is, this function performs the
* equivalent of * equivalent of
* #psa_import_key(`internal_public_key_handle`, * #psa_import_key(...,
* #PSA_KEY_TYPE_PUBLIC_KEY_OF_KEYPAIR(`private_key_type`),
* `peer_key`, `peer_key_length`) where * `peer_key`, `peer_key_length`) where
* `private_key_type` is the type of `private_key`. * with key attributes indicating the public key
* type corresponding to the type of `private_key`.
* For example, for EC keys, this means that peer_key * For example, for EC keys, this means that peer_key
* is interpreted as a point on the curve that the * is interpreted as a point on the curve that the
* private key is on. The standard formats for public * private key is on. The standard formats for public