FIX: Correct IV length for Block Cipher Modes in doc 15/81915/2
authorMateusz Forc <m.forc@samsung.com>
Fri, 29 Jul 2016 08:13:57 +0000 (10:13 +0200)
committerMateusz Forc <m.forc@samsung.com>
Fri, 29 Jul 2016 08:16:23 +0000 (10:16 +0200)
Change-Id: Id05bb379c27ffc6d37e3911e2b21bd621aa137c6

api/yaca/yaca_types.h

index e8802c36be2d8af129f28ccef540ae9b30b53973..c675a12ab24765c165339c916548df4558447193 100755 (executable)
@@ -276,13 +276,15 @@ typedef enum {
 
        /**
         * CTR block cipher mode.
-        * 16-byte initialization vector is mandatory.
+        * 16-byte initialization vector for AES,
+        * 8-byte for other algorithms is mandatory.
         */
        YACA_BCM_CTR,
 
        /**
         * CBC block cipher mode.
-        * 16-byte initialization vector is mandatory.
+        * 16-byte initialization vector for AES,
+        * 8-byte for other algorithms is mandatory.
         */
        YACA_BCM_CBC,
 
@@ -316,25 +318,29 @@ typedef enum {
 
        /**
         * Default CFB block cipher mode.
-        * 16-byte initialization vector is mandatory.
+        * 16-byte initialization vector for AES,
+        * 8-byte for other algorithms is mandatory.
         */
        YACA_BCM_CFB,
 
        /**
         * 1 bit CFB block cipher mode.
-        * 16-byte initialization vector is mandatory.
+        * 16-byte initialization vector for AES,
+        * 8-byte for other algorithms is mandatory.
         */
        YACA_BCM_CFB1,
 
        /**
         * 8 bits CFB block cipher mode.
-        * 16-byte initialization vector is mandatory.
+        * 16-byte initialization vector for AES,
+        * 8-byte for other algorithms is mandatory.
         */
        YACA_BCM_CFB8,
 
        /**
         * OFB block cipher mode.
-        * 16-byte initialization vector is mandatory.
+        * 16-byte initialization vector for AES,
+        * 8-byte for other algorithms is mandatory.
         */
        YACA_BCM_OFB,