mirror of https://github.com/arendst/Tasmota.git
TLS fix ecdsa fingerprint
This commit is contained in:
parent
2c3785c1c6
commit
97b375fd57
|
@ -815,10 +815,9 @@ extern "C" {
|
||||||
// The tag string doesn't really matter, but it should differ depending on
|
// The tag string doesn't really matter, but it should differ depending on
|
||||||
// key type. For ECDSA it's a fixed string.
|
// key type. For ECDSA it's a fixed string.
|
||||||
sha1_update_len(&shactx, "ecdsa", 5); // tag
|
sha1_update_len(&shactx, "ecdsa", 5); // tag
|
||||||
int32_t curve = eckey.curve;
|
int32_t curve = htonl(eckey.curve);
|
||||||
sha1_update_len(&shactx, &curve, 4); // curve id as int32
|
sha1_update_len(&shactx, &curve, 4); // curve id as int32be
|
||||||
sha1_update_len(&shactx, "curve", 5); // tag2
|
sha1_update_len(&shactx, eckey.q, eckey.qlen); // public point
|
||||||
sha1_update_len(&shactx, eckey.q, eckey.qlen); // exponent
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue