CHANGELOG.rst 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. Changelog
  2. =========
  3. .. _v2-1-4:
  4. 2.1.4 - 2017-11-29
  5. ~~~~~~~~~~~~~~~~~~
  6. * Added ``X509_up_ref`` for an upcoming ``pyOpenSSL`` release.
  7. .. _v2-1-3:
  8. 2.1.3 - 2017-11-02
  9. ~~~~~~~~~~~~~~~~~~
  10. * Updated Windows, macOS, and ``manylinux1`` wheels to be compiled with
  11. OpenSSL 1.1.0g.
  12. .. _v2-1-2:
  13. 2.1.2 - 2017-10-24
  14. ~~~~~~~~~~~~~~~~~~
  15. * Corrected a bug with the ``manylinux1`` wheels where OpenSSL's stack was
  16. marked executable.
  17. .. _v2-1-1:
  18. 2.1.1 - 2017-10-12
  19. ~~~~~~~~~~~~~~~~~~
  20. * Fixed support for install with the system ``pip`` on Ubuntu 16.04.
  21. .. _v2-1:
  22. 2.1 - 2017-10-11
  23. ~~~~~~~~~~~~~~~~
  24. * **FINAL DEPRECATION** Python 2.6 support is deprecated, and will be removed
  25. in the next release of ``cryptography``.
  26. * **BACKWARDS INCOMPATIBLE:** ``Whirlpool``, ``RIPEMD160``, and
  27. ``UnsupportedExtension`` have been removed in accordance with our
  28. :doc:`/api-stability` policy.
  29. * **BACKWARDS INCOMPATIBLE:** :attr:`~cryptography.x509.DNSName.value`,
  30. :attr:`~cryptography.x509.RFC822Name.value`, and
  31. :attr:`~cryptography.x509.UniformResourceIdentifier.value` will now return
  32. an :term:`A-label` string when parsing a certificate containing an
  33. internationalized domain name (IDN) or if the caller passed a :term:`U-label`
  34. to the constructor. See below for additional deprecations related to this
  35. change.
  36. * Installing ``cryptography`` now requires ``pip`` 6 or newer.
  37. * Deprecated passing :term:`U-label` strings to the
  38. :class:`~cryptography.x509.DNSName`,
  39. :class:`~cryptography.x509.UniformResourceIdentifier`, and
  40. :class:`~cryptography.x509.RFC822Name` constructors. Instead, users should
  41. pass values as :term:`A-label` strings with ``idna`` encoding if necessary.
  42. This change will not affect anyone who is not processing internationalized
  43. domains.
  44. * Added support for
  45. :class:`~cryptography.hazmat.primitives.ciphers.algorithms.ChaCha20`. In
  46. most cases users should choose
  47. :class:`~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305`
  48. rather than using this unauthenticated form.
  49. * Added :meth:`~cryptography.x509.CertificateRevocationList.is_signature_valid`
  50. to :class:`~cryptography.x509.CertificateRevocationList`.
  51. * Support :class:`~cryptography.hazmat.primitives.hashes.BLAKE2b` and
  52. :class:`~cryptography.hazmat.primitives.hashes.BLAKE2s` with
  53. :class:`~cryptography.hazmat.primitives.hmac.HMAC`.
  54. * Added support for
  55. :class:`~cryptography.hazmat.primitives.ciphers.modes.XTS` mode for
  56. AES.
  57. * Added support for using labels with
  58. :class:`~cryptography.hazmat.primitives.asymmetric.padding.OAEP` when using
  59. OpenSSL 1.0.2 or greater.
  60. * Improved compatibility with NSS when issuing certificates from an issuer
  61. that has a subject with non-``UTF8String`` string types.
  62. * Add support for the :class:`~cryptography.x509.DeltaCRLIndicator` extension.
  63. * Add support for the :class:`~cryptography.x509.TLSFeature`
  64. extension. This is commonly used for enabling ``OCSP Must-Staple`` in
  65. certificates.
  66. * Add support for the :class:`~cryptography.x509.FreshestCRL` extension.
  67. .. _v2-0-3:
  68. 2.0.3 - 2017-08-03
  69. ~~~~~~~~~~~~~~~~~~
  70. * Fixed an issue with weak linking symbols when compiling on macOS
  71. versions older than 10.12.
  72. .. _v2-0-2:
  73. 2.0.2 - 2017-07-27
  74. ~~~~~~~~~~~~~~~~~~
  75. * Marked all symbols as hidden in the ``manylinux1`` wheel to avoid a
  76. bug with symbol resolution in certain scenarios.
  77. .. _v2-0-1:
  78. 2.0.1 - 2017-07-26
  79. ~~~~~~~~~~~~~~~~~~
  80. * Fixed a compilation bug affecting OpenBSD.
  81. * Altered the ``manylinux1`` wheels to statically link OpenSSL instead of
  82. dynamically linking and bundling the shared object. This should resolve
  83. crashes seen when using ``uwsgi`` or other binaries that link against
  84. OpenSSL independently.
  85. * Fixed the stack level for the ``signer`` and ``verifier`` warnings.
  86. .. _v2-0:
  87. 2.0 - 2017-07-17
  88. ~~~~~~~~~~~~~~~~
  89. * **BACKWARDS INCOMPATIBLE:** Support for Python 3.3 has been dropped.
  90. * We now ship ``manylinux1`` wheels linked against OpenSSL 1.1.0f. These wheels
  91. will be automatically used with most Linux distributions if you are running
  92. the latest pip.
  93. * Deprecated the use of ``signer`` on
  94. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,
  95. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`,
  96. and
  97. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`
  98. in favor of ``sign``.
  99. * Deprecated the use of ``verifier`` on
  100. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`,
  101. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`,
  102. and
  103. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`
  104. in favor of ``verify``.
  105. * Added support for parsing
  106. :class:`~cryptography.x509.certificate_transparency.SignedCertificateTimestamp`
  107. objects from X.509 certificate extensions.
  108. * Added support for
  109. :class:`~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305`.
  110. * Added support for
  111. :class:`~cryptography.hazmat.primitives.ciphers.aead.AESCCM`.
  112. * Added
  113. :class:`~cryptography.hazmat.primitives.ciphers.aead.AESGCM`, a "one shot"
  114. API for AES GCM encryption.
  115. * Added support for :doc:`/hazmat/primitives/asymmetric/x25519`.
  116. * Added support for serializing and deserializing Diffie-Hellman parameters
  117. with
  118. :func:`~cryptography.hazmat.primitives.serialization.load_pem_parameters`,
  119. :func:`~cryptography.hazmat.primitives.serialization.load_der_parameters`,
  120. and
  121. :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHParameters.parameter_bytes`
  122. .
  123. * The ``extensions`` attribute on :class:`~cryptography.x509.Certificate`,
  124. :class:`~cryptography.x509.CertificateSigningRequest`,
  125. :class:`~cryptography.x509.CertificateRevocationList`, and
  126. :class:`~cryptography.x509.RevokedCertificate` now caches the computed
  127. ``Extensions`` object. There should be no performance change, just a
  128. performance improvement for programs accessing the ``extensions`` attribute
  129. multiple times.
  130. .. _v1-9:
  131. 1.9 - 2017-05-29
  132. ~~~~~~~~~~~~~~~~
  133. * **BACKWARDS INCOMPATIBLE:** Elliptic Curve signature verification no longer
  134. returns ``True`` on success. This brings it in line with the interface's
  135. documentation, and our intent. The correct way to use
  136. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey.verify`
  137. has always been to check whether or not
  138. :class:`~cryptography.exceptions.InvalidSignature` was raised.
  139. * **BACKWARDS INCOMPATIBLE:** Dropped support for macOS 10.7 and 10.8.
  140. * **BACKWARDS INCOMPATIBLE:** The minimum supported PyPy version is now 5.3.
  141. * Python 3.3 support has been deprecated, and will be removed in the next
  142. ``cryptography`` release.
  143. * Add support for providing ``tag`` during
  144. :class:`~cryptography.hazmat.primitives.ciphers.modes.GCM` finalization via
  145. :meth:`~cryptography.hazmat.primitives.ciphers.AEADDecryptionContext.finalize_with_tag`.
  146. * Fixed an issue preventing ``cryptography`` from compiling against
  147. LibreSSL 2.5.x.
  148. * Added
  149. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey.key_size`
  150. and
  151. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey.key_size`
  152. as convenience methods for determining the bit size of a secret scalar for
  153. the curve.
  154. * Accessing an unrecognized extension marked critical on an X.509 object will
  155. no longer raise an ``UnsupportedExtension`` exception, instead an
  156. :class:`~cryptography.x509.UnrecognizedExtension` object will be returned.
  157. This behavior was based on a poor reading of the RFC, unknown critical
  158. extensions only need to be rejected on certificate verification.
  159. * The CommonCrypto backend has been removed.
  160. * MultiBackend has been removed.
  161. * ``Whirlpool`` and ``RIPEMD160`` have been deprecated.
  162. .. _v1-8-2:
  163. 1.8.2 - 2017-05-26
  164. ~~~~~~~~~~~~~~~~~~
  165. * Fixed a compilation bug affecting OpenSSL 1.1.0f.
  166. * Updated Windows and macOS wheels to be compiled against OpenSSL 1.1.0f.
  167. .. _v1-8-1:
  168. 1.8.1 - 2017-03-10
  169. ~~~~~~~~~~~~~~~~~~
  170. * Fixed macOS wheels to properly link against 1.1.0 rather than 1.0.2.
  171. .. _v1-8:
  172. 1.8 - 2017-03-09
  173. ~~~~~~~~~~~~~~~~
  174. * Added support for Python 3.6.
  175. * Windows and macOS wheels now link against OpenSSL 1.1.0.
  176. * macOS wheels are no longer universal. This change significantly shrinks the
  177. size of the wheels. Users on macOS 32-bit Python (if there are any) should
  178. migrate to 64-bit or build their own packages.
  179. * Changed ASN.1 dependency from ``pyasn1`` to ``asn1crypto`` resulting in a
  180. general performance increase when encoding/decoding ASN.1 structures. Also,
  181. the ``pyasn1_modules`` test dependency is no longer required.
  182. * Added support for
  183. :meth:`~cryptography.hazmat.primitives.ciphers.CipherContext.update_into` on
  184. :class:`~cryptography.hazmat.primitives.ciphers.CipherContext`.
  185. * Added
  186. :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKeyWithSerialization.private_bytes`
  187. to
  188. :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKeyWithSerialization`.
  189. * Added
  190. :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey.public_bytes`
  191. to
  192. :class:`~cryptography.hazmat.primitives.asymmetric.dh.DHPublicKey`.
  193. * :func:`~cryptography.hazmat.primitives.serialization.load_pem_private_key`
  194. and
  195. :func:`~cryptography.hazmat.primitives.serialization.load_der_private_key`
  196. now require that ``password`` must be bytes if provided. Previously this
  197. was documented but not enforced.
  198. * Added support for subgroup order in :doc:`/hazmat/primitives/asymmetric/dh`.
  199. .. _v1-7-2:
  200. 1.7.2 - 2017-01-27
  201. ~~~~~~~~~~~~~~~~~~
  202. * Updated Windows and macOS wheels to be compiled against OpenSSL 1.0.2k.
  203. .. _v1-7-1:
  204. 1.7.1 - 2016-12-13
  205. ~~~~~~~~~~~~~~~~~~
  206. * Fixed a regression in ``int_from_bytes`` where it failed to accept
  207. ``bytearray``.
  208. .. _v1-7:
  209. 1.7 - 2016-12-12
  210. ~~~~~~~~~~~~~~~~
  211. * Support for OpenSSL 1.0.0 has been removed. Users on older version of OpenSSL
  212. will need to upgrade.
  213. * Added support for Diffie-Hellman key exchange using
  214. :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKey.exchange`.
  215. * The OS random engine for OpenSSL has been rewritten to improve compatibility
  216. with embedded Python and other edge cases. More information about this change
  217. can be found in the
  218. `pull request <https://github.com/pyca/cryptography/pull/3229>`_.
  219. .. _v1-6:
  220. 1.6 - 2016-11-22
  221. ~~~~~~~~~~~~~~~~
  222. * Deprecated support for OpenSSL 1.0.0. Support will be removed in
  223. ``cryptography`` 1.7.
  224. * Replaced the Python-based OpenSSL locking callbacks with a C version to fix
  225. a potential deadlock that could occur if a garbage collection cycle occurred
  226. while inside the lock.
  227. * Added support for :class:`~cryptography.hazmat.primitives.hashes.BLAKE2b` and
  228. :class:`~cryptography.hazmat.primitives.hashes.BLAKE2s` when using OpenSSL
  229. 1.1.0.
  230. * Added
  231. :attr:`~cryptography.x509.Certificate.signature_algorithm_oid` support to
  232. :class:`~cryptography.x509.Certificate`.
  233. * Added
  234. :attr:`~cryptography.x509.CertificateSigningRequest.signature_algorithm_oid`
  235. support to :class:`~cryptography.x509.CertificateSigningRequest`.
  236. * Added
  237. :attr:`~cryptography.x509.CertificateRevocationList.signature_algorithm_oid`
  238. support to :class:`~cryptography.x509.CertificateRevocationList`.
  239. * Added support for :class:`~cryptography.hazmat.primitives.kdf.scrypt.Scrypt`
  240. when using OpenSSL 1.1.0.
  241. * Added a workaround to improve compatibility with Python application bundling
  242. tools like ``PyInstaller`` and ``cx_freeze``.
  243. * Added support for generating a
  244. :meth:`~cryptography.x509.random_serial_number`.
  245. * Added support for encoding ``IPv4Network`` and ``IPv6Network`` in X.509
  246. certificates for use with :class:`~cryptography.x509.NameConstraints`.
  247. * Added :meth:`~cryptography.x509.Name.public_bytes` to
  248. :class:`~cryptography.x509.Name`.
  249. * Added :class:`~cryptography.x509.RelativeDistinguishedName`
  250. * :class:`~cryptography.x509.DistributionPoint` now accepts
  251. :class:`~cryptography.x509.RelativeDistinguishedName` for
  252. :attr:`~cryptography.x509.DistributionPoint.relative_name`.
  253. Deprecated use of :class:`~cryptography.x509.Name` as
  254. :attr:`~cryptography.x509.DistributionPoint.relative_name`.
  255. * :class:`~cryptography.x509.Name` now accepts an iterable of
  256. :class:`~cryptography.x509.RelativeDistinguishedName`. RDNs can
  257. be accessed via the :attr:`~cryptography.x509.Name.rdns`
  258. attribute. When constructed with an iterable of
  259. :class:`~cryptography.x509.NameAttribute`, each attribute becomes
  260. a single-valued RDN.
  261. * Added
  262. :func:`~cryptography.hazmat.primitives.asymmetric.ec.derive_private_key`.
  263. * Added support for signing and verifying RSA, DSA, and ECDSA signatures with
  264. :class:`~cryptography.hazmat.primitives.asymmetric.utils.Prehashed`
  265. digests.
  266. .. _v1-5-3:
  267. 1.5.3 - 2016-11-05
  268. ~~~~~~~~~~~~~~~~~~
  269. * **SECURITY ISSUE**: Fixed a bug where ``HKDF`` would return an empty
  270. byte-string if used with a ``length`` less than ``algorithm.digest_size``.
  271. Credit to **Markus Döring** for reporting the issue. *CVE-2016-9243*
  272. .. _v1-5-2:
  273. 1.5.2 - 2016-09-26
  274. ~~~~~~~~~~~~~~~~~~
  275. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2j.
  276. .. _v1-5-1:
  277. 1.5.1 - 2016-09-22
  278. ~~~~~~~~~~~~~~~~~~
  279. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2i.
  280. * Resolved a ``UserWarning`` when used with cffi 1.8.3.
  281. * Fixed a memory leak in name creation with X.509.
  282. * Added a workaround for old versions of setuptools.
  283. * Fixed an issue preventing ``cryptography`` from compiling against
  284. OpenSSL 1.0.2i.
  285. .. _v1-5:
  286. 1.5 - 2016-08-26
  287. ~~~~~~~~~~~~~~~~
  288. * Added
  289. :func:`~cryptography.hazmat.primitives.asymmetric.padding.calculate_max_pss_salt_length`.
  290. * Added "one shot"
  291. :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey.sign`
  292. and
  293. :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey.verify`
  294. methods to DSA keys.
  295. * Added "one shot"
  296. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey.sign`
  297. and
  298. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey.verify`
  299. methods to ECDSA keys.
  300. * Switched back to the older callback model on Python 3.5 in order to mitigate
  301. the locking callback problem with OpenSSL <1.1.0.
  302. * :class:`~cryptography.x509.CertificateBuilder`,
  303. :class:`~cryptography.x509.CertificateRevocationListBuilder`, and
  304. :class:`~cryptography.x509.RevokedCertificateBuilder` now accept timezone
  305. aware ``datetime`` objects as method arguments
  306. * ``cryptography`` now supports OpenSSL 1.1.0 as a compilation target.
  307. .. _v1-4:
  308. 1.4 - 2016-06-04
  309. ~~~~~~~~~~~~~~~~
  310. * Support for OpenSSL 0.9.8 has been removed. Users on older versions of
  311. OpenSSL will need to upgrade.
  312. * Added :class:`~cryptography.hazmat.primitives.kdf.kbkdf.KBKDFHMAC`.
  313. * Added support for ``OpenSSH`` public key serialization.
  314. * Added support for SHA-2 in RSA
  315. :class:`~cryptography.hazmat.primitives.asymmetric.padding.OAEP` when using
  316. OpenSSL 1.0.2 or greater.
  317. * Added "one shot"
  318. :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey.sign`
  319. and
  320. :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey.verify`
  321. methods to RSA keys.
  322. * Deprecated the ``serial`` attribute on
  323. :class:`~cryptography.x509.Certificate`, in favor of
  324. :attr:`~cryptography.x509.Certificate.serial_number`.
  325. .. _v1-3-4:
  326. 1.3.4 - 2016-06-03
  327. ~~~~~~~~~~~~~~~~~~
  328. * Added another OpenSSL function to the bindings to support an upcoming
  329. ``pyOpenSSL`` release.
  330. .. _v1-3-3:
  331. 1.3.3 - 2016-06-02
  332. ~~~~~~~~~~~~~~~~~~
  333. * Added two new OpenSSL functions to the bindings to support an upcoming
  334. ``pyOpenSSL`` release.
  335. .. _v1-3-2:
  336. 1.3.2 - 2016-05-04
  337. ~~~~~~~~~~~~~~~~~~
  338. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2h.
  339. * Fixed an issue preventing ``cryptography`` from compiling against
  340. LibreSSL 2.3.x.
  341. .. _v1-3-1:
  342. 1.3.1 - 2016-03-21
  343. ~~~~~~~~~~~~~~~~~~
  344. * Fixed a bug that caused an ``AttributeError`` when using ``mock`` to patch
  345. some ``cryptography`` modules.
  346. .. _v1-3:
  347. 1.3 - 2016-03-18
  348. ~~~~~~~~~~~~~~~~
  349. * Added support for padding ANSI X.923 with
  350. :class:`~cryptography.hazmat.primitives.padding.ANSIX923`.
  351. * Deprecated support for OpenSSL 0.9.8. Support will be removed in
  352. ``cryptography`` 1.4.
  353. * Added support for the :class:`~cryptography.x509.PolicyConstraints`
  354. X.509 extension including both parsing and generation using
  355. :class:`~cryptography.x509.CertificateBuilder` and
  356. :class:`~cryptography.x509.CertificateSigningRequestBuilder`.
  357. * Added :attr:`~cryptography.x509.CertificateSigningRequest.is_signature_valid`
  358. to :class:`~cryptography.x509.CertificateSigningRequest`.
  359. * Fixed an intermittent ``AssertionError`` when performing an RSA decryption on
  360. an invalid ciphertext, ``ValueError`` is now correctly raised in all cases.
  361. * Added
  362. :meth:`~cryptography.x509.AuthorityKeyIdentifier.from_issuer_subject_key_identifier`.
  363. .. _v1-2-3:
  364. 1.2.3 - 2016-03-01
  365. ~~~~~~~~~~~~~~~~~~
  366. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2g.
  367. .. _v1-2-2:
  368. 1.2.2 - 2016-01-29
  369. ~~~~~~~~~~~~~~~~~~
  370. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2f.
  371. .. _v1-2-1:
  372. 1.2.1 - 2016-01-08
  373. ~~~~~~~~~~~~~~~~~~
  374. * Reverts a change to an OpenSSL ``EVP_PKEY`` object that caused errors with
  375. ``pyOpenSSL``.
  376. .. _v1-2:
  377. 1.2 - 2016-01-08
  378. ~~~~~~~~~~~~~~~~
  379. * **BACKWARDS INCOMPATIBLE:**
  380. :class:`~cryptography.x509.RevokedCertificate`
  381. :attr:`~cryptography.x509.RevokedCertificate.extensions` now uses extension
  382. classes rather than returning raw values inside the
  383. :class:`~cryptography.x509.Extension`
  384. :attr:`~cryptography.x509.Extension.value`. The new classes
  385. are:
  386. * :class:`~cryptography.x509.CertificateIssuer`
  387. * :class:`~cryptography.x509.CRLReason`
  388. * :class:`~cryptography.x509.InvalidityDate`
  389. * Deprecated support for OpenSSL 0.9.8 and 1.0.0. At this time there is no time
  390. table for actually dropping support, however we strongly encourage all users
  391. to upgrade, as those versions no longer receive support from the OpenSSL
  392. project.
  393. * The :class:`~cryptography.x509.Certificate` class now has
  394. :attr:`~cryptography.x509.Certificate.signature` and
  395. :attr:`~cryptography.x509.Certificate.tbs_certificate_bytes` attributes.
  396. * The :class:`~cryptography.x509.CertificateSigningRequest` class now has
  397. :attr:`~cryptography.x509.CertificateSigningRequest.signature` and
  398. :attr:`~cryptography.x509.CertificateSigningRequest.tbs_certrequest_bytes`
  399. attributes.
  400. * The :class:`~cryptography.x509.CertificateRevocationList` class now has
  401. :attr:`~cryptography.x509.CertificateRevocationList.signature` and
  402. :attr:`~cryptography.x509.CertificateRevocationList.tbs_certlist_bytes`
  403. attributes.
  404. * :class:`~cryptography.x509.NameConstraints` are now supported in the
  405. :class:`~cryptography.x509.CertificateBuilder` and
  406. :class:`~cryptography.x509.CertificateSigningRequestBuilder`.
  407. * Support serialization of certificate revocation lists using the
  408. :meth:`~cryptography.x509.CertificateRevocationList.public_bytes` method of
  409. :class:`~cryptography.x509.CertificateRevocationList`.
  410. * Add support for parsing :class:`~cryptography.x509.CertificateRevocationList`
  411. :meth:`~cryptography.x509.CertificateRevocationList.extensions` in the
  412. OpenSSL backend. The following extensions are currently supported:
  413. * :class:`~cryptography.x509.AuthorityInformationAccess`
  414. * :class:`~cryptography.x509.AuthorityKeyIdentifier`
  415. * :class:`~cryptography.x509.CRLNumber`
  416. * :class:`~cryptography.x509.IssuerAlternativeName`
  417. * Added :class:`~cryptography.x509.CertificateRevocationListBuilder` and
  418. :class:`~cryptography.x509.RevokedCertificateBuilder` to allow creation of
  419. CRLs.
  420. * Unrecognized non-critical X.509 extensions are now parsed into an
  421. :class:`~cryptography.x509.UnrecognizedExtension` object.
  422. .. _v1-1-2:
  423. 1.1.2 - 2015-12-10
  424. ~~~~~~~~~~~~~~~~~~
  425. * Fixed a SIGBUS crash with the OS X wheels caused by redefinition of a
  426. method.
  427. * Fixed a runtime error ``undefined symbol EC_GFp_nistp224_method`` that
  428. occurred with some OpenSSL installations.
  429. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2e.
  430. .. _v1-1-1:
  431. 1.1.1 - 2015-11-19
  432. ~~~~~~~~~~~~~~~~~~
  433. * Fixed several small bugs related to compiling the OpenSSL bindings with
  434. unusual OpenSSL configurations.
  435. * Resolved an issue where, depending on the method of installation and
  436. which Python interpreter they were using, users on El Capitan (OS X 10.11)
  437. may have seen an ``InternalError`` on import.
  438. .. _v1-1:
  439. 1.1 - 2015-10-28
  440. ~~~~~~~~~~~~~~~~
  441. * Added support for Elliptic Curve Diffie-Hellman with
  442. :class:`~cryptography.hazmat.primitives.asymmetric.ec.ECDH`.
  443. * Added :class:`~cryptography.hazmat.primitives.kdf.x963kdf.X963KDF`.
  444. * Added support for parsing certificate revocation lists (CRLs) using
  445. :func:`~cryptography.x509.load_pem_x509_crl` and
  446. :func:`~cryptography.x509.load_der_x509_crl`.
  447. * Add support for AES key wrapping with
  448. :func:`~cryptography.hazmat.primitives.keywrap.aes_key_wrap` and
  449. :func:`~cryptography.hazmat.primitives.keywrap.aes_key_unwrap`.
  450. * Added a ``__hash__`` method to :class:`~cryptography.x509.Name`.
  451. * Add support for encoding and decoding elliptic curve points to a byte string
  452. form using
  453. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicNumbers.encode_point`
  454. and
  455. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicNumbers.from_encoded_point`.
  456. * Added :meth:`~cryptography.x509.Extensions.get_extension_for_class`.
  457. * :class:`~cryptography.x509.CertificatePolicies` are now supported in the
  458. :class:`~cryptography.x509.CertificateBuilder`.
  459. * ``countryName`` is now encoded as a ``PrintableString`` when creating subject
  460. and issuer distinguished names with the Certificate and CSR builder classes.
  461. .. _v1-0-2:
  462. 1.0.2 - 2015-09-27
  463. ~~~~~~~~~~~~~~~~~~
  464. * **SECURITY ISSUE**: The OpenSSL backend prior to 1.0.2 made extensive use
  465. of assertions to check response codes where our tests could not trigger a
  466. failure. However, when Python is run with ``-O`` these asserts are optimized
  467. away. If a user ran Python with this flag and got an invalid response code
  468. this could result in undefined behavior or worse. Accordingly, all response
  469. checks from the OpenSSL backend have been converted from ``assert``
  470. to a true function call. Credit **Emilia Käsper (Google Security Team)**
  471. for the report.
  472. .. _v1-0-1:
  473. 1.0.1 - 2015-09-05
  474. ~~~~~~~~~~~~~~~~~~
  475. * We now ship OS X wheels that statically link OpenSSL by default. When
  476. installing a wheel on OS X 10.10+ (and using a Python compiled against the
  477. 10.10 SDK) users will no longer need to compile. See :doc:`/installation` for
  478. alternate installation methods if required.
  479. * Set the default string mask to UTF-8 in the OpenSSL backend to resolve
  480. character encoding issues with older versions of OpenSSL.
  481. * Several new OpenSSL bindings have been added to support a future pyOpenSSL
  482. release.
  483. * Raise an error during install on PyPy < 2.6. 1.0+ requires PyPy 2.6+.
  484. .. _v1-0:
  485. 1.0 - 2015-08-12
  486. ~~~~~~~~~~~~~~~~
  487. * Switched to the new `cffi`_ ``set_source`` out-of-line API mode for
  488. compilation. This results in significantly faster imports and lowered
  489. memory consumption. Due to this change we no longer support PyPy releases
  490. older than 2.6 nor do we support any released version of PyPy3 (until a
  491. version supporting cffi 1.0 comes out).
  492. * Fix parsing of OpenSSH public keys that have spaces in comments.
  493. * Support serialization of certificate signing requests using the
  494. ``public_bytes`` method of
  495. :class:`~cryptography.x509.CertificateSigningRequest`.
  496. * Support serialization of certificates using the ``public_bytes`` method of
  497. :class:`~cryptography.x509.Certificate`.
  498. * Add ``get_provisioning_uri`` method to
  499. :class:`~cryptography.hazmat.primitives.twofactor.hotp.HOTP` and
  500. :class:`~cryptography.hazmat.primitives.twofactor.totp.TOTP` for generating
  501. provisioning URIs.
  502. * Add :class:`~cryptography.hazmat.primitives.kdf.concatkdf.ConcatKDFHash`
  503. and :class:`~cryptography.hazmat.primitives.kdf.concatkdf.ConcatKDFHMAC`.
  504. * Raise a ``TypeError`` when passing objects that are not text as the value to
  505. :class:`~cryptography.x509.NameAttribute`.
  506. * Add support for :class:`~cryptography.x509.OtherName` as a general name
  507. type.
  508. * Added new X.509 extension support in :class:`~cryptography.x509.Certificate`
  509. The following new extensions are now supported:
  510. * :class:`~cryptography.x509.OCSPNoCheck`
  511. * :class:`~cryptography.x509.InhibitAnyPolicy`
  512. * :class:`~cryptography.x509.IssuerAlternativeName`
  513. * :class:`~cryptography.x509.NameConstraints`
  514. * Extension support was added to
  515. :class:`~cryptography.x509.CertificateSigningRequest`.
  516. * Add support for creating signed certificates with
  517. :class:`~cryptography.x509.CertificateBuilder`. This includes support for
  518. the following extensions:
  519. * :class:`~cryptography.x509.BasicConstraints`
  520. * :class:`~cryptography.x509.SubjectAlternativeName`
  521. * :class:`~cryptography.x509.KeyUsage`
  522. * :class:`~cryptography.x509.ExtendedKeyUsage`
  523. * :class:`~cryptography.x509.SubjectKeyIdentifier`
  524. * :class:`~cryptography.x509.AuthorityKeyIdentifier`
  525. * :class:`~cryptography.x509.AuthorityInformationAccess`
  526. * :class:`~cryptography.x509.CRLDistributionPoints`
  527. * :class:`~cryptography.x509.InhibitAnyPolicy`
  528. * :class:`~cryptography.x509.IssuerAlternativeName`
  529. * :class:`~cryptography.x509.OCSPNoCheck`
  530. * Add support for creating certificate signing requests with
  531. :class:`~cryptography.x509.CertificateSigningRequestBuilder`. This includes
  532. support for the same extensions supported in the ``CertificateBuilder``.
  533. * Deprecate ``encode_rfc6979_signature`` and ``decode_rfc6979_signature`` in
  534. favor of
  535. :func:`~cryptography.hazmat.primitives.asymmetric.utils.encode_dss_signature`
  536. and
  537. :func:`~cryptography.hazmat.primitives.asymmetric.utils.decode_dss_signature`.
  538. .. _v0-9-3:
  539. 0.9.3 - 2015-07-09
  540. ~~~~~~~~~~~~~~~~~~
  541. * Updated Windows wheels to be compiled against OpenSSL 1.0.2d.
  542. .. _v0-9-2:
  543. 0.9.2 - 2015-07-04
  544. ~~~~~~~~~~~~~~~~~~
  545. * Updated Windows wheels to be compiled against OpenSSL 1.0.2c.
  546. .. _v0-9-1:
  547. 0.9.1 - 2015-06-06
  548. ~~~~~~~~~~~~~~~~~~
  549. * **SECURITY ISSUE**: Fixed a double free in the OpenSSL backend when using DSA
  550. to verify signatures. Note that this only affects PyPy 2.6.0 and (presently
  551. unreleased) CFFI versions greater than 1.1.0.
  552. .. _v0-9:
  553. 0.9 - 2015-05-13
  554. ~~~~~~~~~~~~~~~~
  555. * Removed support for Python 3.2. This version of Python is rarely used
  556. and caused support headaches. Users affected by this should upgrade to 3.3+.
  557. * Deprecated support for Python 2.6. At the time there is no time table for
  558. actually dropping support, however we strongly encourage all users to upgrade
  559. their Python, as Python 2.6 no longer receives support from the Python core
  560. team.
  561. * Add support for the
  562. :class:`~cryptography.hazmat.primitives.asymmetric.ec.SECP256K1` elliptic
  563. curve.
  564. * Fixed compilation when using an OpenSSL which was compiled with the
  565. ``no-comp`` (``OPENSSL_NO_COMP``) option.
  566. * Support :attr:`~cryptography.hazmat.primitives.serialization.Encoding.DER`
  567. serialization of public keys using the ``public_bytes`` method of
  568. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`,
  569. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`,
  570. and
  571. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`.
  572. * Support :attr:`~cryptography.hazmat.primitives.serialization.Encoding.DER`
  573. serialization of private keys using the ``private_bytes`` method of
  574. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`,
  575. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`,
  576. and
  577. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`.
  578. * Add support for parsing X.509 certificate signing requests (CSRs) with
  579. :func:`~cryptography.x509.load_pem_x509_csr` and
  580. :func:`~cryptography.x509.load_der_x509_csr`.
  581. * Moved ``cryptography.exceptions.InvalidToken`` to
  582. :class:`cryptography.hazmat.primitives.twofactor.InvalidToken` and deprecated
  583. the old location. This was moved to minimize confusion between this exception
  584. and :class:`cryptography.fernet.InvalidToken`.
  585. * Added support for X.509 extensions in :class:`~cryptography.x509.Certificate`
  586. objects. The following extensions are supported as of this release:
  587. * :class:`~cryptography.x509.BasicConstraints`
  588. * :class:`~cryptography.x509.AuthorityKeyIdentifier`
  589. * :class:`~cryptography.x509.SubjectKeyIdentifier`
  590. * :class:`~cryptography.x509.KeyUsage`
  591. * :class:`~cryptography.x509.SubjectAlternativeName`
  592. * :class:`~cryptography.x509.ExtendedKeyUsage`
  593. * :class:`~cryptography.x509.CRLDistributionPoints`
  594. * :class:`~cryptography.x509.AuthorityInformationAccess`
  595. * :class:`~cryptography.x509.CertificatePolicies`
  596. Note that unsupported extensions with the critical flag raise
  597. ``UnsupportedExtension`` while unsupported extensions set to non-critical are
  598. silently ignored. Read the :doc:`X.509 documentation</x509/index>` for more
  599. information.
  600. .. _v0-8-2:
  601. 0.8.2 - 2015-04-10
  602. ~~~~~~~~~~~~~~~~~~
  603. * Fixed a race condition when initializing the OpenSSL or CommonCrypto backends
  604. in a multi-threaded scenario.
  605. .. _v0-8-1:
  606. 0.8.1 - 2015-03-20
  607. ~~~~~~~~~~~~~~~~~~
  608. * Updated Windows wheels to be compiled against OpenSSL 1.0.2a.
  609. .. _v0-8:
  610. 0.8 - 2015-03-08
  611. ~~~~~~~~~~~~~~~~
  612. * :func:`~cryptography.hazmat.primitives.serialization.load_ssh_public_key` can
  613. now load elliptic curve public keys.
  614. * Added
  615. :attr:`~cryptography.x509.Certificate.signature_hash_algorithm` support to
  616. :class:`~cryptography.x509.Certificate`.
  617. * Added
  618. :func:`~cryptography.hazmat.primitives.asymmetric.rsa.rsa_recover_prime_factors`
  619. * :class:`~cryptography.hazmat.primitives.kdf.KeyDerivationFunction` was moved
  620. from ``cryptography.hazmat.primitives.interfaces`` to
  621. :mod:`~cryptography.hazmat.primitives.kdf`.
  622. * Added support for parsing X.509 names. See the
  623. :doc:`X.509 documentation</x509/index>` for more information.
  624. * Added
  625. :func:`~cryptography.hazmat.primitives.serialization.load_der_private_key` to
  626. support loading of DER encoded private keys and
  627. :func:`~cryptography.hazmat.primitives.serialization.load_der_public_key` to
  628. support loading DER encoded public keys.
  629. * Fixed building against LibreSSL, a compile-time substitute for OpenSSL.
  630. * FreeBSD 9.2 was removed from the continuous integration system.
  631. * Updated Windows wheels to be compiled against OpenSSL 1.0.2.
  632. * :func:`~cryptography.hazmat.primitives.serialization.load_pem_public_key`
  633. and :func:`~cryptography.hazmat.primitives.serialization.load_der_public_key`
  634. now support PKCS1 RSA public keys (in addition to the previous support for
  635. SubjectPublicKeyInfo format for RSA, EC, and DSA).
  636. * Added
  637. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`
  638. and deprecated ``EllipticCurvePrivateKeyWithNumbers``.
  639. * Added
  640. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization.private_bytes`
  641. to
  642. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`.
  643. * Added
  644. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`
  645. and deprecated ``RSAPrivateKeyWithNumbers``.
  646. * Added
  647. :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization.private_bytes`
  648. to
  649. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`.
  650. * Added
  651. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`
  652. and deprecated ``DSAPrivateKeyWithNumbers``.
  653. * Added
  654. :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization.private_bytes`
  655. to
  656. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`.
  657. * Added
  658. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`
  659. and deprecated ``RSAPublicKeyWithNumbers``.
  660. * Added ``public_bytes`` to
  661. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`.
  662. * Added
  663. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`
  664. and deprecated ``EllipticCurvePublicKeyWithNumbers``.
  665. * Added ``public_bytes`` to
  666. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`.
  667. * Added
  668. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`
  669. and deprecated ``DSAPublicKeyWithNumbers``.
  670. * Added ``public_bytes`` to
  671. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`.
  672. * :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` and
  673. :class:`~cryptography.hazmat.primitives.hashes.HashContext` were moved from
  674. ``cryptography.hazmat.primitives.interfaces`` to
  675. :mod:`~cryptography.hazmat.primitives.hashes`.
  676. * :class:`~cryptography.hazmat.primitives.ciphers.CipherContext`,
  677. :class:`~cryptography.hazmat.primitives.ciphers.AEADCipherContext`,
  678. :class:`~cryptography.hazmat.primitives.ciphers.AEADEncryptionContext`,
  679. :class:`~cryptography.hazmat.primitives.ciphers.CipherAlgorithm`, and
  680. :class:`~cryptography.hazmat.primitives.ciphers.BlockCipherAlgorithm`
  681. were moved from ``cryptography.hazmat.primitives.interfaces`` to
  682. :mod:`~cryptography.hazmat.primitives.ciphers`.
  683. * :class:`~cryptography.hazmat.primitives.ciphers.modes.Mode`,
  684. :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithInitializationVector`,
  685. :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithNonce`, and
  686. :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithAuthenticationTag`
  687. were moved from ``cryptography.hazmat.primitives.interfaces`` to
  688. :mod:`~cryptography.hazmat.primitives.ciphers.modes`.
  689. * :class:`~cryptography.hazmat.primitives.padding.PaddingContext` was moved
  690. from ``cryptography.hazmat.primitives.interfaces`` to
  691. :mod:`~cryptography.hazmat.primitives.padding`.
  692. *
  693. :class:`~cryptography.hazmat.primitives.asymmetric.padding.AsymmetricPadding`
  694. was moved from ``cryptography.hazmat.primitives.interfaces`` to
  695. :mod:`~cryptography.hazmat.primitives.asymmetric.padding`.
  696. * ``AsymmetricSignatureContext`` and ``AsymmetricVerificationContext``
  697. were moved from ``cryptography.hazmat.primitives.interfaces`` to
  698. ``cryptography.hazmat.primitives.asymmetric``.
  699. * :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters`,
  700. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParametersWithNumbers`,
  701. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`,
  702. ``DSAPrivateKeyWithNumbers``,
  703. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey` and
  704. ``DSAPublicKeyWithNumbers`` were moved from
  705. ``cryptography.hazmat.primitives.interfaces`` to
  706. :mod:`~cryptography.hazmat.primitives.asymmetric.dsa`
  707. * :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurve`,
  708. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurveSignatureAlgorithm`,
  709. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`,
  710. ``EllipticCurvePrivateKeyWithNumbers``,
  711. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`,
  712. and ``EllipticCurvePublicKeyWithNumbers``
  713. were moved from ``cryptography.hazmat.primitives.interfaces`` to
  714. :mod:`~cryptography.hazmat.primitives.asymmetric.ec`.
  715. * :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,
  716. ``RSAPrivateKeyWithNumbers``,
  717. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey` and
  718. ``RSAPublicKeyWithNumbers`` were moved from
  719. ``cryptography.hazmat.primitives.interfaces`` to
  720. :mod:`~cryptography.hazmat.primitives.asymmetric.rsa`.
  721. .. _v0-7-2:
  722. 0.7.2 - 2015-01-16
  723. ~~~~~~~~~~~~~~~~~~
  724. * Updated Windows wheels to be compiled against OpenSSL 1.0.1l.
  725. * ``enum34`` is no longer installed on Python 3.4, where it is included in
  726. the standard library.
  727. * Added a new function to the OpenSSL bindings to support additional
  728. functionality in pyOpenSSL.
  729. .. _v0-7-1:
  730. 0.7.1 - 2014-12-28
  731. ~~~~~~~~~~~~~~~~~~
  732. * Fixed an issue preventing compilation on platforms where ``OPENSSL_NO_SSL3``
  733. was defined.
  734. .. _v0-7:
  735. 0.7 - 2014-12-17
  736. ~~~~~~~~~~~~~~~~
  737. * Cryptography has been relicensed from the Apache Software License, Version
  738. 2.0, to being available under *either* the Apache Software License, Version
  739. 2.0, or the BSD license.
  740. * Added key-rotation support to :doc:`Fernet </fernet>` with
  741. :class:`~cryptography.fernet.MultiFernet`.
  742. * More bit-lengths are now supported for ``p`` and ``q`` when loading DSA keys
  743. from numbers.
  744. * Added :class:`~cryptography.hazmat.primitives.mac.MACContext` as a
  745. common interface for CMAC and HMAC and deprecated ``CMACContext``.
  746. * Added support for encoding and decoding :rfc:`6979` signatures in
  747. :doc:`/hazmat/primitives/asymmetric/utils`.
  748. * Added
  749. :func:`~cryptography.hazmat.primitives.serialization.load_ssh_public_key` to
  750. support the loading of OpenSSH public keys (:rfc:`4253`). Only RSA and DSA
  751. keys are currently supported.
  752. * Added initial support for X.509 certificate parsing. See the
  753. :doc:`X.509 documentation</x509/index>` for more information.
  754. .. _v0-6-1:
  755. 0.6.1 - 2014-10-15
  756. ~~~~~~~~~~~~~~~~~~
  757. * Updated Windows wheels to be compiled against OpenSSL 1.0.1j.
  758. * Fixed an issue where OpenSSL 1.0.1j changed the errors returned by some
  759. functions.
  760. * Added our license file to the ``cryptography-vectors`` package.
  761. * Implemented DSA hash truncation support (per FIPS 186-3) in the OpenSSL
  762. backend. This works around an issue in 1.0.0, 1.0.0a, and 1.0.0b where
  763. truncation was not implemented.
  764. .. _v0-6:
  765. 0.6 - 2014-09-29
  766. ~~~~~~~~~~~~~~~~
  767. * Added
  768. :func:`~cryptography.hazmat.primitives.serialization.load_pem_private_key` to
  769. ease loading private keys, and
  770. :func:`~cryptography.hazmat.primitives.serialization.load_pem_public_key` to
  771. support loading public keys.
  772. * Removed the, deprecated in 0.4, support for the ``salt_length`` argument to
  773. the :class:`~cryptography.hazmat.primitives.asymmetric.padding.MGF1`
  774. constructor. The ``salt_length`` should be passed to
  775. :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS` instead.
  776. * Fix compilation on OS X Yosemite.
  777. * Deprecated ``elliptic_curve_private_key_from_numbers`` and
  778. ``elliptic_curve_public_key_from_numbers`` in favor of
  779. ``load_elliptic_curve_private_numbers`` and
  780. ``load_elliptic_curve_public_numbers`` on
  781. :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`.
  782. * Added ``EllipticCurvePrivateKeyWithNumbers`` and
  783. ``EllipticCurvePublicKeyWithNumbers`` support.
  784. * Work around three GCM related bugs in CommonCrypto and OpenSSL.
  785. * On the CommonCrypto backend adding AAD but not subsequently calling update
  786. would return null tag bytes.
  787. * One the CommonCrypto backend a call to update without an empty add AAD call
  788. would return null ciphertext bytes.
  789. * On the OpenSSL backend with certain versions adding AAD only would give
  790. invalid tag bytes.
  791. * Support loading EC private keys from PEM.
  792. .. _v0-5-4:
  793. 0.5.4 - 2014-08-20
  794. ~~~~~~~~~~~~~~~~~~
  795. * Added several functions to the OpenSSL bindings to support new
  796. functionality in pyOpenSSL.
  797. * Fixed a redefined constant causing compilation failure with Solaris 11.2.
  798. .. _v0-5-3:
  799. 0.5.3 - 2014-08-06
  800. ~~~~~~~~~~~~~~~~~~
  801. * Updated Windows wheels to be compiled against OpenSSL 1.0.1i.
  802. .. _v0-5-2:
  803. 0.5.2 - 2014-07-09
  804. ~~~~~~~~~~~~~~~~~~
  805. * Add ``TraditionalOpenSSLSerializationBackend`` support to ``multibackend``.
  806. * Fix compilation error on OS X 10.8 (Mountain Lion).
  807. .. _v0-5-1:
  808. 0.5.1 - 2014-07-07
  809. ~~~~~~~~~~~~~~~~~~
  810. * Add ``PKCS8SerializationBackend`` support to ``multibackend``.
  811. .. _v0-5:
  812. 0.5 - 2014-07-07
  813. ~~~~~~~~~~~~~~~~
  814. * **BACKWARDS INCOMPATIBLE:**
  815. :class:`~cryptography.hazmat.primitives.ciphers.modes.GCM` no longer allows
  816. truncation of tags by default. Previous versions of ``cryptography`` allowed
  817. tags to be truncated by default, applications wishing to preserve this
  818. behavior (not recommended) can pass the ``min_tag_length`` argument.
  819. * Windows builds now statically link OpenSSL by default. When installing a
  820. wheel on Windows you no longer need to install OpenSSL separately. Windows
  821. users can switch between static and dynamic linking with an environment
  822. variable. See :doc:`/installation` for more details.
  823. * Added :class:`~cryptography.hazmat.primitives.kdf.hkdf.HKDFExpand`.
  824. * Added :class:`~cryptography.hazmat.primitives.ciphers.modes.CFB8` support
  825. for :class:`~cryptography.hazmat.primitives.ciphers.algorithms.AES` and
  826. :class:`~cryptography.hazmat.primitives.ciphers.algorithms.TripleDES` on
  827. ``commoncrypto`` and :doc:`/hazmat/backends/openssl`.
  828. * Added ``AES`` :class:`~cryptography.hazmat.primitives.ciphers.modes.CTR`
  829. support to the OpenSSL backend when linked against 0.9.8.
  830. * Added ``PKCS8SerializationBackend`` and
  831. ``TraditionalOpenSSLSerializationBackend`` support to the
  832. :doc:`/hazmat/backends/openssl`.
  833. * Added :doc:`/hazmat/primitives/asymmetric/ec` and
  834. :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`.
  835. * Added :class:`~cryptography.hazmat.primitives.ciphers.modes.ECB` support
  836. for :class:`~cryptography.hazmat.primitives.ciphers.algorithms.TripleDES` on
  837. ``commoncrypto`` and :doc:`/hazmat/backends/openssl`.
  838. * Deprecated the concrete ``RSAPrivateKey`` class in favor of backend
  839. specific providers of the
  840. :class:`cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`
  841. interface.
  842. * Deprecated the concrete ``RSAPublicKey`` in favor of backend specific
  843. providers of the
  844. :class:`cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`
  845. interface.
  846. * Deprecated the concrete ``DSAPrivateKey`` class in favor of backend
  847. specific providers of the
  848. :class:`cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`
  849. interface.
  850. * Deprecated the concrete ``DSAPublicKey`` class in favor of backend specific
  851. providers of the
  852. :class:`cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`
  853. interface.
  854. * Deprecated the concrete ``DSAParameters`` class in favor of backend specific
  855. providers of the
  856. :class:`cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters`
  857. interface.
  858. * Deprecated ``encrypt_rsa``, ``decrypt_rsa``, ``create_rsa_signature_ctx`` and
  859. ``create_rsa_verification_ctx`` on
  860. :class:`~cryptography.hazmat.backends.interfaces.RSABackend`.
  861. * Deprecated ``create_dsa_signature_ctx`` and ``create_dsa_verification_ctx``
  862. on :class:`~cryptography.hazmat.backends.interfaces.DSABackend`.
  863. .. _v0-4:
  864. 0.4 - 2014-05-03
  865. ~~~~~~~~~~~~~~~~
  866. * Deprecated ``salt_length`` on
  867. :class:`~cryptography.hazmat.primitives.asymmetric.padding.MGF1` and added it
  868. to :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS`. It will
  869. be removed from ``MGF1`` in two releases per our :doc:`/api-stability`
  870. policy.
  871. * Added :class:`~cryptography.hazmat.primitives.ciphers.algorithms.SEED`
  872. support.
  873. * Added :class:`~cryptography.hazmat.primitives.cmac.CMAC`.
  874. * Added decryption support to
  875. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`
  876. and encryption support to
  877. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`.
  878. * Added signature support to
  879. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`
  880. and verification support to
  881. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`.
  882. .. _v0-3:
  883. 0.3 - 2014-03-27
  884. ~~~~~~~~~~~~~~~~
  885. * Added :class:`~cryptography.hazmat.primitives.twofactor.hotp.HOTP`.
  886. * Added :class:`~cryptography.hazmat.primitives.twofactor.totp.TOTP`.
  887. * Added :class:`~cryptography.hazmat.primitives.ciphers.algorithms.IDEA`
  888. support.
  889. * Added signature support to
  890. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`
  891. and verification support to
  892. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`.
  893. * Moved test vectors to the new ``cryptography_vectors`` package.
  894. .. _v0-2-2:
  895. 0.2.2 - 2014-03-03
  896. ~~~~~~~~~~~~~~~~~~
  897. * Removed a constant definition that was causing compilation problems with
  898. specific versions of OpenSSL.
  899. .. _v0-2-1:
  900. 0.2.1 - 2014-02-22
  901. ~~~~~~~~~~~~~~~~~~
  902. * Fix a bug where importing cryptography from multiple paths could cause
  903. initialization to fail.
  904. .. _v0-2:
  905. 0.2 - 2014-02-20
  906. ~~~~~~~~~~~~~~~~
  907. * Added ``commoncrypto``.
  908. * Added initial ``commoncrypto``.
  909. * Removed ``register_cipher_adapter`` method from
  910. :class:`~cryptography.hazmat.backends.interfaces.CipherBackend`.
  911. * Added support for the OpenSSL backend under Windows.
  912. * Improved thread-safety for the OpenSSL backend.
  913. * Fixed compilation on systems where OpenSSL's ``ec.h`` header is not
  914. available, such as CentOS.
  915. * Added :class:`~cryptography.hazmat.primitives.kdf.pbkdf2.PBKDF2HMAC`.
  916. * Added :class:`~cryptography.hazmat.primitives.kdf.hkdf.HKDF`.
  917. * Added ``multibackend``.
  918. * Set default random for the :doc:`/hazmat/backends/openssl` to the OS
  919. random engine.
  920. * Added :class:`~cryptography.hazmat.primitives.ciphers.algorithms.CAST5`
  921. (CAST-128) support.
  922. .. _v0-1:
  923. 0.1 - 2014-01-08
  924. ~~~~~~~~~~~~~~~~
  925. * Initial release.
  926. .. _`master`: https://github.com/pyca/cryptography/
  927. .. _`cffi`: https://cffi.readthedocs.io/