Remove OCB block cipher mode. 06/69906/4
authorDariusz Michaluk <d.michaluk@samsung.com>
Tue, 17 May 2016 08:59:43 +0000 (10:59 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Thu, 19 May 2016 07:14:11 +0000 (09:14 +0200)
Change-Id: I676b80d4491ad70b6bbc0ef4ade80a3df8ca649b

api/yaca/types.h
src/encrypt.c
todo.txt

index d025a15..1b5c1cc 100644 (file)
@@ -144,7 +144,6 @@ typedef enum {
         * #YACA_BCM_GCM,
         * #YACA_BCM_CCM,
         * #YACA_BCM_CTR,
-        * #YACA_BCM_OCB
         * - see #yaca_block_cipher_mode_e for details on additional parameters (mandatory).
         */
        YACA_ENC_AES = 0,
@@ -298,11 +297,6 @@ typedef enum {
        YACA_BCM_OFB,
 
        /**
-        * Offest Codebook Mode (AES)
-        */
-       YACA_BCM_OCB,
-
-       /**
         * CBC-MAC Mode (AES).
         * Supported parameters:
         * - #YACA_PARAM_CCM_TAG = CCM tag
index 784ac35..86572e2 100644 (file)
@@ -141,8 +141,6 @@ static const char *bcm_to_str(yaca_block_cipher_mode_e bcm)
                return "cfb8";
        case YACA_BCM_OFB:
                return "ofb";
-       case YACA_BCM_OCB:
-               return "ocb";
        case YACA_BCM_CCM:
                return "ccm";
        default:
index a13943d..3ed8333 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -2,3 +2,4 @@ Global:
 - Rethink and possibly add verification of output buffer lengths.
   In other words check whether the user won't cause a buffer overflow.
 - Importing/exporting encrypted (passphrased) RSA keys
+- Support for OCB mode was added in OpenSSL 1.1.0