summaryrefslogtreecommitdiffstats
path: root/crypto/ecc.h
diff options
context:
space:
mode:
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>2017-05-25 03:18:03 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-10 00:04:25 -0400
commitc0ca1215dc92ee6a0f975c95a92fb7f9fb31e9e1 (patch)
tree28e534fd6bdd1c17c93b19b945d531f0bffcdbdc /crypto/ecc.h
parentee0db78d62d81dcbfba7c3e4d523ecae9d7b7c08 (diff)
crypto: kpp, (ec)dh - fix typos
While here, add missing argument description (ndigits). Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecc.h')
-rw-r--r--crypto/ecc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/ecc.h b/crypto/ecc.h
index 663d598c7406..37f438500255 100644
--- a/crypto/ecc.h
+++ b/crypto/ecc.h
@@ -34,9 +34,9 @@
34 * ecc_is_key_valid() - Validate a given ECDH private key 34 * ecc_is_key_valid() - Validate a given ECDH private key
35 * 35 *
36 * @curve_id: id representing the curve to use 36 * @curve_id: id representing the curve to use
37 * @ndigits: curve number of digits 37 * @ndigits: curve's number of digits
38 * @private_key: private key to be used for the given curve 38 * @private_key: private key to be used for the given curve
39 * @private_key_len: private key len 39 * @private_key_len: private key length
40 * 40 *
41 * Returns 0 if the key is acceptable, a negative value otherwise 41 * Returns 0 if the key is acceptable, a negative value otherwise
42 */ 42 */
@@ -47,9 +47,10 @@ int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
47 * ecdh_make_pub_key() - Compute an ECC public key 47 * ecdh_make_pub_key() - Compute an ECC public key
48 * 48 *
49 * @curve_id: id representing the curve to use 49 * @curve_id: id representing the curve to use
50 * @ndigits: curve's number of digits
50 * @private_key: pregenerated private key for the given curve 51 * @private_key: pregenerated private key for the given curve
51 * @private_key_len: length of private_key 52 * @private_key_len: length of private_key
52 * @public_key: buffer for storing the public key generated 53 * @public_key: buffer for storing the generated public key
53 * @public_key_len: length of the public_key buffer 54 * @public_key_len: length of the public_key buffer
54 * 55 *
55 * Returns 0 if the public key was generated successfully, a negative value 56 * Returns 0 if the public key was generated successfully, a negative value
@@ -63,6 +64,7 @@ int ecdh_make_pub_key(const unsigned int curve_id, unsigned int ndigits,
63 * crypto_ecdh_shared_secret() - Compute a shared secret 64 * crypto_ecdh_shared_secret() - Compute a shared secret
64 * 65 *
65 * @curve_id: id representing the curve to use 66 * @curve_id: id representing the curve to use
67 * @ndigits: curve's number of digits
66 * @private_key: private key of part A 68 * @private_key: private key of part A
67 * @private_key_len: length of private_key 69 * @private_key_len: length of private_key
68 * @public_key: public key of counterpart B 70 * @public_key: public key of counterpart B