From bac18777652e6585c78392b02970a07644c68f30 Mon Sep 17 00:00:00 2001 From: Dariusz Michaluk Date: Tue, 17 May 2016 10:59:43 +0200 Subject: [PATCH] Remove OCB block cipher mode. Change-Id: I676b80d4491ad70b6bbc0ef4ade80a3df8ca649b --- api/yaca/types.h | 6 ------ src/encrypt.c | 2 -- todo.txt | 1 + 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/api/yaca/types.h b/api/yaca/types.h index d025a15..1b5c1cc 100644 --- a/api/yaca/types.h +++ b/api/yaca/types.h @@ -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 diff --git a/src/encrypt.c b/src/encrypt.c index 784ac35..86572e2 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -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: diff --git a/todo.txt b/todo.txt index a13943d..3ed8333 100644 --- 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 -- 2.7.4