aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-08-10 15:22:28 -0400
committerDonald Stufft <donald@stufft.io>2013-08-10 15:22:28 -0400
commitea8e9fc0bd807c49318e12f6bbd2c2b43456feab (patch)
tree144a58d74e66925fcf4c9e88622aff2b70399524 /cryptography
parent6a37d27953f2d6075c6834eea46bb762ca523c22 (diff)
downloadcryptography-ea8e9fc0bd807c49318e12f6bbd2c2b43456feab.tar.gz
cryptography-ea8e9fc0bd807c49318e12f6bbd2c2b43456feab.tar.bz2
cryptography-ea8e9fc0bd807c49318e12f6bbd2c2b43456feab.zip
Remove the padding from the BlockCipher API
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/primitives/block/modes.py3
-rw-r--r--cryptography/primitives/block/padding.py16
2 files changed, 1 insertions, 18 deletions
diff --git a/cryptography/primitives/block/modes.py b/cryptography/primitives/block/modes.py
index 329c8d50..02f0219c 100644
--- a/cryptography/primitives/block/modes.py
+++ b/cryptography/primitives/block/modes.py
@@ -15,7 +15,6 @@
class CBC(object):
name = "CBC"
- def __init__(self, initialization_vector, padding):
+ def __init__(self, initialization_vector):
super(CBC, self).__init__()
self.initialization_vector = initialization_vector
- self.padding = padding
diff --git a/cryptography/primitives/block/padding.py b/cryptography/primitives/block/padding.py
deleted file mode 100644
index ebd5e5c8..00000000
--- a/cryptography/primitives/block/padding.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-class NoPadding(object):
- pass