summaryrefslogtreecommitdiff
path: root/cipher/gost.h
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2013-09-18 17:13:53 +0300
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2013-09-18 17:13:53 +0300
commit2ad7ea9cb388fd31e4b0852b68d77f599ef4adce (patch)
treecc503b96fd98a59947d5d6ffefb5a4f7eeed361b /cipher/gost.h
parentfd84b63ddd825431f557c002608a6c8d1bcc54c8 (diff)
downloadlibgcrypt-2ad7ea9cb388fd31e4b0852b68d77f599ef4adce.tar.gz
Fix encryption/decryption return type for GOST28147
* cipher/gost.h (_gcry_gost_enc_one): Change return type to 'unsigned int'. * cipher/gost28147.c (max): New macro. (gost_encrypt_block, gost_decrypt_block): Return burn stack depth. (_gcry_gost_enc_one): Return burn stack depth from gost_encrypt_block. -- Return type for block cipher functions was lately changed from 'void' to 'unsigned int' to pass burn stack depth to cipher mode code. Patch fixes gost28147 to return stack burn value. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/gost.h')
-rw-r--r--cipher/gost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/gost.h b/cipher/gost.h
index e1cf033e..42021aa9 100644
--- a/cipher/gost.h
+++ b/cipher/gost.h
@@ -27,7 +27,7 @@ typedef struct {
} GOST28147_context;
/* This is a simple interface that will be used by GOST R 34.11-94 */
-extern void _gcry_gost_enc_one (GOST28147_context *c, const byte *key,
+extern unsigned int _gcry_gost_enc_one (GOST28147_context *c, const byte *key,
byte *out, byte *in);
#endif