Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
ac4cd362
Commit
ac4cd362
authored
Aug 14, 2013
by
Manuel Pégourié-Gonnard
Browse files
PK rsa_verify: check signature length
parent
15699380
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
library/pk_wrap.c
library/pk_wrap.c
+2
-1
No files found.
library/pk_wrap.c
View file @
ac4cd362
...
@@ -62,7 +62,8 @@ static int rsa_verify_wrap( void *ctx,
...
@@ -62,7 +62,8 @@ static int rsa_verify_wrap( void *ctx,
const
unsigned
char
*
hash
,
const
md_info_t
*
md_info
,
const
unsigned
char
*
hash
,
const
md_info_t
*
md_info
,
const
unsigned
char
*
sig
,
size_t
sig_len
)
const
unsigned
char
*
sig
,
size_t
sig_len
)
{
{
((
void
)
sig_len
);
if
(
sig_len
!=
((
rsa_context
*
)
ctx
)
->
len
)
return
(
POLARSSL_ERR_RSA_VERIFY_FAILED
);
return
(
rsa_pkcs1_verify
(
(
rsa_context
*
)
ctx
,
return
(
rsa_pkcs1_verify
(
(
rsa_context
*
)
ctx
,
RSA_PUBLIC
,
md_info
->
type
,
0
,
hash
,
sig
)
);
RSA_PUBLIC
,
md_info
->
type
,
0
,
hash
,
sig
)
);
...
...
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