diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-09-21 13:54:38 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-09-21 14:05:50 +0300 |
commit | 7409de7bc28ff8847c9d71d8c3e35e1968d59d60 (patch) | |
tree | dec988c7300af9380e3f442848aacbf02418f131 /cipher/gost28147.c | |
parent | 592c2ab3deeeccbb6d3b078ed7bf0e6627c8e1fb (diff) | |
download | libgcrypt-7409de7bc28ff8847c9d71d8c3e35e1968d59d60.tar.gz |
gostr3411_94: set better burn stack depth estimate
* cipher/gost28147.c (_gcry_gost_enc_one): Account function stack to
burn stack depth.
* cipher/gostr3411-94.c (max): New macro.
(do_hash_step, transform): Return stack burn depth.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/gost28147.c')
-rw-r--r-- | cipher/gost28147.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/gost28147.c b/cipher/gost28147.c index 862e7d66..c669148d 100644 --- a/cipher/gost28147.c +++ b/cipher/gost28147.c @@ -168,7 +168,7 @@ unsigned int _gcry_gost_enc_one (GOST28147_context *c, const byte *key, byte *out, byte *in) { gost_setkey (c, key, 32); - return gost_encrypt_block (c, out, in); + return gost_encrypt_block (c, out, in) + 5 * sizeof(void *); } static unsigned int |