projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added support for client certificates (both client-side and server-side, but still...
[BearSSL]
/
src
/
ec
/
ecdsa_i31_sign_raw.c
diff --git
a/src/ec/ecdsa_i31_sign_raw.c
b/src/ec/ecdsa_i31_sign_raw.c
index
3849545
..
df20c24
100644
(file)
--- a/
src/ec/ecdsa_i31_sign_raw.c
+++ b/
src/ec/ecdsa_i31_sign_raw.c
@@
-50,6
+50,13
@@
br_ecdsa_i31_sign_raw(const br_ec_impl *impl,
uint32_t n0i, ctl;
br_hmac_drbg_context drbg;
+ /*
+ * If the curve is not supported, then exit with an error.
+ */
+ if (((impl->supported_curves >> sk->curve) & 1) == 0) {
+ return 0;
+ }
+
/*
* Get the curve parameters (generator and order).
*/