projects
/
BearSSL
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaa0d38
)
Added an explicit initialisation to a stack buffer to prevent an (harmless) uninitial...
author
Thomas Pornin
<pornin@bolet.org>
Thu, 22 Jun 2017 21:15:17 +0000
(23:15 +0200)
committer
Thomas Pornin
<pornin@bolet.org>
Thu, 22 Jun 2017 21:15:17 +0000
(23:15 +0200)
src/mac/hmac_ct.c
patch
|
blob
|
history
diff --git
a/src/mac/hmac_ct.c
b/src/mac/hmac_ct.c
index
3237885
..
e1c1d80
100644
(file)
--- a/
src/mac/hmac_ct.c
+++ b/
src/mac/hmac_ct.c
@@
-150,6
+150,7
@@
br_hmac_outCT(const br_hmac_context *ctx,
* Hash state is obtained whenever we reach a full block. This
* is the result we want if and only if u == kz.
*/
+ memset(tmp2, 0, sizeof tmp2);
for (u = 0; u < km; u ++) {
uint32_t v;
uint32_t d, e, x0, x1;