Skip to content

Commit 6c8d19e

Browse files
committed
FIX: ECDHE_ECDSA verification (ec public key may start with a zero byte)
1 parent a24733d commit 6c8d19e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mezz/prot-tls.reb

+3-2
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ suported-cipher-suites: decode-cipher-suites suported-cipher-suites-binary: rejo
440440
#{C027} ;TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
441441
#{C014} ;TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
442442
#{C013} ;TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
443-
;@@ #{C00A} ;TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA ; some issue!
444-
;@@ #{C009} ;TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA ; some issue!
443+
#{C00A} ;TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
444+
#{C009} ;TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
445445
;#{006A} ;TLS_DHE_DSS_WITH_AES_256_CBC_SHA256
446446
#{006B} ;TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
447447
#{0067} ;TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
@@ -1689,6 +1689,7 @@ TLS-parse-handshake-message: function [
16891689
ecPublicKey [
16901690
ctx/pub-key: key/3
16911691
ctx/pub-exp: key/2 ;curve name
1692+
if 0 = ctx/pub-key/1 [next ctx/pub-key]
16921693
]
16931694
rsaEncryption [
16941695
ctx/pub-key: key/2/1

0 commit comments

Comments
 (0)