]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Remove unused functions
authorDmitry Belyavskiy <beldmit@gmail.com>
Tue, 11 Sep 2018 08:55:47 +0000 (11:55 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 11 Sep 2018 08:55:47 +0000 (11:55 +0300)
gost_grasshopper_core.c
gost_grasshopper_core.h

index 83bcbc6043fdafffc5ff56deba6fe1b690fa766b..ed41459836be09ff2b8af10e5939ea3de5257d6a 100644 (file)
@@ -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
index 231af324f8530b0361c48576dc261c5b47540e7f..a5d3df6225e6bf9b520150d2fdd2ab9ae0eb9554 100644 (file)
@@ -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