From 7e29b8214ec8b7d44e995f0834c43b474a8b26f2 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 5 Nov 2024 12:53:08 +0100 Subject: [PATCH] drivers: caam: Update comments in ECC driver There were some typos in comments in the code, updated them Signed-off-by: Sahil Malhotra --- core/drivers/crypto/caam/acipher/caam_ecc.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/drivers/crypto/caam/acipher/caam_ecc.c b/core/drivers/crypto/caam/acipher/caam_ecc.c index 085200e9bb7..f609fee4c06 100644 --- a/core/drivers/crypto/caam/acipher/caam_ecc.c +++ b/core/drivers/crypto/caam/acipher/caam_ecc.c @@ -89,7 +89,7 @@ static enum caam_status do_keypub_conv(struct caam_ecc_keypair *outkey, /* * Convert Crypto ECC Key to local ECC Keypair Key - * Don't convert the exponent e not used in decrytion + * Don't convert the exponent e not used in decryption * * @outkey [out] Output keypair in local format * @inkey Input key in TEE Crypto format @@ -142,6 +142,7 @@ static enum caam_ecc_curve get_caam_curve(uint32_t tee_curve) * Allocate a ECC keypair * * @key Keypair + * @type Type of ECC key * @size_bits Key size in bits */ static TEE_Result do_allocate_keypair(struct ecc_keypair *key, @@ -192,6 +193,7 @@ static TEE_Result do_allocate_keypair(struct ecc_keypair *key, * Allocate an ECC Public Key * * @key Public Key + * @type Type of ECC key * @size_bits Key size in bits */ static TEE_Result do_allocate_publickey(struct ecc_public_key *key, @@ -299,7 +301,7 @@ static TEE_Result do_gen_keypair(struct ecc_keypair *key, size_t key_size) goto out; } - /* Build the descriptor using Predifined ECC curve */ + /* Build the descriptor using Predefined ECC curve */ caam_desc_init(desc); caam_desc_add_word(desc, DESC_HEADER(0)); caam_desc_add_word(desc, PDB_PKGEN_PD1 | PDB_ECC_ECDSEL(curve)); @@ -527,7 +529,7 @@ static TEE_Result do_sign(struct drvcrypt_sign_data *sdata) caam_dmaobj_cache_push(&sign_c); - /* Build the descriptor using Predifined ECC curve */ + /* Build the descriptor using Predefined ECC curve */ caam_desc_init(desc); caam_desc_add_word(desc, DESC_HEADER(0)); caam_desc_add_word(desc, PDB_PKSIGN_PD1 | PDB_ECC_ECDSEL(curve) | @@ -710,7 +712,7 @@ static TEE_Result do_verify(struct drvcrypt_sign_data *sdata) goto out; } - /* Build the descriptor using Predifined ECC curve */ + /* Build the descriptor using Predefined ECC curve */ caam_desc_init(desc); caam_desc_add_word(desc, DESC_HEADER(0)); caam_desc_add_word(desc, PDB_PKVERIFY_PD1 | PDB_ECC_ECDSEL(curve) | @@ -830,7 +832,7 @@ static TEE_Result do_shared_secret(struct drvcrypt_secret_data *sdata) caam_dmaobj_cache_push(&secret); - /* Build the descriptor using Predifined ECC curve */ + /* Build the descriptor using Predefined ECC curve */ caam_desc_init(desc); caam_desc_add_word(desc, DESC_HEADER(0)); caam_desc_add_word(desc, PDB_SHARED_SECRET_PD1 | PDB_ECC_ECDSEL(curve) |