CHANGELOG.rst 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. Changelog
  2. =========
  3. 1.3.1 - 2016-03-21
  4. ~~~~~~~~~~~~~~~~~~
  5. * Fixed a bug that caused an ``AttributeError`` when using ``mock`` to patch
  6. some ``cryptography`` modules.
  7. 1.3 - 2016-03-18
  8. ~~~~~~~~~~~~~~~~
  9. * Added support for padding ANSI X.923 with
  10. :class:`~cryptography.hazmat.primitives.padding.ANSIX923`.
  11. * Deprecated support for OpenSSL 0.9.8. Support will be removed in
  12. ``cryptography`` 1.4.
  13. * Added support for the :class:`~cryptography.x509.PolicyConstraints`
  14. X.509 extension including both parsing and generation using
  15. :class:`~cryptography.x509.CertificateBuilder` and
  16. :class:`~cryptography.x509.CertificateSigningRequestBuilder`.
  17. * Added :attr:`~cryptography.x509.CertificateSigningRequest.is_signature_valid`
  18. to :class:`~cryptography.x509.CertificateSigningRequest`.
  19. * Fixed an intermittent ``AssertionError`` when performing an RSA decryption on
  20. an invalid ciphertext, ``ValueError`` is now correctly raised in all cases.
  21. * Added
  22. :meth:`~cryptography.x509.AuthorityKeyIdentifier.from_issuer_subject_key_identifier`.
  23. 1.2.3 - 2016-03-01
  24. ~~~~~~~~~~~~~~~~~~
  25. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2g.
  26. 1.2.2 - 2016-01-29
  27. ~~~~~~~~~~~~~~~~~~
  28. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2f.
  29. 1.2.1 - 2016-01-08
  30. ~~~~~~~~~~~~~~~~~~
  31. * Reverts a change to an OpenSSL ``EVP_PKEY`` object that caused errors with
  32. ``pyOpenSSL``.
  33. 1.2 - 2016-01-08
  34. ~~~~~~~~~~~~~~~~
  35. * **BACKWARDS INCOMPATIBLE:**
  36. :class:`~cryptography.x509.RevokedCertificate`
  37. :attr:`~cryptography.x509.RevokedCertificate.extensions` now uses extension
  38. classes rather than returning raw values inside the
  39. :class:`~cryptography.x509.Extension`
  40. :attr:`~cryptography.x509.Extension.value`. The new classes
  41. are:
  42. * :class:`~cryptography.x509.CertificateIssuer`
  43. * :class:`~cryptography.x509.CRLReason`
  44. * :class:`~cryptography.x509.InvalidityDate`
  45. * Deprecated support for OpenSSL 0.9.8 and 1.0.0. At this time there is no time
  46. table for actually dropping support, however we strongly encourage all users
  47. to upgrade, as those versions no longer receive support from the OpenSSL
  48. project.
  49. * The :class:`~cryptography.x509.Certificate` class now has
  50. :attr:`~cryptography.x509.Certificate.signature` and
  51. :attr:`~cryptography.x509.Certificate.tbs_certificate_bytes` attributes.
  52. * The :class:`~cryptography.x509.CertificateSigningRequest` class now has
  53. :attr:`~cryptography.x509.CertificateSigningRequest.signature` and
  54. :attr:`~cryptography.x509.CertificateSigningRequest.tbs_certrequest_bytes`
  55. attributes.
  56. * The :class:`~cryptography.x509.CertificateRevocationList` class now has
  57. :attr:`~cryptography.x509.CertificateRevocationList.signature` and
  58. :attr:`~cryptography.x509.CertificateRevocationList.tbs_certlist_bytes`
  59. attributes.
  60. * :class:`~cryptography.x509.NameConstraints` are now supported in the
  61. :class:`~cryptography.x509.CertificateBuilder` and
  62. :class:`~cryptography.x509.CertificateSigningRequestBuilder`.
  63. * Support serialization of certificate revocation lists using the
  64. :meth:`~cryptography.x509.CertificateRevocationList.public_bytes` method of
  65. :class:`~cryptography.x509.CertificateRevocationList`.
  66. * Add support for parsing :class:`~cryptography.x509.CertificateRevocationList`
  67. :meth:`~cryptography.x509.CertificateRevocationList.extensions` in the
  68. OpenSSL backend. The following extensions are currently supported:
  69. * :class:`~cryptography.x509.AuthorityInformationAccess`
  70. * :class:`~cryptography.x509.AuthorityKeyIdentifier`
  71. * :class:`~cryptography.x509.CRLNumber`
  72. * :class:`~cryptography.x509.IssuerAlternativeName`
  73. * Added :class:`~cryptography.x509.CertificateRevocationListBuilder` and
  74. :class:`~cryptography.x509.RevokedCertificateBuilder` to allow creation of
  75. CRLs.
  76. * Unrecognized non-critical X.509 extensions are now parsed into an
  77. :class:`~cryptography.x509.UnrecognizedExtension` object.
  78. 1.1.2 - 2015-12-10
  79. ~~~~~~~~~~~~~~~~~~
  80. * Fixed a SIGBUS crash with the OS X wheels caused by redefinition of a
  81. method.
  82. * Fixed a runtime error ``undefined symbol EC_GFp_nistp224_method`` that
  83. occurred with some OpenSSL installations.
  84. * Updated Windows and OS X wheels to be compiled against OpenSSL 1.0.2e.
  85. 1.1.1 - 2015-11-19
  86. ~~~~~~~~~~~~~~~~~~
  87. * Fixed several small bugs related to compiling the OpenSSL bindings with
  88. unusual OpenSSL configurations.
  89. * Resolved an issue where, depending on the method of installation and
  90. which Python interpreter they were using, users on El Capitan (OS X 10.11)
  91. may have seen an ``InternalError`` on import.
  92. 1.1 - 2015-10-28
  93. ~~~~~~~~~~~~~~~~
  94. * Added support for Elliptic Curve Diffie-Hellman with
  95. :class:`~cryptography.hazmat.primitives.asymmetric.ec.ECDH`.
  96. * Added :class:`~cryptography.hazmat.primitives.kdf.x963kdf.X963KDF`.
  97. * Added support for parsing certificate revocation lists (CRLs) using
  98. :func:`~cryptography.x509.load_pem_x509_crl` and
  99. :func:`~cryptography.x509.load_der_x509_crl`.
  100. * Add support for AES key wrapping with
  101. :func:`~cryptography.hazmat.primitives.keywrap.aes_key_wrap` and
  102. :func:`~cryptography.hazmat.primitives.keywrap.aes_key_unwrap`.
  103. * Added a ``__hash__`` method to :class:`~cryptography.x509.Name`.
  104. * Add support for encoding and decoding elliptic curve points to a byte string
  105. form using
  106. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicNumbers.encode_point`
  107. and
  108. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicNumbers.from_encoded_point`.
  109. * Added :meth:`~cryptography.x509.Extensions.get_extension_for_class`.
  110. * :class:`~cryptography.x509.CertificatePolicies` are now supported in the
  111. :class:`~cryptography.x509.CertificateBuilder`.
  112. * ``countryName`` is now encoded as a ``PrintableString`` when creating subject
  113. and issuer distinguished names with the Certificate and CSR builder classes.
  114. 1.0.2 - 2015-09-27
  115. ~~~~~~~~~~~~~~~~~~
  116. * **SECURITY ISSUE**: The OpenSSL backend prior to 1.0.2 made extensive use
  117. of assertions to check response codes where our tests could not trigger a
  118. failure. However, when Python is run with ``-O`` these asserts are optimized
  119. away. If a user ran Python with this flag and got an invalid response code
  120. this could result in undefined behavior or worse. Accordingly, all response
  121. checks from the OpenSSL backend have been converted from ``assert``
  122. to a true function call. Credit **Emilia Käsper (Google Security Team)**
  123. for the report.
  124. 1.0.1 - 2015-09-05
  125. ~~~~~~~~~~~~~~~~~~
  126. * We now ship OS X wheels that statically link OpenSSL by default. When
  127. installing a wheel on OS X 10.10+ (and using a Python compiled against the
  128. 10.10 SDK) users will no longer need to compile. See :doc:`/installation` for
  129. alternate installation methods if required.
  130. * Set the default string mask to UTF-8 in the OpenSSL backend to resolve
  131. character encoding issues with older versions of OpenSSL.
  132. * Several new OpenSSL bindings have been added to support a future pyOpenSSL
  133. release.
  134. * Raise an error during install on PyPy < 2.6. 1.0+ requires PyPy 2.6+.
  135. 1.0 - 2015-08-12
  136. ~~~~~~~~~~~~~~~~
  137. * Switched to the new `cffi`_ ``set_source`` out-of-line API mode for
  138. compilation. This results in significantly faster imports and lowered
  139. memory consumption. Due to this change we no longer support PyPy releases
  140. older than 2.6 nor do we support any released version of PyPy3 (until a
  141. version supporting cffi 1.0 comes out).
  142. * Fix parsing of OpenSSH public keys that have spaces in comments.
  143. * Support serialization of certificate signing requests using the
  144. ``public_bytes`` method of
  145. :class:`~cryptography.x509.CertificateSigningRequest`.
  146. * Support serialization of certificates using the ``public_bytes`` method of
  147. :class:`~cryptography.x509.Certificate`.
  148. * Add ``get_provisioning_uri`` method to
  149. :class:`~cryptography.hazmat.primitives.twofactor.hotp.HOTP` and
  150. :class:`~cryptography.hazmat.primitives.twofactor.totp.TOTP` for generating
  151. provisioning URIs.
  152. * Add :class:`~cryptography.hazmat.primitives.kdf.concatkdf.ConcatKDFHash`
  153. and :class:`~cryptography.hazmat.primitives.kdf.concatkdf.ConcatKDFHMAC`.
  154. * Raise a ``TypeError`` when passing objects that are not text as the value to
  155. :class:`~cryptography.x509.NameAttribute`.
  156. * Add support for :class:`~cryptography.x509.OtherName` as a general name
  157. type.
  158. * Added new X.509 extension support in :class:`~cryptography.x509.Certificate`
  159. The following new extensions are now supported:
  160. * :class:`~cryptography.x509.OCSPNoCheck`
  161. * :class:`~cryptography.x509.InhibitAnyPolicy`
  162. * :class:`~cryptography.x509.IssuerAlternativeName`
  163. * :class:`~cryptography.x509.NameConstraints`
  164. * Extension support was added to
  165. :class:`~cryptography.x509.CertificateSigningRequest`.
  166. * Add support for creating signed certificates with
  167. :class:`~cryptography.x509.CertificateBuilder`. This includes support for
  168. the following extensions:
  169. * :class:`~cryptography.x509.BasicConstraints`
  170. * :class:`~cryptography.x509.SubjectAlternativeName`
  171. * :class:`~cryptography.x509.KeyUsage`
  172. * :class:`~cryptography.x509.ExtendedKeyUsage`
  173. * :class:`~cryptography.x509.SubjectKeyIdentifier`
  174. * :class:`~cryptography.x509.AuthorityKeyIdentifier`
  175. * :class:`~cryptography.x509.AuthorityInformationAccess`
  176. * :class:`~cryptography.x509.CRLDistributionPoints`
  177. * :class:`~cryptography.x509.InhibitAnyPolicy`
  178. * :class:`~cryptography.x509.IssuerAlternativeName`
  179. * :class:`~cryptography.x509.OCSPNoCheck`
  180. * Add support for creating certificate signing requests with
  181. :class:`~cryptography.x509.CertificateSigningRequestBuilder`. This includes
  182. support for the same extensions supported in the ``CertificateBuilder``.
  183. * Deprecate ``encode_rfc6979_signature`` and ``decode_rfc6979_signature`` in
  184. favor of
  185. :func:`~cryptography.hazmat.primitives.asymmetric.utils.encode_dss_signature`
  186. and
  187. :func:`~cryptography.hazmat.primitives.asymmetric.utils.decode_dss_signature`.
  188. 0.9.3 - 2015-07-09
  189. ~~~~~~~~~~~~~~~~~~
  190. * Updated Windows wheels to be compiled against OpenSSL 1.0.2d.
  191. 0.9.2 - 2015-07-04
  192. ~~~~~~~~~~~~~~~~~~
  193. * Updated Windows wheels to be compiled against OpenSSL 1.0.2c.
  194. 0.9.1 - 2015-06-06
  195. ~~~~~~~~~~~~~~~~~~
  196. * **SECURITY ISSUE**: Fixed a double free in the OpenSSL backend when using DSA
  197. to verify signatures. Note that this only affects PyPy 2.6.0 and (presently
  198. unreleased) CFFI versions greater than 1.1.0.
  199. 0.9 - 2015-05-13
  200. ~~~~~~~~~~~~~~~~
  201. * Removed support for Python 3.2. This version of Python is rarely used
  202. and caused support headaches. Users affected by this should upgrade to 3.3+.
  203. * Deprecated support for Python 2.6. At the time there is no time table for
  204. actually dropping support, however we strongly encourage all users to upgrade
  205. their Python, as Python 2.6 no longer receives support from the Python core
  206. team.
  207. * Add support for the
  208. :class:`~cryptography.hazmat.primitives.asymmetric.ec.SECP256K1` elliptic
  209. curve.
  210. * Fixed compilation when using an OpenSSL which was compiled with the
  211. ``no-comp`` (``OPENSSL_NO_COMP``) option.
  212. * Support :attr:`~cryptography.hazmat.primitives.serialization.Encoding.DER`
  213. serialization of public keys using the ``public_bytes`` method of
  214. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`,
  215. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`,
  216. and
  217. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`.
  218. * Support :attr:`~cryptography.hazmat.primitives.serialization.Encoding.DER`
  219. serialization of private keys using the ``private_bytes`` method of
  220. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`,
  221. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`,
  222. and
  223. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`.
  224. * Add support for parsing X.509 certificate signing requests (CSRs) with
  225. :func:`~cryptography.x509.load_pem_x509_csr` and
  226. :func:`~cryptography.x509.load_der_x509_csr`.
  227. * Moved ``cryptography.exceptions.InvalidToken`` to
  228. :class:`cryptography.hazmat.primitives.twofactor.InvalidToken` and deprecated
  229. the old location. This was moved to minimize confusion between this exception
  230. and :class:`cryptography.fernet.InvalidToken`.
  231. * Added support for X.509 extensions in :class:`~cryptography.x509.Certificate`
  232. objects. The following extensions are supported as of this release:
  233. * :class:`~cryptography.x509.BasicConstraints`
  234. * :class:`~cryptography.x509.AuthorityKeyIdentifier`
  235. * :class:`~cryptography.x509.SubjectKeyIdentifier`
  236. * :class:`~cryptography.x509.KeyUsage`
  237. * :class:`~cryptography.x509.SubjectAlternativeName`
  238. * :class:`~cryptography.x509.ExtendedKeyUsage`
  239. * :class:`~cryptography.x509.CRLDistributionPoints`
  240. * :class:`~cryptography.x509.AuthorityInformationAccess`
  241. * :class:`~cryptography.x509.CertificatePolicies`
  242. Note that unsupported extensions with the critical flag raise
  243. :class:`~cryptography.x509.UnsupportedExtension` while unsupported extensions
  244. set to non-critical are silently ignored. Read the
  245. :doc:`X.509 documentation</x509/index>` for more information.
  246. 0.8.2 - 2015-04-10
  247. ~~~~~~~~~~~~~~~~~~
  248. * Fixed a race condition when initializing the OpenSSL or CommonCrypto backends
  249. in a multi-threaded scenario.
  250. 0.8.1 - 2015-03-20
  251. ~~~~~~~~~~~~~~~~~~
  252. * Updated Windows wheels to be compiled against OpenSSL 1.0.2a.
  253. 0.8 - 2015-03-08
  254. ~~~~~~~~~~~~~~~~
  255. * :func:`~cryptography.hazmat.primitives.serialization.load_ssh_public_key` can
  256. now load elliptic curve public keys.
  257. * Added
  258. :attr:`~cryptography.x509.Certificate.signature_hash_algorithm` support to
  259. :class:`~cryptography.x509.Certificate`.
  260. * Added
  261. :func:`~cryptography.hazmat.primitives.asymmetric.rsa.rsa_recover_prime_factors`
  262. * :class:`~cryptography.hazmat.primitives.kdf.KeyDerivationFunction` was moved
  263. from :mod:`~cryptography.hazmat.primitives.interfaces` to
  264. :mod:`~cryptography.hazmat.primitives.kdf`.
  265. * Added support for parsing X.509 names. See the
  266. :doc:`X.509 documentation</x509/index>` for more information.
  267. * Added
  268. :func:`~cryptography.hazmat.primitives.serialization.load_der_private_key` to
  269. support loading of DER encoded private keys and
  270. :func:`~cryptography.hazmat.primitives.serialization.load_der_public_key` to
  271. support loading DER encoded public keys.
  272. * Fixed building against LibreSSL, a compile-time substitute for OpenSSL.
  273. * FreeBSD 9.2 was removed from the continuous integration system.
  274. * Updated Windows wheels to be compiled against OpenSSL 1.0.2.
  275. * :func:`~cryptography.hazmat.primitives.serialization.load_pem_public_key`
  276. and :func:`~cryptography.hazmat.primitives.serialization.load_der_public_key`
  277. now support PKCS1 RSA public keys (in addition to the previous support for
  278. SubjectPublicKeyInfo format for RSA, EC, and DSA).
  279. * Added
  280. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`
  281. and deprecated ``EllipticCurvePrivateKeyWithNumbers``.
  282. * Added
  283. :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization.private_bytes`
  284. to
  285. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`.
  286. * Added
  287. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`
  288. and deprecated ``RSAPrivateKeyWithNumbers``.
  289. * Added
  290. :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization.private_bytes`
  291. to
  292. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`.
  293. * Added
  294. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`
  295. and deprecated ``DSAPrivateKeyWithNumbers``.
  296. * Added
  297. :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization.private_bytes`
  298. to
  299. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`.
  300. * Added
  301. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`
  302. and deprecated ``RSAPublicKeyWithNumbers``.
  303. * Added ``public_bytes`` to
  304. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`.
  305. * Added
  306. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`
  307. and deprecated ``EllipticCurvePublicKeyWithNumbers``.
  308. * Added ``public_bytes`` to
  309. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`.
  310. * Added
  311. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`
  312. and deprecated ``DSAPublicKeyWithNumbers``.
  313. * Added ``public_bytes`` to
  314. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`.
  315. * :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` and
  316. :class:`~cryptography.hazmat.primitives.hashes.HashContext` were moved from
  317. :mod:`~cryptography.hazmat.primitives.interfaces` to
  318. :mod:`~cryptography.hazmat.primitives.hashes`.
  319. * :class:`~cryptography.hazmat.primitives.ciphers.CipherContext`,
  320. :class:`~cryptography.hazmat.primitives.ciphers.AEADCipherContext`,
  321. :class:`~cryptography.hazmat.primitives.ciphers.AEADEncryptionContext`,
  322. :class:`~cryptography.hazmat.primitives.ciphers.CipherAlgorithm`, and
  323. :class:`~cryptography.hazmat.primitives.ciphers.BlockCipherAlgorithm`
  324. were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  325. :mod:`~cryptography.hazmat.primitives.ciphers`.
  326. * :class:`~cryptography.hazmat.primitives.ciphers.modes.Mode`,
  327. :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithInitializationVector`,
  328. :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithNonce`, and
  329. :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithAuthenticationTag`
  330. were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  331. :mod:`~cryptography.hazmat.primitives.ciphers.modes`.
  332. * :class:`~cryptography.hazmat.primitives.padding.PaddingContext` was moved
  333. from :mod:`~cryptography.hazmat.primitives.interfaces` to
  334. :mod:`~cryptography.hazmat.primitives.padding`.
  335. *
  336. :class:`~cryptography.hazmat.primitives.asymmetric.padding.AsymmetricPadding`
  337. was moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  338. :mod:`~cryptography.hazmat.primitives.asymmetric.padding`.
  339. *
  340. :class:`~cryptography.hazmat.primitives.asymmetric.AsymmetricSignatureContext`
  341. and
  342. :class:`~cryptography.hazmat.primitives.asymmetric.AsymmetricVerificationContext`
  343. were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  344. :mod:`~cryptography.hazmat.primitives.asymmetric`.
  345. * :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters`,
  346. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParametersWithNumbers`,
  347. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`,
  348. ``DSAPrivateKeyWithNumbers``,
  349. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey` and
  350. ``DSAPublicKeyWithNumbers`` were moved from
  351. :mod:`~cryptography.hazmat.primitives.interfaces` to
  352. :mod:`~cryptography.hazmat.primitives.asymmetric.dsa`
  353. * :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurve`,
  354. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurveSignatureAlgorithm`,
  355. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`,
  356. ``EllipticCurvePrivateKeyWithNumbers``,
  357. :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`,
  358. and ``EllipticCurvePublicKeyWithNumbers``
  359. were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  360. :mod:`~cryptography.hazmat.primitives.asymmetric.ec`.
  361. * :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,
  362. ``RSAPrivateKeyWithNumbers``,
  363. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey` and
  364. ``RSAPublicKeyWithNumbers`` were moved from
  365. :mod:`~cryptography.hazmat.primitives.interfaces` to
  366. :mod:`~cryptography.hazmat.primitives.asymmetric.rsa`.
  367. 0.7.2 - 2015-01-16
  368. ~~~~~~~~~~~~~~~~~~
  369. * Updated Windows wheels to be compiled against OpenSSL 1.0.1l.
  370. * ``enum34`` is no longer installed on Python 3.4, where it is included in
  371. the standard library.
  372. * Added a new function to the OpenSSL bindings to support additional
  373. functionality in pyOpenSSL.
  374. 0.7.1 - 2014-12-28
  375. ~~~~~~~~~~~~~~~~~~
  376. * Fixed an issue preventing compilation on platforms where ``OPENSSL_NO_SSL3``
  377. was defined.
  378. 0.7 - 2014-12-17
  379. ~~~~~~~~~~~~~~~~
  380. * Cryptography has been relicensed from the Apache Software License, Version
  381. 2.0, to being available under *either* the Apache Software License, Version
  382. 2.0, or the BSD license.
  383. * Added key-rotation support to :doc:`Fernet </fernet>` with
  384. :class:`~cryptography.fernet.MultiFernet`.
  385. * More bit-lengths are now supported for ``p`` and ``q`` when loading DSA keys
  386. from numbers.
  387. * Added :class:`~cryptography.hazmat.primitives.interfaces.MACContext` as a
  388. common interface for CMAC and HMAC and deprecated ``CMACContext``.
  389. * Added support for encoding and decoding :rfc:`6979` signatures in
  390. :doc:`/hazmat/primitives/asymmetric/utils`.
  391. * Added
  392. :func:`~cryptography.hazmat.primitives.serialization.load_ssh_public_key` to
  393. support the loading of OpenSSH public keys (:rfc:`4253`). Only RSA and DSA
  394. keys are currently supported.
  395. * Added initial support for X.509 certificate parsing. See the
  396. :doc:`X.509 documentation</x509/index>` for more information.
  397. 0.6.1 - 2014-10-15
  398. ~~~~~~~~~~~~~~~~~~
  399. * Updated Windows wheels to be compiled against OpenSSL 1.0.1j.
  400. * Fixed an issue where OpenSSL 1.0.1j changed the errors returned by some
  401. functions.
  402. * Added our license file to the ``cryptography-vectors`` package.
  403. * Implemented DSA hash truncation support (per FIPS 186-3) in the OpenSSL
  404. backend. This works around an issue in 1.0.0, 1.0.0a, and 1.0.0b where
  405. truncation was not implemented.
  406. 0.6 - 2014-09-29
  407. ~~~~~~~~~~~~~~~~
  408. * Added
  409. :func:`~cryptography.hazmat.primitives.serialization.load_pem_private_key` to
  410. ease loading private keys, and
  411. :func:`~cryptography.hazmat.primitives.serialization.load_pem_public_key` to
  412. support loading public keys.
  413. * Removed the, deprecated in 0.4, support for the ``salt_length`` argument to
  414. the :class:`~cryptography.hazmat.primitives.asymmetric.padding.MGF1`
  415. constructor. The ``salt_length`` should be passed to
  416. :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS` instead.
  417. * Fix compilation on OS X Yosemite.
  418. * Deprecated ``elliptic_curve_private_key_from_numbers`` and
  419. ``elliptic_curve_public_key_from_numbers`` in favor of
  420. ``load_elliptic_curve_private_numbers`` and
  421. ``load_elliptic_curve_public_numbers`` on
  422. :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`.
  423. * Added ``EllipticCurvePrivateKeyWithNumbers`` and
  424. ``EllipticCurvePublicKeyWithNumbers`` support.
  425. * Work around three GCM related bugs in CommonCrypto and OpenSSL.
  426. * On the CommonCrypto backend adding AAD but not subsequently calling update
  427. would return null tag bytes.
  428. * One the CommonCrypto backend a call to update without an empty add AAD call
  429. would return null ciphertext bytes.
  430. * On the OpenSSL backend with certain versions adding AAD only would give
  431. invalid tag bytes.
  432. * Support loading EC private keys from PEM.
  433. 0.5.4 - 2014-08-20
  434. ~~~~~~~~~~~~~~~~~~
  435. * Added several functions to the OpenSSL bindings to support new
  436. functionality in pyOpenSSL.
  437. * Fixed a redefined constant causing compilation failure with Solaris 11.2.
  438. 0.5.3 - 2014-08-06
  439. ~~~~~~~~~~~~~~~~~~
  440. * Updated Windows wheels to be compiled against OpenSSL 1.0.1i.
  441. 0.5.2 - 2014-07-09
  442. ~~~~~~~~~~~~~~~~~~
  443. * Add ``TraditionalOpenSSLSerializationBackend`` support to
  444. :doc:`/hazmat/backends/multibackend`.
  445. * Fix compilation error on OS X 10.8 (Mountain Lion).
  446. 0.5.1 - 2014-07-07
  447. ~~~~~~~~~~~~~~~~~~
  448. * Add ``PKCS8SerializationBackend`` support to
  449. :doc:`/hazmat/backends/multibackend`.
  450. 0.5 - 2014-07-07
  451. ~~~~~~~~~~~~~~~~
  452. * **BACKWARDS INCOMPATIBLE:**
  453. :class:`~cryptography.hazmat.primitives.ciphers.modes.GCM` no longer allows
  454. truncation of tags by default. Previous versions of ``cryptography`` allowed
  455. tags to be truncated by default, applications wishing to preserve this
  456. behavior (not recommended) can pass the ``min_tag_length`` argument.
  457. * Windows builds now statically link OpenSSL by default. When installing a
  458. wheel on Windows you no longer need to install OpenSSL separately. Windows
  459. users can switch between static and dynamic linking with an environment
  460. variable. See :doc:`/installation` for more details.
  461. * Added :class:`~cryptography.hazmat.primitives.kdf.hkdf.HKDFExpand`.
  462. * Added :class:`~cryptography.hazmat.primitives.ciphers.modes.CFB8` support
  463. for :class:`~cryptography.hazmat.primitives.ciphers.algorithms.AES` and
  464. :class:`~cryptography.hazmat.primitives.ciphers.algorithms.TripleDES` on
  465. :doc:`/hazmat/backends/commoncrypto` and :doc:`/hazmat/backends/openssl`.
  466. * Added ``AES`` :class:`~cryptography.hazmat.primitives.ciphers.modes.CTR`
  467. support to the OpenSSL backend when linked against 0.9.8.
  468. * Added ``PKCS8SerializationBackend`` and
  469. ``TraditionalOpenSSLSerializationBackend`` support to the
  470. :doc:`/hazmat/backends/openssl`.
  471. * Added :doc:`/hazmat/primitives/asymmetric/ec` and
  472. :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`.
  473. * Added :class:`~cryptography.hazmat.primitives.ciphers.modes.ECB` support
  474. for :class:`~cryptography.hazmat.primitives.ciphers.algorithms.TripleDES` on
  475. :doc:`/hazmat/backends/commoncrypto` and :doc:`/hazmat/backends/openssl`.
  476. * Deprecated the concrete ``RSAPrivateKey`` class in favor of backend
  477. specific providers of the
  478. :class:`cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`
  479. interface.
  480. * Deprecated the concrete ``RSAPublicKey`` in favor of backend specific
  481. providers of the
  482. :class:`cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`
  483. interface.
  484. * Deprecated the concrete ``DSAPrivateKey`` class in favor of backend
  485. specific providers of the
  486. :class:`cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`
  487. interface.
  488. * Deprecated the concrete ``DSAPublicKey`` class in favor of backend specific
  489. providers of the
  490. :class:`cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`
  491. interface.
  492. * Deprecated the concrete ``DSAParameters`` class in favor of backend specific
  493. providers of the
  494. :class:`cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters`
  495. interface.
  496. * Deprecated ``encrypt_rsa``, ``decrypt_rsa``, ``create_rsa_signature_ctx`` and
  497. ``create_rsa_verification_ctx`` on
  498. :class:`~cryptography.hazmat.backends.interfaces.RSABackend`.
  499. * Deprecated ``create_dsa_signature_ctx`` and ``create_dsa_verification_ctx``
  500. on :class:`~cryptography.hazmat.backends.interfaces.DSABackend`.
  501. 0.4 - 2014-05-03
  502. ~~~~~~~~~~~~~~~~
  503. * Deprecated ``salt_length`` on
  504. :class:`~cryptography.hazmat.primitives.asymmetric.padding.MGF1` and added it
  505. to :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS`. It will
  506. be removed from ``MGF1`` in two releases per our :doc:`/api-stability`
  507. policy.
  508. * Added :class:`~cryptography.hazmat.primitives.ciphers.algorithms.SEED`
  509. support.
  510. * Added :class:`~cryptography.hazmat.primitives.cmac.CMAC`.
  511. * Added decryption support to
  512. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`
  513. and encryption support to
  514. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`.
  515. * Added signature support to
  516. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`
  517. and verification support to
  518. :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`.
  519. 0.3 - 2014-03-27
  520. ~~~~~~~~~~~~~~~~
  521. * Added :class:`~cryptography.hazmat.primitives.twofactor.hotp.HOTP`.
  522. * Added :class:`~cryptography.hazmat.primitives.twofactor.totp.TOTP`.
  523. * Added :class:`~cryptography.hazmat.primitives.ciphers.algorithms.IDEA`
  524. support.
  525. * Added signature support to
  526. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`
  527. and verification support to
  528. :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`.
  529. * Moved test vectors to the new ``cryptography_vectors`` package.
  530. 0.2.2 - 2014-03-03
  531. ~~~~~~~~~~~~~~~~~~
  532. * Removed a constant definition that was causing compilation problems with
  533. specific versions of OpenSSL.
  534. 0.2.1 - 2014-02-22
  535. ~~~~~~~~~~~~~~~~~~
  536. * Fix a bug where importing cryptography from multiple paths could cause
  537. initialization to fail.
  538. 0.2 - 2014-02-20
  539. ~~~~~~~~~~~~~~~~
  540. * Added :doc:`/hazmat/backends/commoncrypto`.
  541. * Added initial :doc:`/hazmat/bindings/commoncrypto`.
  542. * Removed ``register_cipher_adapter`` method from
  543. :class:`~cryptography.hazmat.backends.interfaces.CipherBackend`.
  544. * Added support for the OpenSSL backend under Windows.
  545. * Improved thread-safety for the OpenSSL backend.
  546. * Fixed compilation on systems where OpenSSL's ``ec.h`` header is not
  547. available, such as CentOS.
  548. * Added :class:`~cryptography.hazmat.primitives.kdf.pbkdf2.PBKDF2HMAC`.
  549. * Added :class:`~cryptography.hazmat.primitives.kdf.hkdf.HKDF`.
  550. * Added :doc:`/hazmat/backends/multibackend`.
  551. * Set default random for the :doc:`/hazmat/backends/openssl` to the OS
  552. random engine.
  553. * Added :class:`~cryptography.hazmat.primitives.ciphers.algorithms.CAST5`
  554. (CAST-128) support.
  555. 0.1 - 2014-01-08
  556. ~~~~~~~~~~~~~~~~
  557. * Initial release.
  558. .. _`master`: https://github.com/pyca/cryptography/
  559. .. _`cffi`: https://cffi.readthedocs.org/en/latest/