summaryrefslogtreecommitdiff
path: root/cipher/gost.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2014-06-06 22:48:36 +0400
committerWerner Koch <wk@gnupg.org>2014-06-28 10:47:22 +0200
commit066f068bd0bc4d8e01f1f18b6153cdc8d2c245d7 (patch)
tree05974f119ff15a72bd0a970d10d667398013e778 /cipher/gost.h
parent7aeba6c449169926076df83b01ddbfa6b41fe411 (diff)
downloadlibgcrypt-066f068bd0bc4d8e01f1f18b6153cdc8d2c245d7.tar.gz
gostr3411_94: rewrite to use u32 mathematic
* cipher/gost28147.c (_gcry_gost_enc_data): New. * cipher/gostr3411-94.c: Rewrite implementation to use u32 mathematic internally. * cipher/gost28147.c (_gcry_gost_enc_one): Remove. -- On my box (Core2 Duo, i386) this highly improves GOST R 34.11-94 speed. Before: GOSTR3411_94 | 55.04 ns/B 17.33 MiB/s - c/B After: GOSTR3411_94 | 36.70 ns/B 25.99 MiB/s - c/B Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'cipher/gost.h')
-rw-r--r--cipher/gost.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/gost.h b/cipher/gost.h
index caaf34ba..025119c9 100644
--- a/cipher/gost.h
+++ b/cipher/gost.h
@@ -26,7 +26,7 @@ typedef struct {
} GOST28147_context;
/* This is a simple interface that will be used by GOST R 34.11-94 */
-extern unsigned int _gcry_gost_enc_one (GOST28147_context *c, const byte *key,
- byte *out, byte *in, int cryptopro);
+unsigned int _gcry_gost_enc_data (GOST28147_context *c, const u32 *key,
+ u32 *o1, u32 *o2, u32 n1, u32 n2, int cryptopro);
#endif