aes: various spelling correction in comments.
Signed-off-by: Kees Jongenburger <x8-999-github@gmx.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
diff --git a/aes/ta/aes_ta.c b/aes/ta/aes_ta.c
index 0814464..b259a01 100644
--- a/aes/ta/aes_ta.c
+++ b/aes/ta/aes_ta.c
@@ -260,13 +260,13 @@
* - reset transient object and load attribute data
* TEE_ResetTransientObject()
* TEE_PopulateTransientObject()
- * - load the key (transient object) into the cihering operation
+ * - load the key (transient object) into the ciphering operation
* TEE_SetOperationKey()
*
* TEE_SetOperationKey() requires operation to be in "initial state".
* We can use TEE_ResetOperation() to reset the operation but this
- * api cannot be used on operation with key(s) not yet set. Hence,
- * when allocating the operation handle, we prevovision a dummy key.
+ * API cannot be used on operation with key(s) not yet set. Hence,
+ * when allocating the operation handle, we load a dummy key.
* Thus, set_key sequence always reset then set key on operation.
*/
diff --git a/aes/ta/include/aes_ta.h b/aes/ta/include/aes_ta.h
index ecdddb6..a711326 100644
--- a/aes/ta/include/aes_ta.h
+++ b/aes/ta/include/aes_ta.h
@@ -63,7 +63,7 @@
/*
* TA_AES_CMD_SET_IV - reset IV
- * param[0] (memref) initial vector, size shall equal key length
+ * param[0] (memref) initial vector, size shall equal block length
* param[1] unused
* param[2] unused
* param[3] unused
@@ -71,7 +71,7 @@
#define TA_AES_CMD_SET_IV 2
/*
- * TA_AES_CMD_CIPHER - Ciphere inut buffer into output buffer
+ * TA_AES_CMD_CIPHER - Cipher input buffer into output buffer
* param[0] (memref) input buffer
* param[1] (memref) output buffer (shall be bigger than input buffer)
* param[2] unused