Alex Stapleton
cf0486082b
ECDSA vector loader
2014-04-12 14:39:09 +01:00
Alex Gaynor
07c4dcc690
Some cleanups to imports
2014-04-05 11:22:07 -07:00
Paul Kehrer
3fe9150c1c
expand pkcs1 loader to support OAEP as well
2014-03-29 12:48:25 -05:00
Alex Stapleton
85a791f0fa
Pain the bikeshed a different colour
2014-03-27 16:55:41 +00:00
Alex Stapleton
5e4c8c3666
Fixes to @alex's comments
2014-03-27 16:38:00 +00:00
Alex Stapleton
112963e296
Address most of my own comments
2014-03-27 07:31:12 +00:00
Alex Gaynor
7a489dbd11
Fixed #809 -- switch back to always using UnsupportedAlgorithm
2014-03-27 07:31:12 +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
Matthew Iversen
68e77c752b
Load vectors from cryptography.vectors
2014-03-22 16:25:38 +00:00
Paul Kehrer
90450f3626
a few small fixes
2014-03-19 12:37:17 -04:00
Paul Kehrer
afc1ccdcc8
import order fixes for future automated checking
2014-03-19 11:49:32 -04:00
Paul Kehrer
e66f69af6a
py3 fix
2014-03-18 07:57:26 -04:00
Paul Kehrer
afc2518fbf
another file permutation for rsa nist tested.
2014-03-18 07:51:56 -04:00
Paul Kehrer
62707f134f
expand RSA NIST vector loader to support verification vectors as well
2014-03-18 07:45:42 -04:00
Paul Kehrer
dde5933358
change rsa nist loader to use strings for algorithm name
2014-03-16 17:57:20 -04:00
Mohammed Attia
49b92596b6
Change flag to a bool
2014-03-13 12:33:40 +02:00
Mohammed Attia
22ccb8771f
Remove some of the vectors in the loader test
2014-03-12 18:31:15 +02:00
Mohammed Attia
987cc708e2
Add loader and loader test for FIPS DSA KeyPair vectors
2014-03-12 16:07:21 +02:00
Paul Kehrer
2f2a206e18
add FIPS RSA test loader + tests
2014-03-10 23:30:28 -04:00
Alex Gaynor
c37feed731
Added future imports and licenses that are missing
2014-03-08 08:32:56 -08:00
Paul Kehrer
26811800a7
these examples should be bytes to be consistent with other loaders
2014-02-19 16:32:31 -06:00
Paul Kehrer
7d9c306cd6
rename msg -> message in pkcs1 loader
2014-02-18 08:27:39 -06:00
Paul Kehrer
7774a0380b
fix pep8
2014-02-17 22:56:55 -06:00
Paul Kehrer
efca280070
expand pkcs1 loader to load PKCS1 v1.5 and PSS signature examples
2014-02-17 22:04:24 -06:00
Paul Kehrer
d5c9f5ae0c
remove openssl vector loader that is no longer in use
2014-02-16 20:31:52 -06:00
Paul Kehrer
09328bbfb3
add crt coefficients to RSAPrivateKey constructor and update tests
2014-02-12 23:57:27 -06:00
Alex Stapleton
58f27accf2
PKCS #1 RSA test vector loader
2014-02-05 18:06:16 +00:00
Paul Kehrer
1050ddf44f
PBKDF2 support for OpenSSL backend
2014-01-28 11:18:26 -06:00
Alex Gaynor
36e651c00a
Represent the hash vectors more cleanly
2014-01-27 10:08:35 -08:00
Paul Kehrer
aed9e17b60
revert fixture decorator for now, switch to append. no more globals
2014-01-19 12:09:27 -06:00
Paul Kehrer
c421e636b1
modify backend selection to allow multiple backends via comma delimiter
2014-01-18 09:22:21 -06:00
Paul Kehrer
34c075e6f3
support --backend as a pytest flag to limit to one backend for testing
2014-01-13 21:52:08 -05:00
Paul Kehrer
f03334e25c
backend support check now lists which backend caused the skip
2014-01-03 11:39:19 -06:00
Paul Kehrer
ec49550b1f
change typeerror to valueerror
2013-12-27 15:51:40 -06:00
Paul Kehrer
60fc8da5aa
rename the method to be less horribly named
2013-12-26 20:19:34 -06:00
Paul Kehrer
5a8fdf82f3
add mark that allows us to do skip tests on backends via decorators
2013-12-26 20:13:45 -06:00
Alex Gaynor
2b3f942712
Move stuff around and coverage
2013-12-24 21:55:24 -08:00
Paul Kehrer
749ac5b6f9
simplify nist loader to completely ignore sections
2013-11-18 18:12:41 -06:00
Paul Kehrer
c985dbb47b
modify nist loader to support multi-line GCM sections
2013-11-18 14:11:55 -06:00
Paul Kehrer
a43b669725
GCM loader support
2013-11-12 15:35:49 -06:00
Paul Kehrer
f7f6a9f77a
Remove separate file loaders and replace with one
...
All tests updated to work with the new simplified loader
2013-11-11 20:43:52 -06:00
Alex Gaynor
d3ce703170
Ignore the sections of the NIST files
2013-11-11 14:46:20 -08:00
Alex Gaynor
521c42d26c
Simplify the code by doing the filtering earlier, rather than later
2013-11-11 14:25:59 -08:00
Paul Kehrer
2b758679b3
restructure vectors into ciphers/hashes/hmac
2013-10-30 09:01:38 -05:00
Paul Kehrer
1bb8b710d4
clean up loader and make docs default to hmac sha256
2013-10-28 17:34:37 -05:00
Paul Kehrer
00dd509f18
address initial review comments
2013-10-28 17:34:37 -05:00
Paul Kehrer
0317b04b11
HMAC support
...
Conflicts:
docs/primitives/index.rst
tests/hazmat/primitives/utils.py
2013-10-28 17:34:27 -05:00
Donald Stufft
f04317ae24
Move primtives into a hazmat package
2013-10-28 08:37:33 -04:00
Donald Stufft
3359d7efdc
Test what happens when an invalid line is in the cryptrec vectors
2013-10-19 19:33:06 -04:00
Paul Kehrer
87cd0db396
update loader and test to handle lines with brackets
2013-10-18 18:02:21 -05:00