Commit graph

2504 commits

Author SHA1 Message Date
Alex Gaynor
ffcf3b133c A new flake8 is out. Our code is bad again! 2014-03-26 13:10:10 -07:00
Paul Kehrer
0201c3569b Merge pull request #845 from public/no-memory-wipe-docs
Document our security limitations
2014-03-25 07:05:37 -04:30
Alex Stapleton
a108ac6ce6 "potentially vulnerable" 2014-03-25 10:03:58 +00:00
Paul Kehrer
fabf28a20e Merge pull request #848 from alex/vectors-are-universal
This is universal.
2014-03-24 21:53:24 -04:30
Alex Gaynor
451837c9e0 This is universal. 2014-03-24 17:02:50 -07:00
Paul Kehrer
8573916ba3 Merge pull request #795 from public/split-vectors
Split vectors into cryptography_vectors
2014-03-24 19:25:02 -04:30
Alex Stapleton
3888a84c2b Fix bug in release task and style fixes
tasks.py was building tarballs/sdists that didn't actually have vectors
in because of setup.pys reliance on the cwd.
2014-03-24 23:05:53 +00:00
Alex Gaynor
eb98d47b92 Merge pull request #847 from reaperhulk/update-ignores
Update gitignore to ignore the new shared object name structure
2014-03-24 07:22:47 -07:00
Alex Stapleton
cfe1c0b896 Rephrase to avoid american english failure 2014-03-24 11:21:08 +00:00
Paul Kehrer
e656d02847 update gitignore to ignore the new so name structure 2014-03-24 07:13:52 -04:00
Alex Stapleton
da4e0fa7a3 Add citation for being a low risk issue 2014-03-24 10:03:26 +00:00
Alex Stapleton
a39a319b09 Move cryptography.vectors to cryptography_vectors
All vectors are now stored in the subpackage in the vectors/ folder.

This package is automatically installed by setup.py test and will also
be uploaded with a matching version number by the PyPI upload task.
2014-03-24 09:46:47 +00:00
Alex Stapleton
1977a605c5 Rephrase to keep the spell checker happy 2014-03-22 23:50:52 +00:00
Alex Stapleton
68bba2d174 Limitations 2014-03-22 23:03:22 +00:00
Matthew Iversen
68e77c752b Load vectors from cryptography.vectors 2014-03-22 16:25:38 +00:00
Alex Stapleton
0bd20e264c cryptography.vectors 2014-03-22 16:23:46 +00:00
Alex Gaynor
eaeed6ce3d Merge pull request #841 from public/ssl-ctx-method
Add SSL_CTX method getter to fix #794
2014-03-22 08:32:32 -07:00
Alex Gaynor
ece315ad8d Merge pull request #839 from reaperhulk/more-import-order
Import order fixes for generation scripts
2014-03-22 08:16:02 -07:00
Alex Stapleton
edd6ca7ae4 Add SSL_CTX method getter to fix #794 2014-03-22 14:50:59 +00:00
Paul Kehrer
4db32f7429 a few more import order fixes for upcoming flake8-import-order 2014-03-22 06:05:50 -04:00
Alex Gaynor
0476a96972 Merge pull request #833 from reaperhulk/rsa-pss-signing
RSA PSS Signing
2014-03-21 13:47:27 -07:00
Alex Gaynor
58467ce5e5 Merge pull request #836 from reaperhulk/netbsd-why-oh-why
workaround a netbsd bug where they did not compile with d1_meth.c
2014-03-21 10:18:42 -07:00
Alex Gaynor
59cb7f978b Merge pull request #837 from reaperhulk/modulename-all-the-things
padding and constant time also need the cffi modulename fix
2014-03-21 10:04:14 -07:00
Paul Kehrer
71f2c504cb c has syntax rules too 2014-03-21 12:29:21 -04:00
Paul Kehrer
06919e91eb padding and constant time also need the cffi modulename fix 2014-03-21 12:27:12 -04:00
Paul Kehrer
10312c1768 workaround a netbsd bug where they did not compile with d1_meth.c 2014-03-21 11:23:38 -04:00
Paul Kehrer
b8666f76d9 improve exception msgs, change how test_pss_signing_sha2 works 2014-03-20 19:07:45 -04:00
Paul Kehrer
cdd0d2f045 Merge branch 'master' into rsa-pss-signing
* master:
  add mgf1_hash_supported unsupported hash check
  more concise way of generating tests
  switch to a lambda
  rename some things
  add FIPS 186-2/3 signature verification tests for RSA PKCSv15 and PSS
  revert one import order change
  a few small fixes
  Add ASN1_TIME_free
  import order fixes for future automated checking

