Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d855584b
Commit
d855584b
authored
Jun 03, 2015
by
Johny Mattsson
Browse files
Fixed off-by-one error from refactoring.
parent
06724fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/crypto/digests.c
View file @
d855584b
...
@@ -82,7 +82,7 @@ static const char hex[] = "0123456789abcdef";
...
@@ -82,7 +82,7 @@ static const char hex[] = "0123456789abcdef";
// note: supports in-place encoding
// note: supports in-place encoding
void
crypto_encode_asciihex
(
const
char
*
bin
,
size_t
binlen
,
char
*
outbuf
)
void
crypto_encode_asciihex
(
const
char
*
bin
,
size_t
binlen
,
char
*
outbuf
)
{
{
size_t
aidx
=
binlen
*
2
;
size_t
aidx
=
binlen
*
2
-
1
;
int
i
;
int
i
;
for
(
i
=
binlen
-
1
;
i
>=
0
;
--
i
)
for
(
i
=
binlen
-
1
;
i
>=
0
;
--
i
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment