CHANGELOG.rst 41 KB

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