Conflicts:
	tests/hazmat/primitives/test_rsa.py
	tests/hazmat/primitives/utils.py
2014-03-20 18:43:04 -04:00
Alex Gaynor
23c641dad2 Merge pull request #826 from reaperhulk/rsa-more-sig-verification
RSA more sig verification
2014-03-20 10:52:51 -07:00
Paul Kehrer
4d8358fb50 add mgf1_hash_supported unsupported hash check 2014-03-19 19:14:15 -04:00
Paul Kehrer
798c03456d document the ValueError 2014-03-19 18:41:35 -04:00
Paul Kehrer
503ddf4376 more concise way of generating tests 2014-03-19 18:33:07 -04:00
Paul Kehrer
c85f1797e4 switch to a lambda 2014-03-19 18:33:07 -04:00
Paul Kehrer
f29c3c55e8 rename some things 2014-03-19 18:32:31 -04:00
Paul Kehrer
49c8e21464 add FIPS 186-2/3 signature verification tests for RSA PKCSv15 and PSS 2014-03-19 18:32:30 -04:00
Alex Gaynor
62e18d7873 Merge pull request #829 from reaperhulk/import-order-fixer
import order fixes for future automated checking
2014-03-19 12:58:19 -07:00
Paul Kehrer
a3bb335b2b never trust openssl
Turns out you can't trust it to safely compute the max salt length
allowed for PSS, so now we get to do it ourselves. We also check for
whether the key size is large enough for the selected hash function
(PSS only for now, PKCS1 coming in another PR)
2014-03-19 13:31:49 -04:00
Paul Kehrer
06aa7961d9 RSA PSS signature support 2014-03-19 13:29:40 -04:00
Paul Kehrer
8443a92f9f revert one import order change 2014-03-19 13:09:40 -04:00
Alex Gaynor
2ed93e28ae Merge pull request #830 from jgiannuzzi/master
Add ASN1_TIME_free
2014-03-19 10:05:34 -07:00
Paul Kehrer
90450f3626 a few small fixes 2014-03-19 12:37:17 -04:00
Jonathan Giannuzzi
444abf5513 Add ASN1_TIME_free
Required function to solve a memory leak in pyOpenSSL
2014-03-19 16:53:02 +01:00
Paul Kehrer
afc1ccdcc8 import order fixes for future automated checking 2014-03-19 11:49:32 -04:00
David Reid
1805e7219e Merge pull request #825 from reaperhulk/expand-rsa-nist-loader
expand RSA NIST vector loader to support verification vectors as well
2014-03-18 14:39:51 -07:00
Paul Kehrer
ae37176e01 remove a comma that was pointlessly added 2014-03-18 16:11:13 -04:00
Alex Gaynor
9d64c02c14 Merge pull request #827 from public/title-case
Standardise on sentence case for titles
2014-03-18 10:23:13 -07:00
Alex Stapleton
c5fffd3b33 Standardise on sentence case for titles 2014-03-18 15:31:46 +00:00
Paul Kehrer
e66f69af6a py3 fix 2014-03-18 07:57:26 -04:00
Paul Kehrer
61666eb11a add headers to each test so the file source can be determined 2014-03-18 07:53:04 -04:00
Paul Kehrer
afc2518fbf another file permutation for rsa nist tested. 2014-03-18 07:51:56 -04:00