aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
Commit message (Collapse)AuthorAgeFilesLines
* Fixed HOTP test path, added changelog and myself to author list.Ayrx2014-02-211-1/+1
|
* Changed module name from otp to twofactor.Ayrx2014-02-212-1/+1
|
* Final changes to module namesAyrx2014-02-212-0/+83
|
* Add OpenSSL PEM vector docsAlex Stapleton2014-02-194-0/+0
|
* Add GnuTLS OpenSSL compatibility test keysAlex Stapleton2014-02-192-0/+24
| | | | | | | | key1.pem is encrypted with the password `123456` key2.pem is encrypted with the password `a123456` From commit GnuTLS commit f16ef39ef0303b02d7fa590a37820440c466ce8d
* Add testrsa.pem from the OpenSSL repoAlex Stapleton2014-02-192-0/+21
| | | | | | | | | | | Found in test/testrsa.pem. Has been around since the SSLeay fork. testrsa-encrypted.pem was encrypted with AES128 using OpenSSL 1.0.1e-3ubuntu1.1 under the password `password`. The command used was: openssl rsa -in testrsa.pem -out testrsa-encrypted.pem -aes128
* Explicitly pass the key parameters instead of using **kwargs. Now we don't ↵David Reid2014-02-191-3/+14
| | | | have to pop some stuff.
* Merge pull request #636 from reaperhulk/rsa-signature-loaderDavid Reid2014-02-191-0/+1
|\ | | | | Expand PKCS1 loader to load PKCS1 v1.5 and PSS signature examples
| * fix rsa key loader testPaul Kehrer2014-02-171-0/+1
| |
* | Fixed TOTP test vectors.Ayrx2014-02-182-12/+12
|/
* name things the right name for varietyPaul Kehrer2014-02-161-1/+1
|
* add CAST5 CTR support to commoncrypto + testsPaul Kehrer2014-02-161-0/+17
|
* Merge pull request #626 from reaperhulk/cast5-ctr-vectorsAlex Gaynor2014-02-161-0/+22
|\ | | | | CAST5 CTR vectors
| * add origin header to cast5-ctr test vectorsPaul Kehrer2014-02-161-1/+5
| |
| * add CAST5 CTR vectors (built from AES CTR vectors)Paul Kehrer2014-02-161-0/+18
| |
* | reformat camellia cfb, ofb, cbc vectors to NIST layoutPaul Kehrer2014-02-164-98/+241
|/ | | | + remove duplicate tests
* Reformat AES CTR vectors to use NIST loader & document their source properlyPaul Kehrer2014-02-154-16/+64
|
* switch to more compact modular multiplicative inversePaul Kehrer2014-02-141-27/+11
|
* python3 compatibility is goodPaul Kehrer2014-02-141-1/+1
|
* add egcd and modinv unit testsPaul Kehrer2014-02-141-0/+36
|
* Merge branch 'master' into add-crt-coefficientsPaul Kehrer2014-02-132-1/+106
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Also clean up this syntax Fixed a missing word in the RSA docs Fix comments in padding.py to be accurate add versionadded to cast5 A few style nits in the docs add CAST5 support to changelog Changed .... lines to ~~~~ and s/Gnu\/Linux/Linux/ Pypy is not a real word either apparently. Added Pypy note and fixed libffi's "spelling" Added Debian mention, extra missing packages Added a docs section on Linux installation remove some extra linebreaks add cast5 docs Syntax highlight the go code. Be mad Rob Pike. add cbc, cfb, ofb support to CAST5 (aka CAST128) for openssl & cc re-add CAST5 ECB support (OpenSSL & CC backends). fixes #417 Switch this to a warning block Be clear about HKDF's applicability for password storage Conflicts: docs/hazmat/primitives/rsa.rst
| * add cbc, cfb, ofb support to CAST5 (aka CAST128) for openssl & ccPaul Kehrer2014-02-121-1/+52
| | | | | | | | fixes #393
| * re-add CAST5 ECB support (OpenSSL & CC backends). fixes #417Paul Kehrer2014-02-122-1/+55
| |
* | expose dmp1, dmq1, iqmp getters on RSAPrivateKeyPaul Kehrer2014-02-131-3/+3
| |
* | add crt coefficients to RSAPrivateKey constructor and update testsPaul Kehrer2014-02-121-28/+135
|/
* update headers for the CAST5 vectorsPaul Kehrer2014-02-123-0/+3
|
* CAST5 CBC, OFB, CFB vectors made from the AES MMT test dataPaul Kehrer2014-02-123-0/+370
|
* Add RSAPrivateKey.generateAlex Stapleton2014-02-121-7/+13
|
* Merge pull request #580 from public/openssl-gen-rsa-keyDavid Reid2014-02-111-5/+52
|\ | | | | Generate RSA Keys with OpenSSL
| * Generate RSA KeysAlex Stapleton2014-02-111-5/+52
| |
* | Fixed error in totp test vectors.Ayrx2014-02-101-2/+2
| |
* | Updated vectors to include secret.Ayrx2014-02-102-0/+36
| |
* | Renamed vectors/otp to vectors/oathAyrx2014-02-092-0/+0
| |
* | Added test vectors for HOTP and TOTP algorithms.Ayrx2014-02-092-0/+154
|/
* Make tests more explicit.Alex Stapleton2014-02-071-38/+89
|
* Check that public_exponent is oddAlex Stapleton2014-02-071-12/+20
|
* Use os.path.join to make pathsAlex Stapleton2014-02-061-1/+4
|
* More sanity checksAlex Stapleton2014-02-061-0/+12
|
* Test alias propertiesAlex Stapleton2014-02-051-0/+5
|
* Check p*q=n in the testsAlex Stapleton2014-02-051-0/+2
|
* Sanity check keys.Alex Stapleton2014-02-051-1/+35
| | | | Taken from RFC 3447.
* RSA keysAlex Stapleton2014-02-051-0/+58
| | | | | | | | | | | | | | | | | These are implemented such that they don't depend on the backend. This means we don't have to worry about passing an RSA key created with one backend to a different one so much at the expense of having to create a backend specific context on demand. This is slightly non-trivial in (at least) OpenSSL as there are 3 additional derived parameters kept in its RSA struct. They aren't difficult to generate but it requires adding 30-40 lines of BN_* stuff to the backend so I'm leaving that out for now. We'll need to implement that before we can actually do any useful operations with the keys. This also adds a loader for some of the PKCS #1 test vectors. It only extracts the 10 key pairs from pss_vect.txt currently be should be extenable to include the example signatures and other files later.
* Properly mark all test cases as dependant on HMAC.David Reid2014-02-032-5/+5
|
* Don't forget InvalidKey.David Reid2014-02-031-1/+1
|
* Import exception classes instead of the exceptions module.David Reid2014-02-031-4/+4
|
* Don't expose extract and expand on this class yet because we don't know how ↵David Reid2014-02-032-20/+2
| | | | best to expose verify functionality, continue testing the stages using the private methods.
* Complete test coverageDavid Reid2014-02-031-0/+26
|
* Use six.u for great good.David Reid2014-02-031-5/+19
|
* Consistently use double quotes.David Reid2014-02-031-11/+11
|
* Aggressively type-check for text.David Reid2014-02-031-0/+40
|