projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed comment.
[BearSSL]
/
src
/
rsa
/
rsa_i15_modulus.c
diff --git
a/src/rsa/rsa_i15_modulus.c
b/src/rsa/rsa_i15_modulus.c
index
d61c794
..
16458c3
100644
(file)
--- a/
src/rsa/rsa_i15_modulus.c
+++ b/
src/rsa/rsa_i15_modulus.c
@@
-28,7
+28,7
@@
size_t
br_rsa_i15_compute_modulus(void *n, const br_rsa_private_key *sk)
{
size_t
br_rsa_i15_compute_modulus(void *n, const br_rsa_private_key *sk)
{
- uint16_t tmp[
2 * ((BR_MAX_RSA_SIZE
+ 14) / 15) + 5];
+ uint16_t tmp[
4 * (((BR_MAX_RSA_SIZE / 2)
+ 14) / 15) + 5];
uint16_t *t, *p, *q;
const unsigned char *pbuf, *qbuf;
size_t nlen, plen, qlen, tlen;
uint16_t *t, *p, *q;
const unsigned char *pbuf, *qbuf;
size_t nlen, plen, qlen, tlen;