Commit graph

61 commits

Author SHA1 Message Date
David Reid
f1a39bd77f OFB uses an initialization vector instead a nonce. 2013-09-11 16:28:42 -07:00
Paul Kehrer
4223df72cf add CFB to documentation 2013-09-11 09:48:04 -05:00
Donald Stufft
9287c2344c Merge pull request #57 from reaperhulk/ofb-support
Output feedback mode support + test vectors (aes)
2013-09-10 20:24:20 -07:00
Paul Kehrer
c507412ec0
change OFB iv to nonce to reflect dstufft nomenclature pitch
* Namely, we should try to call things IV if reuse leaks a small amount
  of data and nonce if reuse can result in a complete break. This can
  be somewhat ambiguous, but we'll track in #58
2013-09-10 22:15:00 -05:00
Paul Kehrer
6f412a0fc3
add output feedback mode support + test vectors (aes) 2013-09-10 21:31:27 -05:00
Alex Gaynor
cd413a36d3 Cleaned up the docs for ECB 2013-09-10 18:59:43 -07:00
Paul Kehrer
09980a55fe remove unneeded init in ECB class, add warning to docs for ECB mode 2013-09-10 19:47:50 -05:00
Paul Kehrer
13f108f926 Add ECB class + docs + tests
* Slightly refactors test_nist to allow fetching of data that has no IV
* Does not modify create_block_cipher_context (next commit)
2013-09-10 19:47:50 -05:00
Alex Gaynor
2c67c82b96 Captitalize GH properly 2013-09-09 23:44:13 -07:00
Alex Gaynor
c72e63fc52 More fully document the contribution process, move most of the details from
CONTRIBUTING.rst to sphinx.
2013-09-09 21:44:26 -07:00
Hynek Schlawack
5e00e96f20 Merge pull request #28 from alex/simple-symmetric-encryption
[WIP] initial implementation of symmetric encryption
2013-09-07 12:14:31 -07:00
Alex Gaynor
d8d91d40e2 Nit for Hynek 2013-08-12 09:33:18 -04:00
Alex Gaynor
f88413a7d2 Also mention that other packages miss python3 support 2013-08-12 09:32:00 -04:00
Donald Stufft
173de98d63 Test the symmetric encryption doc snippets using doctest 2013-08-12 07:34:39 -04:00
Donald Stufft
235fa7199d Use the Sphinx doctest builder
This allows us to test our documentation snippets using the standard
"doctest" utility.
2013-08-11 17:54:13 -04:00
Donald Stufft
292112bc87 Make the example error free
Without padding b"my secret message" is not divisible by AES's
block size and thus would throw an error.
2013-08-11 14:32:17 -04:00
Alex Gaynor
f0d139aa2d Another issue we're targetting 2013-08-11 09:13:27 -04:00
Alex Gaynor
d6bef56f29 English grammar 2013-08-11 09:09:28 -04:00
Alex Gaynor
4373d7a293 Added another item from hynek 2013-08-11 08:57:17 -04:00
Alex Gaynor
aa66554116 Document that we want AES-GCM 2013-08-11 08:41:03 -04:00
Alex Gaynor
ec4ba73857 Better gramar 2013-08-11 08:19:05 -04:00
Alex Gaynor
3538fdbc5c Make this a heading 2013-08-11 08:18:40 -04:00
Alex Gaynor
9f3468dcfc Better describe why this library exists. Refs #5 2013-08-11 08:17:48 -04:00
Alex Gaynor
acc787aebb Fixed example 2013-08-10 15:52:40 -04:00
Alex Gaynor
641a3a0e42 Fully excised padding from the docs 2013-08-10 15:46:07 -04:00
Donald Stufft
a02d4ed5ed
Removing padding from the encryption API
* Padding is fundamentally an operation that occurs prior to
  encryption to make plaintext suitable.
* Even though wether it's regarded is dependent on the mode, it
  can be used safely regardless.
* Moving it out of this API makes the API's simpler and more
  composable.
* Moving it out of this API makes it simpler for backends that
  don't work exactly like OpenSSL's EVP.
* Move it out of this API makes it simpler to include padding
  that OpenSSL's EVP API doesn't expose.
2013-08-10 13:12:53 -04:00
Donald Stufft
4bc451924c Merge pull request #26 from alex/symmetric-encryption-docs
[WIP] Started trying to document symmetric encryption
2013-08-08 19:14:56 -07:00
Alex Gaynor
b12f76e1a3 Typo fix 2013-08-08 19:05:18 -07:00
Jean-Paul Calderone
97c6acecc1 There *is* a p in cryptography but it has a specific position in the word. 2013-08-08 20:13:32 -04:00
Alex Gaynor
51758ff8f0 A padding example 2013-08-08 15:30:56 -07:00
Alex Gaynor
c2ae2be66c This is where padding goes 2013-08-08 15:28:48 -07:00
Alex Gaynor
09515f0007 Descriptive text 2013-08-08 15:26:55 -07:00
Alex Gaynor
e62aa40353 Describe the methods more explicitly 2013-08-08 15:23:11 -07:00
Alex Gaynor
65678d05fe Document this as a class 2013-08-08 15:19:19 -07:00
Alex Gaynor
6badd9b99b New language 2013-08-08 14:59:53 -07:00
Alex Gaynor
2dc2b861fa more accurate 2013-08-08 11:58:04 -07:00
Alex Gaynor
4dd1c2701a Move the modules around 2013-08-08 11:39:21 -07:00
Alex Gaynor
a1b98f9ba3 Fix 2013-08-08 11:37:25 -07:00
Alex Gaynor
c4a5f069c4 This is a lie 2013-08-08 11:35:20 -07:00
Alex Gaynor
1e3f81fe70 All caps 2013-08-08 11:31:43 -07:00
Alex Gaynor
a4f529e2db fix spelling errors, move module 2013-08-08 11:29:06 -07:00
Alex Gaynor
1c1bad6b33 Document that IVs should not be reused. 2013-08-08 11:27:47 -07:00
Alex Gaynor
c651f76b50 Document how long iv should be 2013-08-08 11:17:56 -07:00
Alex Gaynor
48ec9a30b0 Try to document CBC 2013-08-08 11:13:46 -07:00
Alex Gaynor
5ba2dfa1c0 Attempt to document AES 2013-08-08 11:04:44 -07:00
Alex Gaynor
e7869438c4 Crypto is seriously hard 2013-08-08 07:39:26 -07:00
Alex Gaynor
d96d10000f Start stubbing out subheadings 2013-08-08 07:37:26 -07:00
Alex Gaynor
0ca7fdbd09 Begin to describe the methods 2013-08-08 07:35:26 -07:00
Alex Gaynor
f6c47e9eac Started trying to document symmetric encryption 2013-08-08 07:16:01 -07:00
Hynek Schlawack
5e7926f5af Document architecture changes 2013-08-08 08:46:44 +02:00