aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2023-01-24 15:57:24 +0200
committerMatias Elo <matias.elo@nokia.com>2023-02-08 08:35:55 +0200
commitdbc552e8b45b645d428b7f274946538bbb449d04 (patch)
tree8be70ceea8ed3cd4f7549a4b062fa955ed0d9287 /include
parent45198e57cdddb07987e2a9c4479f93230e30b20f (diff)
api: crypto: fix EIA2 IV length in API text
EIA2 uses 64-bit IV, not 128-bit as mentioned in the current API text. Fix the remark about IV length and fix also a couple of small typos. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/spec/crypto_types.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/include/odp/api/spec/crypto_types.h b/include/odp/api/spec/crypto_types.h
index 01947c532..b581f451e 100644
--- a/include/odp/api/spec/crypto_types.h
+++ b/include/odp/api/spec/crypto_types.h
@@ -134,7 +134,7 @@ typedef enum {
*
* SNOW 3G-based UEA2 algorithm (also known as 128-EEA1).
*
- * IV (128 bit) should be formatted according to the ETSI/SAGE
+ * IV (128 bits) should be formatted according to the ETSI/SAGE
* UEA2 & UIA2 specification:
* COUNT || BEARER || DIRECTION || 0...0 ||
* COUNT || BEARER || DIRECTION || 0...0 ||
@@ -145,10 +145,9 @@ typedef enum {
*
* AES-CTR-based 128-EEA2 algorithm.
*
- * IV (128 bit) should be formatted according to the ETSI/SAGE
- * 128-EA2 & 128-EIA2 specification:
- * COUNT || BEARER ||
- * DIRECTION || 0....0
+ * IV (128 bits) should be formatted according to the ETSI/SAGE
+ * 128-EAA2 & 128-EIA2 specification:
+ * COUNT || BEARER || DIRECTION || 0....0
*/
ODP_CIPHER_ALG_AES_EEA2,
@@ -156,7 +155,7 @@ typedef enum {
*
* 128-EEA3/128-NEA3 algorithm when key length is 128 bits.
*
- * IV (128 bit) should be formatted according to the ETSI/SAGE
+ * IV (128 bits) should be formatted according to the ETSI/SAGE
* 128-EEA3 & 128-EIA3 specification:
* COUNT || BEARER || DIRECTION || 0...0 ||
* COUNT || BEARER || DIRECTION || 0...0 ||
@@ -292,7 +291,7 @@ typedef enum {
/** Integrity UIA2 algorithm (128-EIA1)
*
* SNOW 3G-based UIA2 algorithm (also known as 128-EIA1).
- * IV (128 bit) should be formatted according to the ETSI/SAGE
+ * IV (128 bits) should be formatted according to the ETSI/SAGE
* UEA2 & UIA2 specification:
* COUNT || FRESH ||
* DIRECTION XOR COUNT0 || COUNT1 .. COUNT31 ||
@@ -304,10 +303,9 @@ typedef enum {
*
* AES_CMAC-based 128-EIA2 algorithm.
*
- * IV (128 bit) should be formatted according to the ETSI/SAGE
- * 128-EA2 & 128-EIA2 specification:
- * COUNT || BEARER ||
- * DIRECTION || 0....0
+ * IV (64 bits) should be formatted according to the ETSI/SAGE
+ * 128-EEA2 & 128-EIA2 specification:
+ * COUNT || BEARER || DIRECTION || 0....0
*/
ODP_AUTH_ALG_AES_EIA2,
@@ -315,8 +313,8 @@ typedef enum {
*
* 128-EIA3/128-NIA3 algorithm when key length is 128 bits.
*
- * IV (128 bit) should be formatted according to the ETSI/SAGE
- * 128-EA3 & 128-EIA2 specification:
+ * IV (128 bits) should be formatted according to the ETSI/SAGE
+ * 128-EEA3 & 128-EIA2 specification:
* COUNT || BEARER ||
* DIRECTION XOR COUNT0 || COUNT1 .. COUNT31 ||
* BEARER || 0...0 || DIRECTION || 0...0