From 77b9f487ae6a97e2c71d82d2658f96adf643390d Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Tue, 11 Sep 2018 11:55:47 +0300 Subject: [PATCH] Remove unused functions --- gost_grasshopper_core.c | 14 -------------- gost_grasshopper_core.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/gost_grasshopper_core.c b/gost_grasshopper_core.c index 83bcbc6..ed41459 100644 --- a/gost_grasshopper_core.c +++ b/gost_grasshopper_core.c @@ -114,13 +114,6 @@ void grasshopper_encrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w1 grasshopper_append128(target, &subkeys->k[9]); } -void grasshopper_encrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, - grasshopper_w128_t* target) { - grasshopper_w128_t buffer; - grasshopper_encrypt_block(subkeys, source, target, &buffer); - grasshopper_zero128(&buffer); -} - void grasshopper_decrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target, grasshopper_w128_t* buffer) { int i; @@ -138,13 +131,6 @@ void grasshopper_decrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w1 grasshopper_append128(target, &subkeys->k[0]); } -void grasshopper_decrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, - grasshopper_w128_t* target) { - grasshopper_w128_t buffer; - grasshopper_decrypt_block(subkeys, source, target, &buffer); - grasshopper_zero128(&buffer); -} - #if defined(__cplusplus) } #endif diff --git a/gost_grasshopper_core.h b/gost_grasshopper_core.h index 231af32..a5d3df6 100644 --- a/gost_grasshopper_core.h +++ b/gost_grasshopper_core.h @@ -23,9 +23,6 @@ extern void grasshopper_set_decrypt_key(grasshopper_round_keys_t* subkeys, const extern void grasshopper_encrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target, grasshopper_w128_t* buffer); extern void grasshopper_decrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target, grasshopper_w128_t* buffer); -extern void grasshopper_encrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target); -extern void grasshopper_decrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target); - #if defined(__cplusplus) } #endif -- 2.39.5