From: Dariusz Michaluk Date: Fri, 27 May 2016 13:37:13 +0000 (+0200) Subject: Remove not implemented Skipjack algorithm. X-Git-Tag: accepted/tizen/common/20160810.161523~104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19bfe2cbaa8eb0bb92dd30882c5c78e9513e5914;p=platform%2Fcore%2Fsecurity%2Fyaca.git Remove not implemented Skipjack algorithm. Change-Id: Ibc5a55bef78165344f839113361aa252749deacf --- diff --git a/api/yaca/yaca_types.h b/api/yaca/yaca_types.h index 70a097d..7af84f6 100644 --- a/api/yaca/yaca_types.h +++ b/api/yaca/yaca_types.h @@ -235,12 +235,6 @@ typedef enum { * - see #yaca_block_cipher_mode_e for details on additional parameters (mandatory). */ YACA_ENC_CAST5, - - /** - * SKIPJACK algorithm. - * - Supported key length: 80 bits. - */ - YACA_ENC_UNSAFE_SKIPJACK } yaca_enc_algo_e; /** diff --git a/src/encrypt.c b/src/encrypt.c index dc1a1b3..0edeb3e 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -218,8 +218,6 @@ static const char *encrypt_algo_to_str(yaca_enc_algo_e algo) return "rc4"; case YACA_ENC_CAST5: return "cast5"; - - case YACA_ENC_UNSAFE_SKIPJACK: // TODO: add skipjack implementation default: return NULL; } @@ -291,8 +289,6 @@ int encrypt_get_algorithm(yaca_enc_algo_e algo, case YACA_ENC_UNSAFE_RC4: ret = snprintf(cipher_name, sizeof(cipher_name), "%s", algo_name); break; - case YACA_ENC_UNSAFE_SKIPJACK: - //TODO NOT_IMPLEMENTED default: return YACA_ERROR_INVALID_ARGUMENT; }