CHANGELOG.rst 40 KB

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