projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added guard code to avoid issue when decoding PEM but not keeping data.
[BearSSL]
/
src
/
rsa
/
rsa_pkcs1_sig_unpad.c
diff --git
a/src/rsa/rsa_pkcs1_sig_unpad.c
b/src/rsa/rsa_pkcs1_sig_unpad.c
index
d179945
..
c8ae08f
100644
(file)
--- a/
src/rsa/rsa_pkcs1_sig_unpad.c
+++ b/
src/rsa/rsa_pkcs1_sig_unpad.c
@@
-68,7
+68,7
@@
br_rsa_pkcs1_sig_unpad(const unsigned char *sig, size_t sig_len,
/*
* Check the "00 01 FF .. FF 00" with at least eight 0xFF bytes.
/*
* Check the "00 01 FF .. FF 00" with at least eight 0xFF bytes.
- * The compar
a
ison is valid because we made sure that the signature
+ * The comparison is valid because we made sure that the signature
* is at least 11 bytes long.
*/
if (memcmp(sig, pad1, sizeof pad1) != 0) {
* is at least 11 bytes long.
*/
if (memcmp(sig, pad1, sizeof pad1) != 0) {