Skip to content

Commit 5579971

Browse files
psa_generator_import_key (ECC): minor corrections
1 parent 2de2c0d commit 5579971

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/psa/crypto.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,10 +2941,10 @@ psa_status_t psa_generator_read(psa_crypto_generator_t *generator,
29412941
* in big-endian order. Discard it if it is not in the range
29422942
* [0, *N* - 2] where *N* is the boundary of the private key domain
29432943
* (the prime *p* for Diffie-Hellman, the subprime *q* for DSA,
2944-
* or the order of the curve's coordinate field for ECC).
2944+
* or the order of the curve's base point for ECC).
29452945
* Add 1 to the resulting integer and use this as the private key *x*.
2946-
* This is the method described as
2947-
* "key-pair generation by testing candidates"
2946+
* This method allows compliance to NIST standards, specifically
2947+
* the methods titled "key-pair generation by testing candidates"
29482948
* in NIST SP 800-56A §5.6.1.1.4 for Diffie-Hellman,
29492949
* in FIPS 186-4 §B.1.2 for DSA, and
29502950
* in NIST SP 800-56A §5.6.1.2.2 or

0 commit comments

Comments
 (0)