From: Dmitry Belyavskiy Date: Tue, 11 Sep 2018 08:55:47 +0000 (+0300) Subject: Remove unused functions X-Git-Tag: v3.0.0~349 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=77b9f487ae6a97e2c71d82d2658f96adf643390d;p=openssl-gost%2Fengine.git Remove unused functions --- 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