Commit graph

7106 commits

Author SHA1 Message Date
Paul Kehrer
003f56fbd7 add utf8 DNSName x509 vector (#3952) 2017-10-09 22:23:24 -04:00
Alex Gaynor
56669aae2a update security docs to indicate we staticaly link openssl on linux too (#3949)
* update security docs to indicate we staticaly link openssl there too

* spelling
2017-10-05 09:25:55 +08:00
Paul Kehrer
3d96afd798 do downstream builds as part of our normal parallel jenkins pipeline (#3948)
* do downstream builds as part of our normal parallel jenkins pipeline

* empty
2017-10-03 22:53:18 -04:00
Paul Kehrer
fce63a57b4 disable smart quotes in sphinx to workaround a spellchecker issue (#3946)
This makes it so we don't have to pin sphinx while we wait for
sphinxcontrib-spelling to properly handle smart quotes
2017-10-03 21:16:50 -04:00
Paul Kehrer
a397d75a1e Add support for AES XTS (#3900)
* Add support for AES XTS

We drop the non-byte aligned test vectors because according to NIST
http://csrc.nist.gov/groups/STM/cavp/documents/aes/XTSVS.pdf
"An implementation may support a data unit length that is not a
multiple of 8 bits." OpenSSL does not support this, so we can't
use those test vectors.

* fix docs and pep8

* docs fix

* the spellchecker is so frustrating

* add note about AES 192 for XTS (it's not supported)

* docs work

* enforce key length on ECB mode in AES as well (thanks XTS)

* a few more words about why we exclude some test vectors for XTS
2017-10-01 22:03:20 -04:00
Alex Gaynor
dd567cbf73 Declare that 2.1 is the last version to support Python 2.6 (#3944)
* Declare that 2.1 is the last version to support Python 2.6

* It's the Final Countdown!
2017-10-01 09:22:07 +08:00
Paul Kehrer
62ebb429fe add ChaCha20 support (#3919)
* add ChaCha20 support

* review feedback

* 256 divided by 8 is what again?

* ...
2017-09-28 11:46:49 -04:00
Scott Sturdivant
ba61c2738e Expose FIPS funcs for OpenSSL. (#3939)
* Expose FIPS funcs for OpenSSL.

* Remove FIPS customization / conditionals.

It seems that the FIPS functions are always defined, regardless of if
the FIPS module is present.

* Do not include FIPS_selftest_check func.

* Libressl does not have FIPS.
2017-09-27 09:29:55 +08:00
Alex Gaynor
e6859232d4 Update the list of macOS versions we test on to match reality (#3942) 2017-09-27 08:03:53 +08:00
Paul Kehrer
72c92f5ed1 both parse and encode the ASN1 string type for Name attributes (#3896)
* both parse and encode the ASN1 string type for Name attributes

Previously cryptography encoded everything (except country names) as
UTF8String. This caused problems with chain building in libraries like
NSS where the subject and issuer are expected to match byte-for-byte.

With this change we now parse and store the ASN1 string type as a
private _type in NameAttribute. We then use this to encode when issuing
a new certificate. This allows the CertificateBuilder to properly
construct an identical issuer and fixes the issue with NSS.

* make the sentinel private too
2017-09-25 22:23:24 -04:00
Alex Gaynor
7bb0210ef9 blacklist yet another version of sphinx (#3940) 2017-09-26 09:52:04 +08:00
Paul Kehrer
b76bcf88bd FreshestCRL extension support (#3937)
* add freshest CRL support

* add tests

* add changelog

* add tests for FreshestCRL generation
2017-09-23 20:44:12 -04:00
Paul Kehrer
5e3cc98473 support delta crl indicator extension (#3936)
This is an extension for CRLs
2017-09-22 09:29:36 -04:00
Paul Kehrer
2fc5849960 refactor rsa signature/verification logic to remove duplication (#3903) 2017-09-21 22:10:33 -04:00
Paul Kehrer
2931b86094 parametrize a bunch of x509 extension tests that were identical (#3931) 2017-09-21 22:07:10 -04:00
Paul Kehrer
1b86dc527d docs for what bytes means for DNSName, URI, and RFC822Name (#3904) 2017-09-20 11:42:34 -04:00
Paul Kehrer
d02842b03b add Freshest CRL and Delta CRL Indicator test vectors (#3932) 2017-09-20 11:40:05 -04:00
Alex Gaynor
b5c5bbe478 Mark our custom sphinx extension as parallel safe (#3935) 2017-09-20 22:14:56 +08:00
Paul Kehrer
ce4d0845f5 correct the docs for CRLReason (#3930) 2017-09-20 10:14:26 -04:00
Alex Gaynor
53e4505861 Switch NIST PDFs from nvlpubs to csrc which is HTTPS (#3929) 2017-09-20 21:57:47 +08:00
Paul Kehrer
90375552fa disable travis mac builders and add a mac jenkins build (#3933)
we'll re-enable mac builders when travis recovers and remove the jenkins
build
2017-09-20 08:49:03 -04:00
Alex Gaynor
20721c9ad9 Update the rest of the NIST urls to their new HTTPS homes (#3928) 2017-09-20 16:39:45 +08:00
Paul Kehrer
ba7041596e add unique identifier test vector (#3925)
* add unique identifier test vector

* wrap a line I didn't even touch...
2017-09-19 20:03:11 -04:00
Paul Kehrer
872cdea547 remove py26 windows and macOS wheels (#3921)
The wheel package is starting to drop support and download counts for them represent less than .02% of downloads for the month.
2017-09-19 20:03:02 -04:00
Alex Gaynor
8cb1d36690 Update PKITS link (#3923) 2017-09-20 06:46:21 +08:00
Alex Gaynor
e3fc93af73 Update NIST CAVP url (#3922) 2017-09-19 13:28:53 +08:00
Alex Gaynor
b522324c43 bump libressl version (#3920) 2017-09-15 14:37:39 +08:00
Paul Kehrer
d8371a8290 add chacha20 test vectors from RFC 7539 (#3918) 2017-09-14 08:38:40 -04:00
Paul Kehrer
409a0c8d66 implement __hash__ on DistributionPoint and CRLDistributionPoints (#3915) 2017-09-13 23:15:58 -04:00
Paul Kehrer
5e9eeefe20 add __hash__ to GeneralNames, SAN, IAN, and CertificateIssuer (#3916) 2017-09-13 23:15:21 -04:00
Paul Kehrer
83bb406138 add __hash__ to PolicyConstraints and Extension (#3917) 2017-09-13 23:14:28 -04:00
Paul Kehrer
7b6be923e2 implement __hash__ on KeyUsage and ExtendedKeyUsage (#3913)
* implement __hash__ on KeyUsage and ExtendedKeyUsage

* properly use private values and alter test to catch that bug
2017-09-13 19:43:07 -04:00
Paul Kehrer
ab96a53bc9 implement __hash__ on CertificatePolicies and its child classes (#3914) 2017-09-13 19:42:33 -04:00
Paul Kehrer
979c26303f add aki hash (#3910)
* Implement __hash__ on AuthorityKeyIdentifier

* Adding dirname to fix build issue on AuthorityKeyIdentifier test

* .authority_cert_issuer to str

* use a tuple and not a str repr
2017-09-13 16:24:30 -04:00
Paul Kehrer
bdad051b99 name constraints __hash__ (#3912) 2017-09-13 16:24:20 -04:00
Paul Kehrer
54024493bd AIA hashing (#3911) 2017-09-13 13:55:31 -04:00
Paul Kehrer
89aaecb518 remove u-label conversion during general name decode (#3905)
We support directly passing bytes now and these code paths are
duplicated in the deprecated value attributes.
2017-09-13 13:45:09 -04:00
Paul Kehrer
8c1f5edd12 fix a bug with URI value when parsing a string with no hostname (#3909)
strings of the form "scheme:///anything" would incorrectly have two
slashes dropped. This is fixed in two code paths in this PR but one of
those code paths will be entirely removed in a followup PR.
2017-09-13 10:06:12 -04:00
Paul Kehrer
fbfc36da2a implement __hash__ on all GeneralName types (#3907)
Needed to implement __hash__ on AuthorityKeyIdentifier
2017-09-13 09:34:59 -04:00
Paul Kehrer
e535985a73 coverage pin test part deux (#3908)
* we pinned coverage for xml generation...let's try everywhere

* add so many comments
2017-09-12 21:30:51 -04:00
Paul Kehrer
e00bad5332 compare against bytes values, not the U-label decoded ones (#3906)
We need to add one small test to cover a case that is no longer covered
with this switch.
2017-09-12 20:29:19 -04:00
Paul Kehrer
c7ecb45684 add a faq note about having a compiler that is too old (#3902)
* add a faq note about having a compiler that is too old

Also add a bit of text explaining what to do on OpenBSD 6.1 and earlier
since that is the most likely place this will occur.

* I always forget it spell checks titles
2017-09-11 22:26:33 -04:00
Paul Kehrer
363f5b099b refactor AES keywrap into a wrap core and unwrap core (#3901)
* refactor AES keywrap into a wrap core and unwrap core

This refactor makes adding AES keywrap with padding much simpler.

* remove an unneeded arg
2017-09-11 20:03:17 -04:00
Paul Kehrer
5d66966032 [WIP] add support for the TLSFeature extension in x509 (#3899)
* add support for the TLSFeature extension in x509

This extension is used for OCSP Must-Staple.

* fix changelog link

* pep8

* refactor to support the sequence properly and add status_request_v2

* update some language

* add test vector, implement eq/ne/hash on TLSFeature

* address review comments
2017-09-10 21:16:34 -04:00
Paul Kehrer
d4bde9ce66 RSA OAEP label support for OpenSSL 1.0.2+ (#3897)
* RSA OAEP label support for OpenSSL 1.0.2+

* changelog

* move around tests, address review feedback, use backend supported method

* unsupported padding catches this now
2017-09-08 19:03:50 -04:00
Paul Kehrer
52067bc300 add X509 test vector with a TLS Feature (RFC 7633) extension (#3898) 2017-09-08 19:02:22 -04:00
Paul Kehrer
2b01c55736 oaep label vector (#3895)
* oaep label vector

* add count so we can use the nist vector loader

* add RSA key from the boring vectors as well

https://boringssl.googlesource.com/boringssl/+/ce3773f9fe25c3b54390bc51d72572f251c7d7e6/crypto/evp/evp_tests.txt#8
2017-09-07 07:14:25 -04:00
Paul Kehrer
9a8e29eda7 add initial OCSP request test vector (#3890) 2017-09-07 07:11:47 -04:00
Paul Kehrer
32f88bf634 add set0_rsa_oaep_label binding (#3894) 2017-09-07 07:05:52 -04:00
Paul Kehrer
ec0e1cc291 move x509 tests into a module (#3889)
* move x509 tests into a module

This is just to make grouping things like test_ocsp, etc a bit simpler
in the future

* fix path

* pep8
2017-09-06 21:48:10 -04:00