ChangeLog 172 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401
  1. mbed TLS ChangeLog (Sorted per branch, date)
  2. = mbed TLS 2.16.5 branch released 2020-02-20
  3. Security
  4. * Fix potential memory overread when performing an ECDSA signature
  5. operation. The overread only happens with cryptographically low
  6. probability (of the order of 2^-n where n is the bitsize of the curve)
  7. unless the RNG is broken, and could result in information disclosure or
  8. denial of service (application crash or extra resource consumption).
  9. Found by Auke Zeilstra and Peter Schwabe, using static analysis.
  10. * To avoid a side channel vulnerability when parsing an RSA private key,
  11. read all the CRT parameters from the DER structure rather than
  12. reconstructing them. Found by Alejandro Cabrera Aldaya and Billy Bob
  13. Brumley. Reported and fix contributed by Jack Lloyd.
  14. ARMmbed/mbed-crypto#352
  15. Bugfix
  16. * Fix an unchecked call to mbedtls_md() in the x509write module.
  17. * Fix a bug in mbedtls_pk_parse_key() that would cause it to accept some
  18. RSA keys that would later be rejected by functions expecting private
  19. keys. Found by Catena cyber using oss-fuzz (issue 20467).
  20. * Fix a bug in mbedtls_pk_parse_key() that would cause it to accept some
  21. RSA keys with invalid values by silently fixing those values.
  22. = mbed TLS 2.16.4 branch released 2020-01-15
  23. Security
  24. * Fix side channel vulnerability in ECDSA. Our bignum implementation is not
  25. constant time/constant trace, so side channel attacks can retrieve the
  26. blinded value, factor it (as it is smaller than RSA keys and not guaranteed
  27. to have only large prime factors), and then, by brute force, recover the
  28. key. Reported by Alejandro Cabrera Aldaya and Billy Brumley.
  29. * Zeroize local variables in mbedtls_internal_aes_encrypt() and
  30. mbedtls_internal_aes_decrypt() before exiting the function. The value of
  31. these variables can be used to recover the last round key. To follow best
  32. practice and to limit the impact of buffer overread vulnerabilities (like
  33. Heartbleed) we need to zeroize them before exiting the function.
  34. Issue reported by Tuba Yavuz, Farhaan Fowze, Ken (Yihang) Bai,
  35. Grant Hernandez, and Kevin Butler (University of Florida) and
  36. Dave Tian (Purdue University).
  37. * Fix side channel vulnerability in ECDSA key generation. Obtaining precise
  38. timings on the comparison in the key generation enabled the attacker to
  39. learn leading bits of the ephemeral key used during ECDSA signatures and to
  40. recover the private key. Reported by Jeremy Dubeuf.
  41. * Catch failure of AES functions in mbedtls_ctr_drbg_random(). Uncaught
  42. failures could happen with alternative implementations of AES. Bug
  43. reported and fix proposed by Johan Uppman Bruce and Christoffer Lauri,
  44. Sectra.
  45. Bugfix
  46. * Remove redundant line for getting the bitlen of a bignum, since the variable
  47. holding the returned value is overwritten a line after.
  48. Found by irwir in #2377.
  49. * Support mbedtls_hmac_drbg_set_entropy_len() and
  50. mbedtls_ctr_drbg_set_entropy_len() before the DRBG is seeded. Before,
  51. the initial seeding always reset the entropy length to the compile-time
  52. default.
  53. Changes
  54. * Add unit tests for AES-GCM when called through mbedtls_cipher_auth_xxx()
  55. from the cipher abstraction layer. Fixes #2198.
  56. * Clarify how the interface of the CTR_DRBG and HMAC modules relates to
  57. NIST SP 800-90A. In particular CTR_DRBG requires an explicit nonce
  58. to achieve a 256-bit strength if MBEDTLS_ENTROPY_FORCE_SHA256 is set.
  59. = mbed TLS 2.16.3 branch released 2019-09-06
  60. Security
  61. * Fix a missing error detection in ECJPAKE. This could have caused a
  62. predictable shared secret if a hardware accelerator failed and the other
  63. side of the key exchange had a similar bug.
  64. * The deterministic ECDSA calculation reused the scheme's HMAC-DRBG to
  65. implement blinding. Because of this for the same key and message the same
  66. blinding value was generated. This reduced the effectiveness of the
  67. countermeasure and leaked information about the private key through side
  68. channels. Reported by Jack Lloyd.
  69. * When writing a private EC key, use a constant size for the private
  70. value, as specified in RFC 5915. Previously, the value was written
  71. as an ASN.1 INTEGER, which caused the size of the key to leak
  72. about 1 bit of information on average and could cause the value to be
  73. 1 byte too large for the output buffer.
  74. API Changes
  75. * The new function mbedtls_ecdsa_sign_det_ext() is similar to
  76. mbedtls_ecdsa_sign_det() but allows passing an external RNG for the
  77. purpose of blinding.
  78. Bugfix
  79. * Fix to allow building test suites with any warning that detects unused
  80. functions. Fixes #1628.
  81. * Fix typo in net_would_block(). Fixes #528 reported by github-monoculture.
  82. * Remove redundant include file in timing.c. Fixes #2640 reported by irwir.
  83. * Fix Visual Studio Release x64 build configuration by inheriting
  84. PlatformToolset from the project configuration. Fixes #1430 reported by
  85. irwir.
  86. * Enable Suite B with subset of ECP curves. Make sure the code compiles even
  87. if some curves are not defined. Fixes #1591 reported by dbedev.
  88. * Fix misuse of signed arithmetic in the HAVEGE module. #2598
  89. * Update test certificates that were about to expire. Reported by
  90. Bernhard M. Wiedemann in #2357.
  91. * Fix the build on ARMv5TE in ARM mode to not use assembly instructions
  92. that are only available in Thumb mode. Fix contributed by Aurelien Jarno
  93. in #2169.
  94. * Fix undefined memset(NULL) call in test_suite_nist_kw.
  95. * Make NV seed test support MBEDTLS_ENTROPY_FORCE_SHA256.
  96. * Fix propagation of restart contexts in restartable EC operations.
  97. This could previously lead to segmentation faults in builds using an
  98. address-sanitizer and enabling but not using MBEDTLS_ECP_RESTARTABLE.
  99. * Fix memory leak in in mpi_miller_rabin(). Contributed by
  100. Jens Wiklander <jens.wiklander@linaro.org> in #2363
  101. * Improve code clarity in x509_crt module, removing false-positive
  102. uninitialized variable warnings on some recent toolchains (GCC8, etc).
  103. Discovered and fixed by Andy Gross (Linaro), #2392.
  104. * Zero length buffer check for undefined behavior in
  105. mbedtls_platform_zeroize(). Fixes ARMmbed/mbed-crypto#49.
  106. * Fix bug in endianness conversion in bignum module. This lead to
  107. functionally incorrect code on bigendian systems which don't have
  108. __BYTE_ORDER__ defined. Reported by Brendan Shanks. Fixes #2622.
  109. Changes
  110. * Make it easier to define MBEDTLS_PARAM_FAILED as assert (which config.h
  111. suggests). #2671
  112. * Make `make clean` clean all programs always. Fixes #1862.
  113. = mbed TLS 2.16.2 branch released 2019-06-11
  114. Security
  115. * Make mbedtls_ecdh_get_params return an error if the second key
  116. belongs to a different group from the first. Before, if an application
  117. passed keys that belonged to different group, the first key's data was
  118. interpreted according to the second group, which could lead to either
  119. an error or a meaningless output from mbedtls_ecdh_get_params. In the
  120. latter case, this could expose at most 5 bits of the private key.
  121. Bugfix
  122. * Server's RSA certificate in certs.c was SHA-1 signed. In the default
  123. mbedTLS configuration only SHA-2 signed certificates are accepted.
  124. This certificate is used in the demo server programs, which lead the
  125. client programs to fail at the peer's certificate verification
  126. due to an unacceptable hash signature. The certificate has been
  127. updated to one that is SHA-256 signed. Fix contributed by
  128. Illya Gerasymchuk.
  129. * Fix private key DER output in the key_app_writer example. File contents
  130. were shifted by one byte, creating an invalid ASN.1 tag. Fixed by
  131. Christian Walther in #2239.
  132. * Fix potential memory leak in X.509 self test. Found and fixed by
  133. Junhwan Park, #2106.
  134. * Reduce stack usage of hkdf tests. Fixes #2195.
  135. * Fix 1-byte buffer overflow in mbedtls_mpi_write_string() when
  136. used with negative inputs. Found by Guido Vranken in #2404. Credit to
  137. OSS-Fuzz.
  138. * Fix bugs in the AEAD test suite which would be exposed by ciphers which
  139. either used both encrypt and decrypt key schedules, or which perform padding.
  140. GCM and CCM were not affected. Fixed by Jack Lloyd.
  141. * Fix incorrect default port number in ssl_mail_client example's usage.
  142. Found and fixed by irwir. #2337
  143. * Add missing parentheses around parameters in the definition of the
  144. public macro MBEDTLS_X509_ID_FLAG. This could lead to invalid evaluation
  145. in case operators binding less strongly than subtraction were used
  146. for the parameter.
  147. * Add a check for MBEDTLS_X509_CRL_PARSE_C in ssl_server2, guarding the crl
  148. sni entry parameter. Reported by inestlerode in #560.
  149. * Add DER-encoded test CRTs to library/certs.c, allowing
  150. the example programs ssl_server2 and ssl_client2 to be run
  151. if MBEDTLS_FS_IO and MBEDTLS_PEM_PARSE_C are unset. Fixes #2254.
  152. * Fix missing bounds checks in X.509 parsing functions that could
  153. lead to successful parsing of ill-formed X.509 CRTs. Fixes #2437.
  154. * Fix multiple X.509 functions previously returning ASN.1 low-level error
  155. codes to always wrap these codes into X.509 high level error codes before
  156. returning. Fixes #2431.
  157. Changes
  158. * Return from various debugging routines immediately if the
  159. provided SSL context is unset.
  160. * Remove dead code from bignum.c in the default configuration.
  161. Found by Coverity, reported and fixed by Peter Kolbus (Garmin). Fixes #2309.
  162. * Add test for minimal value of MBEDTLS_MPI_WINDOW_SIZE to all.sh.
  163. Contributed by Peter Kolbus (Garmin).
  164. * Change wording in the `mbedtls_ssl_conf_max_frag_len()`'s documentation to
  165. improve clarity. Fixes #2258.
  166. * Replace multiple uses of MD2 by SHA-256 in X.509 test suite. Fixes #821.
  167. = mbed TLS 2.16.1 branch released 2019-03-19
  168. Features
  169. * Add MBEDTLS_REMOVE_3DES_CIPHERSUITES to allow removing 3DES ciphersuites
  170. from the default list (enabled by default). See
  171. https://sweet32.info/SWEET32_CCS16.pdf.
  172. Bugfix
  173. * Fix a compilation issue with mbedtls_ecp_restart_ctx not being defined
  174. when MBEDTLS_ECP_ALT is defined. Reported by jwhui. Fixes #2242.
  175. * Run the AD too long test only if MBEDTLS_CCM_ALT is not defined.
  176. Raised as a comment in #1996.
  177. * Reduce the stack consumption of mbedtls_mpi_fill_random() which could
  178. previously lead to a stack overflow on constrained targets.
  179. * Add `MBEDTLS_SELF_TEST` for the mbedtls_self_test functions
  180. in the header files, which missed the precompilation check. #971
  181. * Fix clobber list in MIPS assembly for large integer multiplication.
  182. Previously, this could lead to functionally incorrect assembly being
  183. produced by some optimizing compilers, showing up as failures in
  184. e.g. RSA or ECC signature operations. Reported in #1722, fix suggested
  185. by Aurelien Jarno and submitted by Jeffrey Martin.
  186. * Fix signed-to-unsigned integer conversion warning
  187. in X.509 module. Fixes #2212.
  188. * Reduce stack usage of `mpi_write_hlp()` by eliminating recursion.
  189. Fixes #2190.
  190. * Remove a duplicate #include in a sample program. Fixed by Masashi Honma #2326.
  191. * Remove the mbedtls namespacing from the header file, to fix a "file not found"
  192. build error. Fixed by Haijun Gu #2319.
  193. * Fix returning the value 1 when mbedtls_ecdsa_genkey failed.
  194. * Fix false failure in all.sh when backup files exist in include/mbedtls
  195. (e.g. config.h.bak). Fixed by Peter Kolbus (Garmin) #2407.
  196. * Ensure that unused bits are zero when writing ASN.1 bitstrings when using
  197. mbedtls_asn1_write_bitstring().
  198. * Fix issue when writing the named bitstrings in KeyUsage and NsCertType
  199. extensions in CSRs and CRTs that caused these bitstrings to not be encoded
  200. correctly as trailing zeroes were not accounted for as unused bits in the
  201. leading content octet. Fixes #1610.
  202. Changes
  203. * Include configuration file in all header files that use configuration,
  204. instead of relying on other header files that they include.
  205. Inserted as an enhancement for #1371
  206. * Add support for alternative CSR headers, as used by Microsoft and defined
  207. in RFC 7468. Found by Michael Ernst. Fixes #767.
  208. * Fix configuration queries in ssl-opt.h. #2030
  209. * Ensure that ssl-opt.h can be run in OS X. #2029
  210. * Reduce the complexity of the timing tests. They were assuming more than the
  211. underlying OS actually guarantees.
  212. * Re-enable certain interoperability tests in ssl-opt.sh which had previously
  213. been disabled for lack of a sufficiently recent version of GnuTLS on the CI.
  214. * Ciphersuites based on 3DES now have the lowest priority by default when
  215. they are enabled.
  216. = mbed TLS 2.16.0 branch released 2018-12-21
  217. Features
  218. * Add a new config.h option of MBEDTLS_CHECK_PARAMS that enables validation
  219. of parameters in the API. This allows detection of obvious misuses of the
  220. API, such as passing NULL pointers. The API of existing functions hasn't
  221. changed, but requirements on parameters have been made more explicit in
  222. the documentation. See the corresponding API documentation for each
  223. function to see for which parameter values it is defined. This feature is
  224. disabled by default. See its API documentation in config.h for additional
  225. steps you have to take when enabling it.
  226. API Changes
  227. * The following functions in the random generator modules have been
  228. deprecated and replaced as shown below. The new functions change
  229. the return type from void to int to allow returning error codes when
  230. using MBEDTLS_<MODULE>_ALT for the underlying AES or message digest
  231. primitive. Fixes #1798.
  232. mbedtls_ctr_drbg_update() -> mbedtls_ctr_drbg_update_ret()
  233. mbedtls_hmac_drbg_update() -> mbedtls_hmac_drbg_update_ret()
  234. * Extend ECDH interface to enable alternative implementations.
  235. * Deprecate error codes of the form MBEDTLS_ERR_xxx_INVALID_KEY_LENGTH for
  236. ARIA, CAMELLIA and Blowfish. These error codes will be replaced by
  237. the more generic per-module error codes MBEDTLS_ERR_xxx_BAD_INPUT_DATA.
  238. * Additional parameter validation checks have been added for the following
  239. modules - AES, ARIA, Blowfish, CAMELLIA, CCM, GCM, DHM, ECP, ECDSA, ECDH,
  240. ECJPAKE, SHA, Chacha20 and Poly1305, cipher, pk, RSA, and MPI.
  241. Where modules have had parameter validation added, existing parameter
  242. checks may have changed. Some modules, such as Chacha20 had existing
  243. parameter validation whereas other modules had little. This has now been
  244. changed so that the same level of validation is present in all modules, and
  245. that it is now optional with the MBEDTLS_CHECK_PARAMS flag which by default
  246. is off. That means that checks which were previously present by default
  247. will no longer be.
  248. New deprecations
  249. * Deprecate mbedtls_ctr_drbg_update and mbedtls_hmac_drbg_update
  250. in favor of functions that can return an error code.
  251. Bugfix
  252. * Fix for Clang, which was reporting a warning for the bignum.c inline
  253. assembly for AMD64 targets creating string literals greater than those
  254. permitted by the ISO C99 standard. Found by Aaron Jones. Fixes #482.
  255. * Fix runtime error in `mbedtls_platform_entropy_poll()` when run
  256. through qemu user emulation. Reported and fix suggested by randombit
  257. in #1212. Fixes #1212.
  258. * Fix an unsafe bounds check when restoring an SSL session from a ticket.
  259. This could lead to a buffer overflow, but only in case ticket authentication
  260. was broken. Reported and fix suggested by Guido Vranken in #659.
  261. * Add explicit integer to enumeration type casts to example program
  262. programs/pkey/gen_key which previously led to compilation failure
  263. on some toolchains. Reported by phoenixmcallister. Fixes #2170.
  264. * Fix double initialization of ECC hardware that made some accelerators
  265. hang.
  266. * Clarify documentation of mbedtls_ssl_set_own_cert() regarding the absence
  267. of check for certificate/key matching. Reported by Attila Molnar, #507.
  268. = mbed TLS 2.14.1 branch released 2018-11-30
  269. Security
  270. * Fix timing variations and memory access variations in RSA PKCS#1 v1.5
  271. decryption that could lead to a Bleichenbacher-style padding oracle
  272. attack. In TLS, this affects servers that accept ciphersuites based on
  273. RSA decryption (i.e. ciphersuites whose name contains RSA but not
  274. (EC)DH(E)). Discovered by Eyal Ronen (Weizmann Institute), Robert Gillham
  275. (University of Adelaide), Daniel Genkin (University of Michigan),
  276. Adi Shamir (Weizmann Institute), David Wong (NCC Group), and Yuval Yarom
  277. (University of Adelaide, Data61). The attack is described in more detail
  278. in the paper available here: http://cat.eyalro.net/cat.pdf CVE-2018-19608
  279. * In mbedtls_mpi_write_binary(), don't leak the exact size of the number
  280. via branching and memory access patterns. An attacker who could submit
  281. a plaintext for RSA PKCS#1 v1.5 decryption but only observe the timing
  282. of the decryption and not its result could nonetheless decrypt RSA
  283. plaintexts and forge RSA signatures. Other asymmetric algorithms may
  284. have been similarly vulnerable. Reported by Eyal Ronen, Robert Gillham,
  285. Daniel Genkin, Adi Shamir, David Wong and Yuval Yarom.
  286. * Wipe sensitive buffers on the stack in the CTR_DRBG and HMAC_DRBG
  287. modules.
  288. API Changes
  289. * The new functions mbedtls_ctr_drbg_update_ret() and
  290. mbedtls_hmac_drbg_update_ret() are similar to mbedtls_ctr_drbg_update()
  291. and mbedtls_hmac_drbg_update() respectively, but the new functions
  292. report errors whereas the old functions return void. We recommend that
  293. applications use the new functions.
  294. = mbed TLS 2.14.0 branch released 2018-11-19
  295. Security
  296. * Fix overly strict DN comparison when looking for CRLs belonging to a
  297. particular CA. This previously led to ignoring CRLs when the CRL's issuer
  298. name and the CA's subject name differed in their string encoding (e.g.,
  299. one using PrintableString and the other UTF8String) or in the choice of
  300. upper and lower case. Reported by Henrik Andersson of Bosch GmbH in issue
  301. #1784.
  302. * Fix a flawed bounds check in server PSK hint parsing. In case the
  303. incoming message buffer was placed within the first 64KiB of address
  304. space and a PSK-(EC)DHE ciphersuite was used, this allowed an attacker
  305. to trigger a memory access up to 64KiB beyond the incoming message buffer,
  306. potentially leading to an application crash or information disclosure.
  307. * Fix mbedtls_mpi_is_prime() to use more rounds of probabilistic testing. The
  308. previous settings for the number of rounds made it practical for an
  309. adversary to construct non-primes that would be erroneously accepted as
  310. primes with high probability. This does not have an impact on the
  311. security of TLS, but can matter in other contexts with numbers chosen
  312. potentially by an adversary that should be prime and can be validated.
  313. For example, the number of rounds was enough to securely generate RSA key
  314. pairs or Diffie-Hellman parameters, but was insufficient to validate
  315. Diffie-Hellman parameters properly.
  316. See "Prime and Prejudice" by by Martin R. Albrecht and Jake Massimo and
  317. Kenneth G. Paterson and Juraj Somorovsky.
  318. Features
  319. * Add support for temporarily suspending expensive ECC computations after
  320. some configurable amount of operations. This is intended to be used in
  321. constrained, single-threaded systems where ECC is time consuming and can
  322. block other operations until they complete. This is disabled by default,
  323. but can be enabled by MBEDTLS_ECP_RESTARTABLE at compile time and
  324. configured by mbedtls_ecp_set_max_ops() at runtime. It applies to the new
  325. xxx_restartable functions in ECP, ECDSA, PK and X.509 (CRL not supported
  326. yet), and to existing functions in ECDH and SSL (currently only
  327. implemented client-side, for ECDHE-ECDSA ciphersuites in TLS 1.2,
  328. including client authentication).
  329. * Add support for Arm CPU DSP extensions to accelerate asymmetric key
  330. operations. On CPUs where the extensions are available, they can accelerate
  331. MPI multiplications used in ECC and RSA cryptography. Contributed by
  332. Aurelien Jarno.
  333. * Extend RSASSA-PSS signature to allow a smaller salt size. Previously, PSS
  334. signature always used a salt with the same length as the hash, and returned
  335. an error if this was not possible. Now the salt size may be up to two bytes
  336. shorter. This allows the library to support all hash and signature sizes
  337. that comply with FIPS 186-4, including SHA-512 with a 1024-bit key.
  338. * Add support for 128-bit keys in CTR_DRBG. Note that using keys shorter
  339. than 256 bits limits the security of generated material to 128 bits.
  340. API Changes
  341. * Add a common error code of `MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for
  342. a feature that is not supported by underlying alternative
  343. implementations implementing cryptographic primitives. This is useful for
  344. hardware accelerators that don't implement all options or features.
  345. New deprecations
  346. * All module specific errors following the form
  347. MBEDTLS_ERR_XXX_FEATURE_UNAVAILABLE that indicate a feature is not
  348. supported are deprecated and are now replaced by the new equivalent
  349. platform error.
  350. * All module specific generic hardware acceleration errors following the
  351. form MBEDTLS_ERR_XXX_HW_ACCEL_FAILED that are deprecated and are replaced
  352. by the equivalent plaform error.
  353. * Deprecate the function mbedtls_mpi_is_prime() in favor of
  354. mbedtls_mpi_is_prime_ext() which allows specifying the number of
  355. Miller-Rabin rounds.
  356. Bugfix
  357. * Fix wrong order of freeing in programs/ssl/ssl_server2 example
  358. application leading to a memory leak in case both
  359. MBEDTLS_MEMORY_BUFFER_ALLOC_C and MBEDTLS_MEMORY_BACKTRACE are set.
  360. Fixes #2069.
  361. * Fix a bug in the update function for SSL ticket keys which previously
  362. invalidated keys of a lifetime of less than a 1s. Fixes #1968.
  363. * Fix failure in hmac_drbg in the benchmark sample application, when
  364. MBEDTLS_THREADING_C is defined. Found by TrinityTonic, #1095
  365. * Fix a bug in the record decryption routine ssl_decrypt_buf()
  366. which lead to accepting properly authenticated but improperly
  367. padded records in case of CBC ciphersuites using Encrypt-then-MAC.
  368. * Fix memory leak and freeing without initialization in the example
  369. program programs/x509/cert_write. Fixes #1422.
  370. * Ignore IV in mbedtls_cipher_set_iv() when the cipher mode is
  371. MBEDTLS_MODE_ECB. Found by ezdevelop. Fixes #1091.
  372. * Zeroize memory used for buffering or reassembling handshake messages
  373. after use.
  374. * Use `mbedtls_platform_zeroize()` instead of `memset()` for zeroization
  375. of sensitive data in the example programs aescrypt2 and crypt_and_hash.
  376. * Change the default string format used for various X.509 DN attributes to
  377. UTF8String. Previously, the use of the PrintableString format led to
  378. wildcards and non-ASCII characters being unusable in some DN attributes.
  379. Reported by raprepo in #1860 and by kevinpt in #468. Fix contributed by
  380. Thomas-Dee.
  381. * Fix compilation failure for configurations which use compile time
  382. replacements of standard calloc/free functions through the macros
  383. MBEDTLS_PLATFORM_CALLOC_MACRO and MBEDTLS_PLATFORM_FREE_MACRO.
  384. Reported by ole-de and ddhome2006. Fixes #882, #1642 and #1706.
  385. Changes
  386. * Removed support for Yotta as a build tool.
  387. * Add tests for session resumption in DTLS.
  388. * Close a test gap in (D)TLS between the client side and the server side:
  389. test the handling of large packets and small packets on the client side
  390. in the same way as on the server side.
  391. * Change the dtls_client and dtls_server samples to work by default over
  392. IPv6 and optionally by a build option over IPv4.
  393. * Change the use of Windows threading to use Microsoft Visual C++ runtime
  394. calls, rather than Win32 API calls directly. This is necessary to avoid
  395. conflict with C runtime usage. Found and fixed by irwir.
  396. * Remember the string format of X.509 DN attributes when replicating
  397. X.509 DNs. Previously, DN attributes were always written in their default
  398. string format (mostly PrintableString), which could lead to CRTs being
  399. created which used PrintableStrings in the issuer field even though the
  400. signing CA used UTF8Strings in its subject field; while X.509 compliant,
  401. such CRTs were rejected in some applications, e.g. some versions of
  402. Firefox, curl and GnuTLS. Reported in #1033 by Moschn. Fix contributed by
  403. Thomas-Dee.
  404. * Improve documentation of mbedtls_ssl_get_verify_result().
  405. Fixes #517 reported by github-monoculture.
  406. * Add MBEDTLS_MPI_GEN_PRIME_FLAG_LOW_ERR flag to mbedtls_mpi_gen_prime() and
  407. use it to reduce error probability in RSA key generation to levels mandated
  408. by FIPS-186-4.
  409. = mbed TLS 2.13.1 branch released 2018-09-06
  410. API Changes
  411. * Extend the platform module with an abstraction mbedtls_platform_gmtime_r()
  412. whose implementation should behave as a thread-safe version of gmtime().
  413. This allows users to configure such an implementation at compile time when
  414. the target system cannot be deduced automatically, by setting the option
  415. MBEDTLS_PLATFORM_GMTIME_R_ALT. At this stage Mbed TLS is only able to
  416. automatically select implementations for Windows and POSIX C libraries.
  417. Bugfix
  418. * Fix build failures on platforms where only gmtime() is available but
  419. neither gmtime_r() nor gmtime_s() are present. Fixes #1907.
  420. = mbed TLS 2.13.0 branch released 2018-08-31
  421. Security
  422. * Fix an issue in the X.509 module which could lead to a buffer overread
  423. during certificate extensions parsing. In case of receiving malformed
  424. input (extensions length field equal to 0), an illegal read of one byte
  425. beyond the input buffer is made. Found and analyzed by Nathan Crandall.
  426. Features
  427. * Add support for fragmentation of outgoing DTLS handshake messages. This
  428. is controlled by the maximum fragment length as set locally or negotiated
  429. with the peer, as well as by a new per-connection MTU option, set using
  430. mbedtls_ssl_set_mtu().
  431. * Add support for auto-adjustment of MTU to a safe value during the
  432. handshake when flights do not get through (RFC 6347, section 4.1.1.1,
  433. last paragraph).
  434. * Add support for packing multiple records within a single datagram,
  435. enabled by default.
  436. * Add support for buffering out-of-order handshake messages in DTLS.
  437. The maximum amount of RAM used for this can be controlled by the
  438. compile-time constant MBEDTLS_SSL_DTLS_MAX_BUFFERING defined
  439. in mbedtls/config.h.
  440. API Changes
  441. * Add function mbedtls_ssl_set_datagram_packing() to configure
  442. the use of datagram packing (enabled by default).
  443. Bugfix
  444. * Fix a potential memory leak in mbedtls_ssl_setup() function. An allocation
  445. failure in the function could lead to other buffers being leaked.
  446. * Fixes an issue with MBEDTLS_CHACHAPOLY_C which would not compile if
  447. MBEDTLS_ARC4_C and MBEDTLS_CIPHER_NULL_CIPHER weren't also defined. #1890
  448. * Fix a memory leak in ecp_mul_comb() if ecp_precompute_comb() fails.
  449. Fix contributed by Espressif Systems.
  450. * Add ecc extensions only if an ecc based ciphersuite is used.
  451. This improves compliance to RFC 4492, and as a result, solves
  452. interoperability issues with BouncyCastle. Raised by milenamil in #1157.
  453. * Replace printf with mbedtls_printf in the ARIA module. Found by
  454. TrinityTonic in #1908.
  455. * Fix potential use-after-free in mbedtls_ssl_get_max_frag_len()
  456. and mbedtls_ssl_get_record_expansion() after a session reset. Fixes #1941.
  457. * Fix a bug that caused SSL/TLS clients to incorrectly abort the handshake
  458. with TLS versions 1.1 and earlier when the server requested authentication
  459. without providing a list of CAs. This was due to an overly strict bounds
  460. check in parsing the CertificateRequest message,
  461. introduced in Mbed TLS 2.12.0. Fixes #1954.
  462. * Fix a miscalculation of the maximum record expansion in
  463. mbedtls_ssl_get_record_expansion() in case of ChachaPoly ciphersuites,
  464. or CBC ciphersuites in (D)TLS versions 1.1 or higher. Fixes #1913, #1914.
  465. * Fix undefined shifts with negative values in certificates parsing
  466. (found by Catena cyber using oss-fuzz)
  467. * Fix memory leak and free without initialization in pk_encrypt
  468. and pk_decrypt example programs. Reported by Brace Stout. Fixes #1128.
  469. * Remove redundant else statement. Raised by irwir. Fixes #1776.
  470. Changes
  471. * Copy headers preserving timestamps when doing a "make install".
  472. Contributed by xueruini.
  473. * Allow the forward declaration of public structs. Contributed by Dawid
  474. Drozd. Fixes #1215 raised by randombit.
  475. * Improve compatibility with some alternative CCM implementations by using
  476. CCM test vectors from RAM.
  477. * Add support for buffering of out-of-order handshake messages.
  478. * Add warnings to the documentation of the HKDF module to reduce the risk
  479. of misusing the mbedtls_hkdf_extract() and mbedtls_hkdf_expand()
  480. functions. Fixes #1775. Reported by Brian J. Murray.
  481. = mbed TLS 2.12.0 branch released 2018-07-25
  482. Security
  483. * Fix a vulnerability in TLS ciphersuites based on CBC and using SHA-384,
  484. in (D)TLS 1.0 to 1.2, that allowed an active network attacker to
  485. partially recover the plaintext of messages under some conditions by
  486. exploiting timing measurements. With DTLS, the attacker could perform
  487. this recovery by sending many messages in the same connection. With TLS
  488. or if mbedtls_ssl_conf_dtls_badmac_limit() was used, the attack only
  489. worked if the same secret (for example a HTTP Cookie) has been repeatedly
  490. sent over connections manipulated by the attacker. Connections using GCM
  491. or CCM instead of CBC, using hash sizes other than SHA-384, or using
  492. Encrypt-then-Mac (RFC 7366) were not affected. The vulnerability was
  493. caused by a miscalculation (for SHA-384) in a countermeasure to the
  494. original Lucky 13 attack. Found by Kenny Paterson, Eyal Ronen and Adi
  495. Shamir.
  496. * Fix a vulnerability in TLS ciphersuites based on CBC, in (D)TLS 1.0 to
  497. 1.2, that allowed a local attacker, able to execute code on the local
  498. machine as well as manipulate network packets, to partially recover the
  499. plaintext of messages under some conditions by using a cache attack
  500. targeting an internal MD/SHA buffer. With TLS or if
  501. mbedtls_ssl_conf_dtls_badmac_limit() was used, the attack only worked if
  502. the same secret (for example a HTTP Cookie) has been repeatedly sent over
  503. connections manipulated by the attacker. Connections using GCM or CCM
  504. instead of CBC or using Encrypt-then-Mac (RFC 7366) were not affected.
  505. Found by Kenny Paterson, Eyal Ronen and Adi Shamir.
  506. * Add a counter-measure against a vulnerability in TLS ciphersuites based
  507. on CBC, in (D)TLS 1.0 to 1.2, that allowed a local attacker, able to
  508. execute code on the local machine as well as manipulate network packets,
  509. to partially recover the plaintext of messages under some conditions (see
  510. previous entry) by using a cache attack targeting the SSL input record
  511. buffer. Connections using GCM or CCM instead of CBC or using
  512. Encrypt-then-Mac (RFC 7366) were not affected. Found by Kenny Paterson,
  513. Eyal Ronen and Adi Shamir.
  514. Features
  515. * Add new crypto primitives from RFC 7539: stream cipher Chacha20, one-time
  516. authenticator Poly1305 and AEAD construct Chacha20-Poly1305. Contributed
  517. by Daniel King.
  518. * Add support for CHACHA20-POLY1305 ciphersuites from RFC 7905.
  519. * Add platform support for the Haiku OS. (https://www.haiku-os.org).
  520. Contributed by Augustin Cavalier.
  521. * Make the receive and transmit buffers independent sizes, for situations
  522. where the outgoing buffer can be fixed at a smaller size than the incoming
  523. buffer, which can save some RAM. If buffer lengths are kept equal, there
  524. is no functional difference. Contributed by Angus Gratton, and also
  525. independently contributed again by Paul Sokolovsky.
  526. * Add support for key wrapping modes based on AES as defined by
  527. NIST SP 800-38F algorithms KW and KWP and by RFC 3394 and RFC 5649.
  528. Bugfix
  529. * Fix the key_app_writer example which was writing a leading zero byte which
  530. was creating an invalid ASN.1 tag. Found by Aryeh R. Fixes #1257.
  531. * Fix compilation error on C++, because of a variable named new.
  532. Found and fixed by Hirotaka Niisato in #1783.
  533. * Fix "no symbols" warning issued by ranlib when building on Mac OS X. Fix
  534. contributed by tabascoeye.
  535. * Clarify documentation for mbedtls_ssl_write() to include 0 as a valid
  536. return value. Found by @davidwu2000. #839
  537. * Fix a memory leak in mbedtls_x509_csr_parse(), found by catenacyber,
  538. Philippe Antoine. Fixes #1623.
  539. * Remove unused headers included in x509.c. Found by Chris Hanson and fixed
  540. by Brendan Shanks. Part of a fix for #992.
  541. * Fix compilation error when MBEDTLS_ARC4_C is disabled and
  542. MBEDTLS_CIPHER_NULL_CIPHER is enabled. Found by TrinityTonic in #1719.
  543. * Added length checks to some TLS parsing functions. Found and fixed by
  544. Philippe Antoine from Catena cyber. #1663.
  545. * Fix the inline assembly for the MPI multiply helper function for i386 and
  546. i386 with SSE2. Found by László Langó. Fixes #1550
  547. * Fix namespacing in header files. Remove the `mbedtls` namespacing in
  548. the `#include` in the header files. Resolves #857
  549. * Fix compiler warning of 'use before initialisation' in
  550. mbedtls_pk_parse_key(). Found by Martin Boye Petersen and fixed by Dawid
  551. Drozd. #1098
  552. * Fix decryption for zero length messages (which contain all padding) when a
  553. CBC based ciphersuite is used together with Encrypt-then-MAC. Previously,
  554. such a message was wrongly reported as an invalid record and therefore lead
  555. to the connection being terminated. Seen most often with OpenSSL using
  556. TLS 1.0. Reported by @kFYatek and by Conor Murphy on the forum. Fix
  557. contributed by Espressif Systems. Fixes #1632
  558. * Fix ssl_client2 example to send application data with 0-length content
  559. when the request_size argument is set to 0 as stated in the documentation.
  560. Fixes #1833.
  561. * Correct the documentation for `mbedtls_ssl_get_session()`. This API has
  562. deep copy of the session, and the peer certificate is not lost. Fixes #926.
  563. * Fix build using -std=c99. Fixed by Nick Wilson.
  564. Changes
  565. * Fail when receiving a TLS alert message with an invalid length, or invalid
  566. zero-length messages when using TLS 1.2. Contributed by Espressif Systems.
  567. * Change the default behaviour of mbedtls_hkdf_extract() to return an error
  568. when calling with a NULL salt and non-zero salt_len. Contributed by
  569. Brian J Murray
  570. * Change the shebang line in Perl scripts to look up perl in the PATH.
  571. Contributed by fbrosson.
  572. * Allow overriding the time on Windows via the platform-time abstraction.
  573. Fixed by Nick Wilson.
  574. * Use gmtime_r/gmtime_s for thread-safety. Fixed by Nick Wilson.
  575. = mbed TLS 2.11.0 branch released 2018-06-18
  576. Features
  577. * Add additional block mode, OFB (Output Feedback), to the AES module and
  578. cipher abstraction module.
  579. * Implement the HMAC-based extract-and-expand key derivation function
  580. (HKDF) per RFC 5869. Contributed by Thomas Fossati.
  581. * Add support for the CCM* block cipher mode as defined in IEEE Std. 802.15.4.
  582. * Add support for the XTS block cipher mode with AES (AES-XTS).
  583. Contributed by Aorimn in pull request #414.
  584. * In TLS servers, support offloading private key operations to an external
  585. cryptoprocessor. Private key operations can be asynchronous to allow
  586. non-blocking operation of the TLS server stack.
  587. Bugfix
  588. * Fix the cert_write example to handle certificates signed with elliptic
  589. curves as well as RSA. Fixes #777 found by dbedev.
  590. * Fix for redefinition of _WIN32_WINNT to avoid overriding a definition
  591. used by user applications. Found and fixed by Fabio Alessandrelli.
  592. * Fix compilation warnings with IAR toolchain, on 32 bit platform.
  593. Reported by rahmanih in #683
  594. * Fix braces in mbedtls_memory_buffer_alloc_status(). Found by sbranden, #552.
  595. Changes
  596. * Changed CMake defaults for IAR to treat all compiler warnings as errors.
  597. * Changed the Clang parameters used in the CMake build files to work for
  598. versions later than 3.6. Versions of Clang earlier than this may no longer
  599. work. Fixes #1072
  600. = mbed TLS 2.10.0 branch released 2018-06-06
  601. Features
  602. * Add support for ARIA cipher (RFC 5794) and associated TLS ciphersuites
  603. (RFC 6209). Disabled by default, see MBEDTLS_ARIA_C in config.h
  604. API Changes
  605. * Extend the platform module with a util component that contains
  606. functionality shared by multiple Mbed TLS modules. At this stage
  607. platform_util.h (and its associated platform_util.c) only contain
  608. mbedtls_platform_zeroize(), which is a critical function from a security
  609. point of view. mbedtls_platform_zeroize() needs to be regularly tested
  610. against compilers to ensure that calls to it are not removed from the
  611. output binary as part of redundant code elimination optimizations.
  612. Therefore, mbedtls_platform_zeroize() is moved to the platform module to
  613. facilitate testing and maintenance.
  614. Bugfix
  615. * Fix an issue with MicroBlaze support in bn_mul.h which was causing the
  616. build to fail. Found by zv-io. Fixes #1651.
  617. Changes
  618. * Support TLS testing in out-of-source builds using cmake. Fixes #1193.
  619. * Fix redundant declaration of mbedtls_ssl_list_ciphersuites. Raised by
  620. TrinityTonic. #1359.
  621. = mbed TLS 2.9.0 branch released 2018-04-30
  622. Security
  623. * Fix an issue in the X.509 module which could lead to a buffer overread
  624. during certificate validation. Additionally, the issue could also lead to
  625. unnecessary callback checks being made or to some validation checks to be
  626. omitted. The overread could be triggered remotely, while the other issues
  627. would require a non DER-compliant certificate to be correctly signed by a
  628. trusted CA, or a trusted CA with a non DER-compliant certificate. Found by
  629. luocm. Fixes #825.
  630. * Fix the buffer length assertion in the ssl_parse_certificate_request()
  631. function which led to an arbitrary overread of the message buffer. The
  632. overreads could be caused by receiving a malformed message at the point
  633. where an optional signature algorithms list is expected when the signature
  634. algorithms section is too short. In builds with debug output, the overread
  635. data is output with the debug data.
  636. * Fix a client-side bug in the validation of the server's ciphersuite choice
  637. which could potentially lead to the client accepting a ciphersuite it didn't
  638. offer or a ciphersuite that cannot be used with the TLS or DTLS version
  639. chosen by the server. This could lead to corruption of internal data
  640. structures for some configurations.
  641. Features
  642. * Add an option, MBEDTLS_AES_FEWER_TABLES, to dynamically compute smaller AES
  643. tables during runtime, thereby reducing the RAM/ROM footprint by ~6KiB.
  644. Suggested and contributed by jkivilin in pull request #394.
  645. * Add initial support for Curve448 (RFC 7748). Only mbedtls_ecp_mul() and
  646. ECDH primitive functions (mbedtls_ecdh_gen_public(),
  647. mbedtls_ecdh_compute_shared()) are supported for now. Contributed by
  648. Nicholas Wilson in pull request #348.
  649. API Changes
  650. * Extend the public API with the function of mbedtls_net_poll() to allow user
  651. applications to wait for a network context to become ready before reading
  652. or writing.
  653. * Add function mbedtls_ssl_check_pending() to the public API to allow
  654. a check for whether more more data is pending to be processed in the
  655. internal message buffers.
  656. This function is necessary to determine when it is safe to idle on the
  657. underlying transport in case event-driven IO is used.
  658. Bugfix
  659. * Fix a spurious uninitialized variable warning in cmac.c. Fix independently
  660. contributed by Brian J Murray and David Brown.
  661. * Add missing dependencies in test suites that led to build failures
  662. in configurations that omit certain hashes or public-key algorithms.
  663. Fixes #1040.
  664. * Fix C89 incompatibility in benchmark.c. Contributed by Brendan Shanks.
  665. #1353
  666. * Add missing dependencies for MBEDTLS_HAVE_TIME_DATE and
  667. MBEDTLS_VERSION_FEATURES in some test suites. Contributed by
  668. Deomid Ryabkov. Fixes #1299, #1475.
  669. * Fix the Makefile build process for building shared libraries on Mac OS X.
  670. Fixed by mnacamura.
  671. * Fix parsing of PKCS#8 encoded Elliptic Curve keys. Previously Mbed TLS was
  672. unable to parse keys which had only the optional parameters field of the
  673. ECPrivateKey structure. Found by Jethro Beekman, fixed in #1379.
  674. * Return the plaintext data more quickly on unpadded CBC decryption, as
  675. stated in the mbedtls_cipher_update() documentation. Contributed by
  676. Andy Leiserson.
  677. * Fix overriding and ignoring return values when parsing and writing to
  678. a file in pk_sign program. Found by kevlut in #1142.
  679. * Restrict usage of error code MBEDTLS_ERR_SSL_WANT_READ to situations
  680. where data needs to be fetched from the underlying transport in order
  681. to make progress. Previously, this error code was also occasionally
  682. returned when unexpected messages were being discarded, ignoring that
  683. further messages could potentially already be pending to be processed
  684. in the internal buffers; these cases led to deadlocks when event-driven
  685. I/O was used. Found and reported by Hubert Mis in #772.
  686. * Fix buffer length assertions in the ssl_parse_certificate_request()
  687. function which leads to a potential one byte overread of the message
  688. buffer.
  689. * Fix invalid buffer sizes passed to zlib during record compression and
  690. decompression.
  691. * Fix the soversion of libmbedcrypto to match the soversion of the
  692. maintained 2.7 branch. The soversion was increased in Mbed TLS
  693. version 2.7.1 to reflect breaking changes in that release, but the
  694. increment was missed in 2.8.0 and later releases outside of the 2.7 branch.
  695. Changes
  696. * Remove some redundant code in bignum.c. Contributed by Alexey Skalozub.
  697. * Support cmake builds where Mbed TLS is a subproject. Fix contributed
  698. independently by Matthieu Volat and Arne Schwabe.
  699. * Improve testing in configurations that omit certain hashes or
  700. public-key algorithms. Includes contributions by Gert van Dijk.
  701. * Improve negative testing of X.509 parsing.
  702. * Do not define global mutexes around readdir() and gmtime() in
  703. configurations where the feature is disabled. Found and fixed by Gergely
  704. Budai.
  705. * Harden the function mbedtls_ssl_config_free() against misuse, so that it
  706. doesn't leak memory if the user doesn't use mbedtls_ssl_conf_psk() and
  707. instead incorrectly manipulates the configuration structure directly.
  708. Found and fix submitted by junyeonLEE in #1220.
  709. * Provide an empty implementation of mbedtls_pkcs5_pbes2() when
  710. MBEDTLS_ASN1_PARSE_C is not enabled. This allows the use of PBKDF2
  711. without PBES2. Fixed by Marcos Del Sol Vives.
  712. * Add the order of the base point as N in the mbedtls_ecp_group structure
  713. for Curve25519 (other curves had it already). Contributed by Nicholas
  714. Wilson #481
  715. * Improve the documentation of mbedtls_net_accept(). Contributed by Ivan
  716. Krylov.
  717. * Improve the documentation of mbedtls_ssl_write(). Suggested by
  718. Paul Sokolovsky in #1356.
  719. * Add an option in the Makefile to support ar utilities where the operation
  720. letter must not be prefixed by '-', such as LLVM. Found and fixed by
  721. Alex Hixon.
  722. * Allow configuring the shared library extension by setting the DLEXT
  723. environment variable when using the project makefiles.
  724. * Optimize unnecessary zeroing in mbedtls_mpi_copy. Based on a contribution
  725. by Alexey Skalozub in #405.
  726. * In the SSL module, when f_send, f_recv or f_recv_timeout report
  727. transmitting more than the required length, return an error. Raised by
  728. Sam O'Connor in #1245.
  729. * Improve robustness of mbedtls_ssl_derive_keys against the use of
  730. HMAC functions with non-HMAC ciphersuites. Independently contributed
  731. by Jiayuan Chen in #1377. Fixes #1437.
  732. * Improve security of RSA key generation by including criteria from
  733. FIPS 186-4. Contributed by Jethro Beekman. #1380
  734. * Declare functions in header files even when an alternative implementation
  735. of the corresponding module is activated by defining the corresponding
  736. MBEDTLS_XXX_ALT macro. This means that alternative implementations do
  737. not need to copy the declarations, and ensures that they will have the
  738. same API.
  739. * Add platform setup and teardown calls in test suites.
  740. = mbed TLS 2.8.0 branch released 2018-03-16
  741. Default behavior changes
  742. * The truncated HMAC extension now conforms to RFC 6066. This means
  743. that when both sides of a TLS connection negotiate the truncated
  744. HMAC extension, Mbed TLS can now interoperate with other
  745. compliant implementations, but this breaks interoperability with
  746. prior versions of Mbed TLS. To restore the old behavior, enable
  747. the (deprecated) option MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT in
  748. config.h. Found by Andreas Walz (ivESK, Offenburg University of
  749. Applied Sciences).
  750. Security
  751. * Fix implementation of the truncated HMAC extension. The previous
  752. implementation allowed an offline 2^80 brute force attack on the
  753. HMAC key of a single, uninterrupted connection (with no
  754. resumption of the session).
  755. * Verify results of RSA private key operations to defend
  756. against Bellcore glitch attack.
  757. * Fix a buffer overread in ssl_parse_server_key_exchange() that could cause
  758. a crash on invalid input.
  759. * Fix a buffer overread in ssl_parse_server_psk_hint() that could cause a
  760. crash on invalid input.
  761. * Fix CRL parsing to reject CRLs containing unsupported critical
  762. extensions. Found by Falko Strenzke and Evangelos Karatsiolis.
  763. Features
  764. * Extend PKCS#8 interface by introducing support for the entire SHA
  765. algorithms family when encrypting private keys using PKCS#5 v2.0.
  766. This allows reading encrypted PEM files produced by software that
  767. uses PBKDF2-SHA2, such as OpenSSL 1.1. Submitted by Antonio Quartulli,
  768. OpenVPN Inc. Fixes #1339
  769. * Add support for public keys encoded in PKCS#1 format. #1122
  770. New deprecations
  771. * Deprecate support for record compression (configuration option
  772. MBEDTLS_ZLIB_SUPPORT).
  773. Bugfix
  774. * Fix the name of a DHE parameter that was accidentally changed in 2.7.0.
  775. Fixes #1358.
  776. * Fix test_suite_pk to work on 64-bit ILP32 systems. #849
  777. * Fix mbedtls_x509_crt_profile_suiteb, which used to reject all certificates
  778. with flag MBEDTLS_X509_BADCERT_BAD_PK even when the key type was correct.
  779. In the context of SSL, this resulted in handshake failure. Reported by
  780. daniel in the Mbed TLS forum. #1351
  781. * Fix Windows x64 builds with the included mbedTLS.sln file. #1347
  782. * Fix setting version TLSv1 as minimal version, even if TLS 1
  783. is not enabled. Set MBEDTLS_SSL_MIN_MAJOR_VERSION
  784. and MBEDTLS_SSL_MIN_MINOR_VERSION instead of
  785. MBEDTLS_SSL_MAJOR_VERSION_3 and MBEDTLS_SSL_MINOR_VERSION_1. #664
  786. * Fix compilation error on Mingw32 when _TRUNCATE is defined. Use _TRUNCATE
  787. only if __MINGW32__ not defined. Fix suggested by Thomas Glanzmann and
  788. Nick Wilson on issue #355
  789. * In test_suite_pk, pass valid parameters when testing for hash length
  790. overflow. #1179
  791. * Fix memory allocation corner cases in memory_buffer_alloc.c module. Found
  792. by Guido Vranken. #639
  793. * Log correct number of ciphersuites used in Client Hello message. #918
  794. * Fix X509 CRT parsing that would potentially accept an invalid tag when
  795. parsing the subject alternative names.
  796. * Fix a possible arithmetic overflow in ssl_parse_server_key_exchange()
  797. that could cause a key exchange to fail on valid data.
  798. * Fix a possible arithmetic overflow in ssl_parse_server_psk_hint() that
  799. could cause a key exchange to fail on valid data.
  800. * Don't define mbedtls_aes_decrypt and mbedtls_aes_encrypt under
  801. MBEDTLS_DEPRECATED_REMOVED. #1388
  802. * Fix a 1-byte heap buffer overflow (read-only) during private key parsing.
  803. Found through fuzz testing.
  804. Changes
  805. * Fix tag lengths and value ranges in the documentation of CCM encryption.
  806. Contributed by Mathieu Briand.
  807. * Fix typo in a comment ctr_drbg.c. Contributed by Paul Sokolovsky.
  808. * Remove support for the library reference configuration for picocoin.
  809. * MD functions deprecated in 2.7.0 are no longer inline, to provide
  810. a migration path for those depending on the library's ABI.
  811. * Clarify the documentation of mbedtls_ssl_setup.
  812. * Use (void) when defining functions with no parameters. Contributed by
  813. Joris Aerts. #678
  814. = mbed TLS 2.7.0 branch released 2018-02-03
  815. Security
  816. * Fix a heap corruption issue in the implementation of the truncated HMAC
  817. extension. When the truncated HMAC extension is enabled and CBC is used,
  818. sending a malicious application packet could be used to selectively corrupt
  819. 6 bytes on the peer's heap, which could potentially lead to crash or remote
  820. code execution. The issue could be triggered remotely from either side in
  821. both TLS and DTLS. CVE-2018-0488
  822. * Fix a buffer overflow in RSA-PSS verification when the hash was too large
  823. for the key size, which could potentially lead to crash or remote code
  824. execution. Found by Seth Terashima, Qualcomm Product Security Initiative,
  825. Qualcomm Technologies Inc. CVE-2018-0487
  826. * Fix buffer overflow in RSA-PSS verification when the unmasked data is all
  827. zeros.
  828. * Fix an unsafe bounds check in ssl_parse_client_psk_identity() when adding
  829. 64 KiB to the address of the SSL buffer and causing a wrap around.
  830. * Fix a potential heap buffer overflow in mbedtls_ssl_write(). When the (by
  831. default enabled) maximum fragment length extension is disabled in the
  832. config and the application data buffer passed to mbedtls_ssl_write
  833. is larger than the internal message buffer (16384 bytes by default), the
  834. latter overflows. The exploitability of this issue depends on whether the
  835. application layer can be forced into sending such large packets. The issue
  836. was independently reported by Tim Nordell via e-mail and by Florin Petriuc
  837. and sjorsdewit on GitHub. Fix proposed by Florin Petriuc in #1022.
  838. Fixes #707.
  839. * Add a provision to prevent compiler optimizations breaking the time
  840. constancy of mbedtls_ssl_safer_memcmp().
  841. * Ensure that buffers are cleared after use if they contain sensitive data.
  842. Changes were introduced in multiple places in the library.
  843. * Set PEM buffer to zero before freeing it, to avoid decoded private keys
  844. being leaked to memory after release.
  845. * Fix dhm_check_range() failing to detect trivial subgroups and potentially
  846. leaking 1 bit of the private key. Reported by prashantkspatil.
  847. * Make mbedtls_mpi_read_binary() constant-time with respect to the input
  848. data. Previously, trailing zero bytes were detected and omitted for the
  849. sake of saving memory, but potentially leading to slight timing
  850. differences. Reported by Marco Macchetti, Kudelski Group.
  851. * Wipe stack buffer temporarily holding EC private exponent
  852. after keypair generation.
  853. * Fix a potential heap buffer over-read in ALPN extension parsing
  854. (server-side). Could result in application crash, but only if an ALPN
  855. name larger than 16 bytes had been configured on the server.
  856. * Change default choice of DHE parameters from untrustworthy RFC 5114
  857. to RFC 3526 containing parameters generated in a nothing-up-my-sleeve
  858. manner.
  859. Features
  860. * Allow comments in test data files.
  861. * The selftest program can execute a subset of the tests based on command
  862. line arguments.
  863. * New unit tests for timing. Improve the self-test to be more robust
  864. when run on a heavily-loaded machine.
  865. * Add alternative implementation support for CCM and CMAC (MBEDTLS_CCM_ALT,
  866. MBEDTLS_CMAC_ALT). Submitted by Steven Cooreman, Silicon Labs.
  867. * Add support for alternative implementations of GCM, selected by the
  868. configuration flag MBEDTLS_GCM_ALT.
  869. * Add support for alternative implementations for ECDSA, controlled by new
  870. configuration flags MBEDTLS_ECDSA_SIGN_ALT, MBEDTLS_ECDSA_VERIFY_ALT and
  871. MBEDTLS_ECDSDA_GENKEY_AT in config.h.
  872. The following functions from the ECDSA module can be replaced
  873. with alternative implementation:
  874. mbedtls_ecdsa_sign(), mbedtls_ecdsa_verify() and mbedtls_ecdsa_genkey().
  875. * Add support for alternative implementation of ECDH, controlled by the
  876. new configuration flags MBEDTLS_ECDH_COMPUTE_SHARED_ALT and
  877. MBEDTLS_ECDH_GEN_PUBLIC_ALT in config.h.
  878. The following functions from the ECDH module can be replaced
  879. with an alternative implementation:
  880. mbedtls_ecdh_gen_public() and mbedtls_ecdh_compute_shared().
  881. * Add support for alternative implementation of ECJPAKE, controlled by
  882. the new configuration flag MBEDTLS_ECJPAKE_ALT.
  883. * Add mechanism to provide alternative implementation of the DHM module.
  884. API Changes
  885. * Extend RSA interface by multiple functions allowing structure-
  886. independent setup and export of RSA contexts. Most notably,
  887. mbedtls_rsa_import() and mbedtls_rsa_complete() are introduced for setting
  888. up RSA contexts from partial key material and having them completed to the
  889. needs of the implementation automatically. This allows to setup private RSA
  890. contexts from keys consisting of N,D,E only, even if P,Q are needed for the
  891. purpose or CRT and/or blinding.
  892. * The configuration option MBEDTLS_RSA_ALT can be used to define alternative
  893. implementations of the RSA interface declared in rsa.h.
  894. * The following functions in the message digest modules (MD2, MD4, MD5,
  895. SHA1, SHA256, SHA512) have been deprecated and replaced as shown below.
  896. The new functions change the return type from void to int to allow
  897. returning error codes when using MBEDTLS_<MODULE>_ALT.
  898. mbedtls_<MODULE>_starts() -> mbedtls_<MODULE>_starts_ret()
  899. mbedtls_<MODULE>_update() -> mbedtls_<MODULE>_update_ret()
  900. mbedtls_<MODULE>_finish() -> mbedtls_<MODULE>_finish_ret()
  901. mbedtls_<MODULE>_process() -> mbedtls_internal_<MODULE>_process()
  902. New deprecations
  903. * Deprecate usage of RSA primitives with non-matching key-type
  904. (e.g. signing with a public key).
  905. * Direct manipulation of structure fields of RSA contexts is deprecated.
  906. Users are advised to use the extended RSA API instead.
  907. * Deprecate usage of message digest functions that return void
  908. (mbedtls_<MODULE>_starts, mbedtls_<MODULE>_update,
  909. mbedtls_<MODULE>_finish and mbedtls_<MODULE>_process where <MODULE> is
  910. any of MD2, MD4, MD5, SHA1, SHA256, SHA512) in favor of functions
  911. that can return an error code.
  912. * Deprecate untrustworthy DHE parameters from RFC 5114. Superseded by
  913. parameters from RFC 3526 or the newly added parameters from RFC 7919.
  914. * Deprecate hex string DHE constants MBEDTLS_DHM_RFC3526_MODP_2048_P etc.
  915. Supserseded by binary encoded constants MBEDTLS_DHM_RFC3526_MODP_2048_P_BIN
  916. etc.
  917. * Deprecate mbedtls_ssl_conf_dh_param() for setting default DHE parameters
  918. from hex strings. Superseded by mbedtls_ssl_conf_dh_param_bin()
  919. accepting DHM parameters in binary form, matching the new constants.
  920. Bugfix
  921. * Fix ssl_parse_record_header() to silently discard invalid DTLS records
  922. as recommended in RFC 6347 Section 4.1.2.7.
  923. * Fix memory leak in mbedtls_ssl_set_hostname() when called multiple times.
  924. Found by projectgus and Jethro Beekman, #836.
  925. * Fix usage help in ssl_server2 example. Found and fixed by Bei Lin.
  926. * Parse signature algorithm extension when renegotiating. Previously,
  927. renegotiated handshakes would only accept signatures using SHA-1
  928. regardless of the peer's preferences, or fail if SHA-1 was disabled.
  929. * Fix leap year calculation in x509_date_is_valid() to ensure that invalid
  930. dates on leap years with 100 and 400 intervals are handled correctly. Found
  931. by Nicholas Wilson. #694
  932. * Fix some invalid RSA-PSS signatures with keys of size 8N+1 that were
  933. accepted. Generating these signatures required the private key.
  934. * Fix out-of-memory problem when parsing 4096-bit PKCS8-encrypted RSA keys.
  935. Found independently by Florian in the mbed TLS forum and by Mishamax.
  936. #878, #1019.
  937. * Fix variable used before assignment compilation warnings with IAR
  938. toolchain. Found by gkerrien38.
  939. * Fix unchecked return codes from AES, DES and 3DES functions in
  940. pem_aes_decrypt(), pem_des_decrypt() and pem_des3_decrypt() respectively.
  941. If a call to one of the functions of the cryptographic primitive modules
  942. failed, the error may not be noticed by the function
  943. mbedtls_pem_read_buffer() causing it to return invalid values. Found by
  944. Guido Vranken. #756
  945. * Include configuration file in md.h, to fix compilation warnings.
  946. Reported by aaronmdjones in #1001
  947. * Correct extraction of signature-type from PK instance in X.509 CRT and CSR
  948. writing routines that prevented these functions to work with alternative
  949. RSA implementations. Raised by J.B. in the Mbed TLS forum. Fixes #1011.
  950. * Don't print X.509 version tag for v1 CRT's, and omit extensions for
  951. non-v3 CRT's.
  952. * Fix bugs in RSA test suite under MBEDTLS_NO_PLATFORM_ENTROPY. #1023 #1024
  953. * Fix net_would_block() to avoid modification by errno through fcntl() call.
  954. Found by nkolban. Fixes #845.
  955. * Fix handling of handshake messages in mbedtls_ssl_read() in case
  956. MBEDTLS_SSL_RENEGOTIATION is disabled. Found by erja-gp.
  957. * Add a check for invalid private parameters in mbedtls_ecdsa_sign().
  958. Reported by Yolan Romailler.
  959. * Fix word size check in in pk.c to not depend on MBEDTLS_HAVE_INT64.
  960. * Fix incorrect unit in benchmark output. #850
  961. * Add size-checks for record and handshake message content, securing
  962. fragile yet non-exploitable code-paths.
  963. * Fix crash when calling mbedtls_ssl_cache_free() twice. Found by
  964. MilenkoMitrovic, #1104
  965. * Fix mbedtls_timing_alarm(0) on Unix and MinGW.
  966. * Fix use of uninitialized memory in mbedtls_timing_get_timer() when reset=1.
  967. * Fix possible memory leaks in mbedtls_gcm_self_test().
  968. * Added missing return code checks in mbedtls_aes_self_test().
  969. * Fix issues in RSA key generation program programs/x509/rsa_genkey and the
  970. RSA test suite where the failure of CTR DRBG initialization lead to
  971. freeing an RSA context and several MPI's without proper initialization
  972. beforehand.
  973. * Fix error message in programs/pkey/gen_key.c. Found and fixed by Chris Xue.
  974. * Fix programs/pkey/dh_server.c so that it actually works with dh_client.c.
  975. Found and fixed by Martijn de Milliano.
  976. * Fix an issue in the cipher decryption with the mode
  977. MBEDTLS_PADDING_ONE_AND_ZEROS that sometimes accepted invalid padding.
  978. Note, this padding mode is not used by the TLS protocol. Found and fixed by
  979. Micha Kraus.
  980. * Fix the entropy.c module to not call mbedtls_sha256_starts() or
  981. mbedtls_sha512_starts() in the mbedtls_entropy_init() function.
  982. * Fix the entropy.c module to ensure that mbedtls_sha256_init() or
  983. mbedtls_sha512_init() is called before operating on the relevant context
  984. structure. Do not assume that zeroizing a context is a correct way to
  985. reset it. Found independently by ccli8 on Github.
  986. * In mbedtls_entropy_free(), properly free the message digest context.
  987. * Fix status handshake status message in programs/ssl/dtls_client.c. Found
  988. and fixed by muddog.
  989. Changes
  990. * Extend cert_write example program by options to set the certificate version
  991. and the message digest. Further, allow enabling/disabling of authority
  992. identifier, subject identifier and basic constraints extensions.
  993. * Only check for necessary RSA structure fields in `mbedtls_rsa_private`. In
  994. particular, don't require P,Q if neither CRT nor blinding are
  995. used. Reported and fix proposed independently by satur9nine and sliai
  996. on GitHub.
  997. * Only run AES-192 self-test if AES-192 is available. Fixes #963.
  998. * Tighten the RSA PKCS#1 v1.5 signature verification code and remove the
  999. undeclared dependency of the RSA module on the ASN.1 module.
  1000. * Update all internal usage of deprecated message digest functions to the
  1001. new ones with return codes. In particular, this modifies the
  1002. mbedtls_md_info_t structure. Propagate errors from these functions
  1003. everywhere except some locations in the ssl_tls.c module.
  1004. * Improve CTR_DRBG error handling by propagating underlying AES errors.
  1005. * Add MBEDTLS_ERR_XXX_HW_ACCEL_FAILED error codes for all cryptography
  1006. modules where the software implementation can be replaced by a hardware
  1007. implementation.
  1008. * Add explicit warnings for the use of MD2, MD4, MD5, SHA-1, DES and ARC4
  1009. throughout the library.
  1010. = mbed TLS 2.6.0 branch released 2017-08-10
  1011. Security
  1012. * Fix authentication bypass in SSL/TLS: when authmode is set to optional,
  1013. mbedtls_ssl_get_verify_result() would incorrectly return 0 when the peer's
  1014. X.509 certificate chain had more than MBEDTLS_X509_MAX_INTERMEDIATE_CA
  1015. (default: 8) intermediates, even when it was not trusted. This could be
  1016. triggered remotely from either side. (With authmode set to 'required'
  1017. (the default), the handshake was correctly aborted).
  1018. * Reliably wipe sensitive data after use in the AES example applications
  1019. programs/aes/aescrypt2 and programs/aes/crypt_and_hash.
  1020. Found by Laurent Simon.
  1021. Features
  1022. * Add the functions mbedtls_platform_setup() and mbedtls_platform_teardown()
  1023. and the context struct mbedtls_platform_context to perform
  1024. platform-specific setup and teardown operations. The macro
  1025. MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT allows the functions to be overridden
  1026. by the user in a platform_alt.h file. These new functions are required in
  1027. some embedded environments to provide a means of initialising underlying
  1028. cryptographic acceleration hardware.
  1029. API Changes
  1030. * Reverted API/ABI breaking changes introduced in mbed TLS 2.5.1, to make the
  1031. API consistent with mbed TLS 2.5.0. Specifically removed the inline
  1032. qualifier from the functions mbedtls_aes_decrypt, mbedtls_aes_encrypt,
  1033. mbedtls_ssl_ciphersuite_uses_ec and mbedtls_ssl_ciphersuite_uses_psk. Found
  1034. by James Cowgill. #978
  1035. * Certificate verification functions now set flags to -1 in case the full
  1036. chain was not verified due to an internal error (including in the verify
  1037. callback) or chain length limitations.
  1038. * With authmode set to optional, the TLS handshake is now aborted if the
  1039. verification of the peer's certificate failed due to an overlong chain or
  1040. a fatal error in the verify callback.
  1041. Bugfix
  1042. * Add a check if iv_len is zero in GCM, and return an error if it is zero.
  1043. Reported by roberto. #716
  1044. * Replace preprocessor condition from #if defined(MBEDTLS_THREADING_PTHREAD)
  1045. to #if defined(MBEDTLS_THREADING_C) as the library cannot assume they will
  1046. always be implemented by pthread support. #696
  1047. * Fix a resource leak on Windows platforms in mbedtls_x509_crt_parse_path(),
  1048. in the case of an error. Found by redplait. #590
  1049. * Add MBEDTLS_MPI_CHK to check for error value of mbedtls_mpi_fill_random.
  1050. Reported and fix suggested by guidovranken. #740
  1051. * Fix conditional preprocessor directives in bignum.h to enable 64-bit
  1052. compilation when using ARM Compiler 6.
  1053. * Fix a potential integer overflow in the version verification for DER
  1054. encoded X.509 CRLs. The overflow could enable maliciously constructed CRLs
  1055. to bypass the version verification check. Found by Peng Li/Yueh-Hsun Lin,
  1056. KNOX Security, Samsung Research America
  1057. * Fix potential integer overflow in the version verification for DER
  1058. encoded X.509 CSRs. The overflow could enable maliciously constructed CSRs
  1059. to bypass the version verification check. Found by Peng Li/Yueh-Hsun Lin,
  1060. KNOX Security, Samsung Research America
  1061. * Fix a potential integer overflow in the version verification for DER
  1062. encoded X.509 certificates. The overflow could enable maliciously
  1063. constructed certificates to bypass the certificate verification check.
  1064. * Fix a call to the libc function time() to call the platform abstraction
  1065. function mbedtls_time() instead. Found by wairua. #666
  1066. * Avoid shadowing of time and index functions through mbed TLS function
  1067. arguments. Found by inestlerode. #557.
  1068. Changes
  1069. * Added config.h option MBEDTLS_NO_UDBL_DIVISION, to prevent the use of
  1070. 64-bit division. This is useful on embedded platforms where 64-bit division
  1071. created a dependency on external libraries. #708
  1072. * Removed mutexes from ECP hardware accelerator code. Now all hardware
  1073. accelerator code in the library leaves concurrency handling to the
  1074. platform. Reported by Steven Cooreman. #863
  1075. * Define the macro MBEDTLS_AES_ROM_TABLES in the configuration file
  1076. config-no-entropy.h to reduce the RAM footprint.
  1077. * Added a test script that can be hooked into git that verifies commits
  1078. before they are pushed.
  1079. * Improve documentation of PKCS1 decryption functions.
  1080. = mbed TLS 2.5.1 released 2017-06-21
  1081. Security
  1082. * Fixed unlimited overread of heap-based buffer in mbedtls_ssl_read().
  1083. The issue could only happen client-side with renegotiation enabled.
  1084. Could result in DoS (application crash) or information leak
  1085. (if the application layer sent data read from mbedtls_ssl_read()
  1086. back to the server or to a third party). Can be triggered remotely.
  1087. * Removed SHA-1 and RIPEMD-160 from the default hash algorithms for
  1088. certificate verification. SHA-1 can be turned back on with a compile-time
  1089. option if needed.
  1090. * Fixed offset in FALLBACK_SCSV parsing that caused TLS server to fail to
  1091. detect it sometimes. Reported by Hugo Leisink. #810
  1092. * Tighten parsing of RSA PKCS#1 v1.5 signatures, to avoid a
  1093. potential Bleichenbacher/BERserk-style attack.
  1094. Bugfix
  1095. * Remove size zero arrays from ECJPAKE test suite. Size zero arrays are not
  1096. valid C and they prevented the test from compiling in Visual Studio 2015
  1097. and with GCC using the -Wpedantic compilation option.
  1098. * Fix insufficient support for signature-hash-algorithm extension,
  1099. resulting in compatibility problems with Chrome. Found by hfloyrd. #823
  1100. * Fix behaviour that hid the original cause of fatal alerts in some cases
  1101. when sending the alert failed. The fix makes sure not to hide the error
  1102. that triggered the alert.
  1103. * Fix SSLv3 renegotiation behaviour and stop processing data received from
  1104. peer after sending a fatal alert to refuse a renegotiation attempt.
  1105. Previous behaviour was to keep processing data even after the alert has
  1106. been sent.
  1107. * Accept empty trusted CA chain in authentication mode
  1108. MBEDTLS_SSL_VERIFY_OPTIONAL. Found by Jethro Beekman. #864
  1109. * Fix implementation of mbedtls_ssl_parse_certificate() to not annihilate
  1110. fatal errors in authentication mode MBEDTLS_SSL_VERIFY_OPTIONAL and to
  1111. reflect bad EC curves within verification result.
  1112. * Fix bug that caused the modular inversion function to accept the invalid
  1113. modulus 1 and therefore to hang. Found by blaufish. #641.
  1114. * Fix incorrect sign computation in modular exponentiation when the base is
  1115. a negative MPI. Previously the result was always negative. Found by Guido
  1116. Vranken.
  1117. * Fix a numerical underflow leading to stack overflow in mpi_read_file()
  1118. that was triggered uppon reading an empty line. Found by Guido Vranken.
  1119. Changes
  1120. * Send fatal alerts in more cases. The previous behaviour was to skip
  1121. sending the fatal alert and just drop the connection.
  1122. * Clarify ECDSA documentation and improve the sample code to avoid
  1123. misunderstanding and potentially dangerous use of the API. Pointed out
  1124. by Jean-Philippe Aumasson.
  1125. = mbed TLS 2.5.0 branch released 2017-05-17
  1126. Security
  1127. * Wipe stack buffers in RSA private key operations
  1128. (rsa_rsaes_pkcs1_v15_decrypt(), rsa_rsaes_oaep_decrypt). Found by Laurent
  1129. Simon.
  1130. * Add exponent blinding to RSA private operations as a countermeasure
  1131. against side-channel attacks like the cache attack described in
  1132. https://arxiv.org/abs/1702.08719v2.
  1133. Found and fix proposed by Michael Schwarz, Samuel Weiser, Daniel Gruss,
  1134. Clémentine Maurice and Stefan Mangard.
  1135. Features
  1136. * Add hardware acceleration support for the Elliptic Curve Point module.
  1137. This involved exposing parts of the internal interface to enable
  1138. replacing the core functions and adding and alternative, module level
  1139. replacement support for enabling the extension of the interface.
  1140. * Add a new configuration option to 'mbedtls_ssl_config' to enable
  1141. suppressing the CA list in Certificate Request messages. The default
  1142. behaviour has not changed, namely every configured CAs name is included.
  1143. API Changes
  1144. * The following functions in the AES module have been deprecated and replaced
  1145. by the functions shown below. The new functions change the return type from
  1146. void to int to allow returning error codes when using MBEDTLS_AES_ALT,
  1147. MBEDTLS_AES_DECRYPT_ALT or MBEDTLS_AES_ENCRYPT_ALT.
  1148. mbedtls_aes_decrypt() -> mbedtls_internal_aes_decrypt()
  1149. mbedtls_aes_encrypt() -> mbedtls_internal_aes_encrypt()
  1150. Bugfix
  1151. * Remove macros from compat-1.3.h that correspond to deleted items from most
  1152. recent versions of the library. Found by Kyle Keen.
  1153. * Fixed issue in the Threading module that prevented mutexes from
  1154. initialising. Found by sznaider. #667 #843
  1155. * Add checks in the PK module for the RSA functions on 64-bit systems.
  1156. The PK and RSA modules use different types for passing hash length and
  1157. without these checks the type cast could lead to data loss. Found by Guido
  1158. Vranken.
  1159. = mbed TLS 2.4.2 branch released 2017-03-08
  1160. Security
  1161. * Add checks to prevent signature forgeries for very large messages while
  1162. using RSA through the PK module in 64-bit systems. The issue was caused by
  1163. some data loss when casting a size_t to an unsigned int value in the
  1164. functions rsa_verify_wrap(), rsa_sign_wrap(), rsa_alt_sign_wrap() and
  1165. mbedtls_pk_sign(). Found by Jean-Philippe Aumasson.
  1166. * Fixed potential livelock during the parsing of a CRL in PEM format in
  1167. mbedtls_x509_crl_parse(). A string containing a CRL followed by trailing
  1168. characters after the footer could result in the execution of an infinite
  1169. loop. The issue can be triggered remotely. Found by Greg Zaverucha,
  1170. Microsoft.
  1171. * Removed MD5 from the allowed hash algorithms for CertificateRequest and
  1172. CertificateVerify messages, to prevent SLOTH attacks against TLS 1.2.
  1173. Introduced by interoperability fix for #513.
  1174. * Fixed a bug that caused freeing a buffer that was allocated on the stack,
  1175. when verifying the validity of a key on secp224k1. This could be
  1176. triggered remotely for example with a maliciously constructed certificate
  1177. and potentially could lead to remote code execution on some platforms.
  1178. Reported independently by rongsaws and Aleksandar Nikolic, Cisco Talos
  1179. team. #569 CVE-2017-2784
  1180. Bugfix
  1181. * Fix output certificate verification flags set by x509_crt_verify_top() when
  1182. traversing a chain of trusted CA. The issue would cause both flags,
  1183. MBEDTLS_X509_BADCERT_NOT_TRUSTED and MBEDTLS_X509_BADCERT_EXPIRED, to be
  1184. set when the verification conditions are not met regardless of the cause.
  1185. Found by Harm Verhagen and inestlerode. #665 #561
  1186. * Fix the redefinition of macro ssl_set_bio to an undefined symbol
  1187. mbedtls_ssl_set_bio_timeout in compat-1.3.h, by removing it.
  1188. Found by omlib-lin. #673
  1189. * Fix unused variable/function compilation warnings in pem.c, x509_crt.c and
  1190. x509_csr.c that are reported when building mbed TLS with a config.h that
  1191. does not define MBEDTLS_PEM_PARSE_C. Found by omnium21. #562
  1192. * Fix incorrect renegotiation condition in ssl_check_ctr_renegotiate() that
  1193. would compare 64 bits of the record counter instead of 48 bits as indicated
  1194. in RFC 6347 Section 4.3.1. This could cause the execution of the
  1195. renegotiation routines at unexpected times when the protocol is DTLS. Found
  1196. by wariua. #687
  1197. * Fixed multiple buffer overreads in mbedtls_pem_read_buffer() when parsing
  1198. the input string in PEM format to extract the different components. Found
  1199. by Eyal Itkin.
  1200. * Fixed potential arithmetic overflow in mbedtls_ctr_drbg_reseed() that could
  1201. cause buffer bound checks to be bypassed. Found by Eyal Itkin.
  1202. * Fixed potential arithmetic overflows in mbedtls_cipher_update() that could
  1203. cause buffer bound checks to be bypassed. Found by Eyal Itkin.
  1204. * Fixed potential arithmetic overflow in mbedtls_md2_update() that could
  1205. cause buffer bound checks to be bypassed. Found by Eyal Itkin.
  1206. * Fixed potential arithmetic overflow in mbedtls_base64_decode() that could
  1207. cause buffer bound checks to be bypassed. Found by Eyal Itkin.
  1208. * Fixed heap overreads in mbedtls_x509_get_time(). Found by Peng
  1209. Li/Yueh-Hsun Lin, KNOX Security, Samsung Research America.
  1210. * Fix potential memory leak in mbedtls_x509_crl_parse(). The leak was caused
  1211. by missing calls to mbedtls_pem_free() in cases when a
  1212. MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT error was encountered. Found and
  1213. fix proposed by Guido Vranken. #722
  1214. * Fixed the templates used to generate project and solution files for Visual
  1215. Studio 2015 as well as the files themselves, to remove a build warning
  1216. generated in Visual Studio 2015. Reported by Steve Valliere. #742
  1217. * Fix a resource leak in ssl_cookie, when using MBEDTLS_THREADING_C.
  1218. Raised and fix suggested by Alan Gillingham in the mbed TLS forum. #771
  1219. * Fix 1 byte buffer overflow in mbedtls_mpi_write_string() when the MPI
  1220. number to write in hexadecimal is negative and requires an odd number of
  1221. digits. Found and fixed by Guido Vranken.
  1222. * Fix unlisted DES configuration dependency in some pkparse test cases. Found
  1223. by inestlerode. #555
  1224. = mbed TLS 2.4.1 branch released 2016-12-13
  1225. Changes
  1226. * Update to CMAC test data, taken from - NIST Special Publication 800-38B -
  1227. Recommendation for Block Cipher Modes of Operation: The CMAC Mode for
  1228. Authentication – October 2016
  1229. = mbed TLS 2.4.0 branch released 2016-10-17
  1230. Security
  1231. * Removed the MBEDTLS_SSL_AEAD_RANDOM_IV option, because it was not compliant
  1232. with RFC-5116 and could lead to session key recovery in very long TLS
  1233. sessions. "Nonce-Disrespecting Adversaries Practical Forgery Attacks on GCM in
  1234. TLS" - H. Bock, A. Zauner, S. Devlin, J. Somorovsky, P. Jovanovic.
  1235. https://eprint.iacr.org/2016/475.pdf
  1236. * Fixed potential stack corruption in mbedtls_x509write_crt_der() and
  1237. mbedtls_x509write_csr_der() when the signature is copied to the buffer
  1238. without checking whether there is enough space in the destination. The
  1239. issue cannot be triggered remotely. Found by Jethro Beekman.
  1240. Features
  1241. * Added support for CMAC for AES and 3DES and AES-CMAC-PRF-128, as defined by
  1242. NIST SP 800-38B, RFC-4493 and RFC-4615.
  1243. * Added hardware entropy selftest to verify that the hardware entropy source
  1244. is functioning correctly.
  1245. * Added a script to print build environment info for diagnostic use in test
  1246. scripts, which is also now called by all.sh.
  1247. * Added the macro MBEDTLS_X509_MAX_FILE_PATH_LEN that enables the user to
  1248. configure the maximum length of a file path that can be buffered when
  1249. calling mbedtls_x509_crt_parse_path().
  1250. * Added a configuration file config-no-entropy.h that configures the subset of
  1251. library features that do not require an entropy source.
  1252. * Added the macro MBEDTLS_ENTROPY_MIN_HARDWARE in config.h. This allows users
  1253. to configure the minimum number of bytes for entropy sources using the
  1254. mbedtls_hardware_poll() function.
  1255. Bugfix
  1256. * Fix for platform time abstraction to avoid dependency issues where a build
  1257. may need time but not the standard C library abstraction, and added
  1258. configuration consistency checks to check_config.h
  1259. * Fix dependency issue in Makefile to allow parallel builds.
  1260. * Fix incorrect handling of block lengths in crypt_and_hash.c sample program,
  1261. when GCM is used. Found by udf2457. #441
  1262. * Fix for key exchanges based on ECDH-RSA or ECDH-ECDSA which weren't
  1263. enabled unless others were also present. Found by David Fernandez. #428
  1264. * Fix for out-of-tree builds using CMake. Found by jwurzer, and fix based on
  1265. a contribution from Tobias Tangemann. #541
  1266. * Fixed cert_app.c sample program for debug output and for use when no root
  1267. certificates are provided.
  1268. * Fix conditional statement that would cause a 1 byte overread in
  1269. mbedtls_asn1_get_int(). Found and fixed by Guido Vranken. #599
  1270. * Fixed pthread implementation to avoid unintended double initialisations
  1271. and double frees. Found by Niklas Amnebratt.
  1272. * Fixed the sample applications gen_key.c, cert_req.c and cert_write.c for
  1273. builds where the configuration MBEDTLS_PEM_WRITE_C is not defined. Found
  1274. by inestlerode. #559.
  1275. * Fix mbedtls_x509_get_sig() to update the ASN1 type in the mbedtls_x509_buf
  1276. data structure until after error checks are successful. Found by
  1277. subramanyam-c. #622
  1278. * Fix documentation and implementation missmatch for function arguments of
  1279. mbedtls_gcm_finish(). Found by cmiatpaar. #602
  1280. * Guarantee that P>Q at RSA key generation. Found by inestlerode. #558
  1281. * Fix potential byte overread when verifying malformed SERVER_HELLO in
  1282. ssl_parse_hello_verify_request() for DTLS. Found by Guido Vranken.
  1283. * Fix check for validity of date when parsing in mbedtls_x509_get_time().
  1284. Found by subramanyam-c. #626
  1285. * Fix compatibility issue with Internet Explorer client authentication,
  1286. where the limited hash choices prevented the client from sending its
  1287. certificate. Found by teumas. #513
  1288. * Fix compilation without MBEDTLS_SELF_TEST enabled.
  1289. Changes
  1290. * Extended test coverage of special cases, and added new timing test suite.
  1291. * Removed self-tests from the basic-built-test.sh script, and added all
  1292. missing self-tests to the test suites, to ensure self-tests are only
  1293. executed once.
  1294. * Added support for 3 and 4 byte lengths to mbedtls_asn1_write_len().
  1295. * Added support for a Yotta specific configuration file -
  1296. through the symbol YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE.
  1297. * Added optimization for code space for X.509/OID based on configured
  1298. features. Contributed by Aviv Palivoda.
  1299. * Renamed source file library/net.c to library/net_sockets.c to avoid
  1300. naming collision in projects which also have files with the common name
  1301. net.c. For consistency, the corresponding header file, net.h, is marked as
  1302. deprecated, and its contents moved to net_sockets.h.
  1303. * Changed the strategy for X.509 certificate parsing and validation, to no
  1304. longer disregard certificates with unrecognised fields.
  1305. = mbed TLS 2.3.0 branch released 2016-06-28
  1306. Security
  1307. * Fix missing padding length check in mbedtls_rsa_rsaes_pkcs1_v15_decrypt
  1308. required by PKCS1 v2.2
  1309. * Fix potential integer overflow to buffer overflow in
  1310. mbedtls_rsa_rsaes_pkcs1_v15_encrypt and mbedtls_rsa_rsaes_oaep_encrypt
  1311. (not triggerable remotely in (D)TLS).
  1312. * Fix a potential integer underflow to buffer overread in
  1313. mbedtls_rsa_rsaes_oaep_decrypt. It is not triggerable remotely in
  1314. SSL/TLS.
  1315. Features
  1316. * Support for platform abstraction of the standard C library time()
  1317. function.
  1318. Bugfix
  1319. * Fix bug in mbedtls_mpi_add_mpi() that caused wrong results when the three
  1320. arguments where the same (in-place doubling). Found and fixed by Janos
  1321. Follath. #309
  1322. * Fix potential build failures related to the 'apidoc' target, introduced
  1323. in the previous patch release. Found by Robert Scheck. #390 #391
  1324. * Fix issue in Makefile that prevented building using armar. #386
  1325. * Fix memory leak that occurred only when ECJPAKE was enabled and ECDHE and
  1326. ECDSA was disabled in config.h . The leak didn't occur by default.
  1327. * Fix an issue that caused valid certificates to be rejected whenever an
  1328. expired or not yet valid certificate was parsed before a valid certificate
  1329. in the trusted certificate list.
  1330. * Fix bug in mbedtls_x509_crt_parse that caused trailing extra data in the
  1331. buffer after DER certificates to be included in the raw representation.
  1332. * Fix issue that caused a hang when generating RSA keys of odd bitlength
  1333. * Fix bug in mbedtls_rsa_rsaes_pkcs1_v15_encrypt that made null pointer
  1334. dereference possible.
  1335. * Fix issue that caused a crash if invalid curves were passed to
  1336. mbedtls_ssl_conf_curves. #373
  1337. * Fix issue in ssl_fork_server which was preventing it from functioning. #429
  1338. * Fix memory leaks in test framework
  1339. * Fix test in ssl-opt.sh that does not run properly with valgrind
  1340. * Fix unchecked calls to mmbedtls_md_setup(). Fix by Brian Murray. #502
  1341. Changes
  1342. * On ARM platforms, when compiling with -O0 with GCC, Clang or armcc5,
  1343. don't use the optimized assembly for bignum multiplication. This removes
  1344. the need to pass -fomit-frame-pointer to avoid a build error with -O0.
  1345. * Disabled SSLv3 in the default configuration.
  1346. * Optimized mbedtls_mpi_zeroize() for MPI integer size. (Fix by Alexey
  1347. Skalozub).
  1348. * Fix non-compliance server extension handling. Extensions for SSLv3 are now
  1349. ignored, as required by RFC6101.
  1350. = mbed TLS 2.2.1 released 2016-01-05
  1351. Security
  1352. * Fix potential double free when mbedtls_asn1_store_named_data() fails to
  1353. allocate memory. Only used for certificate generation, not triggerable
  1354. remotely in SSL/TLS. Found by Rafał Przywara. #367
  1355. * Disable MD5 handshake signatures in TLS 1.2 by default to prevent the
  1356. SLOTH attack on TLS 1.2 server authentication (other attacks from the
  1357. SLOTH paper do not apply to any version of mbed TLS or PolarSSL).
  1358. https://www.mitls.org/pages/attacks/SLOTH
  1359. Bugfix
  1360. * Fix over-restrictive length limit in GCM. Found by Andreas-N. #362
  1361. * Fix bug in certificate validation that caused valid chains to be rejected
  1362. when the first intermediate certificate has pathLenConstraint=0. Found by
  1363. Nicholas Wilson. Introduced in mbed TLS 2.2.0. #280
  1364. * Removed potential leak in mbedtls_rsa_rsassa_pkcs1_v15_sign(), found by
  1365. JayaraghavendranK. #372
  1366. * Fix suboptimal handling of unexpected records that caused interop issues
  1367. with some peers over unreliable links. Avoid dropping an entire DTLS
  1368. datagram if a single record in a datagram is unexpected, instead only
  1369. drop the record and look at subsequent records (if any are present) in
  1370. the same datagram. Found by jeannotlapin. #345
  1371. = mbed TLS 2.2.0 released 2015-11-04
  1372. Security
  1373. * Fix potential double free if mbedtls_ssl_conf_psk() is called more than
  1374. once and some allocation fails. Cannot be forced remotely. Found by Guido
  1375. Vranken, Intelworks.
  1376. * Fix potential heap corruption on Windows when
  1377. mbedtls_x509_crt_parse_path() is passed a path longer than 2GB. Cannot be
  1378. triggered remotely. Found by Guido Vranken, Intelworks.
  1379. * Fix potential buffer overflow in some asn1_write_xxx() functions.
  1380. Cannot be triggered remotely unless you create X.509 certificates based
  1381. on untrusted input or write keys of untrusted origin. Found by Guido
  1382. Vranken, Intelworks.
  1383. * The X509 max_pathlen constraint was not enforced on intermediate
  1384. certificates. Found by Nicholas Wilson, fix and tests provided by
  1385. Janos Follath. #280 and #319
  1386. Features
  1387. * Experimental support for EC J-PAKE as defined in Thread 1.0.0.
  1388. Disabled by default as the specification might still change.
  1389. * Added a key extraction callback to accees the master secret and key
  1390. block. (Potential uses include EAP-TLS and Thread.)
  1391. Bugfix
  1392. * Self-signed certificates were not excluded from pathlen counting,
  1393. resulting in some valid X.509 being incorrectly rejected. Found and fix
  1394. provided by Janos Follath. #319
  1395. * Fix build error with configurations where ECDHE-PSK is the only key
  1396. exchange. Found and fix provided by Chris Hammond. #270
  1397. * Fix build error with configurations where RSA, RSA-PSK, ECDH-RSA or
  1398. ECHD-ECDSA if the only key exchange. Multiple reports. #310
  1399. * Fixed a bug causing some handshakes to fail due to some non-fatal alerts
  1400. not being properly ignored. Found by mancha and Kasom Koht-arsa, #308
  1401. * mbedtls_x509_crt_verify(_with_profile)() now also checks the key type and
  1402. size/curve against the profile. Before that, there was no way to set a
  1403. minimum key size for end-entity certificates with RSA keys. Found by
  1404. Matthew Page of Scannex Electronics Ltd.
  1405. * Fix failures in MPI on Sparc(64) due to use of bad assembly code.
  1406. Found by Kurt Danielson. #292
  1407. * Fix typo in name of the extKeyUsage OID. Found by inestlerode, #314
  1408. * Fix bug in ASN.1 encoding of booleans that caused generated CA
  1409. certificates to be rejected by some applications, including OS X
  1410. Keychain. Found and fixed by Jonathan Leroy, Inikup.
  1411. Changes
  1412. * Improved performance of mbedtls_ecp_muladd() when one of the scalars is 1
  1413. or -1.
  1414. = mbed TLS 2.1.2 released 2015-10-06
  1415. Security
  1416. * Added fix for CVE-2015-5291 to prevent heap corruption due to buffer
  1417. overflow of the hostname or session ticket. Found by Guido Vranken,
  1418. Intelworks.
  1419. * Fix potential double-free if mbedtls_ssl_set_hs_psk() is called more than
  1420. once in the same handhake and mbedtls_ssl_conf_psk() was used.
  1421. Found and patch provided by Guido Vranken, Intelworks. Cannot be forced
  1422. remotely.
  1423. * Fix stack buffer overflow in pkcs12 decryption (used by
  1424. mbedtls_pk_parse_key(file)() when the password is > 129 bytes.
  1425. Found by Guido Vranken, Intelworks. Not triggerable remotely.
  1426. * Fix potential buffer overflow in mbedtls_mpi_read_string().
  1427. Found by Guido Vranken, Intelworks. Not exploitable remotely in the context
  1428. of TLS, but might be in other uses. On 32 bit machines, requires reading a
  1429. string of close to or larger than 1GB to exploit; on 64 bit machines, would
  1430. require reading a string of close to or larger than 2^62 bytes.
  1431. * Fix potential random memory allocation in mbedtls_pem_read_buffer()
  1432. on crafted PEM input data. Found and fix provided by Guido Vranken,
  1433. Intelworks. Not triggerable remotely in TLS. Triggerable remotely if you
  1434. accept PEM data from an untrusted source.
  1435. * Fix possible heap buffer overflow in base64_encoded() when the input
  1436. buffer is 512MB or larger on 32-bit platforms. Found by Guido Vranken,
  1437. Intelworks. Not trigerrable remotely in TLS.
  1438. * Fix potential double-free if mbedtls_conf_psk() is called repeatedly on
  1439. the same mbedtls_ssl_config object and memory allocation fails. Found by
  1440. Guido Vranken, Intelworks. Cannot be forced remotely.
  1441. * Fix potential heap buffer overflow in servers that perform client
  1442. authentication against a crafted CA cert. Cannot be triggered remotely
  1443. unless you allow third parties to pick trust CAs for client auth.
  1444. Found by Guido Vranken, Intelworks.
  1445. Bugfix
  1446. * Fix compile error in net.c with musl libc. Found and patch provided by
  1447. zhasha (#278).
  1448. * Fix macroization of 'inline' keyword when building as C++. (#279)
  1449. Changes
  1450. * Added checking of hostname length in mbedtls_ssl_set_hostname() to ensure
  1451. domain names are compliant with RFC 1035.
  1452. * Fixed paths for check_config.h in example config files. (Found by bachp)
  1453. (#291)
  1454. = mbed TLS 2.1.1 released 2015-09-17
  1455. Security
  1456. * Add countermeasure against Lenstra's RSA-CRT attack for PKCS#1 v1.5
  1457. signatures. (Found by Florian Weimer, Red Hat.)
  1458. https://securityblog.redhat.com/2015/09/02/factoring-rsa-keys-with-tls-perfect-forward-secrecy/
  1459. * Fix possible client-side NULL pointer dereference (read) when the client
  1460. tries to continue the handshake after it failed (a misuse of the API).
  1461. (Found and patch provided by Fabian Foerg, Gotham Digital Science using
  1462. afl-fuzz.)
  1463. Bugfix
  1464. * Fix warning when using a 64bit platform. (found by embedthis) (#275)
  1465. * Fix off-by-one error in parsing Supported Point Format extension that
  1466. caused some handshakes to fail.
  1467. Changes
  1468. * Made X509 profile pointer const in mbedtls_ssl_conf_cert_profile() to allow
  1469. use of mbedtls_x509_crt_profile_next. (found by NWilson)
  1470. * When a client initiates a reconnect from the same port as a live
  1471. connection, if cookie verification is available
  1472. (MBEDTLS_SSL_DTLS_HELLO_VERIFY defined in config.h, and usable cookie
  1473. callbacks set with mbedtls_ssl_conf_dtls_cookies()), this will be
  1474. detected and mbedtls_ssl_read() will return
  1475. MBEDTLS_ERR_SSL_CLIENT_RECONNECT - it is then possible to start a new
  1476. handshake with the same context. (See RFC 6347 section 4.2.8.)
  1477. = mbed TLS 2.1.0 released 2015-09-04
  1478. Features
  1479. * Added support for yotta as a build system.
  1480. * Primary open source license changed to Apache 2.0 license.
  1481. Bugfix
  1482. * Fix segfault in the benchmark program when benchmarking DHM.
  1483. * Fix build error with CMake and pre-4.5 versions of GCC (found by Hugo
  1484. Leisink).
  1485. * Fix bug when parsing a ServerHello without extensions (found by David
  1486. Sears).
  1487. * Fix bug in CMake lists that caused libmbedcrypto.a not to be installed
  1488. (found by Benoit Lecocq).
  1489. * Fix bug in Makefile that caused libmbedcrypto and libmbedx509 not to be
  1490. installed (found by Rawi666).
  1491. * Fix compile error with armcc 5 with --gnu option.
  1492. * Fix bug in Makefile that caused programs not to be installed correctly
  1493. (found by robotanarchy) (#232).
  1494. * Fix bug in Makefile that prevented from installing without building the
  1495. tests (found by robotanarchy) (#232).
  1496. * Fix missing -static-libgcc when building shared libraries for Windows
  1497. with make.
  1498. * Fix link error when building shared libraries for Windows with make.
  1499. * Fix error when loading libmbedtls.so.
  1500. * Fix bug in mbedtls_ssl_conf_default() that caused the default preset to
  1501. be always used (found by dcb314) (#235)
  1502. * Fix bug in mbedtls_rsa_public() and mbedtls_rsa_private() that could
  1503. result trying to unlock an unlocked mutex on invalid input (found by
  1504. Fredrik Axelsson) (#257)
  1505. * Fix -Wshadow warnings (found by hnrkp) (#240)
  1506. * Fix memory corruption on client with overlong PSK identity, around
  1507. SSL_MAX_CONTENT_LEN or higher - not triggerrable remotely (found by
  1508. Aleksandrs Saveljevs) (#238)
  1509. * Fix unused function warning when using MBEDTLS_MDx_ALT or
  1510. MBEDTLS_SHAxxx_ALT (found by Henrik) (#239)
  1511. * Fix memory corruption in pkey programs (found by yankuncheng) (#210)
  1512. Changes
  1513. * The PEM parser now accepts a trailing space at end of lines (#226).
  1514. * It is now possible to #include a user-provided configuration file at the
  1515. end of the default config.h by defining MBEDTLS_USER_CONFIG_FILE on the
  1516. compiler's command line.
  1517. * When verifying a certificate chain, if an intermediate certificate is
  1518. trusted, no later cert is checked. (suggested by hannes-landeholm)
  1519. (#220).
  1520. * Prepend a "thread identifier" to debug messages (issue pointed out by
  1521. Hugo Leisink) (#210).
  1522. * Add mbedtls_ssl_get_max_frag_len() to query the current maximum fragment
  1523. length.
  1524. = mbed TLS 2.0.0 released 2015-07-13
  1525. Features
  1526. * Support for DTLS 1.0 and 1.2 (RFC 6347).
  1527. * Ability to override core functions from MDx, SHAx, AES and DES modules
  1528. with custom implementation (eg hardware accelerated), complementing the
  1529. ability to override the whole module.
  1530. * New server-side implementation of session tickets that rotate keys to
  1531. preserve forward secrecy, and allows sharing across multiple contexts.
  1532. * Added a concept of X.509 cerificate verification profile that controls
  1533. which algorithms and key sizes (curves for ECDSA) are acceptable.
  1534. * Expanded configurability of security parameters in the SSL module with
  1535. mbedtls_ssl_conf_dhm_min_bitlen() and mbedtls_ssl_conf_sig_hashes().
  1536. * Introduced a concept of presets for SSL security-relevant configuration
  1537. parameters.
  1538. API Changes
  1539. * The library has been split into libmbedcrypto, libmbedx509, libmbedtls.
  1540. You now need to link to all of them if you use TLS for example.
  1541. * All public identifiers moved to the mbedtls_* or MBEDTLS_* namespace.
  1542. Some names have been further changed to make them more consistent.
  1543. Migration helpers scripts/rename.pl and include/mbedtls/compat-1.3.h are
  1544. provided. Full list of renamings in scripts/data_files/rename-1.3-2.0.txt
  1545. * Renamings of fields inside structures, not covered by the previous list:
  1546. mbedtls_cipher_info_t.key_length -> key_bitlen
  1547. mbedtls_cipher_context_t.key_length -> key_bitlen
  1548. mbedtls_ecp_curve_info.size -> bit_size
  1549. * Headers are now found in the 'mbedtls' directory (previously 'polarssl').
  1550. * The following _init() functions that could return errors have
  1551. been split into an _init() that returns void and another function that
  1552. should generally be the first function called on this context after init:
  1553. mbedtls_ssl_init() -> mbedtls_ssl_setup()
  1554. mbedtls_ccm_init() -> mbedtls_ccm_setkey()
  1555. mbedtls_gcm_init() -> mbedtls_gcm_setkey()
  1556. mbedtls_hmac_drbg_init() -> mbedtls_hmac_drbg_seed(_buf)()
  1557. mbedtls_ctr_drbg_init() -> mbedtls_ctr_drbg_seed()
  1558. Note that for mbedtls_ssl_setup(), you need to be done setting up the
  1559. ssl_config structure before calling it.
  1560. * Most ssl_set_xxx() functions (all except ssl_set_bio(), ssl_set_hostname(),
  1561. ssl_set_session() and ssl_set_client_transport_id(), plus
  1562. ssl_legacy_renegotiation()) have been renamed to mbedtls_ssl_conf_xxx()
  1563. (see rename.pl and compat-1.3.h above) and their first argument's type
  1564. changed from ssl_context to ssl_config.
  1565. * ssl_set_bio() changed signature (contexts merged, order switched, one
  1566. additional callback for read-with-timeout).
  1567. * The following functions have been introduced and must be used in callback
  1568. implementations (SNI, PSK) instead of their *conf counterparts:
  1569. mbedtls_ssl_set_hs_own_cert()
  1570. mbedtls_ssl_set_hs_ca_chain()
  1571. mbedtls_ssl_set_hs_psk()
  1572. * mbedtls_ssl_conf_ca_chain() lost its last argument (peer_cn), now set
  1573. using mbedtls_ssl_set_hostname().
  1574. * mbedtls_ssl_conf_session_cache() changed prototype (only one context
  1575. pointer, parameters reordered).
  1576. * On server, mbedtls_ssl_conf_session_tickets_cb() must now be used in
  1577. place of mbedtls_ssl_conf_session_tickets() to enable session tickets.
  1578. * The SSL debug callback gained two new arguments (file name, line number).
  1579. * Debug modes were removed.
  1580. * mbedtls_ssl_conf_truncated_hmac() now returns void.
  1581. * mbedtls_memory_buffer_alloc_init() now returns void.
  1582. * X.509 verification flags are now an uint32_t. Affect the signature of:
  1583. mbedtls_ssl_get_verify_result()
  1584. mbedtls_x509_ctr_verify_info()
  1585. mbedtls_x509_crt_verify() (flags, f_vrfy -> needs to be updated)
  1586. mbedtls_ssl_conf_verify() (f_vrfy -> needs to be updated)
  1587. * The following functions changed prototype to avoid an in-out length
  1588. parameter:
  1589. mbedtls_base64_encode()
  1590. mbedtls_base64_decode()
  1591. mbedtls_mpi_write_string()
  1592. mbedtls_dhm_calc_secret()
  1593. * In the NET module, all "int" and "int *" arguments for file descriptors
  1594. changed type to "mbedtls_net_context *".
  1595. * net_accept() gained new arguments for the size of the client_ip buffer.
  1596. * In the threading layer, mbedtls_mutex_init() and mbedtls_mutex_free() now
  1597. return void.
  1598. * ecdsa_write_signature() gained an additional md_alg argument and
  1599. ecdsa_write_signature_det() was deprecated.
  1600. * pk_sign() no longer accepts md_alg == POLARSSL_MD_NONE with ECDSA.
  1601. * Last argument of x509_crt_check_key_usage() and
  1602. mbedtls_x509write_crt_set_key_usage() changed from int to unsigned.
  1603. * test_ca_list (from certs.h) is renamed to test_cas_pem and is only
  1604. available if POLARSSL_PEM_PARSE_C is defined (it never worked without).
  1605. * Test certificates in certs.c are no longer guaranteed to be nul-terminated
  1606. strings; use the new *_len variables instead of strlen().
  1607. * Functions mbedtls_x509_xxx_parse(), mbedtls_pk_parse_key(),
  1608. mbedtls_pk_parse_public_key() and mbedtls_dhm_parse_dhm() now expect the
  1609. length parameter to include the terminating null byte for PEM input.
  1610. * Signature of mpi_mul_mpi() changed to make the last argument unsigned
  1611. * calloc() is now used instead of malloc() everywhere. API of platform
  1612. layer and the memory_buffer_alloc module changed accordingly.
  1613. (Thanks to Mansour Moufid for helping with the replacement.)
  1614. * Change SSL_DISABLE_RENEGOTIATION config.h flag to SSL_RENEGOTIATION
  1615. (support for renegotiation now needs explicit enabling in config.h).
  1616. * Split MBEDTLS_HAVE_TIME into MBEDTLS_HAVE_TIME and MBEDTLS_HAVE_TIME_DATE
  1617. in config.h
  1618. * net_connect() and net_bind() have a new 'proto' argument to choose
  1619. between TCP and UDP, using the macros NET_PROTO_TCP or NET_PROTO_UDP.
  1620. Their 'port' argument type is changed to a string.
  1621. * Some constness fixes
  1622. Removals
  1623. * Removed mbedtls_ecp_group_read_string(). Only named groups are supported.
  1624. * Removed mbedtls_ecp_sub() and mbedtls_ecp_add(), use
  1625. mbedtls_ecp_muladd().
  1626. * Removed individual mdX_hmac, shaX_hmac, mdX_file and shaX_file functions
  1627. (use generic functions from md.h)
  1628. * Removed mbedtls_timing_msleep(). Use mbedtls_net_usleep() or a custom
  1629. waiting function.
  1630. * Removed test DHM parameters from the test certs module.
  1631. * Removed the PBKDF2 module (use PKCS5).
  1632. * Removed POLARSSL_ERROR_STRERROR_BC (use mbedtls_strerror()).
  1633. * Removed compat-1.2.h (helper for migrating from 1.2 to 1.3).
  1634. * Removed openssl.h (very partial OpenSSL compatibility layer).
  1635. * Configuration options POLARSSL_HAVE_LONGLONG was removed (now always on).
  1636. * Configuration options POLARSSL_HAVE_INT8 and POLARSSL_HAVE_INT16 have
  1637. been removed (compiler is required to support 32-bit operations).
  1638. * Configuration option POLARSSL_HAVE_IPV6 was removed (always enabled).
  1639. * Removed test program o_p_test, the script compat.sh does more.
  1640. * Removed test program ssl_test, superseded by ssl-opt.sh.
  1641. * Removed helper script active-config.pl
  1642. New deprecations
  1643. * md_init_ctx() is deprecated in favour of md_setup(), that adds a third
  1644. argument (allowing memory savings if HMAC is not used)
  1645. Semi-API changes (technically public, morally private)
  1646. * Renamed a few headers to include _internal in the name. Those headers are
  1647. not supposed to be included by users.
  1648. * Changed md_info_t into an opaque structure (use md_get_xxx() accessors).
  1649. * Changed pk_info_t into an opaque structure.
  1650. * Changed cipher_base_t into an opaque structure.
  1651. * Removed sig_oid2 and rename sig_oid1 to sig_oid in x509_crt and x509_crl.
  1652. * x509_crt.key_usage changed from unsigned char to unsigned int.
  1653. * Removed r and s from ecdsa_context
  1654. * Removed mode from des_context and des3_context
  1655. Default behavior changes
  1656. * The default minimum TLS version is now TLS 1.0.
  1657. * RC4 is now blacklisted by default in the SSL/TLS layer, and excluded from the
  1658. default ciphersuite list returned by ssl_list_ciphersuites()
  1659. * Support for receiving SSLv2 ClientHello is now disabled by default at
  1660. compile time.
  1661. * The default authmode for SSL/TLS clients is now REQUIRED.
  1662. * Support for RSA_ALT contexts in the PK layer is now optional. Since is is
  1663. enabled in the default configuration, this is only noticeable if using a
  1664. custom config.h
  1665. * Default DHM parameters server-side upgraded from 1024 to 2048 bits.
  1666. * A minimum RSA key size of 2048 bits is now enforced during ceritificate
  1667. chain verification.
  1668. * Negotiation of truncated HMAC is now disabled by default on server too.
  1669. * The following functions are now case-sensitive:
  1670. mbedtls_cipher_info_from_string()
  1671. mbedtls_ecp_curve_info_from_name()
  1672. mbedtls_md_info_from_string()
  1673. mbedtls_ssl_ciphersuite_from_string()
  1674. mbedtls_version_check_feature()
  1675. Requirement changes
  1676. * The minimum MSVC version required is now 2010 (better C99 support).
  1677. * The NET layer now unconditionnaly relies on getaddrinfo() and select().
  1678. * Compiler is required to support C99 types such as long long and uint32_t.
  1679. API changes from the 1.4 preview branch
  1680. * ssl_set_bio_timeout() was removed, split into mbedtls_ssl_set_bio() with
  1681. new prototype, and mbedtls_ssl_set_read_timeout().
  1682. * The following functions now return void:
  1683. mbedtls_ssl_conf_transport()
  1684. mbedtls_ssl_conf_max_version()
  1685. mbedtls_ssl_conf_min_version()
  1686. * DTLS no longer hard-depends on TIMING_C, but uses a callback interface
  1687. instead, see mbedtls_ssl_set_timer_cb(), with the Timing module providing
  1688. an example implementation, see mbedtls_timing_delay_context and
  1689. mbedtls_timing_set/get_delay().
  1690. * With UDP sockets, it is no longer necessary to call net_bind() again
  1691. after a successful net_accept().
  1692. Changes
  1693. * mbedtls_ctr_drbg_random() and mbedtls_hmac_drbg_random() are now
  1694. thread-safe if MBEDTLS_THREADING_C is enabled.
  1695. * Reduced ROM fooprint of SHA-256 and added an option to reduce it even
  1696. more (at the expense of performance) MBEDTLS_SHA256_SMALLER.
  1697. = mbed TLS 1.3 branch
  1698. Security
  1699. * With authmode set to SSL_VERIFY_OPTIONAL, verification of keyUsage and
  1700. extendedKeyUsage on the leaf certificate was lost (results not accessible
  1701. via ssl_get_verify_results()).
  1702. * Add countermeasure against "Lucky 13 strikes back" cache-based attack,
  1703. https://dl.acm.org/citation.cfm?id=2714625
  1704. Features
  1705. * Improve ECC performance by using more efficient doubling formulas
  1706. (contributed by Peter Dettman).
  1707. * Add x509_crt_verify_info() to display certificate verification results.
  1708. * Add support for reading DH parameters with privateValueLength included
  1709. (contributed by Daniel Kahn Gillmor).
  1710. * Add support for bit strings in X.509 names (request by Fredrik Axelsson).
  1711. * Add support for id-at-uniqueIdentifier in X.509 names.
  1712. * Add support for overriding snprintf() (except on Windows) and exit() in
  1713. the platform layer.
  1714. * Add an option to use macros instead of function pointers in the platform
  1715. layer (helps get rid of unwanted references).
  1716. * Improved Makefiles for Windows targets by fixing library targets and making
  1717. cross-compilation easier (thanks to Alon Bar-Lev).
  1718. * The benchmark program also prints heap usage for public-key primitives
  1719. if POLARSSL_MEMORY_BUFFER_ALLOC_C and POLARSSL_MEMORY_DEBUG are defined.
  1720. * New script ecc-heap.sh helps measuring the impact of ECC parameters on
  1721. speed and RAM (heap only for now) usage.
  1722. * New script memory.sh helps measuring the ROM and RAM requirements of two
  1723. reduced configurations (PSK-CCM and NSA suite B).
  1724. * Add config flag POLARSSL_DEPRECATED_WARNING (off by default) to produce
  1725. warnings on use of deprecated functions (with GCC and Clang only).
  1726. * Add config flag POLARSSL_DEPRECATED_REMOVED (off by default) to produce
  1727. errors on use of deprecated functions.
  1728. Bugfix
  1729. * Fix compile errors with PLATFORM_NO_STD_FUNCTIONS.
  1730. * Fix compile error with PLATFORM_EXIT_ALT (thanks to Rafał Przywara).
  1731. * Fix bug in entropy.c when THREADING_C is also enabled that caused
  1732. entropy_free() to crash (thanks to Rafał Przywara).
  1733. * Fix memory leak when gcm_setkey() and ccm_setkey() are used more than
  1734. once on the same context.
  1735. * Fix bug in ssl_mail_client when password is longer that username (found
  1736. by Bruno Pape).
  1737. * Fix undefined behaviour (memcmp( NULL, NULL, 0 );) in X.509 modules
  1738. (detected by Clang's 3.6 UBSan).
  1739. * mpi_size() and mpi_msb() would segfault when called on an mpi that is
  1740. initialized but not set (found by pravic).
  1741. * Fix detection of support for getrandom() on Linux (reported by syzzer) by
  1742. doing it at runtime (using uname) rather that compile time.
  1743. * Fix handling of symlinks by "make install" (found by Gaël PORTAY).
  1744. * Fix potential NULL pointer dereference (not trigerrable remotely) when
  1745. ssl_write() is called before the handshake is finished (introduced in
  1746. 1.3.10) (first reported by Martin Blumenstingl).
  1747. * Fix bug in pk_parse_key() that caused some valid private EC keys to be
  1748. rejected.
  1749. * Fix bug in Via Padlock support (found by Nikos Mavrogiannopoulos).
  1750. * Fix thread safety bug in RSA operations (found by Fredrik Axelsson).
  1751. * Fix hardclock() (only used in the benchmarking program) with some
  1752. versions of mingw64 (found by kxjhlele).
  1753. * Fix warnings from mingw64 in timing.c (found by kxjklele).
  1754. * Fix potential unintended sign extension in asn1_get_len() on 64-bit
  1755. platforms.
  1756. * Fix potential memory leak in ssl_set_psk() (found by Mansour Moufid).
  1757. * Fix compile error when POLARSSL_SSL_DISABLE_RENEGOTATION and
  1758. POLARSSL_SSL_SSESSION_TICKETS where both enabled in config.h (introduced
  1759. in 1.3.10).
  1760. * Add missing extern "C" guard in aesni.h (reported by amir zamani).
  1761. * Add missing dependency on SHA-256 in some x509 programs (reported by
  1762. Gergely Budai).
  1763. * Fix bug related to ssl_set_curves(): the client didn't check that the
  1764. curve picked by the server was actually allowed.
  1765. Changes
  1766. * Remove bias in mpi_gen_prime (contributed by Pascal Junod).
  1767. * Remove potential sources of timing variations (some contributed by Pascal
  1768. Junod).
  1769. * Options POLARSSL_HAVE_INT8 and POLARSSL_HAVE_INT16 are deprecated.
  1770. * Enabling POLARSSL_NET_C without POLARSSL_HAVE_IPV6 is deprecated.
  1771. * compat-1.2.h and openssl.h are deprecated.
  1772. * Adjusting/overriding CFLAGS and LDFLAGS with the make build system is now
  1773. more flexible (warning: OFLAGS is not used any more) (see the README)
  1774. (contributed by Alon Bar-Lev).
  1775. * ssl_set_own_cert() no longer calls pk_check_pair() since the
  1776. performance impact was bad for some users (this was introduced in 1.3.10).
  1777. * Move from SHA-1 to SHA-256 in example programs using signatures
  1778. (suggested by Thorsten Mühlfelder).
  1779. * Remove some unneeded inclusions of header files from the standard library
  1780. "minimize" others (eg use stddef.h if only size_t is needed).
  1781. * Change #include lines in test files to use double quotes instead of angle
  1782. brackets for uniformity with the rest of the code.
  1783. * Remove dependency on sscanf() in X.509 parsing modules.
  1784. = mbed TLS 1.3.10 released 2015-02-09
  1785. Security
  1786. * NULL pointer dereference in the buffer-based allocator when the buffer is
  1787. full and polarssl_free() is called (found by Mark Hasemeyer)
  1788. (only possible if POLARSSL_MEMORY_BUFFER_ALLOC_C is enabled, which it is
  1789. not by default).
  1790. * Fix remotely-triggerable uninitialised pointer dereference caused by
  1791. crafted X.509 certificate (TLS server is not affected if it doesn't ask for a
  1792. client certificate) (found using Codenomicon Defensics).
  1793. * Fix remotely-triggerable memory leak caused by crafted X.509 certificates
  1794. (TLS server is not affected if it doesn't ask for a client certificate)
  1795. (found using Codenomicon Defensics).
  1796. * Fix potential stack overflow while parsing crafted X.509 certificates
  1797. (TLS server is not affected if it doesn't ask for a client certificate)
  1798. (found using Codenomicon Defensics).
  1799. * Fix timing difference that could theoretically lead to a
  1800. Bleichenbacher-style attack in the RSA and RSA-PSK key exchanges
  1801. (reported by Sebastian Schinzel).
  1802. Features
  1803. * Add support for FALLBACK_SCSV (draft-ietf-tls-downgrade-scsv).
  1804. * Add support for Extended Master Secret (draft-ietf-tls-session-hash).
  1805. * Add support for Encrypt-then-MAC (RFC 7366).
  1806. * Add function pk_check_pair() to test if public and private keys match.
  1807. * Add x509_crl_parse_der().
  1808. * Add compile-time option POLARSSL_X509_MAX_INTERMEDIATE_CA to limit the
  1809. length of an X.509 verification chain.
  1810. * Support for renegotiation can now be disabled at compile-time
  1811. * Support for 1/n-1 record splitting, a countermeasure against BEAST.
  1812. * Certificate selection based on signature hash, preferring SHA-1 over SHA-2
  1813. for pre-1.2 clients when multiple certificates are available.
  1814. * Add support for getrandom() syscall on recent Linux kernels with Glibc or
  1815. a compatible enough libc (eg uClibc).
  1816. * Add ssl_set_arc4_support() to make it easier to disable RC4 at runtime
  1817. while using the default ciphersuite list.
  1818. * Added new error codes and debug messages about selection of
  1819. ciphersuite/certificate.
  1820. Bugfix
  1821. * Stack buffer overflow if ctr_drbg_update() is called with too large
  1822. add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).
  1823. * Possible buffer overflow of length at most POLARSSL_MEMORY_ALIGN_MULTIPLE
  1824. if memory_buffer_alloc_init() was called with buf not aligned and len not
  1825. a multiple of POLARSSL_MEMORY_ALIGN_MULTIPLE (not triggerable remotely).
  1826. * User set CFLAGS were ignored by Cmake with gcc (introduced in 1.3.9, found
  1827. by Julian Ospald).
  1828. * Fix potential undefined behaviour in Camellia.
  1829. * Fix potential failure in ECDSA signatures when POLARSSL_ECP_MAX_BITS is a
  1830. multiple of 8 (found by Gergely Budai).
  1831. * Fix unchecked return code in x509_crt_parse_path() on Windows (found by
  1832. Peter Vaskovic).
  1833. * Fix assembly selection for MIPS64 (thanks to James Cowgill).
  1834. * ssl_get_verify_result() now works even if the handshake was aborted due
  1835. to a failed verification (found by Fredrik Axelsson).
  1836. * Skip writing and parsing signature_algorithm extension if none of the
  1837. key exchanges enabled needs certificates. This fixes a possible interop
  1838. issue with some servers when a zero-length extension was sent. (Reported
  1839. by Peter Dettman.)
  1840. * On a 0-length input, base64_encode() did not correctly set output length
  1841. (found by Hendrik van den Boogaard).
  1842. Changes
  1843. * Use deterministic nonces for AEAD ciphers in TLS by default (possible to
  1844. switch back to random with POLARSSL_SSL_AEAD_RANDOM_IV in config.h).
  1845. * Blind RSA private operations even when POLARSSL_RSA_NO_CRT is defined.
  1846. * ssl_set_own_cert() now returns an error on key-certificate mismatch.
  1847. * Forbid repeated extensions in X.509 certificates.
  1848. * debug_print_buf() now prints a text view in addition to hexadecimal.
  1849. * A specific error is now returned when there are ciphersuites in common
  1850. but none of them is usable due to external factors such as no certificate
  1851. with a suitable (extended)KeyUsage or curve or no PSK set.
  1852. * It is now possible to disable negotiation of truncated HMAC server-side
  1853. at runtime with ssl_set_truncated_hmac().
  1854. * Example programs for SSL client and server now disable SSLv3 by default.
  1855. * Example programs for SSL client and server now disable RC4 by default.
  1856. * Use platform.h in all test suites and programs.
  1857. = PolarSSL 1.3.9 released 2014-10-20
  1858. Security
  1859. * Lowest common hash was selected from signature_algorithms extension in
  1860. TLS 1.2 (found by Darren Bane) (introduced in 1.3.8).
  1861. * Remotely-triggerable memory leak when parsing some X.509 certificates
  1862. (server is not affected if it doesn't ask for a client certificate)
  1863. (found using Codenomicon Defensics).
  1864. * Remotely-triggerable memory leak when parsing crafted ClientHello
  1865. (not affected if ECC support was compiled out) (found using Codenomicon
  1866. Defensics).
  1867. Bugfix
  1868. * Support escaping of commas in x509_string_to_names()
  1869. * Fix compile error in ssl_pthread_server (found by Julian Ospald).
  1870. * Fix net_accept() regarding non-blocking sockets (found by Luca Pesce).
  1871. * Don't print uninitialised buffer in ssl_mail_client (found by Marc Abel).
  1872. * Fix warnings from Clang's scan-build (contributed by Alfred Klomp).
  1873. * Fix compile error in timing.c when POLARSSL_NET_C and POLARSSL_SELFTEST
  1874. are defined but not POLARSSL_HAVE_TIME (found by Stephane Di Vito).
  1875. * Remove non-existent file from VS projects (found by Peter Vaskovic).
  1876. * ssl_read() could return non-application data records on server while
  1877. renegotation was pending, and on client when a HelloRequest was received.
  1878. * Server-initiated renegotiation would fail with non-blocking I/O if the
  1879. write callback returned WANT_WRITE when requesting renegotiation.
  1880. * ssl_close_notify() could send more than one message in some circumstances
  1881. with non-blocking I/O.
  1882. * Fix compiler warnings on iOS (found by Sander Niemeijer).
  1883. * x509_crt_parse() did not increase total_failed on PEM error
  1884. * Fix compile error with armcc in mpi_is_prime()
  1885. * Fix potential bad read in parsing ServerHello (found by Adrien
  1886. Vialletelle).
  1887. Changes
  1888. * Ciphersuites using SHA-256 or SHA-384 now require TLS 1.x (there is no
  1889. standard defining how to use SHA-2 with SSL 3.0).
  1890. * Ciphersuites using RSA-PSK key exchange new require TLS 1.x (the spec is
  1891. ambiguous on how to encode some packets with SSL 3.0).
  1892. * Made buffer size in pk_write_(pub)key_pem() more dynamic, eg smaller if
  1893. RSA is disabled, larger if POLARSSL_MPI_MAX_SIZE is larger.
  1894. * ssl_read() now returns POLARSSL_ERR_NET_WANT_READ rather than
  1895. POLARSSL_ERR_SSL_UNEXPECTED_MESSAGE on harmless alerts.
  1896. * POLARSSL_MPI_MAX_SIZE now defaults to 1024 in order to allow 8192 bits
  1897. RSA keys.
  1898. * Accept spaces at end of line or end of buffer in base64_decode().
  1899. * X.509 certificates with more than one AttributeTypeAndValue per
  1900. RelativeDistinguishedName are not accepted any more.
  1901. = PolarSSL 1.3.8 released 2014-07-11
  1902. Security
  1903. * Fix length checking for AEAD ciphersuites (found by Codenomicon).
  1904. It was possible to crash the server (and client) using crafted messages
  1905. when a GCM suite was chosen.
  1906. Features
  1907. * Add CCM module and cipher mode to Cipher Layer
  1908. * Support for CCM and CCM_8 ciphersuites
  1909. * Support for parsing and verifying RSASSA-PSS signatures in the X.509
  1910. modules (certificates, CRLs and CSRs).
  1911. * Blowfish in the cipher layer now supports variable length keys.
  1912. * Add example config.h for PSK with CCM, optimized for low RAM usage.
  1913. * Optimize for RAM usage in example config.h for NSA Suite B profile.
  1914. * Add POLARSSL_REMOVE_ARC4_CIPHERSUITES to allow removing RC4 ciphersuites
  1915. from the default list (inactive by default).
  1916. * Add server-side enforcement of sent renegotiation requests
  1917. (ssl_set_renegotiation_enforced())
  1918. * Add SSL_CIPHERSUITES config.h flag to allow specifying a list of
  1919. ciphersuites to use and save some memory if the list is small.
  1920. Changes
  1921. * Add LINK_WITH_PTHREAD option in CMake for explicit linking that is
  1922. required on some platforms (e.g. OpenBSD)
  1923. * Migrate zeroizing of data to polarssl_zeroize() instead of memset()
  1924. against unwanted compiler optimizations
  1925. * md_list() now returns hashes strongest first
  1926. * Selection of hash for signing ServerKeyExchange in TLS 1.2 now picks
  1927. strongest offered by client.
  1928. * All public contexts have _init() and _free() functions now for simpler
  1929. usage pattern
  1930. Bugfix
  1931. * Fix in debug_print_msg()
  1932. * Enforce alignment in the buffer allocator even if buffer is not aligned
  1933. * Remove less-than-zero checks on unsigned numbers
  1934. * Stricter check on SSL ClientHello internal sizes compared to actual packet
  1935. size (found by TrustInSoft)
  1936. * Fix WSAStartup() return value check (found by Peter Vaskovic)
  1937. * Other minor issues (found by Peter Vaskovic)
  1938. * Fix symlink command for cross compiling with CMake (found by Andre
  1939. Heinecke)
  1940. * Fix DER output of gen_key app (found by Gergely Budai)
  1941. * Very small records were incorrectly rejected when truncated HMAC was in
  1942. use with some ciphersuites and versions (RC4 in all versions, CBC with
  1943. versions < TLS 1.1).
  1944. * Very large records using more than 224 bytes of padding were incorrectly
  1945. rejected with CBC-based ciphersuites and TLS >= 1.1
  1946. * Very large records using less padding could cause a buffer overread of up
  1947. to 32 bytes with CBC-based ciphersuites and TLS >= 1.1
  1948. * Restore ability to use a v1 cert as a CA if trusted locally. (This had
  1949. been removed in 1.3.6.)
  1950. * Restore ability to locally trust a self-signed cert that is not a proper
  1951. CA for use as an end entity certificate. (This had been removed in
  1952. 1.3.6.)
  1953. * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan).
  1954. * Use \n\t rather than semicolons for bn_mul asm, since some assemblers
  1955. interpret semicolons as comment delimiters (found by Barry K. Nathan).
  1956. * Fix off-by-one error in parsing Supported Point Format extension that
  1957. caused some handshakes to fail.
  1958. * Fix possible miscomputation of the premaster secret with DHE-PSK key
  1959. exchange that caused some handshakes to fail with other implementations.
  1960. (Failure rate <= 1/255 with common DHM moduli.)
  1961. * Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
  1962. * Fix base64_decode() to return and check length correctly (in case of
  1963. tight buffers)
  1964. * Fix mpi_write_string() to write "00" as hex output for empty MPI (found
  1965. by Hui Dong)
  1966. = PolarSSL 1.3.7 released on 2014-05-02
  1967. Features
  1968. * debug_set_log_mode() added to determine raw or full logging
  1969. * debug_set_threshold() added to ignore messages over threshold level
  1970. * version_check_feature() added to check for compile-time options at
  1971. run-time
  1972. Changes
  1973. * POLARSSL_CONFIG_OPTIONS has been removed. All values are individually
  1974. checked and filled in the relevant module headers
  1975. * Debug module only outputs full lines instead of parts
  1976. * Better support for the different Attribute Types from IETF PKIX (RFC 5280)
  1977. * AES-NI now compiles with "old" assemblers too
  1978. * Ciphersuites based on RC4 now have the lowest priority by default
  1979. Bugfix
  1980. * Only iterate over actual certificates in ssl_write_certificate_request()
  1981. (found by Matthew Page)
  1982. * Typos in platform.c and pkcs11.c (found by Daniel Phillips and Steffan
  1983. Karger)
  1984. * cert_write app should use subject of issuer certificate as issuer of cert
  1985. * Fix false reject in padding check in ssl_decrypt_buf() for CBC
  1986. ciphersuites, for full SSL frames of data.
  1987. * Improve interoperability by not writing extension length in ClientHello /
  1988. ServerHello when no extensions are present (found by Matthew Page)
  1989. * rsa_check_pubkey() now allows an E up to N
  1990. * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings
  1991. * mpi_fill_random() was creating numbers larger than requested on
  1992. big-endian platform when size was not an integer number of limbs
  1993. * Fix dependencies issues in X.509 test suite.
  1994. * Some parts of ssl_tls.c were compiled even when the module was disabled.
  1995. * Fix detection of DragonflyBSD in net.c (found by Markus Pfeiffer)
  1996. * Fix detection of Clang on some Apple platforms with CMake
  1997. (found by Barry K. Nathan)
  1998. = PolarSSL 1.3.6 released on 2014-04-11
  1999. Features
  2000. * Support for the ALPN SSL extension
  2001. * Add option 'use_dev_random' to gen_key application
  2002. * Enable verification of the keyUsage extension for CA and leaf
  2003. certificates (POLARSSL_X509_CHECK_KEY_USAGE)
  2004. * Enable verification of the extendedKeyUsage extension
  2005. (POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE)
  2006. Changes
  2007. * x509_crt_info() now prints information about parsed extensions as well
  2008. * pk_verify() now returns a specific error code when the signature is valid
  2009. but shorter than the supplied length.
  2010. * Use UTC time to check certificate validity.
  2011. * Reject certificates with times not in UTC, per RFC 5280.
  2012. Security
  2013. * Avoid potential timing leak in ecdsa_sign() by blinding modular division.
  2014. (Found by Watson Ladd.)
  2015. * The notAfter date of some certificates was no longer checked since 1.3.5.
  2016. This affects certificates in the user-supplied chain except the top
  2017. certificate. If the user-supplied chain contains only one certificates,
  2018. it is not affected (ie, its notAfter date is properly checked).
  2019. * Prevent potential NULL pointer dereference in ssl_read_record() (found by
  2020. TrustInSoft)
  2021. Bugfix
  2022. * The length of various ClientKeyExchange messages was not properly checked.
  2023. * Some example server programs were not sending the close_notify alert.
  2024. * Potential memory leak in mpi_exp_mod() when error occurs during
  2025. calculation of RR.
  2026. * Fixed malloc/free default #define in platform.c (found by Gergely Budai).
  2027. * Fixed type which made POLARSSL_ENTROPY_FORCE_SHA256 uneffective (found by
  2028. Gergely Budai).
  2029. * Fix #include path in ecdsa.h which wasn't accepted by some compilers.
  2030. (found by Gergely Budai)
  2031. * Fix compile errors when POLARSSL_ERROR_STRERROR_BC is undefined (found by
  2032. Shuo Chen).
  2033. * oid_get_numeric_string() used to truncate the output without returning an
  2034. error if the output buffer was just 1 byte too small.
  2035. * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
  2036. * Calling pk_debug() on an RSA-alt key would segfault.
  2037. * pk_get_size() and pk_get_len() were off by a factor 8 for RSA-alt keys.
  2038. * Potential buffer overwrite in pem_write_buffer() because of low length
  2039. indication (found by Thijs Alkemade)
  2040. * EC curves constants, which should be only in ROM since 1.3.3, were also
  2041. stored in RAM due to missing 'const's (found by Gergely Budai).
  2042. = PolarSSL 1.3.5 released on 2014-03-26
  2043. Features
  2044. * HMAC-DRBG as a separate module
  2045. * Option to set the Curve preference order (disabled by default)
  2046. * Single Platform compatilibity layer (for memory / printf / fprintf)
  2047. * Ability to provide alternate timing implementation
  2048. * Ability to force the entropy module to use SHA-256 as its basis
  2049. (POLARSSL_ENTROPY_FORCE_SHA256)
  2050. * Testing script ssl-opt.sh added for testing 'live' ssl option
  2051. interoperability against OpenSSL and PolarSSL
  2052. * Support for reading EC keys that use SpecifiedECDomain in some cases.
  2053. * Entropy module now supports seed writing and reading
  2054. Changes
  2055. * Deprecated the Memory layer
  2056. * entropy_add_source(), entropy_update_manual() and entropy_gather()
  2057. now thread-safe if POLARSSL_THREADING_C defined
  2058. * Improvements to the CMake build system, contributed by Julian Ospald.
  2059. * Work around a bug of the version of Clang shipped by Apple with Mavericks
  2060. that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
  2061. * Revamped the compat.sh interoperatibility script to include support for
  2062. testing against GnuTLS
  2063. * Deprecated ssl_set_own_cert_rsa() and ssl_set_own_cert_rsa_alt()
  2064. * Improvements to tests/Makefile, contributed by Oden Eriksson.
  2065. Security
  2066. * Forbid change of server certificate during renegotiation to prevent
  2067. "triple handshake" attack when authentication mode is 'optional' (the
  2068. attack was already impossible when authentication is required).
  2069. * Check notBefore timestamp of certificates and CRLs from the future.
  2070. * Forbid sequence number wrapping
  2071. * Fixed possible buffer overflow with overlong PSK
  2072. * Possible remotely-triggered out-of-bounds memory access fixed (found by
  2073. TrustInSoft)
  2074. Bugfix
  2075. * ecp_gen_keypair() does more tries to prevent failure because of
  2076. statistics
  2077. * Fixed bug in RSA PKCS#1 v1.5 "reversed" operations
  2078. * Fixed testing with out-of-source builds using cmake
  2079. * Fixed version-major intolerance in server
  2080. * Fixed CMake symlinking on out-of-source builds
  2081. * Fixed dependency issues in test suite
  2082. * Programs rsa_sign_pss and rsa_verify_pss were not using PSS since 1.3.0
  2083. * Bignum's MIPS-32 assembly was used on MIPS-64, causing chaos. (Found by
  2084. Alex Wilson.)
  2085. * ssl_cache was creating entries when max_entries=0 if TIMING_C was enabled.
  2086. * m_sleep() was sleeping twice too long on most Unix platforms.
  2087. * Fixed bug with session tickets and non-blocking I/O in the unlikely case
  2088. send() would return an EAGAIN error when sending the ticket.
  2089. * ssl_cache was leaking memory when reusing a timed out entry containing a
  2090. client certificate.
  2091. * ssl_srv was leaking memory when client presented a timed out ticket
  2092. containing a client certificate
  2093. * ssl_init() was leaving a dirty pointer in ssl_context if malloc of
  2094. out_ctr failed
  2095. * ssl_handshake_init() was leaving dirty pointers in subcontexts if malloc
  2096. of one of them failed
  2097. * Fix typo in rsa_copy() that impacted PKCS#1 v2 contexts
  2098. * x509_get_current_time() uses localtime_r() to prevent thread issues
  2099. = PolarSSL 1.3.4 released on 2014-01-27
  2100. Features
  2101. * Support for the Koblitz curves: secp192k1, secp224k1, secp256k1
  2102. * Support for RIPEMD-160
  2103. * Support for AES CFB8 mode
  2104. * Support for deterministic ECDSA (RFC 6979)
  2105. Bugfix
  2106. * Potential memory leak in bignum_selftest()
  2107. * Replaced expired test certificate
  2108. * ssl_mail_client now terminates lines with CRLF, instead of LF
  2109. * net module handles timeouts on blocking sockets better (found by Tilman
  2110. Sauerbeck)
  2111. * Assembly format fixes in bn_mul.h
  2112. Security
  2113. * Missing MPI_CHK calls added around unguarded mpi calls (found by
  2114. TrustInSoft)
  2115. = PolarSSL 1.3.3 released on 2013-12-31
  2116. Features
  2117. * EC key generation support in gen_key app
  2118. * Support for adhering to client ciphersuite order preference
  2119. (POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
  2120. * Support for Curve25519
  2121. * Support for ECDH-RSA and ECDH-ECDSA key exchanges and ciphersuites
  2122. * Support for IPv6 in the NET module
  2123. * AES-NI support for AES, AES-GCM and AES key scheduling
  2124. * SSL Pthread-based server example added (ssl_pthread_server)
  2125. Changes
  2126. * gen_prime() speedup
  2127. * Speedup of ECP multiplication operation
  2128. * Relaxed some SHA2 ciphersuite's version requirements
  2129. * Dropped use of readdir_r() instead of readdir() with threading support
  2130. * More constant-time checks in the RSA module
  2131. * Split off curves from ecp.c into ecp_curves.c
  2132. * Curves are now stored fully in ROM
  2133. * Memory usage optimizations in ECP module
  2134. * Removed POLARSSL_THREADING_DUMMY
  2135. Bugfix
  2136. * Fixed bug in mpi_set_bit() on platforms where t_uint is wider than int
  2137. * Fixed X.509 hostname comparison (with non-regular characters)
  2138. * SSL now gracefully handles missing RNG
  2139. * Missing defines / cases for RSA_PSK key exchange
  2140. * crypt_and_hash app checks MAC before final decryption
  2141. * Potential memory leak in ssl_ticket_keys_init()
  2142. * Memory leak in benchmark application
  2143. * Fixed x509_crt_parse_path() bug on Windows platforms
  2144. * Added missing MPI_CHK() around some statements in mpi_div_mpi() (found by
  2145. TrustInSoft)
  2146. * Fixed potential overflow in certificate size verification in
  2147. ssl_write_certificate() (found by TrustInSoft)
  2148. Security
  2149. * Possible remotely-triggered out-of-bounds memory access fixed (found by
  2150. TrustInSoft)
  2151. = PolarSSL 1.3.2 released on 2013-11-04
  2152. Features
  2153. * PK tests added to test framework
  2154. * Added optional optimization for NIST MODP curves (POLARSSL_ECP_NIST_OPTIM)
  2155. * Support for Camellia-GCM mode and ciphersuites
  2156. Changes
  2157. * Padding checks in cipher layer are now constant-time
  2158. * Value comparisons in SSL layer are now constant-time
  2159. * Support for serialNumber, postalAddress and postalCode in X509 names
  2160. * SSL Renegotiation was refactored
  2161. Bugfix
  2162. * More stringent checks in cipher layer
  2163. * Server does not send out extensions not advertised by client
  2164. * Prevent possible alignment warnings on casting from char * to 'aligned *'
  2165. * Misc fixes and additions to dependency checks
  2166. * Const correctness
  2167. * cert_write with selfsign should use issuer_name as subject_name
  2168. * Fix ECDSA corner case: missing reduction mod N (found by DualTachyon)
  2169. * Defines to handle UEFI environment under MSVC
  2170. * Server-side initiated renegotiations send HelloRequest
  2171. = PolarSSL 1.3.1 released on 2013-10-15
  2172. Features
  2173. * Support for Brainpool curves and TLS ciphersuites (RFC 7027)
  2174. * Support for ECDHE-PSK key-exchange and ciphersuites
  2175. * Support for RSA-PSK key-exchange and ciphersuites
  2176. Changes
  2177. * RSA blinding locks for a smaller amount of time
  2178. * TLS compression only allocates working buffer once
  2179. * Introduced POLARSSL_HAVE_READDIR_R for systems without it
  2180. * config.h is more script-friendly
  2181. Bugfix
  2182. * Missing MSVC defines added
  2183. * Compile errors with POLARSSL_RSA_NO_CRT
  2184. * Header files with 'polarssl/'
  2185. * Const correctness
  2186. * Possible naming collision in dhm_context
  2187. * Better support for MSVC
  2188. * threading_set_alt() name
  2189. * Added missing x509write_crt_set_version()
  2190. = PolarSSL 1.3.0 released on 2013-10-01
  2191. Features
  2192. * Elliptic Curve Cryptography module added
  2193. * Elliptic Curve Diffie Hellman module added
  2194. * Ephemeral Elliptic Curve Diffie Hellman support for SSL/TLS
  2195. (ECDHE-based ciphersuites)
  2196. * Ephemeral Elliptic Curve Digital Signature Algorithm support for SSL/TLS
  2197. (ECDSA-based ciphersuites)
  2198. * Ability to specify allowed ciphersuites based on the protocol version.
  2199. * PSK and DHE-PSK based ciphersuites added
  2200. * Memory allocation abstraction layer added
  2201. * Buffer-based memory allocator added (no malloc() / free() / HEAP usage)
  2202. * Threading abstraction layer added (dummy / pthread / alternate)
  2203. * Public Key abstraction layer added
  2204. * Parsing Elliptic Curve keys
  2205. * Parsing Elliptic Curve certificates
  2206. * Support for max_fragment_length extension (RFC 6066)
  2207. * Support for truncated_hmac extension (RFC 6066)
  2208. * Support for zeros-and-length (ANSI X.923) padding, one-and-zeros
  2209. (ISO/IEC 7816-4) padding and zero padding in the cipher layer
  2210. * Support for session tickets (RFC 5077)
  2211. * Certificate Request (CSR) generation with extensions (key_usage,
  2212. ns_cert_type)
  2213. * X509 Certificate writing with extensions (basic_constraints,
  2214. issuer_key_identifier, etc)
  2215. * Optional blinding for RSA, DHM and EC
  2216. * Support for multiple active certificate / key pairs in SSL servers for
  2217. the same host (Not to be confused with SNI!)
  2218. Changes
  2219. * Ability to enable / disable SSL v3 / TLS 1.0 / TLS 1.1 / TLS 1.2
  2220. individually
  2221. * Introduced separate SSL Ciphersuites module that is based on
  2222. Cipher and MD information
  2223. * Internals for SSL module adapted to have separate IV pointer that is
  2224. dynamically set (Better support for hardware acceleration)
  2225. * Moved all OID functionality to a separate module. RSA function
  2226. prototypes for the RSA sign and verify functions changed as a result
  2227. * Split up the GCM module into a starts/update/finish cycle
  2228. * Client and server now filter sent and accepted ciphersuites on minimum
  2229. and maximum protocol version
  2230. * Ability to disable server_name extension (RFC 6066)
  2231. * Renamed error_strerror() to the less conflicting polarssl_strerror()
  2232. (Ability to keep old as well with POLARSSL_ERROR_STRERROR_BC)
  2233. * SHA2 renamed to SHA256, SHA4 renamed to SHA512 and functions accordingly
  2234. * All RSA operations require a random generator for blinding purposes
  2235. * X509 core refactored
  2236. * x509_crt_verify() now case insensitive for cn (RFC 6125 6.4)
  2237. * Also compiles / runs without time-based functions (!POLARSSL_HAVE_TIME)
  2238. * Support faulty X509 v1 certificates with extensions
  2239. (POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3)
  2240. Bugfix
  2241. * Fixed parse error in ssl_parse_certificate_request()
  2242. * zlib compression/decompression skipped on empty blocks
  2243. * Support for AIX header locations in net.c module
  2244. * Fixed file descriptor leaks
  2245. Security
  2246. * RSA blinding on CRT operations to counter timing attacks
  2247. (found by Cyril Arnaud and Pierre-Alain Fouque)
  2248. = Version 1.2.14 released 2015-05-??
  2249. Security
  2250. * Fix potential invalid memory read in the server, that allows a client to
  2251. crash it remotely (found by Caj Larsson).
  2252. * Fix potential invalid memory read in certificate parsing, that allows a
  2253. client to crash the server remotely if client authentication is enabled
  2254. (found using Codenomicon Defensics).
  2255. * Add countermeasure against "Lucky 13 strikes back" cache-based attack,
  2256. https://dl.acm.org/citation.cfm?id=2714625
  2257. Bugfix
  2258. * Fix bug in Via Padlock support (found by Nikos Mavrogiannopoulos).
  2259. * Fix hardclock() (only used in the benchmarking program) with some
  2260. versions of mingw64 (found by kxjhlele).
  2261. * Fix warnings from mingw64 in timing.c (found by kxjklele).
  2262. * Fix potential unintended sign extension in asn1_get_len() on 64-bit
  2263. platforms (found with Coverity Scan).
  2264. = Version 1.2.13 released 2015-02-16
  2265. Note: Although PolarSSL has been renamed to mbed TLS, no changes reflecting
  2266. this will be made in the 1.2 branch at this point.
  2267. Security
  2268. * Fix remotely-triggerable uninitialised pointer dereference caused by
  2269. crafted X.509 certificate (TLS server is not affected if it doesn't ask
  2270. for a client certificate) (found using Codenomicon Defensics).
  2271. * Fix remotely-triggerable memory leak caused by crafted X.509 certificates
  2272. (TLS server is not affected if it doesn't ask for a client certificate)
  2273. (found using Codenomicon Defensics).
  2274. * Fix potential stack overflow while parsing crafted X.509 certificates
  2275. (TLS server is not affected if it doesn't ask for a client certificate)
  2276. found using Codenomicon Defensics).
  2277. * Fix buffer overread of size 1 when parsing crafted X.509 certificates
  2278. (TLS server is not affected if it doesn't ask for a client certificate).
  2279. Bugfix
  2280. * Fix potential undefined behaviour in Camellia.
  2281. * Fix memory leaks in PKCS#5 and PKCS#12.
  2282. * Stack buffer overflow if ctr_drbg_update() is called with too large
  2283. add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).
  2284. * Fix bug in MPI/bignum on s390/s390x (reported by Dan Horák) (introduced
  2285. in 1.2.12).
  2286. * Fix unchecked return code in x509_crt_parse_path() on Windows (found by
  2287. Peter Vaskovic).
  2288. * Fix assembly selection for MIPS64 (thanks to James Cowgill).
  2289. * ssl_get_verify_result() now works even if the handshake was aborted due
  2290. to a failed verification (found by Fredrik Axelsson).
  2291. * Skip writing and parsing signature_algorithm extension if none of the
  2292. key exchanges enabled needs certificates. This fixes a possible interop
  2293. issue with some servers when a zero-length extension was sent. (Reported
  2294. by Peter Dettman.)
  2295. * On a 0-length input, base64_encode() did not correctly set output length
  2296. (found by Hendrik van den Boogaard).
  2297. Changes
  2298. * Blind RSA private operations even when POLARSSL_RSA_NO_CRT is defined.
  2299. * Forbid repeated extensions in X.509 certificates.
  2300. * Add compile-time option POLARSSL_X509_MAX_INTERMEDIATE_CA to limit the
  2301. length of an X.509 verification chain (default = 8).
  2302. = Version 1.2.12 released 2014-10-24
  2303. Security
  2304. * Remotely-triggerable memory leak when parsing some X.509 certificates
  2305. (server is not affected if it doesn't ask for a client certificate).
  2306. (Found using Codenomicon Defensics.)
  2307. Bugfix
  2308. * Fix potential bad read in parsing ServerHello (found by Adrien
  2309. Vialletelle).
  2310. * ssl_close_notify() could send more than one message in some circumstances
  2311. with non-blocking I/O.
  2312. * x509_crt_parse() did not increase total_failed on PEM error
  2313. * Fix compiler warnings on iOS (found by Sander Niemeijer).
  2314. * Don't print uninitialised buffer in ssl_mail_client (found by Marc Abel).
  2315. * Fix net_accept() regarding non-blocking sockets (found by Luca Pesce).
  2316. * ssl_read() could return non-application data records on server while
  2317. renegotation was pending, and on client when a HelloRequest was received.
  2318. * Fix warnings from Clang's scan-build (contributed by Alfred Klomp).
  2319. Changes
  2320. * X.509 certificates with more than one AttributeTypeAndValue per
  2321. RelativeDistinguishedName are not accepted any more.
  2322. * ssl_read() now returns POLARSSL_ERR_NET_WANT_READ rather than
  2323. POLARSSL_ERR_SSL_UNEXPECTED_MESSAGE on harmless alerts.
  2324. * Accept spaces at end of line or end of buffer in base64_decode().
  2325. = Version 1.2.11 released 2014-07-11
  2326. Features
  2327. * Entropy module now supports seed writing and reading
  2328. Changes
  2329. * Introduced POLARSSL_HAVE_READDIR_R for systems without it
  2330. * Improvements to the CMake build system, contributed by Julian Ospald.
  2331. * Work around a bug of the version of Clang shipped by Apple with Mavericks
  2332. that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
  2333. * Improvements to tests/Makefile, contributed by Oden Eriksson.
  2334. * Use UTC time to check certificate validity.
  2335. * Reject certificates with times not in UTC, per RFC 5280.
  2336. * Migrate zeroizing of data to polarssl_zeroize() instead of memset()
  2337. against unwanted compiler optimizations
  2338. Security
  2339. * Forbid change of server certificate during renegotiation to prevent
  2340. "triple handshake" attack when authentication mode is optional (the
  2341. attack was already impossible when authentication is required).
  2342. * Check notBefore timestamp of certificates and CRLs from the future.
  2343. * Forbid sequence number wrapping
  2344. * Prevent potential NULL pointer dereference in ssl_read_record() (found by
  2345. TrustInSoft)
  2346. * Fix length checking for AEAD ciphersuites (found by Codenomicon).
  2347. It was possible to crash the server (and client) using crafted messages
  2348. when a GCM suite was chosen.
  2349. Bugfix
  2350. * Fixed X.509 hostname comparison (with non-regular characters)
  2351. * SSL now gracefully handles missing RNG
  2352. * crypt_and_hash app checks MAC before final decryption
  2353. * Fixed x509_crt_parse_path() bug on Windows platforms
  2354. * Added missing MPI_CHK() around some statements in mpi_div_mpi() (found by
  2355. TrustInSoft)
  2356. * Fixed potential overflow in certificate size verification in
  2357. ssl_write_certificate() (found by TrustInSoft)
  2358. * Fix ASM format in bn_mul.h
  2359. * Potential memory leak in bignum_selftest()
  2360. * Replaced expired test certificate
  2361. * ssl_mail_client now terminates lines with CRLF, instead of LF
  2362. * Fix bug in RSA PKCS#1 v1.5 "reversed" operations
  2363. * Fixed testing with out-of-source builds using cmake
  2364. * Fixed version-major intolerance in server
  2365. * Fixed CMake symlinking on out-of-source builds
  2366. * Bignum's MIPS-32 assembly was used on MIPS-64, causing chaos. (Found by
  2367. Alex Wilson.)
  2368. * ssl_init() was leaving a dirty pointer in ssl_context if malloc of
  2369. out_ctr failed
  2370. * ssl_handshake_init() was leaving dirty pointers in subcontexts if malloc
  2371. of one of them failed
  2372. * x509_get_current_time() uses localtime_r() to prevent thread issues
  2373. * Some example server programs were not sending the close_notify alert.
  2374. * Potential memory leak in mpi_exp_mod() when error occurs during
  2375. calculation of RR.
  2376. * Improve interoperability by not writing extension length in ClientHello
  2377. when no extensions are present (found by Matthew Page)
  2378. * rsa_check_pubkey() now allows an E up to N
  2379. * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings
  2380. * mpi_fill_random() was creating numbers larger than requested on
  2381. big-endian platform when size was not an integer number of limbs
  2382. * Fix detection of DragonflyBSD in net.c (found by Markus Pfeiffer)
  2383. * Stricter check on SSL ClientHello internal sizes compared to actual packet
  2384. size (found by TrustInSoft)
  2385. * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan).
  2386. * Use \n\t rather than semicolons for bn_mul asm, since some assemblers
  2387. interpret semicolons as comment delimiters (found by Barry K. Nathan).
  2388. * Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
  2389. * Fix base64_decode() to return and check length correctly (in case of
  2390. tight buffers)
  2391. = Version 1.2.10 released 2013-10-07
  2392. Changes
  2393. * Changed RSA blinding to a slower but thread-safe version
  2394. Bugfix
  2395. * Fixed memory leak in RSA as a result of introduction of blinding
  2396. * Fixed ssl_pkcs11_decrypt() prototype
  2397. * Fixed MSVC project files
  2398. = Version 1.2.9 released 2013-10-01
  2399. Changes
  2400. * x509_verify() now case insensitive for cn (RFC 6125 6.4)
  2401. Bugfix
  2402. * Fixed potential memory leak when failing to resume a session
  2403. * Fixed potential file descriptor leaks (found by Remi Gacogne)
  2404. * Minor fixes
  2405. Security
  2406. * Fixed potential heap buffer overflow on large hostname setting
  2407. * Fixed potential negative value misinterpretation in load_file()
  2408. * RSA blinding on CRT operations to counter timing attacks
  2409. (found by Cyril Arnaud and Pierre-Alain Fouque)
  2410. = Version 1.2.8 released 2013-06-19
  2411. Features
  2412. * Parsing of PKCS#8 encrypted private key files
  2413. * PKCS#12 PBE and derivation functions
  2414. * Centralized module option values in config.h to allow user-defined
  2415. settings without editing header files by using POLARSSL_CONFIG_OPTIONS
  2416. Changes
  2417. * HAVEGE random generator disabled by default
  2418. * Internally split up x509parse_key() into a (PEM) handler function
  2419. and specific DER parser functions for the PKCS#1 and unencrypted
  2420. PKCS#8 private key formats
  2421. * Added mechanism to provide alternative implementations for all
  2422. symmetric cipher and hash algorithms (e.g. POLARSSL_AES_ALT in
  2423. config.h)
  2424. * PKCS#5 module added. Moved PBKDF2 functionality inside and deprecated
  2425. old PBKDF2 module
  2426. Bugfix
  2427. * Secure renegotiation extension should only be sent in case client
  2428. supports secure renegotiation
  2429. * Fixed offset for cert_type list in ssl_parse_certificate_request()
  2430. * Fixed const correctness issues that have no impact on the ABI
  2431. * x509parse_crt() now better handles PEM error situations
  2432. * ssl_parse_certificate() now calls x509parse_crt_der() directly
  2433. instead of the x509parse_crt() wrapper that can also parse PEM
  2434. certificates
  2435. * x509parse_crtpath() is now reentrant and uses more portable stat()
  2436. * Fixed bignum.c and bn_mul.h to support Thumb2 and LLVM compiler
  2437. * Fixed values for 2-key Triple DES in cipher layer
  2438. * ssl_write_certificate_request() can handle empty ca_chain
  2439. Security
  2440. * A possible DoS during the SSL Handshake, due to faulty parsing of
  2441. PEM-encoded certificates has been fixed (found by Jack Lloyd)
  2442. = Version 1.2.7 released 2013-04-13
  2443. Features
  2444. * Ability to specify allowed ciphersuites based on the protocol version.
  2445. Changes
  2446. * Default Blowfish keysize is now 128-bits
  2447. * Test suites made smaller to accommodate Raspberry Pi
  2448. Bugfix
  2449. * Fix for MPI assembly for ARM
  2450. * GCM adapted to support sizes > 2^29
  2451. = Version 1.2.6 released 2013-03-11
  2452. Bugfix
  2453. * Fixed memory leak in ssl_free() and ssl_reset() for active session
  2454. * Corrected GCM counter incrementation to use only 32-bits instead of
  2455. 128-bits (found by Yawning Angel)
  2456. * Fixes for 64-bit compilation with MS Visual Studio
  2457. * Fixed net_bind() for specified IP addresses on little endian systems
  2458. * Fixed assembly code for ARM (Thumb and regular) for some compilers
  2459. Changes
  2460. * Internally split up rsa_pkcs1_encrypt(), rsa_pkcs1_decrypt(),
  2461. rsa_pkcs1_sign() and rsa_pkcs1_verify() to separate PKCS#1 v1.5 and
  2462. PKCS#1 v2.1 functions
  2463. * Added support for custom labels when using rsa_rsaes_oaep_encrypt()
  2464. or rsa_rsaes_oaep_decrypt()
  2465. * Re-added handling for SSLv2 Client Hello when the define
  2466. POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO is set
  2467. * The SSL session cache module (ssl_cache) now also retains peer_cert
  2468. information (not the entire chain)
  2469. Security
  2470. * Removed further timing differences during SSL message decryption in
  2471. ssl_decrypt_buf()
  2472. * Removed timing differences due to bad padding from
  2473. rsa_rsaes_pkcs1_v15_decrypt() and rsa_pkcs1_decrypt() for PKCS#1 v1.5
  2474. operations
  2475. = Version 1.2.5 released 2013-02-02
  2476. Changes
  2477. * Allow enabling of dummy error_strerror() to support some use-cases
  2478. * Debug messages about padding errors during SSL message decryption are
  2479. disabled by default and can be enabled with POLARSSL_SSL_DEBUG_ALL
  2480. * Sending of security-relevant alert messages that do not break
  2481. interoperability can be switched on/off with the flag
  2482. POLARSSL_SSL_ALL_ALERT_MESSAGES
  2483. Security
  2484. * Removed timing differences during SSL message decryption in
  2485. ssl_decrypt_buf() due to badly formatted padding
  2486. = Version 1.2.4 released 2013-01-25
  2487. Changes
  2488. * More advanced SSL ciphersuite representation and moved to more dynamic
  2489. SSL core
  2490. * Added ssl_handshake_step() to allow single stepping the handshake process
  2491. Bugfix
  2492. * Memory leak when using RSA_PKCS_V21 operations fixed
  2493. * Handle future version properly in ssl_write_certificate_request()
  2494. * Correctly handle CertificateRequest message in client for <= TLS 1.1
  2495. without DN list
  2496. = Version 1.2.3 released 2012-11-26
  2497. Bugfix
  2498. * Server not always sending correct CertificateRequest message
  2499. = Version 1.2.2 released 2012-11-24
  2500. Changes
  2501. * Added p_hw_data to ssl_context for context specific hardware acceleration
  2502. data
  2503. * During verify trust-CA is only checked for expiration and CRL presence
  2504. Bugfixes
  2505. * Fixed client authentication compatibility
  2506. * Fixed dependency on POLARSSL_SHA4_C in SSL modules
  2507. = Version 1.2.1 released 2012-11-20
  2508. Changes
  2509. * Depth that the certificate verify callback receives is now numbered
  2510. bottom-up (Peer cert depth is 0)
  2511. Bugfixes
  2512. * Fixes for MSVC6
  2513. * Moved mpi_inv_mod() outside POLARSSL_GENPRIME
  2514. * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
  2515. Pégourié-Gonnard)
  2516. * Fixed possible segfault in mpi_shift_r() (found by Manuel
  2517. Pégourié-Gonnard)
  2518. * Added max length check for rsa_pkcs1_sign with PKCS#1 v2.1
  2519. = Version 1.2.0 released 2012-10-31
  2520. Features
  2521. * Added support for NULL cipher (POLARSSL_CIPHER_NULL_CIPHER) and weak
  2522. ciphersuites (POLARSSL_ENABLE_WEAK_CIPHERSUITES). They are disabled by
  2523. default!
  2524. * Added support for wildcard certificates
  2525. * Added support for multi-domain certificates through the X509 Subject
  2526. Alternative Name extension
  2527. * Added preliminary ASN.1 buffer writing support
  2528. * Added preliminary X509 Certificate Request writing support
  2529. * Added key_app_writer example application
  2530. * Added cert_req example application
  2531. * Added base Galois Counter Mode (GCM) for AES
  2532. * Added TLS 1.2 support (RFC 5246)
  2533. * Added GCM suites to TLS 1.2 (RFC 5288)
  2534. * Added commandline error code convertor (util/strerror)
  2535. * Added support for Hardware Acceleration hooking in SSL/TLS
  2536. * Added OpenSSL / PolarSSL compatibility script (tests/compat.sh) and
  2537. example application (programs/ssl/o_p_test) (requires OpenSSL)
  2538. * Added X509 CA Path support
  2539. * Added Thumb assembly optimizations
  2540. * Added DEFLATE compression support as per RFC3749 (requires zlib)
  2541. * Added blowfish algorithm (Generic and cipher layer)
  2542. * Added PKCS#5 PBKDF2 key derivation function
  2543. * Added Secure Renegotiation (RFC 5746)
  2544. * Added predefined DHM groups from RFC 5114
  2545. * Added simple SSL session cache implementation
  2546. * Added ServerName extension parsing (SNI) at server side
  2547. * Added option to add minimum accepted SSL/TLS protocol version
  2548. Changes
  2549. * Removed redundant POLARSSL_DEBUG_MSG define
  2550. * AES code only check for Padlock once
  2551. * Fixed const-correctness mpi_get_bit()
  2552. * Documentation for mpi_lsb() and mpi_msb()
  2553. * Moved out_msg to out_hdr + 32 to support hardware acceleration
  2554. * Changed certificate verify behaviour to comply with RFC 6125 section 6.3
  2555. to not match CN if subjectAltName extension is present (Closes ticket #56)
  2556. * Cipher layer cipher_mode_t POLARSSL_MODE_CFB128 is renamed to
  2557. POLARSSL_MODE_CFB, to also handle different block size CFB modes.
  2558. * Removed handling for SSLv2 Client Hello (as per RFC 5246 recommendation)
  2559. * Revamped session resumption handling
  2560. * Generalized external private key implementation handling (like PKCS#11)
  2561. in SSL/TLS
  2562. * Revamped x509_verify() and the SSL f_vrfy callback implementations
  2563. * Moved from unsigned long to fixed width uint32_t types throughout code
  2564. * Renamed ciphersuites naming scheme to IANA reserved names
  2565. Bugfix
  2566. * Fixed handling error in mpi_cmp_mpi() on longer B values (found by
  2567. Hui Dong)
  2568. * Fixed potential heap corruption in x509_name allocation
  2569. * Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
  2570. * mpi_exp_mod() now correctly handles negative base numbers (Closes ticket
  2571. #52)
  2572. * Handle encryption with private key and decryption with public key as per
  2573. RFC 2313
  2574. * Handle empty certificate subject names
  2575. * Prevent reading over buffer boundaries on X509 certificate parsing
  2576. * mpi_add_abs() now correctly handles adding short numbers to long numbers
  2577. with carry rollover (found by Ruslan Yushchenko)
  2578. * Handle existence of OpenSSL Trust Extensions at end of X.509 DER blob
  2579. * Fixed MPI assembly for SPARC64 platform
  2580. Security
  2581. * Fixed potential memory zeroization on miscrafted RSA key (found by Eloi
  2582. Vanderbeken)
  2583. = Version 1.1.8 released on 2013-10-01
  2584. Bugfix
  2585. * Fixed potential memory leak when failing to resume a session
  2586. * Fixed potential file descriptor leaks
  2587. Security
  2588. * Potential buffer-overflow for ssl_read_record() (independently found by
  2589. both TrustInSoft and Paul Brodeur of Leviathan Security Group)
  2590. * Potential negative value misinterpretation in load_file()
  2591. * Potential heap buffer overflow on large hostname setting
  2592. = Version 1.1.7 released on 2013-06-19
  2593. Changes
  2594. * HAVEGE random generator disabled by default
  2595. Bugfix
  2596. * x509parse_crt() now better handles PEM error situations
  2597. * ssl_parse_certificate() now calls x509parse_crt_der() directly
  2598. instead of the x509parse_crt() wrapper that can also parse PEM
  2599. certificates
  2600. * Fixed values for 2-key Triple DES in cipher layer
  2601. * ssl_write_certificate_request() can handle empty ca_chain
  2602. Security
  2603. * A possible DoS during the SSL Handshake, due to faulty parsing of
  2604. PEM-encoded certificates has been fixed (found by Jack Lloyd)
  2605. = Version 1.1.6 released on 2013-03-11
  2606. Bugfix
  2607. * Fixed net_bind() for specified IP addresses on little endian systems
  2608. Changes
  2609. * Allow enabling of dummy error_strerror() to support some use-cases
  2610. * Debug messages about padding errors during SSL message decryption are
  2611. disabled by default and can be enabled with POLARSSL_SSL_DEBUG_ALL
  2612. Security
  2613. * Removed timing differences during SSL message decryption in
  2614. ssl_decrypt_buf()
  2615. * Removed timing differences due to bad padding from
  2616. rsa_rsaes_pkcs1_v15_decrypt() and rsa_pkcs1_decrypt() for PKCS#1 v1.5
  2617. operations
  2618. = Version 1.1.5 released on 2013-01-16
  2619. Bugfix
  2620. * Fixed MPI assembly for SPARC64 platform
  2621. * Handle existence of OpenSSL Trust Extensions at end of X.509 DER blob
  2622. * mpi_add_abs() now correctly handles adding short numbers to long numbers
  2623. with carry rollover
  2624. * Moved mpi_inv_mod() outside POLARSSL_GENPRIME
  2625. * Prevent reading over buffer boundaries on X509 certificate parsing
  2626. * mpi_exp_mod() now correctly handles negative base numbers (Closes ticket
  2627. #52)
  2628. * Fixed possible segfault in mpi_shift_r() (found by Manuel
  2629. Pégourié-Gonnard)
  2630. * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
  2631. Pégourié-Gonnard)
  2632. * Added max length check for rsa_pkcs1_sign with PKCS#1 v2.1
  2633. * Memory leak when using RSA_PKCS_V21 operations fixed
  2634. * Handle encryption with private key and decryption with public key as per
  2635. RFC 2313
  2636. * Fixes for MSVC6
  2637. Security
  2638. * Fixed potential memory zeroization on miscrafted RSA key (found by Eloi
  2639. Vanderbeken)
  2640. = Version 1.1.4 released on 2012-05-31
  2641. Bugfix
  2642. * Correctly handle empty SSL/TLS packets (Found by James Yonan)
  2643. * Fixed potential heap corruption in x509_name allocation
  2644. * Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
  2645. = Version 1.1.3 released on 2012-04-29
  2646. Bugfix
  2647. * Fixed random MPI generation to not generate more size than requested.
  2648. = Version 1.1.2 released on 2012-04-26
  2649. Bugfix
  2650. * Fixed handling error in mpi_cmp_mpi() on longer B values (found by
  2651. Hui Dong)
  2652. Security
  2653. * Fixed potential memory corruption on miscrafted client messages (found by
  2654. Frama-C team at CEA LIST)
  2655. * Fixed generation of DHM parameters to correct length (found by Ruslan
  2656. Yushchenko)
  2657. = Version 1.1.1 released on 2012-01-23
  2658. Bugfix
  2659. * Check for failed malloc() in ssl_set_hostname() and x509_get_entries()
  2660. (Closes ticket #47, found by Hugo Leisink)
  2661. * Fixed issues with Intel compiler on 64-bit systems (Closes ticket #50)
  2662. * Fixed multiple compiler warnings for VS6 and armcc
  2663. * Fixed bug in CTR_CRBG selftest
  2664. = Version 1.1.0 released on 2011-12-22
  2665. Features
  2666. * Added ssl_session_reset() to allow better multi-connection pools of
  2667. SSL contexts without needing to set all non-connection-specific
  2668. data and pointers again. Adapted ssl_server to use this functionality.
  2669. * Added ssl_set_max_version() to allow clients to offer a lower maximum
  2670. supported version to a server to help buggy server implementations.
  2671. (Closes ticket #36)
  2672. * Added cipher_get_cipher_mode() and cipher_get_cipher_operation()
  2673. introspection functions (Closes ticket #40)
  2674. * Added CTR_DRBG based on AES-256-CTR (NIST SP 800-90) random generator
  2675. * Added a generic entropy accumulator that provides support for adding
  2676. custom entropy sources and added some generic and platform dependent
  2677. entropy sources
  2678. Changes
  2679. * Documentation for AES and Camellia in modes CTR and CFB128 clarified.
  2680. * Fixed rsa_encrypt and rsa_decrypt examples to use public key for
  2681. encryption and private key for decryption. (Closes ticket #34)
  2682. * Inceased maximum size of ASN1 length reads to 32-bits.
  2683. * Added an EXPLICIT tag number parameter to x509_get_ext()
  2684. * Added a separate CRL entry extension parsing function
  2685. * Separated the ASN.1 parsing code from the X.509 specific parsing code.
  2686. So now there is a module that is controlled with POLARSSL_ASN1_PARSE_C.
  2687. * Changed the defined key-length of DES ciphers in cipher.h to include the
  2688. parity bits, to prevent mistakes in copying data. (Closes ticket #33)
  2689. * Loads of minimal changes to better support WINCE as a build target
  2690. (Credits go to Marco Lizza)
  2691. * Added POLARSSL_MPI_WINDOW_SIZE definition to allow easier time to memory
  2692. trade-off
  2693. * Introduced POLARSSL_MPI_MAX_SIZE and POLARSSL_MPI_MAX_BITS for MPI size
  2694. management (Closes ticket #44)
  2695. * Changed the used random function pointer to more flexible format. Renamed
  2696. havege_rand() to havege_random() to prevent mistakes. Lots of changes as
  2697. a consequence in library code and programs
  2698. * Moved all examples programs to use the new entropy and CTR_DRBG
  2699. * Added permissive certificate parsing to x509parse_crt() and
  2700. x509parse_crtfile(). With permissive parsing the parsing does not stop on
  2701. encountering a parse-error. Beware that the meaning of return values has
  2702. changed!
  2703. * All error codes are now negative. Even on mermory failures and IO errors.
  2704. Bugfix
  2705. * Fixed faulty HMAC-MD2 implementation. Found by dibac. (Closes
  2706. ticket #37)
  2707. * Fixed a bug where the CRL parser expected an EXPLICIT ASN.1 tag
  2708. before version numbers
  2709. * Allowed X509 key usage parsing to accept 4 byte values instead of the
  2710. standard 1 byte version sometimes used by Microsoft. (Closes ticket #38)
  2711. * Fixed incorrect behaviour in case of RSASSA-PSS with a salt length
  2712. smaller than the hash length. (Closes ticket #41)
  2713. * If certificate serial is longer than 32 octets, serial number is now
  2714. appended with '....' after first 28 octets
  2715. * Improved build support for s390x and sparc64 in bignum.h
  2716. * Fixed MS Visual C++ name clash with int64 in sha4.h
  2717. * Corrected removal of leading "00:" in printing serial numbers in
  2718. certificates and CRLs
  2719. = Version 1.0.0 released on 2011-07-27
  2720. Features
  2721. * Expanded cipher layer with support for CFB128 and CTR mode
  2722. * Added rsa_encrypt and rsa_decrypt simple example programs.
  2723. Changes
  2724. * The generic cipher and message digest layer now have normal error
  2725. codes instead of integers
  2726. Bugfix
  2727. * Undid faulty bug fix in ssl_write() when flushing old data (Ticket
  2728. #18)
  2729. = Version 0.99-pre5 released on 2011-05-26
  2730. Features
  2731. * Added additional Cipher Block Modes to symmetric ciphers
  2732. (AES CTR, Camellia CTR, XTEA CBC) including the option to
  2733. enable and disable individual modes when needed
  2734. * Functions requiring File System functions can now be disabled
  2735. by undefining POLARSSL_FS_IO
  2736. * A error_strerror function() has been added to translate between
  2737. error codes and their description.
  2738. * Added mpi_get_bit() and mpi_set_bit() individual bit setter/getter
  2739. functions.
  2740. * Added ssl_mail_client and ssl_fork_server as example programs.
  2741. Changes
  2742. * Major argument / variable rewrite. Introduced use of size_t
  2743. instead of int for buffer lengths and loop variables for
  2744. better unsigned / signed use. Renamed internal bigint types
  2745. t_int and t_dbl to t_uint and t_udbl in the process
  2746. * mpi_init() and mpi_free() now only accept a single MPI
  2747. argument and do not accept variable argument lists anymore.
  2748. * The error codes have been remapped and combining error codes
  2749. is now done with a PLUS instead of an OR as error codes
  2750. used are negative.
  2751. * Changed behaviour of net_read(), ssl_fetch_input() and ssl_recv().
  2752. net_recv() now returns 0 on EOF instead of
  2753. POLARSSL_ERR_NET_CONN_RESET. ssl_fetch_input() returns
  2754. POLARSSL_ERR_SSL_CONN_EOF on an EOF from its f_recv() function.
  2755. ssl_read() returns 0 if a POLARSSL_ERR_SSL_CONN_EOF is received
  2756. after the handshake.
  2757. * Network functions now return POLARSSL_ERR_NET_WANT_READ or
  2758. POLARSSL_ERR_NET_WANT_WRITE instead of the ambiguous
  2759. POLARSSL_ERR_NET_TRY_AGAIN
  2760. = Version 0.99-pre4 released on 2011-04-01
  2761. Features
  2762. * Added support for PKCS#1 v2.1 encoding and thus support
  2763. for the RSAES-OAEP and RSASSA-PSS operations.
  2764. * Reading of Public Key files incorporated into default x509
  2765. functionality as well.
  2766. * Added mpi_fill_random() for centralized filling of big numbers
  2767. with random data (Fixed ticket #10)
  2768. Changes
  2769. * Debug print of MPI now removes leading zero octets and
  2770. displays actual bit size of the value.
  2771. * x509parse_key() (and as a consequence x509parse_keyfile())
  2772. does not zeroize memory in advance anymore. Use rsa_init()
  2773. before parsing a key or keyfile!
  2774. Bugfix
  2775. * Debug output of MPI's now the same independent of underlying
  2776. platform (32-bit / 64-bit) (Fixes ticket #19, found by Mads
  2777. Kiilerich and Mihai Militaru)
  2778. * Fixed bug in ssl_write() when flushing old data (Fixed ticket
  2779. #18, found by Nikolay Epifanov)
  2780. * Fixed proper handling of RSASSA-PSS verification with variable
  2781. length salt lengths
  2782. = Version 0.99-pre3 released on 2011-02-28
  2783. This release replaces version 0.99-pre2 which had possible copyright issues.
  2784. Features
  2785. * Parsing PEM private keys encrypted with DES and AES
  2786. are now supported as well (Fixes ticket #5)
  2787. * Added crl_app program to allow easy reading and
  2788. printing of X509 CRLs from file
  2789. Changes
  2790. * Parsing of PEM files moved to separate module (Fixes
  2791. ticket #13). Also possible to remove PEM support for
  2792. systems only using DER encoding
  2793. Bugfixes
  2794. * Corrected parsing of UTCTime dates before 1990 and
  2795. after 1950
  2796. * Support more exotic OID's when parsing certificates
  2797. (found by Mads Kiilerich)
  2798. * Support more exotic name representations when parsing
  2799. certificates (found by Mads Kiilerich)
  2800. * Replaced the expired test certificates
  2801. * Do not bail out if no client certificate specified. Try
  2802. to negotiate anonymous connection (Fixes ticket #12,
  2803. found by Boris Krasnovskiy)
  2804. Security fixes
  2805. * Fixed a possible Man-in-the-Middle attack on the
  2806. Diffie Hellman key exchange (thanks to Larry Highsmith,
  2807. Subreption LLC)
  2808. = Version 0.99-pre1 released on 2011-01-30
  2809. Features
  2810. Note: Most of these features have been donated by Fox-IT
  2811. * Added Doxygen source code documentation parts
  2812. * Added reading of DHM context from memory and file
  2813. * Improved X509 certificate parsing to include extended
  2814. certificate fields, including Key Usage
  2815. * Improved certificate verification and verification
  2816. against the available CRLs
  2817. * Detection for DES weak keys and parity bits added
  2818. * Improvements to support integration in other
  2819. applications:
  2820. + Added generic message digest and cipher wrapper
  2821. + Improved information about current capabilities,
  2822. status, objects and configuration
  2823. + Added verification callback on certificate chain
  2824. verification to allow external blacklisting
  2825. + Additional example programs to show usage
  2826. * Added support for PKCS#11 through the use of the
  2827. libpkcs11-helper library
  2828. Changes
  2829. * x509parse_time_expired() checks time in addition to
  2830. the existing date check
  2831. * The ciphers member of ssl_context and the cipher member
  2832. of ssl_session have been renamed to ciphersuites and
  2833. ciphersuite respectively. This clarifies the difference
  2834. with the generic cipher layer and is better naming
  2835. altogether
  2836. = Version 0.14.0 released on 2010-08-16
  2837. Features
  2838. * Added support for SSL_EDH_RSA_AES_128_SHA and
  2839. SSL_EDH_RSA_CAMELLIA_128_SHA ciphersuites
  2840. * Added compile-time and run-time version information
  2841. * Expanded ssl_client2 arguments for more flexibility
  2842. * Added support for TLS v1.1
  2843. Changes
  2844. * Made Makefile cleaner
  2845. * Removed dependency on rand() in rsa_pkcs1_encrypt().
  2846. Now using random fuction provided to function and
  2847. changed the prototype of rsa_pkcs1_encrypt(),
  2848. rsa_init() and rsa_gen_key().
  2849. * Some SSL defines were renamed in order to avoid
  2850. future confusion
  2851. Bug fixes
  2852. * Fixed CMake out of source build for tests (found by
  2853. kkert)
  2854. * rsa_check_private() now supports PKCS1v2 keys as well
  2855. * Fixed deadlock in rsa_pkcs1_encrypt() on failing random
  2856. generator
  2857. = Version 0.13.1 released on 2010-03-24
  2858. Bug fixes
  2859. * Fixed Makefile in library that was mistakenly merged
  2860. * Added missing const string fixes
  2861. = Version 0.13.0 released on 2010-03-21
  2862. Features
  2863. * Added option parsing for host and port selection to
  2864. ssl_client2
  2865. * Added support for GeneralizedTime in X509 parsing
  2866. * Added cert_app program to allow easy reading and
  2867. printing of X509 certificates from file or SSL
  2868. connection.
  2869. Changes
  2870. * Added const correctness for main code base
  2871. * X509 signature algorithm determination is now
  2872. in a function to allow easy future expansion
  2873. * Changed symmetric cipher functions to
  2874. identical interface (returning int result values)
  2875. * Changed ARC4 to use separate input/output buffer
  2876. * Added reset function for HMAC context as speed-up
  2877. for specific use-cases
  2878. Bug fixes
  2879. * Fixed bug resulting in failure to send the last
  2880. certificate in the chain in ssl_write_certificate() and
  2881. ssl_write_certificate_request() (found by fatbob)
  2882. * Added small fixes for compiler warnings on a Mac
  2883. (found by Frank de Brabander)
  2884. * Fixed algorithmic bug in mpi_is_prime() (found by
  2885. Smbat Tonoyan)
  2886. = Version 0.12.1 released on 2009-10-04
  2887. Changes
  2888. * Coverage test definitions now support 'depends_on'
  2889. tagging system.
  2890. * Tests requiring specific hashing algorithms now honor
  2891. the defines.
  2892. Bug fixes
  2893. * Changed typo in #ifdef in x509parse.c (found
  2894. by Eduardo)
  2895. = Version 0.12.0 released on 2009-07-28
  2896. Features
  2897. * Added CMake makefiles as alternative to regular Makefiles.
  2898. * Added preliminary Code Coverage tests for AES, ARC4,
  2899. Base64, MPI, SHA-family, MD-family, HMAC-SHA-family,
  2900. Camellia, DES, 3-DES, RSA PKCS#1, XTEA, Diffie-Hellman
  2901. and X509parse.
  2902. Changes
  2903. * Error codes are not (necessarily) negative. Keep
  2904. this is mind when checking for errors.
  2905. * RSA_RAW renamed to SIG_RSA_RAW for consistency.
  2906. * Fixed typo in name of POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE.
  2907. * Changed interface for AES and Camellia setkey functions
  2908. to indicate invalid key lengths.
  2909. Bug fixes
  2910. * Fixed include location of endian.h on FreeBSD (found by
  2911. Gabriel)
  2912. * Fixed include location of endian.h and name clash on
  2913. Apples (found by Martin van Hensbergen)
  2914. * Fixed HMAC-MD2 by modifying md2_starts(), so that the
  2915. required HMAC ipad and opad variables are not cleared.
  2916. (found by code coverage tests)
  2917. * Prevented use of long long in bignum if
  2918. POLARSSL_HAVE_LONGLONG not defined (found by Giles
  2919. Bathgate).
  2920. * Fixed incorrect handling of negative strings in
  2921. mpi_read_string() (found by code coverage tests).
  2922. * Fixed segfault on handling empty rsa_context in
  2923. rsa_check_pubkey() and rsa_check_privkey() (found by
  2924. code coverage tests).
  2925. * Fixed incorrect handling of one single negative input
  2926. value in mpi_add_abs() (found by code coverage tests).
  2927. * Fixed incorrect handling of negative first input
  2928. value in mpi_sub_abs() (found by code coverage tests).
  2929. * Fixed incorrect handling of negative first input
  2930. value in mpi_mod_mpi() and mpi_mod_int(). Resulting
  2931. change also affects mpi_write_string() (found by code
  2932. coverage tests).
  2933. * Corrected is_prime() results for 0, 1 and 2 (found by
  2934. code coverage tests).
  2935. * Fixed Camellia and XTEA for 64-bit Windows systems.
  2936. = Version 0.11.1 released on 2009-05-17
  2937. * Fixed missing functionality for SHA-224, SHA-256, SHA384,
  2938. SHA-512 in rsa_pkcs1_sign()
  2939. = Version 0.11.0 released on 2009-05-03
  2940. * Fixed a bug in mpi_gcd() so that it also works when both
  2941. input numbers are even and added testcases to check
  2942. (found by Pierre Habouzit).
  2943. * Added support for SHA-224, SHA-256, SHA-384 and SHA-512
  2944. one way hash functions with the PKCS#1 v1.5 signing and
  2945. verification.
  2946. * Fixed minor bug regarding mpi_gcd located within the
  2947. POLARSSL_GENPRIME block.
  2948. * Fixed minor memory leak in x509parse_crt() and added better
  2949. handling of 'full' certificate chains (found by Mathias
  2950. Olsson).
  2951. * Centralized file opening and reading for x509 files into
  2952. load_file()
  2953. * Made definition of net_htons() endian-clean for big endian
  2954. systems (Found by Gernot).
  2955. * Undefining POLARSSL_HAVE_ASM now also handles prevents asm in
  2956. padlock and timing code.
  2957. * Fixed an off-by-one buffer allocation in ssl_set_hostname()
  2958. responsible for crashes and unwanted behaviour.
  2959. * Added support for Certificate Revocation List (CRL) parsing.
  2960. * Added support for CRL revocation to x509parse_verify() and
  2961. SSL/TLS code.
  2962. * Fixed compatibility of XTEA and Camellia on a 64-bit system
  2963. (found by Felix von Leitner).
  2964. = Version 0.10.0 released on 2009-01-12
  2965. * Migrated XySSL to PolarSSL
  2966. * Added XTEA symmetric cipher
  2967. * Added Camellia symmetric cipher
  2968. * Added support for ciphersuites: SSL_RSA_CAMELLIA_128_SHA,
  2969. SSL_RSA_CAMELLIA_256_SHA and SSL_EDH_RSA_CAMELLIA_256_SHA
  2970. * Fixed dangerous bug that can cause a heap overflow in
  2971. rsa_pkcs1_decrypt (found by Christophe Devine)
  2972. ================================================================
  2973. XySSL ChangeLog
  2974. = Version 0.9 released on 2008-03-16
  2975. * Added support for ciphersuite: SSL_RSA_AES_128_SHA
  2976. * Enabled support for large files by default in aescrypt2.c
  2977. * Preliminary openssl wrapper contributed by David Barrett
  2978. * Fixed a bug in ssl_write() that caused the same payload to
  2979. be sent twice in non-blocking mode when send returns EAGAIN
  2980. * Fixed ssl_parse_client_hello(): session id and challenge must
  2981. not be swapped in the SSLv2 ClientHello (found by Greg Robson)
  2982. * Added user-defined callback debug function (Krystian Kolodziej)
  2983. * Before freeing a certificate, properly zero out all cert. data
  2984. * Fixed the "mode" parameter so that encryption/decryption are
  2985. not swapped on PadLock; also fixed compilation on older versions
  2986. of gcc (bug reported by David Barrett)
  2987. * Correctly handle the case in padlock_xcryptcbc() when input or
  2988. output data is non-aligned by falling back to the software
  2989. implementation, as VIA Nehemiah cannot handle non-aligned buffers
  2990. * Fixed a memory leak in x509parse_crt() which was reported by Greg
  2991. Robson-Garth; some x509write.c fixes by Pascal Vizeli, thanks to
  2992. Matthew Page who reported several bugs
  2993. * Fixed x509_get_ext() to accept some rare certificates which have
  2994. an INTEGER instead of a BOOLEAN for BasicConstraints::cA.
  2995. * Added support on the client side for the TLS "hostname" extension
  2996. (patch contributed by David Patino)
  2997. * Make x509parse_verify() return BADCERT_CN_MISMATCH when an empty
  2998. string is passed as the CN (bug reported by spoofy)
  2999. * Added an option to enable/disable the BN assembly code
  3000. * Updated rsa_check_privkey() to verify that (D*E) = 1 % (P-1)*(Q-1)
  3001. * Disabled obsolete hash functions by default (MD2, MD4); updated
  3002. selftest and benchmark to not test ciphers that have been disabled
  3003. * Updated x509parse_cert_info() to correctly display byte 0 of the
  3004. serial number, setup correct server port in the ssl client example
  3005. * Fixed a critical denial-of-service with X.509 cert. verification:
  3006. peer may cause xyssl to loop indefinitely by sending a certificate
  3007. for which the RSA signature check fails (bug reported by Benoit)
  3008. * Added test vectors for: AES-CBC, AES-CFB, DES-CBC and 3DES-CBC,
  3009. HMAC-MD5, HMAC-SHA1, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512
  3010. * Fixed HMAC-SHA-384 and HMAC-SHA-512 (thanks to Josh Sinykin)
  3011. * Modified ssl_parse_client_key_exchange() to protect against
  3012. Daniel Bleichenbacher attack on PKCS#1 v1.5 padding, as well
  3013. as the Klima-Pokorny-Rosa extension of Bleichenbacher's attack
  3014. * Updated rsa_gen_key() so that ctx->N is always nbits in size
  3015. * Fixed assembly PPC compilation errors on Mac OS X, thanks to
  3016. David Barrett and Dusan Semen
  3017. = Version 0.8 released on 2007-10-20
  3018. * Modified the HMAC functions to handle keys larger
  3019. than 64 bytes, thanks to Stephane Desneux and gary ng
  3020. * Fixed ssl_read_record() to properly update the handshake
  3021. message digests, which fixes IE6/IE7 client authentication
  3022. * Cleaned up the XYSSL* #defines, suggested by Azriel Fasten
  3023. * Fixed net_recv(), thanks to Lorenz Schori and Egon Kocjan
  3024. * Added user-defined callbacks for handling I/O and sessions
  3025. * Added lots of debugging output in the SSL/TLS functions
  3026. * Added preliminary X.509 cert. writing by Pascal Vizeli
  3027. * Added preliminary support for the VIA PadLock routines
  3028. * Added AES-CFB mode of operation, contributed by chmike
  3029. * Added an SSL/TLS stress testing program (ssl_test.c)
  3030. * Updated the RSA PKCS#1 code to allow choosing between
  3031. RSA_PUBLIC and RSA_PRIVATE, as suggested by David Barrett
  3032. * Updated ssl_read() to skip 0-length records from OpenSSL
  3033. * Fixed the make install target to comply with *BSD make
  3034. * Fixed a bug in mpi_read_binary() on 64-bit platforms
  3035. * mpi_is_prime() speedups, thanks to Kevin McLaughlin
  3036. * Fixed a long standing memory leak in mpi_is_prime()
  3037. * Replaced realloc with malloc in mpi_grow(), and set
  3038. the sign of zero as positive in mpi_init() (reported
  3039. by Jonathan M. McCune)
  3040. = Version 0.7 released on 2007-07-07
  3041. * Added support for the MicroBlaze soft-core processor
  3042. * Fixed a bug in ssl_tls.c which sometimes prevented SSL
  3043. connections from being established with non-blocking I/O
  3044. * Fixed a couple bugs in the VS6 and UNIX Makefiles
  3045. * Fixed the "PIC register ebx clobbered in asm" bug
  3046. * Added HMAC starts/update/finish support functions
  3047. * Added the SHA-224, SHA-384 and SHA-512 hash functions
  3048. * Fixed the net_set_*block routines, thanks to Andreas
  3049. * Added a few demonstration programs: md5sum, sha1sum,
  3050. dh_client, dh_server, rsa_genkey, rsa_sign, rsa_verify
  3051. * Added new bignum import and export helper functions
  3052. * Rewrote README.txt in program/ssl/ca to better explain
  3053. how to create a test PKI
  3054. = Version 0.6 released on 2007-04-01
  3055. * Ciphers used in SSL/TLS can now be disabled at compile
  3056. time, to reduce the memory footprint on embedded systems
  3057. * Added multiply assembly code for the TriCore and modified
  3058. havege_struct for this processor, thanks to David Patiño
  3059. * Added multiply assembly code for 64-bit PowerPCs,
  3060. thanks to Peking University and the OSU Open Source Lab
  3061. * Added experimental support of Quantum Cryptography
  3062. * Added support for autoconf, contributed by Arnaud Cornet
  3063. * Fixed "long long" compilation issues on IA-64 and PPC64
  3064. * Fixed a bug introduced in xyssl-0.5/timing.c: hardclock
  3065. was not being correctly defined on ARM and MIPS
  3066. = Version 0.5 released on 2007-03-01
  3067. * Added multiply assembly code for SPARC and Alpha
  3068. * Added (beta) support for non-blocking I/O operations
  3069. * Implemented session resuming and client authentication
  3070. * Fixed some portability issues on WinCE, MINIX 3, Plan9
  3071. (thanks to Benjamin Newman), HP-UX, FreeBSD and Solaris
  3072. * Improved the performance of the EDH key exchange
  3073. * Fixed a bug that caused valid packets with a payload
  3074. size of 16384 bytes to be rejected
  3075. = Version 0.4 released on 2007-02-01
  3076. * Added support for Ephemeral Diffie-Hellman key exchange
  3077. * Added multiply asm code for SSE2, ARM, PPC, MIPS and M68K
  3078. * Various improvement to the modular exponentiation code
  3079. * Rewrote the headers to generate the API docs with doxygen
  3080. * Fixed a bug in ssl_encrypt_buf (incorrect padding was
  3081. generated) and in ssl_parse_client_hello (max. client
  3082. version was not properly set), thanks to Didier Rebeix
  3083. * Fixed another bug in ssl_parse_client_hello: clients with
  3084. cipherlists larger than 96 bytes were incorrectly rejected
  3085. * Fixed a couple memory leak in x509_read.c
  3086. = Version 0.3 released on 2007-01-01
  3087. * Added server-side SSLv3 and TLSv1.0 support
  3088. * Multiple fixes to enhance the compatibility with g++,
  3089. thanks to Xosé Antón Otero Ferreira
  3090. * Fixed a bug in the CBC code, thanks to dowst; also,
  3091. the bignum code is no longer dependent on long long
  3092. * Updated rsa_pkcs1_sign to handle arbitrary large inputs
  3093. * Updated timing.c for improved compatibility with i386
  3094. and 486 processors, thanks to Arnaud Cornet
  3095. = Version 0.2 released on 2006-12-01
  3096. * Updated timing.c to support ARM and MIPS arch
  3097. * Updated the MPI code to support 8086 on MSVC 1.5
  3098. * Added the copyright notice at the top of havege.h
  3099. * Fixed a bug in sha2_hmac, thanks to newsoft/Wenfang Zhang
  3100. * Fixed a bug reported by Adrian Rüegsegger in x509_read_key
  3101. * Fixed a bug reported by Torsten Lauter in ssl_read_record
  3102. * Fixed a bug in rsa_check_privkey that would wrongly cause
  3103. valid RSA keys to be dismissed (thanks to oldwolf)
  3104. * Fixed a bug in mpi_is_prime that caused some primes to fail
  3105. the Miller-Rabin primality test
  3106. I'd also like to thank Younès Hafri for the CRUX linux port,
  3107. Khalil Petit who added XySSL into pkgsrc and Arnaud Cornet
  3108. who maintains the Debian package :-)
  3109. = Version 0.1 released on 2006-11-01