<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cryptography.git/tests/wycheproof/utils.py, branch alex-patch-2</title>
<subtitle>github.com: pyca/cryptography.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/'/>
<entry>
<title>add unsafe_skip_rsa_key_validation (#7667)</title>
<updated>2022-10-03T14:29:45+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2022-10-03T14:29:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=01687d63a5cb4475d84feae959bec6dea5fce3f1'/>
<id>01687d63a5cb4475d84feae959bec6dea5fce3f1</id>
<content type='text'>
* add unsafe_skip_rsa_key_validation

This allows users to skip RSA key validation when calling
load_pem_private_key, load_der_private_key, and
RSAPrivateNumbers.private_key. This is a significant performance
improvement but is **only safe if you know the key is valid**. If you
use this when the key is invalid OpenSSL makes no guarantees about what
might happen. Infinite loops, crashes, and all manner of terrible things
become possible if that occurs. Beware, beware, beware.

* Apply suggestions from code review

Co-authored-by: Alex Gaynor &lt;alex.gaynor@gmail.com&gt;

* remove unneeded variable

Co-authored-by: Alex Gaynor &lt;alex.gaynor@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* add unsafe_skip_rsa_key_validation

This allows users to skip RSA key validation when calling
load_pem_private_key, load_der_private_key, and
RSAPrivateNumbers.private_key. This is a significant performance
improvement but is **only safe if you know the key is valid**. If you
use this when the key is invalid OpenSSL makes no guarantees about what
might happen. Infinite loops, crashes, and all manner of terrible things
become possible if that occurs. Beware, beware, beware.

* Apply suggestions from code review

Co-authored-by: Alex Gaynor &lt;alex.gaynor@gmail.com&gt;

* remove unneeded variable

Co-authored-by: Alex Gaynor &lt;alex.gaynor@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Speed up RSA tests in 3.0.0 (#6206)</title>
<updated>2021-08-12T02:47:25+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2021-08-12T02:47:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=b93f405c07a312945935a1a718d8d6e1b5153a9b'/>
<id>b93f405c07a312945935a1a718d8d6e1b5153a9b</id>
<content type='text'>
* Speed up RSA tests in 3.0.0

RSA_check_key is slower in OpenSSL 3.0.0 due to improved
primality checking. In normal use this is unlikely to be a problem
since users don't load new keys constantly, but we do in our tests.
This adds some private flags to allow skipping those checks for
performance reasons.

On my laptop with this patch it takes 16s to run test_rsa.py. The
previous commit takes 72s.

* black

* different approach

* skip rsa key checks in wycheproof

wycheproof's tets don't rely on broken keys</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Speed up RSA tests in 3.0.0

RSA_check_key is slower in OpenSSL 3.0.0 due to improved
primality checking. In normal use this is unlikely to be a problem
since users don't load new keys constantly, but we do in our tests.
This adds some private flags to allow skipping those checks for
performance reasons.

On my laptop with this patch it takes 16s to run test_rsa.py. The
previous commit takes 72s.

* black

* different approach

* skip rsa key checks in wycheproof

wycheproof's tets don't rely on broken keys</pre>
</div>
</content>
</entry>
<entry>
<title>fixes #5611 -- use subtests for wycheproof tests for speed (#5616)</title>
<updated>2020-12-09T16:04:47+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2020-12-09T16:04:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=057a9fcf3444c0edf2b7589902d976c44030b2e1'/>
<id>057a9fcf3444c0edf2b7589902d976c44030b2e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
